2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-smartalloc enable smartalloc debugging support disabled
861 --enable-static-tools enable static tape tools disabled
862 --enable-static-fd enable static File daemon disabled
863 --enable-static-sd enable static Storage daemon disabled
864 --enable-static-dir enable static Director disabled
865 --enable-static-cons enable static Console disabled
866 --enable-client-only build client (File daemon) only disabled
867 --disable-conio disable conio support enabled
869 --disable-readline disable readline support disable
871 --disable-largefile omit support for large files
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnome-includes Specify location of GNOME headers
877 --with-gnome-libs Specify location of GNOME libs
878 --with-gnome Specify prefix for GNOME files
879 --with-readline=DIR specify readline library directory
880 --with-tcp-wrappers=DIR enable tcpwrappers support
881 --with-working-dir=PATH specify path of Bacula working directory
882 --with-scriptdir=PATH specify path of Bacula scripts directory
883 --with-dump-email=EMAIL dump email address
884 --with-job-email=EMAIL job output email address
885 --with-smtp-host=HOST SMTP mail host address
886 --with-pid-dir=PATH specify location of Bacula pid files
887 --with-subsys-dir=PATH specify location of Bacula subsys file
888 --with-baseport=PORT specify base port address for daemons
889 --with-dir-password=PASSWORD specify Director's password
890 --with-fd-password=PASSWORD specify Client's password
891 --with-sd-password=PASSWORD specify Storage daemon's password
892 --with-dir-user=USER specify user for Director daemon
893 --with-dir-group=GROUP specify group for Director daemon
894 --with-sd-user=USER specify user for Storage daemon
895 --with-sd-group=GROUP specify group for Storage daemon
896 --with-fd-user=USER specify user for File daemon
897 --with-fd-group=GROUP specify group for File daemon
898 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
899 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
900 base install directory, defaults to /usr/local/pgsql
902 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
903 install directory, default is to search through
904 a number of common places for the MySQL files.
906 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
907 install directory, default is to search through
908 a number of common places for the MySQL files.
910 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
911 install directory, default is to search through
912 a number of common places for the SQLite files.
913 --with-x use the X Window System
915 Some influential environment variables:
916 CC C compiler command
917 CFLAGS C compiler flags
918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
919 nonstandard directory <lib dir>
920 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
921 headers in a nonstandard directory <include dir>
922 CXX C++ compiler command
923 CXXFLAGS C++ compiler flags
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var in $ac_subst_vars
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var in $ac_subst_files
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h; then
1174 sed "/^$/d" confdefs.h | sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core core.* *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1370 # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 test -z "$as_dir" && as_dir=.
1387 for ac_exec_ext in '' $ac_executable_extensions; do
1388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1401 if test -n "$TRUEPRG"; then
1402 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$TRUEPRG" && break
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1413 for ac_prog in false
1415 # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1446 if test -n "$FALSEPRG"; then
1447 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1450 echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1454 test -n "$FALSEPRG" && break
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1512 # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_ac_ct_CC="gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1552 if test -z "$CC"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1633 if test -z "$CC"; then
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653 ac_prog_rejected=yes
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy $ac_cv_prog_CC
1667 if test $# != 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1729 if test -z "$CC"; then
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785 "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788 (eval $ac_compiler --version </dev/null >&5) 2>&5
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793 (eval $ac_compiler -v </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798 (eval $ac_compiler -V </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h. */
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828 (eval $ac_link_default) 2>&5
1830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831 (exit $ac_status); }; then
1832 # Find the output, starting from the most likely. This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 test -f "$ac_file" || continue
1844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1847 # This is the source file.
1850 # We found the default executable, but exeext='' is most
1854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855 # FIXME: I believe we export ac_cv_exeext for Libtool,
1856 # but it would be cool to find out if it's true. Does anybody
1857 # maintain Libtool? --akim.
1865 echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872 { (exit 77); exit 77; }; }
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1879 # Check the compiler produces executables we can run. If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886 if { ac_try='./$ac_file'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 if test "$cross_compiling" = maybe; then
1897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run. If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922 (eval $ac_link) 2>&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); }; then
1926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 for ac_file in conftest.exe conftest conftest.*; do
1931 test -f "$ac_file" || continue
1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945 { (exit 1); exit 1; }; }
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; then
1982 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
2044 echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104 CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106 if test "$GCC" = yes; then
2112 if test "$GCC" = yes; then
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_cv_prog_cc_stdc=no
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2150 s = g (p, va_arg (v,int));
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX -qlanglvl=ansi
2171 # Ultrix and OSF/1 -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions -Aa -D_HPUX_SOURCE
2174 # SVR4 -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 CC="$ac_save_CC $ac_arg"
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.$ac_objext
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2204 case "x$ac_cv_prog_cc_stdc" in
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 # Some people use a C++ compiler to compile C. Since we use `exit',
2215 # in C++ we need to declare it. In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 for ac_declaration in \
2237 '#include <stdlib.h>' \
2238 'extern "C" void std::exit (int) throw (); using std::exit;' \
2239 'extern "C" void std::exit (int); using std::exit;' \
2240 'extern "C" void exit (int) throw ();' \
2241 'extern "C" void exit (int);' \
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2318 if test -n "$ac_declaration"; then
2319 echo '#ifdef __cplusplus' >>confdefs.h
2320 echo $ac_declaration >>confdefs.h
2321 echo '#endif' >>confdefs.h
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test -n "$CXX"; then
2352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$CXX"; then
2372 echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2375 echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2379 test -n "$CXX" && break
2382 if test -z "$CXX"; then
2384 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CXX"; then
2394 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_ac_ct_CXX="$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 test -n "$ac_ct_CXX" && break
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431 "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434 (eval $ac_compiler --version </dev/null >&5) 2>&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439 (eval $ac_compiler -v </dev/null >&5) 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444 (eval $ac_compiler -V </dev/null >&5) 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2535 ac_cv_prog_cxx_g=yes
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547 CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549 if test "$GXX" = yes; then
2555 if test "$GXX" = yes; then
2561 for ac_declaration in \
2563 '#include <stdlib.h>' \
2564 'extern "C" void std::exit (int) throw (); using std::exit;' \
2565 'extern "C" void std::exit (int); using std::exit;' \
2566 'extern "C" void exit (int) throw ();' \
2567 'extern "C" void exit (int);' \
2570 cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607 cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625 (eval $ac_compile) 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2644 if test -n "$ac_declaration"; then
2645 echo '#ifdef __cplusplus' >>confdefs.h
2646 echo $ac_declaration >>confdefs.h
2647 echo '#endif' >>confdefs.h
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 if test "x$CC" != xcc; then
2657 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 set dummy $CC; ac_cc=`echo $2 |
2664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); };
2699 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700 if test "x$CC" != xcc; then
2701 # Test first that cc exists at all.
2702 if { ac_try='cc -c conftest.$ac_ext >&5'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); };
2723 # cc exists but doesn't like -o.
2724 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2738 echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2758 if test -z "$CPP"; then
2759 if test "${ac_cv_prog_CPP+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 # Double quotes because CPP needs to be expanded
2763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2766 for ac_c_preproc_warn_flag in '' yes
2768 # Use a header file that comes with gcc, so configuring glibc
2769 # with a fresh cross-compiler works.
2770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 # <limits.h> exists even on freestanding compilers.
2772 # On the NeXT, cc -E runs the code through the compiler's parser,
2773 # not just through cpp. "Syntax error" is here to catch this case.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2782 # include <limits.h>
2784 # include <assert.h>
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2804 if test -z "$ac_cpp_err"; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 # Broken: fails on valid input.
2813 rm -f conftest.err conftest.$ac_ext
2815 # OK, works on sane cases. Now check whether non-existent headers
2816 # can be detected and how.
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 #include <ac_nonexistent.h>
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1 >conftest.err
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } >/dev/null; then
2834 if test -s conftest.err; then
2835 ac_cpp_err=$ac_c_preproc_warn_flag
2842 if test -z "$ac_cpp_err"; then
2843 # Broken: success on invalid input.
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 # Passes both tests.
2853 rm -f conftest.err conftest.$ac_ext
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2873 for ac_c_preproc_warn_flag in '' yes
2875 # Use a header file that comes with gcc, so configuring glibc
2876 # with a fresh cross-compiler works.
2877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878 # <limits.h> exists even on freestanding compilers.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2889 # include <limits.h>
2891 # include <assert.h>
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2911 if test -z "$ac_cpp_err"; then
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 # Broken: fails on valid input.
2920 rm -f conftest.err conftest.$ac_ext
2922 # OK, works on sane cases. Now check whether non-existent headers
2923 # can be detected and how.
2924 cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2931 #include <ac_nonexistent.h>
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2949 if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 # Passes both tests.
2960 rm -f conftest.err conftest.$ac_ext
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972 { (exit 1); exit 1; }; }
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988 then ac_cv_prog_egrep='grep -E'
2989 else ac_cv_prog_egrep='egrep'
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994 EGREP=$ac_cv_prog_egrep
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_pattern="Autoconf.*'x'"
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016 ac_cv_prog_gcc_traditional=yes
3018 ac_cv_prog_gcc_traditional=no
3023 if test $ac_cv_prog_gcc_traditional = no; then
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036 ac_cv_prog_gcc_traditional=yes
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044 if test $ac_cv_prog_gcc_traditional = yes; then
3045 CC="$CC -traditional"
3051 cat >>confdefs.h <<\_ACEOF
3057 # Find a good install program. We prefer a C program (faster),
3058 # so one script is as good as another. But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 # Account for people who put trailing slashes in PATH elements.
3082 ./ | .// | /cC/* | \
3083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3086 # OSF1 and SCO ODT 3.0 have their own names for install.
3087 # Don't use installbsd from OSF since it installs stuff as root
3089 for ac_prog in ginstall scoinst install; do
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092 if test $ac_prog = install &&
3093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094 # AIX install. It has an incompatible calling convention.
3096 elif test $ac_prog = install &&
3097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # program-specific install script used by HP pwplus--don't use.
3101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3113 if test "${ac_cv_path_install+set}" = set; then
3114 INSTALL=$ac_cv_path_install
3116 # As a last resort, use the slow shell script. We don't cache a
3117 # path for INSTALL within a source directory, because that will
3118 # break other packages using the cache if that directory is
3119 # removed, or if the path is relative.
3120 INSTALL=$ac_install_sh
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 if test -n "$RANLIB"; then
3143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163 echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3166 echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172 ac_ct_RANLIB=$RANLIB
3173 # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 if test -n "$ac_ct_RANLIB"; then
3181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_RANLIB="ranlib"
3191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 RANLIB=$ac_ct_RANLIB
3211 RANLIB="$ac_cv_prog_RANLIB"
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3246 if test -n "$MV"; then
3247 echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3286 if test -n "$RM"; then
3287 echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3326 if test -n "$CP"; then
3327 echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3330 echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3366 if test -n "$SED"; then
3367 echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3406 if test -n "$AWK"; then
3407 echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3444 ECHO=$ac_cv_path_ECHO
3446 if test -n "$ECHO"; then
3447 echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3486 if test -n "$CMP"; then
3487 echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3526 if test -n "$TBL"; then
3527 echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3530 echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3566 if test -n "$AR"; then
3567 echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3604 OPENSSL=$ac_cv_path_OPENSSL
3606 if test -n "$OPENSSL"; then
3607 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3646 if test -n "$MTX"; then
3647 echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686 if test -n "$PKGCONFIG"; then
3687 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3726 if test -n "$WXCONFIG"; then
3727 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752 { (exit 1); exit 1; }; }
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761 ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765 { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3781 echo "$as_me:$LINENO: checking host system type" >&5
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3783 if test "${ac_cv_host+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_cv_host_alias=$host_alias
3787 test -z "$ac_cv_host_alias" &&
3788 ac_cv_host_alias=$ac_cv_build_alias
3789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3792 { (exit 1); exit 1; }; }
3795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796 echo "${ECHO_T}$ac_cv_host" >&6
3798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3804 *cygwin* ) CYGWIN=yes;;
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3814 HAVE_SUN_OS_FALSE='#'
3816 HAVE_SUN_OS_TRUE='#'
3819 cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3828 HAVE_SUN_OS_FALSE='#'
3830 HAVE_SUN_OS_TRUE='#'
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3841 HAVE_OSF1_OS_FALSE='#'
3843 HAVE_OSF1_OS_TRUE='#'
3846 cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3855 HAVE_OSF1_OS_FALSE='#'
3857 HAVE_OSF1_OS_TRUE='#'
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3868 HAVE_AIX_OS_FALSE='#'
3870 HAVE_AIX_OS_TRUE='#'
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3882 HAVE_AIX_OS_FALSE='#'
3884 HAVE_AIX_OS_TRUE='#'
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3895 HAVE_HPUX_OS_FALSE='#'
3897 HAVE_HPUX_OS_TRUE='#'
3900 cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3909 HAVE_HPUX_OS_FALSE='#'
3911 HAVE_HPUX_OS_TRUE='#'
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3922 HAVE_LINUX_OS_FALSE='#'
3924 HAVE_LINUX_OS_TRUE='#'
3925 HAVE_LINUX_OS_FALSE=
3927 cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3936 HAVE_LINUX_OS_FALSE='#'
3938 HAVE_LINUX_OS_TRUE='#'
3939 HAVE_LINUX_OS_FALSE=
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 HAVE_FREEBSD_OS_TRUE=
3949 HAVE_FREEBSD_OS_FALSE='#'
3951 HAVE_FREEBSD_OS_TRUE='#'
3952 HAVE_FREEBSD_OS_FALSE=
3954 cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3962 HAVE_FREEBSD_OS_TRUE=
3963 HAVE_FREEBSD_OS_FALSE='#'
3965 HAVE_FREEBSD_OS_TRUE='#'
3966 HAVE_FREEBSD_OS_FALSE=
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 HAVE_NETBSD_OS_TRUE=
3976 HAVE_NETBSD_OS_FALSE='#'
3978 HAVE_NETBSD_OS_TRUE='#'
3979 HAVE_NETBSD_OS_FALSE=
3981 cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3989 HAVE_NETBSD_OS_TRUE=
3990 HAVE_NETBSD_OS_FALSE='#'
3992 HAVE_NETBSD_OS_TRUE='#'
3993 HAVE_NETBSD_OS_FALSE=
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 HAVE_OPENBSD_OS_TRUE=
4003 HAVE_OPENBSD_OS_FALSE='#'
4005 HAVE_OPENBSD_OS_TRUE='#'
4006 HAVE_OPENBSD_OS_FALSE=
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4016 HAVE_OPENBSD_OS_TRUE=
4017 HAVE_OPENBSD_OS_FALSE='#'
4019 HAVE_OPENBSD_OS_TRUE='#'
4020 HAVE_OPENBSD_OS_FALSE=
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4030 HAVE_BSDI_OS_FALSE='#'
4032 HAVE_BSDI_OS_TRUE='#'
4035 cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4044 HAVE_BSDI_OS_FALSE='#'
4046 HAVE_BSDI_OS_TRUE='#'
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4057 HAVE_SGI_OS_FALSE='#'
4059 HAVE_SGI_OS_TRUE='#'
4062 cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4071 HAVE_SGI_OS_FALSE='#'
4073 HAVE_SGI_OS_TRUE='#'
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4084 HAVE_IRIX_OS_FALSE='#'
4086 HAVE_IRIX_OS_TRUE='#'
4089 cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4098 HAVE_IRIX_OS_FALSE='#'
4100 HAVE_IRIX_OS_TRUE='#'
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 HAVE_DARWIN_OS_TRUE=
4111 HAVE_DARWIN_OS_FALSE='#'
4113 HAVE_DARWIN_OS_TRUE='#'
4114 HAVE_DARWIN_OS_FALSE=
4116 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4124 HAVE_DARWIN_OS_TRUE=
4125 HAVE_DARWIN_OS_FALSE='#'
4127 HAVE_DARWIN_OS_TRUE='#'
4128 HAVE_DARWIN_OS_FALSE=
4133 # -----------------------------------------------------------
4134 # ----------------------------------------------------------
4135 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4136 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4137 if test "x$DISTNAME" != "x"
4139 echo "distname set to $DISTNAME"
4140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4167 elif test -f /etc/SuSE-release
4170 elif test -d /etc/SuSEconfig
4173 elif test -f /etc/mandrake-release
4176 elif test -f /etc/whitebox-release
4179 elif test -f /etc/redhat-release
4182 elif test -f /etc/gentoo-release
4185 elif test -f /etc/debian_version
4188 elif test -f /etc/slackware-version
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 elif test -f /etc/engarde-version
4197 elif test "$CYGWIN" = yes
4200 cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4207 echo "$as_me:$LINENO: result: done" >&5
4208 echo "${ECHO_T}done" >&6
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4217 INSIDE_GNOME_COMMON_TRUE=
4218 INSIDE_GNOME_COMMON_FALSE='#'
4220 INSIDE_GNOME_COMMON_TRUE='#'
4221 INSIDE_GNOME_COMMON_FALSE=
4224 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229 # ------------------------------------------------------------------
4230 # If the user has not set --prefix, we set our default to nothing.
4231 # In this case, if the user has not set --sysconfdir, we set it
4232 # to the package default of /etc/bacula. If either --prefix or
4233 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237 sysconfdir=/etc/bacula
4241 sysconfdir=`eval echo ${sysconfdir}`
4243 # -------------------------------------------------------------------------
4244 # If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247 exec_prefix=${prefix}
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254 sbindir=${exec_prefix}/sbin
4256 sbindir=`eval echo ${sbindir}`
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 # language is separated by a space.
4261 # ------------------------------------------------------------------
4264 for ac_prog in msgfmt
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 MSGFMT=$ac_cv_path_MSGFMT
4297 if test -n "$MSGFMT"; then
4298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$MSGFMT" && break
4307 test -n "$MSGFMT" || MSGFMT="no"
4309 if test "$MSGFMT" = "no"
4311 echo 'msgfmt program not found, disabling NLS !'
4313 USE_INCLUDED_LIBINTL=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=yes
4326 support_wx_console=no
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344 enableval="$enable_gnome"
4345 if test x$enableval = xyes; then
4351 if test x$support_gnome = xyes; then
4352 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354 if test $pkg = 0; then
4355 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4356 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4357 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4358 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363 GNOME_DIR=src/gnome2-console
4364 gnome_version="Version 2.x"
4377 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4378 if test "${with_gnome_includes+set}" = set; then
4379 withval="$with_gnome_includes"
4381 CFLAGS="$CFLAGS -I$withval"
4386 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4387 if test "${with_gnome_libs+set}" = set; then
4388 withval="$with_gnome_libs"
4390 LDFLAGS="$LDFLAGS -L$withval"
4391 gnome_prefix=$withval
4396 # Check whether --with-gnome or --without-gnome was given.
4397 if test "${with_gnome+set}" = set; then
4398 withval="$with_gnome"
4399 if test x$withval = xyes; then
4403 if test "x$withval" = xno; then
4407 LDFLAGS="$LDFLAGS -L$withval/lib"
4408 CFLAGS="$CFLAGS -I$withval/include"
4409 gnome_prefix=$withval/lib
4416 if test "x$want_gnome" = xyes; then
4418 # Extract the first word of "gnome-config", so it can be a program name with args.
4419 set dummy gnome-config; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 case $GNOME_CONFIG in
4427 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4448 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450 if test -n "$GNOME_CONFIG"; then
4451 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4452 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 if test "$GNOME_CONFIG" = "no"; then
4459 no_gnome_config="yes"
4461 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4462 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4463 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4464 echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6
4468 # Extract the first word of "orbit-config", so it can be a program name with args.
4469 set dummy orbit-config; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 case $ORBIT_CONFIG in
4477 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4498 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500 if test -n "$ORBIT_CONFIG"; then
4501 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4502 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4508 # Extract the first word of "orbit-idl", so it can be a program name with args.
4509 set dummy orbit-idl; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4538 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540 if test -n "$ORBIT_IDL"; then
4541 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4542 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4549 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4550 if test "${gnome_cv_orbit_found+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4555 gnome_cv_orbit_found=no
4557 gnome_cv_orbit_found=yes
4561 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4562 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4565 if test x$gnome_cv_orbit_found = xyes; then
4567 HAVE_ORBIT_FALSE='#'
4572 if test x$gnome_cv_orbit_found = xyes; then
4574 ORBIT_CFLAGS=`orbit-config --cflags client server`
4575 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4579 if test xfail = xfailure; then
4580 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4581 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4582 { (exit 1); exit 1; }; }
4586 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4587 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4588 if test "${gnome_cv_gnorba_found+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 gnome_cv_gnorba_found=no
4593 if test x$gnome_cv_orbit_found = xyes; then
4594 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4595 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4596 if test -n "$GNORBA_LIBS"; then
4597 gnome_cv_gnorba_found=yes
4602 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4603 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4606 if test x$gnome_cv_gnorba_found = xyes; then
4608 HAVE_GNORBA_FALSE='#'
4610 HAVE_GNORBA_TRUE='#'
4613 if test x$gnome_cv_orbit_found = xyes; then
4615 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4616 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4620 if test xfail = xfailure; then
4621 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4622 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4623 { (exit 1); exit 1; }; }
4627 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4628 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4629 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4630 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4631 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4632 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4633 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 no_gnome_config="yes"
4642 if test x$exec_prefix = xNONE; then
4643 if test x$prefix = xNONE; then
4644 gnome_prefix=$ac_default_prefix/lib
4646 gnome_prefix=$prefix/lib
4649 gnome_prefix=`eval echo \`echo $libdir\``
4652 if test "$no_gnome_config" = "yes"; then
4653 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4654 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4655 if test -f $gnome_prefix/gnomeConf.sh; then
4656 echo "$as_me:$LINENO: result: found" >&5
4657 echo "${ECHO_T}found" >&6
4658 echo "loading gnome configuration from" \
4659 "$gnome_prefix/gnomeConf.sh"
4660 . $gnome_prefix/gnomeConf.sh
4663 echo "$as_me:$LINENO: result: not found" >&5
4664 echo "${ECHO_T}not found" >&6
4665 if test xfail = xfail; then
4666 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4667 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4668 { (exit 1); exit 1; }; }
4677 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4678 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4682 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4683 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4684 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4687 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4688 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4689 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4692 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4693 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4694 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696 echo "$as_me:$LINENO: result: unknown library" >&5
4697 echo "${ECHO_T}unknown library" >&6
4699 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4700 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705 GNOME_DIR=src/gnome-console
4706 gnome_version="Version 1.4"
4712 # -------------------------------------------
4713 # wx-console (default off)
4714 # -------------------------------------------
4715 # Check whether --enable-wx-console or --disable-wx-console was given.
4716 if test "${enable_wx_console+set}" = set; then
4717 enableval="$enable_wx_console"
4718 if test x$enableval = xyes; then
4719 support_wx_console=yes
4724 if test x$support_wx_console = xyes; then
4725 abc=`$WXCONFIG --cppflags`
4727 if test $pkg = 0; then
4728 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4729 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4732 WX_DIR=src/wx-console
4735 echo "wx-config program not found. wx-console disabled."
4737 support_wx_console=no
4744 # -------------------------------------------
4745 # smartalloc (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4748 if test "${enable_smartalloc+set}" = set; then
4749 enableval="$enable_smartalloc"
4750 if test x$enableval = xno; then
4751 support_smartalloc=no
4755 if test x$support_smartalloc = xyes; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define SMARTALLOC 1
4762 # -------------------------------------------
4763 # static-tools (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-tools or --disable-static-tools was given.
4766 if test "${enable_static_tools+set}" = set; then
4767 enableval="$enable_static_tools"
4768 if test x$enableval = xyes; then
4769 support_static_tools=yes
4774 if test x$support_static_tools = xyes; then
4775 TTOOL_LDFLAGS="-static"
4779 # -------------------------------------------
4780 # static-fd (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-fd or --disable-static-fd was given.
4783 if test "${enable_static_fd+set}" = set; then
4784 enableval="$enable_static_fd"
4785 if test x$enableval = xyes; then
4786 support_static_fd=yes
4791 if test x$support_static_fd = xyes; then
4792 STATIC_FD="static-bacula-fd"
4796 # -------------------------------------------
4797 # static-sd (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-sd or --disable-static-sd was given.
4800 if test "${enable_static_sd+set}" = set; then
4801 enableval="$enable_static_sd"
4802 if test x$enableval = xyes; then
4803 support_static_sd=yes
4808 if test x$support_static_sd = xyes; then
4809 STATIC_SD="static-bacula-sd"
4813 # -------------------------------------------
4814 # static-dir (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-static-dir or --disable-static-dir was given.
4817 if test "${enable_static_dir+set}" = set; then
4818 enableval="$enable_static_dir"
4819 if test x$enableval = xyes; then
4820 support_static_dir=yes
4825 if test x$support_static_dir = xyes; then
4826 STATIC_DIR="static-bacula-dir"
4830 # -------------------------------------------
4831 # static-cons (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-static-cons or --disable-static-cons was given.
4834 if test "${enable_static_cons+set}" = set; then
4835 enableval="$enable_static_cons"
4836 if test x$enableval = xyes; then
4837 support_static_cons=yes
4844 if test x$support_static_cons = xyes; then
4845 STATIC_CONS="static-bconsole"
4846 STATIC_GNOME_CONS="static-gnome-console"
4847 STATIC_WX_CONS="static-wx-console"
4853 # -------------------------------------------
4854 # client_only (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-client-only or --disable-client-only was given.
4857 if test "${enable_client_only+set}" = set; then
4858 enableval="$enable_client_only"
4859 if test x$enableval = xyes; then
4860 build_client_only=yes
4865 if test x$build_client_only = xno; then
4872 # ---------------------------------------------------
4873 # Check for conio (Bacula readline substitute)(
4874 # ---------------------------------------------------
4875 # this allows you to turn it completely off
4876 # Check whether --enable-conio or --disable-conio was given.
4877 if test "${enable_conio+set}" = set; then
4878 enableval="$enable_conio"
4879 if test x$enableval = xno; then
4885 if test x$support_conio = xyes; then
4886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4888 if test "${ac_cv_header_stdc+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_header_stdc=yes
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_cv_header_stdc=no
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4932 if test $ac_cv_header_stdc = yes; then
4933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945 $EGREP "memchr" >/dev/null 2>&1; then
4948 ac_cv_header_stdc=no
4954 if test $ac_cv_header_stdc = yes; then
4955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "free" >/dev/null 2>&1; then
4970 ac_cv_header_stdc=no
4976 if test $ac_cv_header_stdc = yes; then
4977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978 if test "$cross_compiling" = yes; then
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4993 # define ISLOWER(c) \
4994 (('a' <= (c) && (c) <= 'i') \
4995 || ('j' <= (c) && (c) <= 'r') \
4996 || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5005 for (i = 0; i < 256; i++)
5006 if (XOR (islower (i), ISLOWER (i))
5007 || toupper (i) != TOUPPER (i))
5012 rm -f conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5025 echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 ac_cv_header_stdc=no
5032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5038 if test $ac_cv_header_stdc = yes; then
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057 inttypes.h stdint.h unistd.h
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5074 #include <$ac_header>
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 eval "$as_ac_Header=yes"
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 eval "$as_ac_Header=no"
5095 rm -f conftest.$ac_objext conftest.$ac_ext
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 if test "${ac_cv_header_termcap_h+set}" = set; then
5110 echo "$as_me:$LINENO: checking for termcap.h" >&5
5111 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5112 if test "${ac_cv_header_termcap_h+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5116 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5118 # Is the header compilable?
5119 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5120 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 #line $LINENO "configure"
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5129 #include <termcap.h>
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest.$ac_objext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_header_compiler=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_header_compiler=no
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5152 echo "${ECHO_T}$ac_header_compiler" >&6
5154 # Is the header present?
5155 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5156 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <termcap.h>
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_c_preproc_warn_flag
5182 if test -z "$ac_cpp_err"; then
5183 ac_header_preproc=yes
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 ac_header_preproc=no
5190 rm -f conftest.err conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192 echo "${ECHO_T}$ac_header_preproc" >&6
5194 # So? What about this header?
5195 case $ac_header_compiler:$ac_header_preproc in
5197 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5203 ## ------------------------------------ ##
5204 ## Report this to bug-autoconf@gnu.org. ##
5205 ## ------------------------------------ ##
5208 sed "s/^/$as_me: WARNING: /" >&2
5211 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5212 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5214 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5216 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5219 ## ------------------------------------ ##
5220 ## Report this to bug-autoconf@gnu.org. ##
5221 ## ------------------------------------ ##
5224 sed "s/^/$as_me: WARNING: /" >&2
5227 echo "$as_me:$LINENO: checking for termcap.h" >&5
5228 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5229 if test "${ac_cv_header_termcap_h+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_header_termcap_h=$ac_header_preproc
5234 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5235 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5238 if test $ac_cv_header_termcap_h = yes; then
5239 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5240 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5241 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-ltermcap $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271 (eval $ac_link) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest$ac_exeext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_lib_termcap_tgetent=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_cv_lib_termcap_tgetent=no
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5292 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5293 if test $ac_cv_lib_termcap_tgetent = yes; then
5294 CONS_LIBS="-ltermcap"
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_CONIO 1
5306 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5307 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5308 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lncurses $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_lib_ncurses_tgetent=yes
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_cv_lib_ncurses_tgetent=no
5355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5358 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5360 if test $ac_cv_lib_ncurses_tgetent = yes; then
5361 CONS_LIBS="-lncurses"
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_CONIO 1
5373 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5381 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5388 # ---------------------------------------------------
5389 # Check for readline support/directory (default off)
5390 # ---------------------------------------------------
5391 # this allows you to turn it completely off
5392 # Check whether --enable-readline or --disable-readline was given.
5393 if test "${enable_readline+set}" = set; then
5394 enableval="$enable_readline"
5395 if test x$enableval = xno; then
5402 if test x$support_readline = xyes; then
5404 # Check whether --with-readline or --without-readline was given.
5405 if test "${with_readline+set}" = set; then
5406 withval="$with_readline"
5408 case "$with_readline" in
5411 if test "$with_readline" != "yes"; then
5412 CONS_INC="-I${with_readline}"
5413 CONS_LDFLAGS="-L$with_readline"
5415 with_readline="/usr/include/readline"
5417 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5420 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5429 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5438 #include <${with_readline}/readline.h>
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_header_compiler=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_header_compiler=no
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461 echo "${ECHO_T}$ac_header_compiler" >&6
5463 # Is the header present?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <${with_readline}/readline.h>
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
5491 if test -z "$ac_cpp_err"; then
5492 ac_header_preproc=yes
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 ac_header_preproc=no
5499 rm -f conftest.err conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501 echo "${ECHO_T}$ac_header_preproc" >&6
5503 # So? What about this header?
5504 case $ac_header_compiler:$ac_header_preproc in
5506 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5507 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5512 ## ------------------------------------ ##
5513 ## Report this to bug-autoconf@gnu.org. ##
5514 ## ------------------------------------ ##
5517 sed "s/^/$as_me: WARNING: /" >&2
5520 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5521 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5523 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5528 ## ------------------------------------ ##
5529 ## Report this to bug-autoconf@gnu.org. ##
5530 ## ------------------------------------ ##
5533 sed "s/^/$as_me: WARNING: /" >&2
5536 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5537 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 eval "$as_ac_Header=$ac_header_preproc"
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_READLINE 1
5552 CONS_LIBS="-lreadline -ltermcap"
5557 echo "readline.h not found. readline turned off ..."
5569 # check for standard readline library
5570 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5571 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5572 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5573 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5577 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5579 # Is the header compilable?
5580 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5581 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 $ac_includes_default
5590 #include </usr/include/readline/readline.h>
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_header_compiler=yes
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_header_compiler=no
5611 rm -f conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6
5615 # Is the header present?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 #include </usr/include/readline/readline.h>
5627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } >/dev/null; then
5635 if test -s conftest.err; then
5636 ac_cpp_err=$ac_c_preproc_warn_flag
5643 if test -z "$ac_cpp_err"; then
5644 ac_header_preproc=yes
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_header_preproc=no
5651 rm -f conftest.err conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6
5655 # So? What about this header?
5656 case $ac_header_compiler:$ac_header_preproc in
5658 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5664 ## ------------------------------------ ##
5665 ## Report this to bug-autoconf@gnu.org. ##
5666 ## ------------------------------------ ##
5669 sed "s/^/$as_me: WARNING: /" >&2
5672 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5676 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5680 ## ------------------------------------ ##
5681 ## Report this to bug-autoconf@gnu.org. ##
5682 ## ------------------------------------ ##
5685 sed "s/^/$as_me: WARNING: /" >&2
5688 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5689 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5690 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5695 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5696 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5699 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_READLINE 1
5705 CONS_INC="-I/usr/include/readline"
5706 CONS_LIBS="-lreadline -ltermcap"
5710 # Did not find standard library, so try Bacula's default
5711 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5714 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 # Is the header compilable?
5722 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5723 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5732 #include <${TOP_DIR}/depkgs/readline/readline.h>
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_header_compiler=yes
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_compiler=no
5753 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <${TOP_DIR}/depkgs/readline/readline.h>
5769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772 grep -v '^ *+' conftest.er1 >conftest.err
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } >/dev/null; then
5777 if test -s conftest.err; then
5778 ac_cpp_err=$ac_c_preproc_warn_flag
5785 if test -z "$ac_cpp_err"; then
5786 ac_header_preproc=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_header_preproc=no
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5797 # So? What about this header?
5798 case $ac_header_compiler:$ac_header_preproc in
5800 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5806 ## ------------------------------------ ##
5807 ## Report this to bug-autoconf@gnu.org. ##
5808 ## ------------------------------------ ##
5811 sed "s/^/$as_me: WARNING: /" >&2
5814 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5815 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5817 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5827 sed "s/^/$as_me: WARNING: /" >&2
5830 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5831 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 eval "$as_ac_Header=$ac_header_preproc"
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_READLINE 1
5847 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5848 CONS_LIBS="-lreadline -lhistory -ltermcap"
5849 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5850 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5854 echo "readline.h not found. readline turned off ..."
5880 # Minimal stuff for readline Makefile configuration
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "You lose" >/dev/null 2>&1; then
5925 ac_cv_header_stat_broken=yes
5927 ac_cv_header_stat_broken=no
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 eval "$as_ac_Header=yes"
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 eval "$as_ac_Header=no"
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6002 ac_header_dirent=$ac_hdr; break
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058 for ac_lib in dir; do
6059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_opendir="-l$ac_lib"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6115 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_opendir="none required"
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_search_opendir="-l$ac_lib"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_func_search_save_LIBS
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6231 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 echo "$as_me:$LINENO: checking for $ac_func" >&5
6235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_var+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func (); below.
6248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 <limits.h> exists even on freestanding compilers. */
6251 # include <limits.h>
6253 # include <assert.h>
6255 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 char (*f) () = $ac_func;
6278 return f != $ac_func;
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 eval "$as_ac_var=yes"
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 eval "$as_ac_var=no"
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6316 for ac_func in nanosleep nl_langinfo
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below.
6333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 <limits.h> exists even on freestanding compilers. */
6336 # include <limits.h>
6338 # include <assert.h>
6340 /* Override any gcc2 internal prototype to avoid an error. */
6345 /* We use char because int might match the return type of a gcc2
6346 builtin and then its argument prototype would still apply. */
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 char (*f) () = $ac_func;
6363 return f != $ac_func;
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370 (eval $ac_link) 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
6374 { ac_try='test -s conftest$ac_exeext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 eval "$as_ac_var=yes"
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 eval "$as_ac_var=no"
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6400 for ac_header in varargs.h
6402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <$ac_header>
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_header_compiler=no
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <$ac_header>
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } >/dev/null; then
6468 if test -s conftest.err; then
6469 ac_cpp_err=$ac_c_preproc_warn_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_header_preproc=no
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc in
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6502 sed "s/^/$as_me: WARNING: /" >&2
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513 ## ------------------------------------ ##
6514 ## Report this to bug-autoconf@gnu.org. ##
6515 ## ------------------------------------ ##
6518 sed "s/^/$as_me: WARNING: /" >&2
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 eval "$as_ac_Header=$ac_header_preproc"
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542 # End of readline/conio stuff
6543 # -----------------------------------------------------------------------
6546 # ---------------------------------------------------
6547 # Check for GMP support/directory
6548 # ---------------------------------------------------
6552 # [ --with-gmp[=DIR] Specify gmp library directory],
6554 # case "$with_gmp" in
6557 # if test "$with_gmp" != "yes"; then
6558 # GMP_INC="-I$with_gmp"
6560 # GMP_LDFLAGS="-L$with_gmp"
6562 # with_gmp="/usr/include"
6564 # AC_CHECK_HEADER($with_gmp/gmp.h,
6565 # [ AC_MSG_RESULT(yes)
6566 # AC_DEFINE(HAVE_GMP)
6570 # [ AC_MSG_ERROR([*** gmp library missing])
6576 # # check for standard gmp library
6577 # AC_CHECK_HEADER(/usr/include/gmp.h,
6578 # [ AC_MSG_RESULT(yes)
6579 # AC_DEFINE(HAVE_GMP)
6584 # # Did not find standard library, so use our own
6585 # AC_MSG_RESULT(yes)
6586 # AC_DEFINE(HAVE_GMP)
6589 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6591 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6592 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6598 #AC_SUBST(GMP_LDFLAGS)
6602 # -----------------------------------------------------------------------
6605 # ---------------------------------------------------
6606 # Check for CWEB support/directory
6607 # ---------------------------------------------------
6612 # [ --with-cweb[=DIR] Specify cweb library directory],
6614 # case "$with_cweb" in
6617 # if test "$with_cweb" != "yes"; then
6618 # CWEB_INC="-I$with_cweb"
6619 # CWEB_LIBS="-lcweb"
6620 # CWEB_LDFLAGS="-L$with_cweb"
6622 # with_cweb="/usr/include"
6624 # AC_CHECK_HEADER($with_cweb/cweb.h,
6625 # [ AC_MSG_RESULT(yes)
6626 # AC_DEFINE(HAVE_CWEB)
6627 # CWEB_LIBS="-lcweb"
6630 # [ AC_MSG_ERROR([*** cweb library missing])
6636 # # check for standard cweb library
6637 # AC_CHECK_HEADER(/usr/include/cweb.h,
6638 # [ AC_MSG_RESULT(yes)
6639 # AC_DEFINE(HAVE_CWEB)
6642 # CWEB_LIBS="-lcweb"
6644 # # Did not find starndard library, so use our own
6645 # AC_MSG_RESULT(yes)
6646 # AC_DEFINE(HAVE_CWEB)
6649 # CWEB=${TOP_DIR}/depkgs/cweb
6650 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6651 # CWEB_LIBS="-lcweb"
6652 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6653 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6659 #AC_SUBST(CWEB_LIBS)
6660 #AC_SUBST(CWEB_LDFLAGS)
6664 # -----------------------------------------------------------------------
6668 # -----------------------------------------------------------
6669 # Check whether user wants TCP wrappers support (default off)
6670 # -----------------------------------------------------------
6673 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6674 if test "${with_tcp_wrappers+set}" = set; then
6675 withval="$with_tcp_wrappers"
6677 if test "x$withval" != "xno" ; then
6679 LIBS="$saved_LIBS -lwrap"
6680 echo "$as_me:$LINENO: checking for libwrap" >&5
6681 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6690 int deny_severity = 0;
6691 int allow_severity = 0;
6692 struct request_info *req;
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6714 echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_LIBWRAP 1
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6727 LIBS="$saved_LIBS -lwrap -lnsl"
6728 cat >conftest.$ac_ext <<_ACEOF
6729 #line $LINENO "configure"
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6736 int deny_severity = 0;
6737 int allow_severity = 0;
6738 struct request_info *req;
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761 echo "${ECHO_T}yes" >&6
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_LIBWRAP 1
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6773 echo "$as_me: error: *** libwrap missing" >&2;}
6774 { (exit 1); exit 1; }; }
6777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 # ------------------------------------------
6787 # Where to place working dir
6788 # ------------------------------------------
6789 working_dir=`eval echo ${prefix}/var/bacula/working`
6791 # Check whether --with-working-dir or --without-working-dir was given.
6792 if test "${with_working_dir+set}" = set; then
6793 withval="$with_working_dir"
6795 if test "x$withval" != "xno" ; then
6796 working_dir=$withval
6805 # ------------------------------------------
6806 # Where to place scriptdir (script files)
6807 # ------------------------------------------
6808 scriptdir=`eval echo ${sysconfdir}`
6810 # Check whether --with-scriptdir or --without-scriptdir was given.
6811 if test "${with_scriptdir+set}" = set; then
6812 withval="$with_scriptdir"
6814 if test "x$withval" != "xno" ; then
6824 # ------------------------------------------
6825 # Where to send dump email
6826 # ------------------------------------------
6827 dump_email=root@localhost
6829 # Check whether --with-dump-email or --without-dump-email was given.
6830 if test "${with_dump_email+set}" = set; then
6831 withval="$with_dump_email"
6833 if test "x$withval" != "xno" ; then
6842 # ------------------------------------------
6843 # Where to send job email
6844 # ------------------------------------------
6845 job_email=root@localhost
6847 # Check whether --with-job-email or --without-job-email was given.
6848 if test "${with_job_email+set}" = set; then
6849 withval="$with_job_email"
6851 if test "x$withval" != "xno" ; then
6860 # ------------------------------------------
6861 # Where to find smtp host
6862 # ------------------------------------------
6865 # Check whether --with-smtp_host or --without-smtp_host was given.
6866 if test "${with_smtp_host+set}" = set; then
6867 withval="$with_smtp_host"
6869 if test "x$withval" != "xno" ; then
6879 # ------------------------------------
6880 # Where to place pid files
6881 # ------------------------------------
6884 # Check whether --with-pid-dir or --without-pid-dir was given.
6885 if test "${with_pid_dir+set}" = set; then
6886 withval="$with_pid_dir"
6888 if test "x$withval" != "xno" ; then
6895 cat >>confdefs.h <<_ACEOF
6896 #define _PATH_BACULA_PIDDIR "$piddir"
6902 # ------------------------------------
6903 # Where to place subsys "lock file"
6904 # ------------------------------------
6905 subsysdir=/var/run/subsys
6907 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6908 if test "${with_subsys_dir+set}" = set; then
6909 withval="$with_subsys_dir"
6911 if test "x$withval" != "xno" ; then
6922 # ------------------------------------
6923 # Where to start assigning ports
6924 # ------------------------------------
6927 # Check whether --with-baseport or --without-baseport was given.
6928 if test "${with_baseport+set}" = set; then
6929 withval="$with_baseport"
6931 if test "x$withval" != "xno" ; then
6939 dir_port=`expr $baseport`
6940 fd_port=`expr $baseport + 1`
6941 sd_port=`expr $fd_port + 1`
6948 # ------------------------------------------
6949 # Generate passwords
6950 # ------------------------------------------
6953 # Check whether --with-dir-password or --without-dir-password was given.
6954 if test "${with_dir_password+set}" = set; then
6955 withval="$with_dir_password"
6957 if test "x$withval" != "xno" ; then
6958 dir_password=$withval
6964 if test "x$dir_password" = "x" ; then
6965 if test "x$OPENSSL" = "xnone" ; then
6966 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6967 key=`autoconf/randpass 33`
6969 key=`openssl rand -base64 33`
6976 # Check whether --with-fd-password or --without-fd-password was given.
6977 if test "${with_fd_password+set}" = set; then
6978 withval="$with_fd_password"
6980 if test "x$withval" != "xno" ; then
6981 fd_password=$withval
6987 if test "x$fd_password" = "x" ; then
6988 if test "x$OPENSSL" = "xnone" ; then
6989 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6990 key=`autoconf/randpass 37`
6992 key=`openssl rand -base64 33`
6999 # Check whether --with-sd-password or --without-sd-password was given.
7000 if test "${with_sd_password+set}" = set; then
7001 withval="$with_sd_password"
7003 if test "x$withval" != "xno" ; then
7004 sd_password=$withval
7010 if test "x$sd_password" = "x" ; then
7011 if test "x$OPENSSL" = "xnone" ; then
7012 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7013 key=`autoconf/randpass 41`
7015 key=`openssl rand -base64 33`
7027 # Handle users and groups for each daemon
7031 # Check whether --with-dir_user or --without-dir_user was given.
7032 if test "${with_dir_user+set}" = set; then
7033 withval="$with_dir_user"
7035 if test "x$withval" != "x" ; then
7044 # Check whether --with-dir_group or --without-dir_group was given.
7045 if test "${with_dir_group+set}" = set; then
7046 withval="$with_dir_group"
7048 if test "x$withval" != "x" ; then
7057 # Check whether --with-sd_user or --without-sd_user was given.
7058 if test "${with_sd_user+set}" = set; then
7059 withval="$with_sd_user"
7061 if test "x$withval" != "x" ; then
7070 # Check whether --with-sd_group or --without-sd_group was given.
7071 if test "${with_sd_group+set}" = set; then
7072 withval="$with_sd_group"
7074 if test "x$withval" != "x" ; then
7083 # Check whether --with-fd_user or --without-fd_user was given.
7084 if test "${with_fd_user+set}" = set; then
7085 withval="$with_fd_user"
7087 if test "x$withval" != "x" ; then
7096 # Check whether --with-fd_group or --without-fd_group was given.
7097 if test "${with_fd_group+set}" = set; then
7098 withval="$with_fd_group"
7100 if test "x$withval" != "x" ; then
7118 # allow setting default executable permissions
7122 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7123 if test "${with_sbin_perm+set}" = set; then
7124 withval="$with_sbin_perm"
7126 if test "x$withval" != "x" ; then
7135 # ------------------------------------------------
7136 # Bacula check for various SQL database engines
7137 # ------------------------------------------------
7140 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7141 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7143 # Check whether --with-postgresql or --without-postgresql was given.
7144 if test "${with_postgresql+set}" = set; then
7145 withval="$with_postgresql"
7147 if test "$withval" != "no"; then
7148 if test "$db_found" = "yes"; then
7149 echo "$as_me:$LINENO: result: error" >&5
7150 echo "${ECHO_T}error" >&6
7151 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7152 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7153 { (exit 1); exit 1; }; };
7155 if test "$withval" = "yes"; then
7156 if test -f /usr/local/include/libpq-fe.h; then
7157 POSTGRESQL_INCDIR=/usr/local/include
7158 POSTGRESQL_LIBDIR=/usr/local/lib
7159 POSTGRESQL_BINDIR=/usr/local/bin
7160 elif test -f /usr/include/libpq-fe.h; then
7161 POSTGRESQL_INCDIR=/usr/include
7162 POSTGRESQL_LIBDIR=/usr/lib
7163 POSTGRESQL_BINDIR=/usr/bin
7164 elif test -f /usr/include/pgsql/libpq-fe.h; then
7165 POSTGRESQL_INCDIR=/usr/include/pgsql
7166 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7167 POSTGRESQL_BINDIR=/usr/bin
7168 elif test -f /usr/include/postgresql/libpq-fe.h; then
7169 POSTGRESQL_INCDIR=/usr/include/postgresql
7170 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7171 POSTGRESQL_BINDIR=/usr/bin
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7176 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7177 { (exit 1); exit 1; }; }
7179 elif test -f $withval/include/libpq-fe.h; then
7180 POSTGRESQL_INCDIR=$withval/include
7181 POSTGRESQL_LIBDIR=$withval/lib
7182 POSTGRESQL_BINDIR=$withval/bin
7184 echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7187 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7188 { (exit 1); exit 1; }; }
7190 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7191 echo "$as_me:$LINENO: checking for crypt" >&5
7192 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7193 if test "${ac_cv_func_crypt+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char crypt (); below.
7205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206 <limits.h> exists even on freestanding compilers. */
7208 # include <limits.h>
7210 # include <assert.h>
7212 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_crypt) || defined (__stub___crypt)
7226 char (*f) () = crypt;
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242 (eval $ac_link) 2>&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -s conftest$ac_exeext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_cv_func_crypt=yes
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7262 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7263 if test $ac_cv_func_crypt = yes; then
7266 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7267 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7268 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lcrypt $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7281 /* Override any gcc2 internal prototype to avoid an error. */
7285 /* We use char because int might match the return type of a gcc2
7286 builtin and then its argument prototype would still apply. */
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_lib_crypt_crypt=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_cv_lib_crypt_crypt=no
7315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7318 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7319 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7320 if test $ac_cv_lib_crypt_crypt = yes; then
7321 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7326 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7327 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7328 SQL_BINDIR=$POSTGRESQL_BINDIR
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_POSTGRESQL 1
7333 echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7336 support_postgresql=yes
7340 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7358 echo "$as_me:$LINENO: checking for MySQL support" >&5
7359 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7361 # Check whether --with-mysql or --without-mysql was given.
7362 if test "${with_mysql+set}" = set; then
7363 withval="$with_mysql"
7365 if test "$withval" != "no"; then
7366 if test "$withval" = "yes"; then
7367 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7368 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7369 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7370 MYSQL_BINDIR=/usr/local/mysql/bin
7371 elif test -f /usr/include/mysql/mysql.h; then
7372 MYSQL_INCDIR=/usr/include/mysql
7373 MYSQL_LIBDIR=/usr/lib/mysql
7374 MYSQL_BINDIR=/usr/bin
7375 elif test -f /usr/include/mysql.h; then
7376 MYSQL_INCDIR=/usr/include
7377 MYSQL_LIBDIR=/usr/lib
7378 MYSQL_BINDIR=/usr/bin
7379 elif test -f /usr/local/include/mysql/mysql.h; then
7380 MYSQL_INCDIR=/usr/local/include/mysql
7381 MYSQL_LIBDIR=/usr/local/lib/mysql
7382 MYSQL_BINDIR=/usr/local/bin
7383 elif test -f /usr/local/include/mysql.h; then
7384 MYSQL_INCDIR=/usr/local/include
7385 MYSQL_LIBDIR=/usr/local/lib
7386 MYSQL_BINDIR=/usr/local/bin
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7391 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7392 { (exit 1); exit 1; }; }
7395 if test -f $withval/include/mysql/mysql.h; then
7396 MYSQL_INCDIR=$withval/include/mysql
7397 MYSQL_LIBDIR=$withval/lib/mysql
7398 MYSQL_BINDIR=$withval/bin
7399 elif test -f $withval/include/mysql.h; then
7400 MYSQL_INCDIR=$withval/include
7401 MYSQL_LIBDIR=$withval/lib
7402 MYSQL_BINDIR=$withval/bin
7404 echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7407 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7408 { (exit 1); exit 1; }; }
7411 SQL_INCLUDE=-I$MYSQL_INCDIR
7412 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7413 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7414 cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_THREAD_SAFE_MYSQL 1
7419 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7421 SQL_BINDIR=$MYSQL_BINDIR
7423 cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_MYSQL 1
7427 echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7435 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7443 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7444 if test "${with_embedded_mysql+set}" = set; then
7445 withval="$with_embedded_mysql"
7447 if test "$withval" != "no"; then
7448 if test "$withval" = "yes"; then
7449 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7450 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7451 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7452 MYSQL_BINDIR=/usr/local/mysql/bin
7453 elif test -f /usr/include/mysql/mysql.h; then
7454 MYSQL_INCDIR=/usr/include/mysql
7455 MYSQL_LIBDIR=/usr/lib/mysql
7456 MYSQL_BINDIR=/usr/bin
7457 elif test -f /usr/include/mysql.h; then
7458 MYSQL_INCDIR=/usr/include
7459 MYSQL_LIBDIR=/usr/lib
7460 MYSQL_BINDIR=/usr/bin
7461 elif test -f /usr/local/include/mysql/mysql.h; then
7462 MYSQL_INCDIR=/usr/local/include/mysql
7463 MYSQL_LIBDIR=/usr/local/lib/mysql
7464 MYSQL_BINDIR=/usr/local/bin
7465 elif test -f /usr/local/include/mysql.h; then
7466 MYSQL_INCDIR=/usr/local/include
7467 MYSQL_LIBDIR=/usr/local/lib
7468 MYSQL_BINDIR=/usr/local/bin
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7473 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7474 { (exit 1); exit 1; }; }
7477 if test -f $withval/include/mysql/mysql.h; then
7478 MYSQL_INCDIR=$withval/include/mysql
7479 MYSQL_LIBDIR=$withval/lib/mysql
7480 MYSQL_BINDIR=$withval/bin
7481 elif test -f $withval/include/mysql.h; then
7482 MYSQL_INCDIR=$withval/include
7483 MYSQL_LIBDIR=$withval/lib
7484 MYSQL_BINDIR=$withval/bin
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7489 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7490 { (exit 1); exit 1; }; }
7493 SQL_INCLUDE=-I$MYSQL_INCDIR
7494 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7495 SQL_BINDIR=$MYSQL_BINDIR
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MYSQL 1
7501 cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_EMBEDDED_MYSQL 1
7505 echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7513 echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7529 echo "$as_me:$LINENO: checking for SQLite support" >&5
7530 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7532 # Check whether --with-sqlite or --without-sqlite was given.
7533 if test "${with_sqlite+set}" = set; then
7534 withval="$with_sqlite"
7536 if test "$withval" != "no"; then
7537 if test "$withval" = "yes"; then
7538 if test -f /usr/local/include/sqlite.h; then
7539 SQLITE_INCDIR=/usr/local/include
7540 SQLITE_LIBDIR=/usr/local/lib
7541 SQLITE_BINDIR=/usr/local/bin
7542 elif test -f /usr/include/sqlite.h; then
7543 SQLITE_INCDIR=/usr/include
7544 SQLITE_LIBDIR=/usr/lib
7545 SQLITE_BINDIR=/usr/bin
7547 echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7550 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7551 { (exit 1); exit 1; }; }
7554 if test -f $withval/sqlite.h; then
7555 SQLITE_INCDIR=$withval
7556 SQLITE_LIBDIR=$withval
7557 SQLITE_BINDIR=$withval
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7562 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7563 { (exit 1); exit 1; }; }
7566 SQL_INCLUDE=-I$SQLITE_INCDIR
7567 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7568 SQL_BINDIR=$SQLITE_BINDIR
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_SQLITE 1
7574 echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7601 cat >>confdefs.h <<\_ACEOF
7602 #define PROTOTYPES 1
7606 if test -z "$CFLAGS"; then
7607 if test -z "$CCOPTS"; then
7616 largefile_support="no"
7618 # Check whether --enable-largefile or --disable-largefile was given.
7619 if test "${enable_largefile+set}" = set; then
7620 enableval="$enable_largefile"
7623 if test "$enable_largefile" != no; then
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7627 echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629 if test "${ac_cv_prog_GETCONF+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 if test -n "$GETCONF"; then
7633 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 GETCONF=$ac_cv_prog_GETCONF
7652 if test -n "$GETCONF"; then
7653 echo "$as_me:$LINENO: result: $GETCONF" >&5
7654 echo "${ECHO_T}$GETCONF" >&6
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7661 if test -z "$ac_cv_prog_GETCONF"; then
7662 ac_ct_GETCONF=$GETCONF
7663 # Extract the first word of "getconf", so it can be a program name with args.
7664 set dummy getconf; ac_word=$2
7665 echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 if test -n "$ac_ct_GETCONF"; then
7671 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_GETCONF="getconf"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7690 if test -n "$ac_ct_GETCONF"; then
7691 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7692 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7698 GETCONF=$ac_ct_GETCONF
7700 GETCONF="$ac_cv_prog_GETCONF"
7703 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7704 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7705 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7709 ac_cv_sys_largefile_CFLAGS=no
7711 # IRIX 6.2 and later require cc -n32.
7712 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7713 if test "$GCC" != yes; then
7714 ac_cv_sys_largefile_CFLAGS=-n32
7717 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_sys_largefile_CFLAGS=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7759 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7760 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7761 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7762 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7766 ac_cv_sys_largefile_LDFLAGS=no
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7772 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7773 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7778 ac_cv_sys_largefile_LIBS=no
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7785 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7788 -D_FILE_OFFSET_BITS=*) ;;
7789 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7790 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7796 '') CPPFLAGS="$ac_flag" ;;
7797 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7805 '') CFLAGS="$ac_flag" ;;
7806 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7811 case "$ac_cv_sys_largefile_LDFLAGS" in
7815 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7816 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7819 case "$ac_cv_sys_largefile_LIBS" in
7823 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7824 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7827 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7828 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_sys_file_offset_bits=no
7834 # HP-UX 10.20 and later
7835 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7836 ac_cv_sys_file_offset_bits=64 ;;
7838 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7840 -D_FILE_OFFSET_BITS)
7841 ac_cv_sys_file_offset_bits=1 ;;
7842 -D_FILE_OFFSET_BITS=*)
7843 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7850 if test "$ac_cv_sys_file_offset_bits" != no; then
7852 cat >>confdefs.h <<_ACEOF
7853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7857 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7858 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7859 if test "${ac_cv_sys_largefile_source+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_sys_largefile_source=no
7864 # HP-UX 10.20 and later
7865 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7866 ac_cv_sys_largefile_source=1 ;;
7868 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7870 -D_LARGEFILE_SOURCE)
7871 ac_cv_sys_largefile_source=1 ;;
7872 -D_LARGEFILE_SOURCE=*)
7873 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7878 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7879 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7880 if test "$ac_cv_sys_largefile_source" != no; then
7882 cat >>confdefs.h <<_ACEOF
7883 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7887 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7888 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7889 if test "${ac_cv_sys_large_files+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 ac_cv_sys_large_files=no
7895 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7896 ac_cv_sys_large_files=1 ;;
7898 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7901 ac_cv_sys_large_files=1 ;;
7903 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7908 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7909 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7910 if test "$ac_cv_sys_large_files" != no; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define _LARGE_FILES $ac_cv_sys_large_files
7921 echo "$as_me:$LINENO: checking for X" >&5
7922 echo $ECHO_N "checking for X... $ECHO_C" >&6
7925 # Check whether --with-x or --without-x was given.
7926 if test "${with_x+set}" = set; then
7930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7931 if test "x$with_x" = xno; then
7932 # The user explicitly disabled X.
7935 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7936 # Both variables are already set.
7939 if test "${ac_cv_have_x+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 # One or both of the vars are not set, and there is no cached value.
7943 ac_x_includes=no ac_x_libraries=no
7945 if mkdir conftest.dir; then
7947 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7948 cat >Imakefile <<'_ACEOF'
7950 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7952 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7954 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7956 for ac_extension in a so sl; do
7957 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7958 test -f $ac_im_libdir/libX11.$ac_extension; then
7959 ac_im_usrlibdir=$ac_im_libdir; break
7962 # Screen out bogus values from the imake configuration. They are
7963 # bogus both because they are the default anyway, and because
7964 # using them would break gcc on systems where it needs fixed includes.
7965 case $ac_im_incroot in
7967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7969 case $ac_im_usrlibdir in
7971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7978 # Standard set of common directories for X headers.
7979 # Check X11 before X11Rn because it is often a symlink to the current release.
7991 /usr/local/X11/include
7992 /usr/local/X11R6/include
7993 /usr/local/X11R5/include
7994 /usr/local/X11R4/include
7996 /usr/local/include/X11
7997 /usr/local/include/X11R6
7998 /usr/local/include/X11R5
7999 /usr/local/include/X11R4
8003 /usr/XFree86/include/X11
8007 /usr/unsupported/include
8009 /usr/local/x11r5/include
8010 /usr/lpp/Xamples/include
8012 /usr/openwin/include
8013 /usr/openwin/share/include'
8015 if test "$ac_x_includes" = no; then
8016 # Guess where to find include files, by looking for Intrinsic.h.
8017 # First, try using that file with no special directory specified.
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <X11/Intrinsic.h>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8043 if test -z "$ac_cpp_err"; then
8044 # We can compile using X headers with no special include directory.
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 for ac_dir in $ac_x_header_dirs; do
8051 if test -r "$ac_dir/X11/Intrinsic.h"; then
8052 ac_x_includes=$ac_dir
8057 rm -f conftest.err conftest.$ac_ext
8058 fi # $ac_x_includes = no
8060 if test "$ac_x_libraries" = no; then
8061 # Check for the libraries.
8062 # See if we find them without any special options.
8063 # Don't add to $LIBS permanently.
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <X11/Intrinsic.h>
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -s conftest$ac_exeext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8095 # We can link X programs with no special library path.
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8104 # Don't even attempt the hair of trying to link an X program!
8105 for ac_extension in a so sl; do
8106 if test -r $ac_dir/libXt.$ac_extension; then
8107 ac_x_libraries=$ac_dir
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 fi # $ac_x_libraries = no
8116 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8117 # Didn't find X anywhere. Cache the known absence of X.
8118 ac_cv_have_x="have_x=no"
8120 # Record where we found X for the cache.
8121 ac_cv_have_x="have_x=yes \
8122 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8127 eval "$ac_cv_have_x"
8130 if test "$have_x" != yes; then
8131 echo "$as_me:$LINENO: result: $have_x" >&5
8132 echo "${ECHO_T}$have_x" >&6
8135 # If each of the values was on the command line, it overrides each guess.
8136 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8137 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8138 # Update the cache value to reflect the command line values.
8139 ac_cv_have_x="have_x=yes \
8140 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8141 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8145 if test "$no_x" = yes; then
8146 # Not all programs may use this symbol, but it does not hurt to define it.
8148 cat >>confdefs.h <<\_ACEOF
8149 #define X_DISPLAY_MISSING 1
8152 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8154 if test -n "$x_includes"; then
8155 X_CFLAGS="$X_CFLAGS -I$x_includes"
8158 # It would also be nice to do this for all -L options, not just this one.
8159 if test -n "$x_libraries"; then
8160 X_LIBS="$X_LIBS -L$x_libraries"
8161 # For Solaris; some versions of Sun CC require a space after -R and
8162 # others require no space. Words are not sufficient . . . .
8163 case `(uname -sr) 2>/dev/null` in
8165 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8166 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8167 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8168 cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204 if test $ac_R_nospace = yes; then
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 X_LIBS="$X_LIBS -R$x_libraries"
8209 LIBS="$ac_xsave_LIBS -R $x_libraries"
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246 if test $ac_R_space = yes; then
8247 echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249 X_LIBS="$X_LIBS -R $x_libraries"
8251 echo "$as_me:$LINENO: result: neither works" >&5
8252 echo "${ECHO_T}neither works" >&6
8259 # Check for system-dependent libraries X programs must link with.
8260 # Do this before checking for the system-independent R6 libraries
8261 # (-lICE), since we may need -lsocket or whatever for X linking.
8263 if test "$ISC" = yes; then
8264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8266 # Martyn Johnson says this is needed for Ultrix, if the X
8267 # libraries were built with DECnet support. And Karl Berry says
8268 # the Alpha needs dnet_stub (dnet does not exist).
8269 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8270 cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char XOpenDisplay ();
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8311 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8312 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_check_lib_save_LIBS=$LIBS
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_lib_dnet_dnet_ntoa=yes
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_cv_lib_dnet_dnet_ntoa=no
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 LIBS=$ac_check_lib_save_LIBS
8362 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8363 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8364 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8365 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8368 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8369 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8370 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldnet_stub $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8384 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_dnet_stub_dnet_ntoa=no
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8423 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430 LIBS="$ac_xsave_LIBS"
8432 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8433 # to get the SysV transport functions.
8434 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8436 # The nsl library prevents programs from opening the X display
8437 # on Irix 5.2, according to T.E. Dickey.
8438 # The functions gethostbyname, getservbyname, and inet_addr are
8439 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8440 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8441 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8442 if test "${ac_cv_func_gethostbyname+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char gethostbyname (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8457 # include <limits.h>
8459 # include <assert.h>
8461 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468 char gethostbyname ();
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8475 char (*f) () = gethostbyname;
8484 return f != gethostbyname;
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_func_gethostbyname=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_func_gethostbyname=no
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8513 if test $ac_cv_func_gethostbyname = no; then
8514 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8516 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_check_lib_save_LIBS=$LIBS
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char gethostbyname ();
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_nsl_gethostbyname=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_lib_nsl_gethostbyname=no
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8572 if test $ac_cv_lib_nsl_gethostbyname = no; then
8573 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_check_lib_save_LIBS=$LIBS
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594 char gethostbyname ();
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_bsd_gethostbyname=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cv_lib_bsd_gethostbyname=no
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8626 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8627 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8634 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8635 # socket/setsockopt and other routines are undefined under SCO ODT
8636 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8637 # on later versions), says Simon Leinen: it contains gethostby*
8638 # variants that don't use the name server (or something). -lsocket
8639 # must be given before -lnsl if both are needed. We assume that
8640 # if connect needs -lnsl, so does gethostbyname.
8641 echo "$as_me:$LINENO: checking for connect" >&5
8642 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8643 if test "${ac_cv_func_connect+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 /* System header to define __stub macros and hopefully few prototypes,
8654 which can conflict with char connect (); below.
8655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656 <limits.h> exists even on freestanding compilers. */
8658 # include <limits.h>
8660 # include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_connect) || defined (__stub___connect)
8676 char (*f) () = connect;
8685 return f != connect;
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_func_connect=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_func_connect=no
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8712 echo "${ECHO_T}$ac_cv_func_connect" >&6
8714 if test $ac_cv_func_connect = no; then
8715 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8717 if test "${ac_cv_lib_socket_connect+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_cv_lib_socket_connect=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 ac_cv_lib_socket_connect=no
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8769 if test $ac_cv_lib_socket_connect = yes; then
8770 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8775 # Guillermo Gomez says -lposix is necessary on A/UX.
8776 echo "$as_me:$LINENO: checking for remove" >&5
8777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8778 if test "${ac_cv_func_remove+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789 which can conflict with char remove (); below.
8790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791 <limits.h> exists even on freestanding compilers. */
8793 # include <limits.h>
8795 # include <assert.h>
8797 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined (__stub_remove) || defined (__stub___remove)
8811 char (*f) () = remove;
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_func_remove=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_func_remove=no
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8849 if test $ac_cv_func_remove = no; then
8850 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -s conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_lib_posix_remove=yes
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_posix_remove=no
8899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8903 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8904 if test $ac_cv_lib_posix_remove = yes; then
8905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8910 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8911 echo "$as_me:$LINENO: checking for shmat" >&5
8912 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8913 if test "${ac_cv_func_shmat+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 /* System header to define __stub macros and hopefully few prototypes,
8924 which can conflict with char shmat (); below.
8925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8926 <limits.h> exists even on freestanding compilers. */
8928 # include <limits.h>
8930 # include <assert.h>
8932 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8940 /* The GNU C library defines this for functions which it implements
8941 to always fail with ENOSYS. Some functions are actually named
8942 something starting with __ and the normal name is an alias. */
8943 #if defined (__stub_shmat) || defined (__stub___shmat)
8946 char (*f) () = shmat;
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_func_shmat=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8984 if test $ac_cv_func_shmat = no; then
8985 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 ac_check_lib_save_LIBS=$LIBS
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_lib_ipc_shmat=yes
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_cv_lib_ipc_shmat=no
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9039 if test $ac_cv_lib_ipc_shmat = yes; then
9040 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9046 # Check for libraries that X11R6 Xt/Xaw programs need.
9047 ac_save_LDFLAGS=$LDFLAGS
9048 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9049 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9050 # check for ICE first), but we must link in the order -lSM -lICE or
9051 # we get undefined symbols. So assume we have SM if we have ICE.
9052 # These have to be linked with before -lX11, unlike the other
9053 # libraries we check for below, so use a different variable.
9054 # John Interrante, Karl Berry
9055 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9056 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9057 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line $LINENO "configure"
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 /* Override any gcc2 internal prototype to avoid an error. */
9074 /* We use char because int might match the return type of a gcc2
9075 builtin and then its argument prototype would still apply. */
9076 char IceConnectionNumber ();
9080 IceConnectionNumber ();
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_lib_ICE_IceConnectionNumber=yes
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_cv_lib_ICE_IceConnectionNumber=no
9104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9109 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9110 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9113 LDFLAGS=$ac_save_LDFLAGS
9169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 # Is the header compilable?
9180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line $LINENO "configure"
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 $ac_includes_default
9190 #include <$ac_header>
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_header_compiler=yes
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_header_compiler=no
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9213 echo "${ECHO_T}$ac_header_compiler" >&6
9215 # Is the header present?
9216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 #include <$ac_header>
9227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } >/dev/null; then
9235 if test -s conftest.err; then
9236 ac_cpp_err=$ac_c_preproc_warn_flag
9243 if test -z "$ac_cpp_err"; then
9244 ac_header_preproc=yes
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_header_preproc=no
9251 rm -f conftest.err conftest.$ac_ext
9252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9253 echo "${ECHO_T}$ac_header_preproc" >&6
9255 # So? What about this header?
9256 case $ac_header_compiler:$ac_header_preproc in
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9264 ## ------------------------------------ ##
9265 ## Report this to bug-autoconf@gnu.org. ##
9266 ## ------------------------------------ ##
9269 sed "s/^/$as_me: WARNING: /" >&2
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280 ## ------------------------------------ ##
9281 ## Report this to bug-autoconf@gnu.org. ##
9282 ## ------------------------------------ ##
9285 sed "s/^/$as_me: WARNING: /" >&2
9288 echo "$as_me:$LINENO: checking for $ac_header" >&5
9289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 eval "$as_ac_Header=$ac_header_preproc"
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9300 cat >>confdefs.h <<_ACEOF
9301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9310 if test "${ac_cv_header_stdc+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 cat >conftest.$ac_ext <<_ACEOF
9314 #line $LINENO "configure"
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9333 rm -f conftest.$ac_objext
9334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335 (eval $ac_compile) 2>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try='test -s conftest.$ac_objext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_header_stdc=yes
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_cv_header_stdc=no
9352 rm -f conftest.$ac_objext conftest.$ac_ext
9354 if test $ac_cv_header_stdc = yes; then
9355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line $LINENO "configure"
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9367 $EGREP "memchr" >/dev/null 2>&1; then
9370 ac_cv_header_stdc=no
9376 if test $ac_cv_header_stdc = yes; then
9377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9378 cat >conftest.$ac_ext <<_ACEOF
9379 #line $LINENO "configure"
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9389 $EGREP "free" >/dev/null 2>&1; then
9392 ac_cv_header_stdc=no
9398 if test $ac_cv_header_stdc = yes; then
9399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9400 if test "$cross_compiling" = yes; then
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9411 #if ((' ' & 0x0FF) == 0x020)
9412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9415 # define ISLOWER(c) \
9416 (('a' <= (c) && (c) <= 'i') \
9417 || ('j' <= (c) && (c) <= 'r') \
9418 || ('s' <= (c) && (c) <= 'z'))
9419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9427 for (i = 0; i < 256; i++)
9428 if (XOR (islower (i), ISLOWER (i))
9429 || toupper (i) != TOUPPER (i))
9434 rm -f conftest$ac_exeext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9447 echo "$as_me: program exited with status $ac_status" >&5
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9452 ac_cv_header_stdc=no
9454 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9458 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9459 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9460 if test $ac_cv_header_stdc = yes; then
9462 cat >>confdefs.h <<\_ACEOF
9463 #define STDC_HEADERS 1
9468 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9469 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9470 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9480 #include <sys/types.h>
9484 return makedev(0, 0);
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_header_sys_types_h_makedev=yes
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 ac_cv_header_sys_types_h_makedev=no
9508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9511 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9512 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9514 if test $ac_cv_header_sys_types_h_makedev = no; then
9515 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9516 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9517 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9518 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9524 # Is the header compilable?
9525 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9526 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9527 cat >conftest.$ac_ext <<_ACEOF
9528 #line $LINENO "configure"
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <sys/mkdev.h>
9537 rm -f conftest.$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_header_compiler=yes
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_header_compiler=no
9556 rm -f conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9558 echo "${ECHO_T}$ac_header_compiler" >&6
9560 # Is the header present?
9561 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9562 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9564 #line $LINENO "configure"
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 #include <sys/mkdev.h>
9572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } >/dev/null; then
9580 if test -s conftest.err; then
9581 ac_cpp_err=$ac_c_preproc_warn_flag
9588 if test -z "$ac_cpp_err"; then
9589 ac_header_preproc=yes
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 ac_header_preproc=no
9596 rm -f conftest.err conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9598 echo "${ECHO_T}$ac_header_preproc" >&6
9600 # So? What about this header?
9601 case $ac_header_compiler:$ac_header_preproc in
9603 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9604 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9609 ## ------------------------------------ ##
9610 ## Report this to bug-autoconf@gnu.org. ##
9611 ## ------------------------------------ ##
9614 sed "s/^/$as_me: WARNING: /" >&2
9617 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9622 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9625 ## ------------------------------------ ##
9626 ## Report this to bug-autoconf@gnu.org. ##
9627 ## ------------------------------------ ##
9630 sed "s/^/$as_me: WARNING: /" >&2
9633 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9634 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9635 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9640 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9644 if test $ac_cv_header_sys_mkdev_h = yes; then
9646 cat >>confdefs.h <<\_ACEOF
9647 #define MAJOR_IN_MKDEV 1
9654 if test $ac_cv_header_sys_mkdev_h = no; then
9655 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9656 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9657 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9658 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9662 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9664 # Is the header compilable?
9665 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9666 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9667 cat >conftest.$ac_ext <<_ACEOF
9668 #line $LINENO "configure"
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 #include <sys/sysmacros.h>
9677 rm -f conftest.$ac_objext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679 (eval $ac_compile) 2>&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -s conftest.$ac_objext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_header_compiler=yes
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 ac_header_compiler=no
9696 rm -f conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9698 echo "${ECHO_T}$ac_header_compiler" >&6
9700 # Is the header present?
9701 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9702 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9704 #line $LINENO "configure"
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 #include <sys/sysmacros.h>
9712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9715 grep -v '^ *+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } >/dev/null; then
9720 if test -s conftest.err; then
9721 ac_cpp_err=$ac_c_preproc_warn_flag
9728 if test -z "$ac_cpp_err"; then
9729 ac_header_preproc=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_header_preproc=no
9736 rm -f conftest.err conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9738 echo "${ECHO_T}$ac_header_preproc" >&6
9740 # So? What about this header?
9741 case $ac_header_compiler:$ac_header_preproc in
9743 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9744 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9746 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9749 ## ------------------------------------ ##
9750 ## Report this to bug-autoconf@gnu.org. ##
9751 ## ------------------------------------ ##
9754 sed "s/^/$as_me: WARNING: /" >&2
9757 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9758 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9759 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9760 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9762 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9765 ## ------------------------------------ ##
9766 ## Report this to bug-autoconf@gnu.org. ##
9767 ## ------------------------------------ ##
9770 sed "s/^/$as_me: WARNING: /" >&2
9773 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9774 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9775 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9780 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9781 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9784 if test $ac_cv_header_sys_sysmacros_h = yes; then
9786 cat >>confdefs.h <<\_ACEOF
9787 #define MAJOR_IN_SYSMACROS 1
9802 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9803 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9804 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9805 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9810 #line $LINENO "configure"
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 #include <sys/types.h>
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830 (eval $ac_compile) 2>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -s conftest.$ac_objext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 eval "$as_ac_Header=yes"
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 eval "$as_ac_Header=no"
9847 rm -f conftest.$ac_objext conftest.$ac_ext
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9852 cat >>confdefs.h <<_ACEOF
9853 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9856 ac_header_dirent=$ac_hdr; break
9860 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9861 if test $ac_header_dirent = dirent.h; then
9862 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9864 if test "${ac_cv_search_opendir+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 ac_func_search_save_LIBS=$LIBS
9868 ac_cv_search_opendir=no
9869 cat >conftest.$ac_ext <<_ACEOF
9870 #line $LINENO "configure"
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9877 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_cv_search_opendir="none required"
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9911 if test "$ac_cv_search_opendir" = no; then
9912 for ac_lib in dir; do
9913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line $LINENO "configure"
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9922 /* Override any gcc2 internal prototype to avoid an error. */
9926 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_search_opendir="-l$ac_lib"
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_func_search_save_LIBS
9961 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9962 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9963 if test "$ac_cv_search_opendir" != no; then
9964 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9969 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9970 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9971 if test "${ac_cv_search_opendir+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 ac_func_search_save_LIBS=$LIBS
9975 ac_cv_search_opendir=no
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9984 /* Override any gcc2 internal prototype to avoid an error. */
9988 /* We use char because int might match the return type of a gcc2
9989 builtin and then its argument prototype would still apply. */
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -s conftest$ac_exeext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_search_opendir="none required"
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10018 if test "$ac_cv_search_opendir" = no; then
10019 for ac_lib in x; do
10020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046 (eval $ac_link) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -s conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_search_opendir="-l$ac_lib"
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10066 LIBS=$ac_func_search_save_LIBS
10068 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10069 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10070 if test "$ac_cv_search_opendir" != no; then
10071 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10077 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10078 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10079 if test "${ac_cv_header_stat_broken+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 #include <sys/types.h>
10090 #include <sys/stat.h>
10092 #if defined(S_ISBLK) && defined(S_IFDIR)
10093 # if S_ISBLK (S_IFDIR)
10098 #if defined(S_ISBLK) && defined(S_IFCHR)
10099 # if S_ISBLK (S_IFCHR)
10104 #if defined(S_ISLNK) && defined(S_IFREG)
10105 # if S_ISLNK (S_IFREG)
10110 #if defined(S_ISSOCK) && defined(S_IFREG)
10111 # if S_ISSOCK (S_IFREG)
10117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10118 $EGREP "You lose" >/dev/null 2>&1; then
10119 ac_cv_header_stat_broken=yes
10121 ac_cv_header_stat_broken=no
10126 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10127 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10128 if test $ac_cv_header_stat_broken = yes; then
10130 cat >>confdefs.h <<\_ACEOF
10131 #define STAT_MACROS_BROKEN 1
10136 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10137 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10138 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 cat >conftest.$ac_ext <<_ACEOF
10142 #line $LINENO "configure"
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <sys/types.h>
10149 #include <sys/wait.h>
10150 #ifndef WEXITSTATUS
10151 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10154 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -s conftest.$ac_objext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_header_sys_wait_h=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_header_sys_wait_h=no
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10188 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10189 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10190 if test $ac_cv_header_sys_wait_h = yes; then
10192 cat >>confdefs.h <<\_ACEOF
10193 #define HAVE_SYS_WAIT_H 1
10198 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10199 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10200 if test "${ac_cv_header_time+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10210 #include <sys/types.h>
10211 #include <sys/time.h>
10217 if ((struct tm *) 0)
10223 rm -f conftest.$ac_objext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10225 (eval $ac_compile) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } &&
10229 { ac_try='test -s conftest.$ac_objext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_cv_header_time=yes
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_cv_header_time=no
10242 rm -f conftest.$ac_objext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10245 echo "${ECHO_T}$ac_cv_header_time" >&6
10246 if test $ac_cv_header_time = yes; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define TIME_WITH_SYS_TIME 1
10255 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10256 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10257 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 cat >conftest.$ac_ext <<_ACEOF
10261 #line $LINENO "configure"
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 $ac_includes_default
10271 static struct stat ac_aggr;
10272 if (ac_aggr.st_blksize)
10278 rm -f conftest.$ac_objext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280 (eval $ac_compile) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -s conftest.$ac_objext'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 ac_cv_member_struct_stat_st_blksize=yes
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 cat >conftest.$ac_ext <<_ACEOF
10296 #line $LINENO "configure"
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 $ac_includes_default
10306 static struct stat ac_aggr;
10307 if (sizeof ac_aggr.st_blksize)
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -s conftest.$ac_objext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_member_struct_stat_st_blksize=yes
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_cv_member_struct_stat_st_blksize=no
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10334 rm -f conftest.$ac_objext conftest.$ac_ext
10336 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10338 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10340 cat >>confdefs.h <<_ACEOF
10341 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10345 cat >>confdefs.h <<\_ACEOF
10346 #define HAVE_ST_BLKSIZE 1
10352 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10353 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10354 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 $ac_includes_default
10368 static struct stat ac_aggr;
10369 if (ac_aggr.st_blocks)
10375 rm -f conftest.$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_cv_member_struct_stat_st_blocks=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 $ac_includes_default
10403 static struct stat ac_aggr;
10404 if (sizeof ac_aggr.st_blocks)
10410 rm -f conftest.$ac_objext
10411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_member_struct_stat_st_blocks=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_cv_member_struct_stat_st_blocks=no
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10433 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10434 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10435 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10442 cat >>confdefs.h <<\_ACEOF
10443 #define HAVE_ST_BLOCKS 1
10447 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10451 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10452 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10453 if test "${ac_cv_struct_tm+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <sys/types.h>
10469 struct tm *tp; tp->tm_sec;
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -s conftest.$ac_objext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_struct_tm=time.h
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_struct_tm=sys/time.h
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10496 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10497 if test $ac_cv_struct_tm = sys/time.h; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define TM_IN_SYS_TIME 1
10505 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10506 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10507 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 #include <sys/types.h>
10518 #include <$ac_cv_struct_tm>
10524 static struct tm ac_aggr;
10525 if (ac_aggr.tm_zone)
10531 rm -f conftest.$ac_objext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10533 (eval $ac_compile) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -s conftest.$ac_objext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_member_struct_tm_tm_zone=yes
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555 #include <sys/types.h>
10556 #include <$ac_cv_struct_tm>
10562 static struct tm ac_aggr;
10563 if (sizeof ac_aggr.tm_zone)
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest.$ac_objext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ac_cv_member_struct_tm_tm_zone=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_cv_member_struct_tm_tm_zone=no
10588 rm -f conftest.$ac_objext conftest.$ac_ext
10590 rm -f conftest.$ac_objext conftest.$ac_ext
10592 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10593 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10594 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10596 cat >>confdefs.h <<_ACEOF
10597 #define HAVE_STRUCT_TM_TM_ZONE 1
10603 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_TM_ZONE 1
10610 echo "$as_me:$LINENO: checking for tzname" >&5
10611 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10612 if test "${ac_cv_var_tzname+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 cat >conftest.$ac_ext <<_ACEOF
10616 #line $LINENO "configure"
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10623 #ifndef tzname /* For SGI. */
10624 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -s conftest$ac_exeext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_var_tzname=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_cv_var_tzname=no
10654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10656 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10657 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10658 if test $ac_cv_var_tzname = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define HAVE_TZNAME 1
10668 echo "$as_me:$LINENO: checking for utime.h" >&5
10669 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10670 if test "${ba_cv_header_utime_h+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10681 #include <sys/types.h>
10691 rm -f conftest.$ac_objext
10692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10693 (eval $ac_compile) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ba_cv_header_utime_h=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ba_cv_header_utime_h=no
10710 rm -f conftest.$ac_objext conftest.$ac_ext
10712 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10713 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10714 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_UTIME_H 1
10719 echo "$as_me:$LINENO: checking for socklen_t" >&5
10720 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10721 if test "${ba_cv_header_socklen_t+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 cat >conftest.$ac_ext <<_ACEOF
10725 #line $LINENO "configure"
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 #include <sys/types.h>
10733 #include <sys/socket.h>
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -s conftest.$ac_objext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ba_cv_header_socklen_t=yes
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ba_cv_header_socklen_t=no
10761 rm -f conftest.$ac_objext conftest.$ac_ext
10763 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10764 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10765 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_SOCKLEN_T 1
10770 echo "$as_me:$LINENO: checking for bigendian" >&5
10771 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10772 if test "${ba_cv_bigendian+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 if test "$cross_compiling" = yes; then
10778 cat >conftest.$ac_ext <<_ACEOF
10779 #line $LINENO "configure"
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10787 rm -f conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789 (eval $ac_link) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ba_cv_bigendian=yes
10800 echo "$as_me: program exited with status $ac_status" >&5
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ( exit $ac_status )
10807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10810 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10811 echo "${ECHO_T}$ba_cv_bigendian" >&6
10812 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_BIGENDIAN 1
10818 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10819 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10820 if test "${ac_cv_c_const+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 cat >conftest.$ac_ext <<_ACEOF
10824 #line $LINENO "configure"
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10834 /* FIXME: Include the comments suggested by Paul. */
10835 #ifndef __cplusplus
10836 /* Ultrix mips cc rejects this. */
10837 typedef int charset[2];
10839 /* SunOS 4.1.1 cc rejects this. */
10840 char const *const *ccp;
10842 /* NEC SVR4.0.2 mips cc rejects this. */
10843 struct point {int x, y;};
10844 static struct point const zero = {0,0};
10845 /* AIX XL C 1.02.0.0 rejects this.
10846 It does not let you subtract one const X* pointer from another in
10847 an arm of an if-expression whose if-part is not a constant
10849 const char *g = "string";
10850 ccp = &g + (g ? g-g : 0);
10851 /* HPUX 7.0 cc rejects these. */
10854 ccp = (char const *const *) p;
10855 { /* SCO 3.2v4 cc rejects this. */
10857 char const *s = 0 ? (char *) 0 : (char const *) 0;
10861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10862 int x[] = {25, 17};
10863 const int *foo = &x[0];
10866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10867 typedef const int *iptr;
10871 { /* AIX XL C 1.02.0.0 rejects this saying
10872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10873 struct s { int j; const int *ap[3]; };
10874 struct s *b; b->j = 5;
10876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10877 const int foo = 10;
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
10891 { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10904 rm -f conftest.$ac_objext conftest.$ac_ext
10906 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10907 echo "${ECHO_T}$ac_cv_c_const" >&6
10908 if test $ac_cv_c_const = no; then
10910 cat >>confdefs.h <<\_ACEOF
10918 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10919 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10921 # The order of these tests is important.
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include <sys/statvfs.h>
10930 #include <sys/fstyp.h>
10932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null; then
10940 if test -s conftest.err; then
10941 ac_cpp_err=$ac_c_preproc_warn_flag
10948 if test -z "$ac_cpp_err"; then
10949 cat >>confdefs.h <<\_ACEOF
10950 #define FSTYPE_STATVFS 1
10954 echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10959 rm -f conftest.err conftest.$ac_ext
10960 if test $fstype = no; then
10961 cat >conftest.$ac_ext <<_ACEOF
10962 #line $LINENO "configure"
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 #include <sys/statfs.h>
10969 #include <sys/fstyp.h>
10971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10974 grep -v '^ *+' conftest.er1 >conftest.err
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } >/dev/null; then
10979 if test -s conftest.err; then
10980 ac_cpp_err=$ac_c_preproc_warn_flag
10987 if test -z "$ac_cpp_err"; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define FSTYPE_USG_STATFS 1
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10998 rm -f conftest.err conftest.$ac_ext
11000 if test $fstype = no; then
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 #include <sys/statfs.h>
11009 #include <sys/vmount.h>
11011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } >/dev/null; then
11019 if test -s conftest.err; then
11020 ac_cpp_err=$ac_c_preproc_warn_flag
11027 if test -z "$ac_cpp_err"; then
11028 cat >>confdefs.h <<\_ACEOF
11029 #define FSTYPE_AIX_STATFS 1
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11038 rm -f conftest.err conftest.$ac_ext
11040 if test $fstype = no; then
11041 cat >conftest.$ac_ext <<_ACEOF
11042 #line $LINENO "configure"
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <mntent.h>
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11066 if test -z "$ac_cpp_err"; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define FSTYPE_MNTENT 1
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -f conftest.err conftest.$ac_ext
11079 if test $fstype = no; then
11080 cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #include <sys/mount.h>
11090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11091 $EGREP "f_type;" >/dev/null 2>&1; then
11092 cat >>confdefs.h <<\_ACEOF
11093 #define FSTYPE_STATFS 1
11100 if test $fstype = no; then
11101 cat >conftest.$ac_ext <<_ACEOF
11102 #line $LINENO "configure"
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/mount.h>
11109 #include <sys/fs_types.h>
11111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } >/dev/null; then
11119 if test -s conftest.err; then
11120 ac_cpp_err=$ac_c_preproc_warn_flag
11127 if test -z "$ac_cpp_err"; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define FSTYPE_GETMNT 1
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11138 rm -f conftest.err conftest.$ac_ext
11140 echo "$as_me:$LINENO: result: $fstype" >&5
11141 echo "${ECHO_T}$fstype" >&6
11143 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11144 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11145 if test "${ac_cv_type_signal+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line $LINENO "configure"
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <sys/types.h>
11156 #include <signal.h>
11161 extern "C" void (*signal (int, void (*)(int)))(int);
11163 void (*signal ()) ();
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_type_signal=void
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ac_cv_type_signal=int
11193 rm -f conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11196 echo "${ECHO_T}$ac_cv_type_signal" >&6
11198 cat >>confdefs.h <<_ACEOF
11199 #define RETSIGTYPE $ac_cv_type_signal
11204 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11205 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11206 if test "${bash_cv_signal_vintage+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 #line $LINENO "configure"
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11217 #include <signal.h>
11223 struct sigaction sa;
11224 sigemptyset(&ss); sigsuspend(&ss);
11225 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11226 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11234 (eval $ac_link) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
11238 { ac_try='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 bash_cv_signal_vintage=posix
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11250 cat >conftest.$ac_ext <<_ACEOF
11251 #line $LINENO "configure"
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 #include <signal.h>
11262 int mask = sigmask(SIGINT);
11263 sigsetmask(mask); sigblock(mask); sigpause(mask);
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271 (eval $ac_link) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -s conftest$ac_exeext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 bash_cv_signal_vintage=4.2bsd
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11287 cat >conftest.$ac_ext <<_ACEOF
11288 #line $LINENO "configure"
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11295 #include <signal.h>
11296 RETSIGTYPE foo() { }
11301 int mask = sigmask(SIGINT);
11302 sigset(SIGINT, foo); sigrelse(SIGINT);
11303 sighold(SIGINT); sigpause(SIGINT);
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311 (eval $ac_link) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -s conftest$ac_exeext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 bash_cv_signal_vintage=svr3
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 bash_cv_signal_vintage=v7
11329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11340 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11341 if test "$bash_cv_signal_vintage" = posix; then
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_POSIX_SIGNALS 1
11346 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11347 cat >>confdefs.h <<\_ACEOF
11348 #define HAVE_BSD_SIGNALS 1
11351 elif test "$bash_cv_signal_vintage" = svr3; then
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_USG_SIGHOLD 1
11358 echo "$as_me:$LINENO: checking for mode_t" >&5
11359 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11360 if test "${ac_cv_type_mode_t+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11364 #line $LINENO "configure"
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 $ac_includes_default
11376 if (sizeof (mode_t))
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_type_mode_t=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_cv_type_mode_t=no
11401 rm -f conftest.$ac_objext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11404 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11405 if test $ac_cv_type_mode_t = yes; then
11409 cat >>confdefs.h <<_ACEOF
11415 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11416 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11417 if test "${ac_cv_type_uid_t+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 cat >conftest.$ac_ext <<_ACEOF
11421 #line $LINENO "configure"
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <sys/types.h>
11430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11431 $EGREP "uid_t" >/dev/null 2>&1; then
11432 ac_cv_type_uid_t=yes
11434 ac_cv_type_uid_t=no
11439 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11440 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11441 if test $ac_cv_type_uid_t = no; then
11443 cat >>confdefs.h <<\_ACEOF
11448 cat >>confdefs.h <<\_ACEOF
11454 echo "$as_me:$LINENO: checking for size_t" >&5
11455 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11456 if test "${ac_cv_type_size_t+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 cat >conftest.$ac_ext <<_ACEOF
11460 #line $LINENO "configure"
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 $ac_includes_default
11472 if (sizeof (size_t))
11478 rm -f conftest.$ac_objext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11480 (eval $ac_compile) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_type_size_t=yes
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 ac_cv_type_size_t=no
11497 rm -f conftest.$ac_objext conftest.$ac_ext
11499 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11500 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11501 if test $ac_cv_type_size_t = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define size_t unsigned
11511 echo "$as_me:$LINENO: checking for pid_t" >&5
11512 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11513 if test "${ac_cv_type_pid_t+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 cat >conftest.$ac_ext <<_ACEOF
11517 #line $LINENO "configure"
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 $ac_includes_default
11529 if (sizeof (pid_t))
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_type_pid_t=yes
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.$ac_ext >&5
11552 ac_cv_type_pid_t=no
11554 rm -f conftest.$ac_objext conftest.$ac_ext
11556 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11557 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11558 if test $ac_cv_type_pid_t = yes; then
11562 cat >>confdefs.h <<_ACEOF
11568 echo "$as_me:$LINENO: checking for off_t" >&5
11569 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11570 if test "${ac_cv_type_off_t+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11574 #line $LINENO "configure"
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 $ac_includes_default
11586 if (sizeof (off_t))
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_type_off_t=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ac_cv_type_off_t=no
11611 rm -f conftest.$ac_objext conftest.$ac_ext
11613 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11614 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11615 if test $ac_cv_type_off_t = yes; then
11619 cat >>confdefs.h <<_ACEOF
11625 echo "$as_me:$LINENO: checking for ino_t" >&5
11626 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11627 if test "${ac_cv_type_ino_t+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11631 #line $LINENO "configure"
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 $ac_includes_default
11643 if (sizeof (ino_t))
11649 rm -f conftest.$ac_objext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_cv_type_ino_t=yes
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_type_ino_t=no
11668 rm -f conftest.$ac_objext conftest.$ac_ext
11670 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11671 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11672 if test $ac_cv_type_ino_t = yes; then
11676 cat >>confdefs.h <<_ACEOF
11677 #define ino_t unsigned long
11682 echo "$as_me:$LINENO: checking for dev_t" >&5
11683 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11684 if test "${ac_cv_type_dev_t+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 $ac_includes_default
11700 if (sizeof (dev_t))
11706 rm -f conftest.$ac_objext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708 (eval $ac_compile) 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_cv_type_dev_t=yes
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_cv_type_dev_t=no
11725 rm -f conftest.$ac_objext conftest.$ac_ext
11727 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11728 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11729 if test $ac_cv_type_dev_t = yes; then
11733 cat >>confdefs.h <<_ACEOF
11734 #define dev_t unsigned long
11739 echo "$as_me:$LINENO: checking for daddr_t" >&5
11740 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11741 if test "${ac_cv_type_daddr_t+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11745 #line $LINENO "configure"
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 $ac_includes_default
11757 if (sizeof (daddr_t))
11763 rm -f conftest.$ac_objext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -s conftest.$ac_objext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_cv_type_daddr_t=yes
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_type_daddr_t=no
11782 rm -f conftest.$ac_objext conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11785 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11786 if test $ac_cv_type_daddr_t = yes; then
11790 cat >>confdefs.h <<_ACEOF
11791 #define daddr_t long
11796 echo "$as_me:$LINENO: checking for major_t" >&5
11797 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11798 if test "${ac_cv_type_major_t+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11814 if (sizeof (major_t))
11820 rm -f conftest.$ac_objext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_type_major_t=yes
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11837 ac_cv_type_major_t=no
11839 rm -f conftest.$ac_objext conftest.$ac_ext
11841 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11842 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11843 if test $ac_cv_type_major_t = yes; then
11847 cat >>confdefs.h <<_ACEOF
11848 #define major_t int
11853 echo "$as_me:$LINENO: checking for minor_t" >&5
11854 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11855 if test "${ac_cv_type_minor_t+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 cat >conftest.$ac_ext <<_ACEOF
11859 #line $LINENO "configure"
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11871 if (sizeof (minor_t))
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_cv_type_minor_t=yes
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 ac_cv_type_minor_t=no
11896 rm -f conftest.$ac_objext conftest.$ac_ext
11898 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11899 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11900 if test $ac_cv_type_minor_t = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905 #define minor_t int
11910 echo "$as_me:$LINENO: checking for ssize_t" >&5
11911 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11912 if test "${ac_cv_type_ssize_t+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 $ac_includes_default
11928 if (sizeof (ssize_t))
11934 rm -f conftest.$ac_objext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_type_ssize_t=yes
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11951 ac_cv_type_ssize_t=no
11953 rm -f conftest.$ac_objext conftest.$ac_ext
11955 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11956 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11957 if test $ac_cv_type_ssize_t = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define ssize_t int
11967 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11968 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11969 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 $ac_includes_default
11983 static struct stat ac_aggr;
11984 if (ac_aggr.st_blocks)
11990 rm -f conftest.$ac_objext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -s conftest.$ac_objext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_member_struct_stat_st_blocks=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 cat >conftest.$ac_ext <<_ACEOF
12008 #line $LINENO "configure"
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 $ac_includes_default
12018 static struct stat ac_aggr;
12019 if (sizeof ac_aggr.st_blocks)
12025 rm -f conftest.$ac_objext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027 (eval $ac_compile) 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -s conftest.$ac_objext'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_cv_member_struct_stat_st_blocks=yes
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12042 ac_cv_member_struct_stat_st_blocks=no
12044 rm -f conftest.$ac_objext conftest.$ac_ext
12046 rm -f conftest.$ac_objext conftest.$ac_ext
12048 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12049 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12050 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12057 cat >>confdefs.h <<\_ACEOF
12058 #define HAVE_ST_BLOCKS 1
12062 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12067 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12068 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12069 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 cat >conftest.$ac_ext <<_ACEOF
12073 #line $LINENO "configure"
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079 $ac_includes_default
12083 static struct stat ac_aggr;
12084 if (ac_aggr.st_rdev)
12090 rm -f conftest.$ac_objext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -s conftest.$ac_objext'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12102 ac_cv_member_struct_stat_st_rdev=yes
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 cat >conftest.$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12118 static struct stat ac_aggr;
12119 if (sizeof ac_aggr.st_rdev)
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_member_struct_stat_st_rdev=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_member_struct_stat_st_rdev=no
12144 rm -f conftest.$ac_objext conftest.$ac_ext
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12148 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12149 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12150 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_STRUCT_STAT_ST_RDEV 1
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_ST_RDEV 1
12164 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12165 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12166 if test "${ac_cv_struct_tm+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <sys/types.h>
12182 struct tm *tp; tp->tm_sec;
12187 rm -f conftest.$ac_objext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_struct_tm=time.h
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_cv_struct_tm=sys/time.h
12206 rm -f conftest.$ac_objext conftest.$ac_ext
12208 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12209 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12210 if test $ac_cv_struct_tm = sys/time.h; then
12212 cat >>confdefs.h <<\_ACEOF
12213 #define TM_IN_SYS_TIME 1
12218 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12219 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12220 if test "${ac_cv_c_const+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 cat >conftest.$ac_ext <<_ACEOF
12224 #line $LINENO "configure"
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12234 /* FIXME: Include the comments suggested by Paul. */
12235 #ifndef __cplusplus
12236 /* Ultrix mips cc rejects this. */
12237 typedef int charset[2];
12239 /* SunOS 4.1.1 cc rejects this. */
12240 char const *const *ccp;
12242 /* NEC SVR4.0.2 mips cc rejects this. */
12243 struct point {int x, y;};
12244 static struct point const zero = {0,0};
12245 /* AIX XL C 1.02.0.0 rejects this.
12246 It does not let you subtract one const X* pointer from another in
12247 an arm of an if-expression whose if-part is not a constant
12249 const char *g = "string";
12250 ccp = &g + (g ? g-g : 0);
12251 /* HPUX 7.0 cc rejects these. */
12254 ccp = (char const *const *) p;
12255 { /* SCO 3.2v4 cc rejects this. */
12257 char const *s = 0 ? (char *) 0 : (char const *) 0;
12261 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12262 int x[] = {25, 17};
12263 const int *foo = &x[0];
12266 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12267 typedef const int *iptr;
12271 { /* AIX XL C 1.02.0.0 rejects this saying
12272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12273 struct s { int j; const int *ap[3]; };
12274 struct s *b; b->j = 5;
12276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12277 const int foo = 10;
12285 rm -f conftest.$ac_objext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287 (eval $ac_compile) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12304 rm -f conftest.$ac_objext conftest.$ac_ext
12306 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12307 echo "${ECHO_T}$ac_cv_c_const" >&6
12308 if test $ac_cv_c_const = no; then
12310 cat >>confdefs.h <<\_ACEOF
12318 echo "$as_me:$LINENO: checking for char" >&5
12319 echo $ECHO_N "checking for char... $ECHO_C" >&6
12320 if test "${ac_cv_type_char+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12324 #line $LINENO "configure"
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -s conftest.$ac_objext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_type_char=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12361 rm -f conftest.$ac_objext conftest.$ac_ext
12363 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12364 echo "${ECHO_T}$ac_cv_type_char" >&6
12366 echo "$as_me:$LINENO: checking size of char" >&5
12367 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12368 if test "${ac_cv_sizeof_char+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 if test "$ac_cv_type_char" = yes; then
12372 # The cast to unsigned long works around a bug in the HP C Compiler
12373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12375 # This bug is HP SR number 8606223364.
12376 if test "$cross_compiling" = yes; then
12377 # Depending upon the size, compute the lo and hi bounds.
12378 cat >conftest.$ac_ext <<_ACEOF
12379 #line $LINENO "configure"
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 $ac_includes_default
12389 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12396 rm -f conftest.$ac_objext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12398 (eval $ac_compile) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
12402 { ac_try='test -s conftest.$ac_objext'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 $ac_includes_default
12421 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12428 rm -f conftest.$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_hi=$ac_mid; break
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ac_lo=`expr $ac_mid + 1`
12446 if test $ac_lo -le $ac_mid; then
12450 ac_mid=`expr 2 '*' $ac_mid + 1`
12452 rm -f conftest.$ac_objext conftest.$ac_ext
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 $ac_includes_default
12469 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12476 rm -f conftest.$ac_objext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12490 cat >conftest.$ac_ext <<_ACEOF
12491 #line $LINENO "configure"
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12501 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -s conftest.$ac_objext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_lo=$ac_mid; break
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 ac_hi=`expr '(' $ac_mid ')' - 1`
12526 if test $ac_mid -le $ac_hi; then
12530 ac_mid=`expr 2 '*' $ac_mid`
12532 rm -f conftest.$ac_objext conftest.$ac_ext
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12543 # Binary search between lo and hi bounds.
12544 while test "x$ac_lo" != "x$ac_hi"; do
12545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12546 cat >conftest.$ac_ext <<_ACEOF
12547 #line $LINENO "configure"
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 $ac_includes_default
12557 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12564 rm -f conftest.$ac_objext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -s conftest.$ac_objext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 ac_lo=`expr '(' $ac_mid ')' + 1`
12583 rm -f conftest.$ac_objext conftest.$ac_ext
12586 ?*) ac_cv_sizeof_char=$ac_lo;;
12587 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12588 See \`config.log' for more details." >&5
12589 echo "$as_me: error: cannot compute sizeof (char), 77
12590 See \`config.log' for more details." >&2;}
12591 { (exit 1); exit 1; }; } ;;
12594 if test "$cross_compiling" = yes; then
12595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12596 See \`config.log' for more details." >&5
12597 echo "$as_me: error: cannot run test program while cross compiling
12598 See \`config.log' for more details." >&2;}
12599 { (exit 1); exit 1; }; }
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 $ac_includes_default
12609 long longval () { return (long) (sizeof (char)); }
12610 unsigned long ulongval () { return (long) (sizeof (char)); }
12612 #include <stdlib.h>
12617 FILE *f = fopen ("conftest.val", "w");
12620 if (((long) (sizeof (char))) < 0)
12622 long i = longval ();
12623 if (i != ((long) (sizeof (char))))
12625 fprintf (f, "%ld\n", i);
12629 unsigned long i = ulongval ();
12630 if (i != ((long) (sizeof (char))))
12632 fprintf (f, "%lu\n", i);
12634 exit (ferror (f) || fclose (f) != 0);
12640 rm -f conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_sizeof_char=`cat conftest.val`
12653 echo "$as_me: program exited with status $ac_status" >&5
12654 echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12657 ( exit $ac_status )
12658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12659 See \`config.log' for more details." >&5
12660 echo "$as_me: error: cannot compute sizeof (char), 77
12661 See \`config.log' for more details." >&2;}
12662 { (exit 1); exit 1; }; }
12664 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12669 ac_cv_sizeof_char=0
12672 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12673 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12674 cat >>confdefs.h <<_ACEOF
12675 #define SIZEOF_CHAR $ac_cv_sizeof_char
12679 echo "$as_me:$LINENO: checking for short int" >&5
12680 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12681 if test "${ac_cv_type_short_int+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 cat >conftest.$ac_ext <<_ACEOF
12685 #line $LINENO "configure"
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 $ac_includes_default
12695 if ((short int *) 0)
12697 if (sizeof (short int))
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -s conftest.$ac_objext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 ac_cv_type_short_int=yes
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12720 ac_cv_type_short_int=no
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12725 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12727 echo "$as_me:$LINENO: checking size of short int" >&5
12728 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12729 if test "${ac_cv_sizeof_short_int+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 if test "$ac_cv_type_short_int" = yes; then
12733 # The cast to unsigned long works around a bug in the HP C Compiler
12734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12736 # This bug is HP SR number 8606223364.
12737 if test "$cross_compiling" = yes; then
12738 # Depending upon the size, compute the lo and hi bounds.
12739 cat >conftest.$ac_ext <<_ACEOF
12740 #line $LINENO "configure"
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746 $ac_includes_default
12750 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778 $ac_includes_default
12782 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12789 rm -f conftest.$ac_objext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -s conftest.$ac_objext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_hi=$ac_mid; break
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_lo=`expr $ac_mid + 1`
12807 if test $ac_lo -le $ac_mid; then
12811 ac_mid=`expr 2 '*' $ac_mid + 1`
12813 rm -f conftest.$ac_objext conftest.$ac_ext
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 cat >conftest.$ac_ext <<_ACEOF
12820 #line $LINENO "configure"
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12830 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12837 rm -f conftest.$ac_objext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12839 (eval $ac_compile) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -s conftest.$ac_objext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12851 cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858 $ac_includes_default
12862 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 ac_lo=$ac_mid; break
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 ac_hi=`expr '(' $ac_mid ')' - 1`
12887 if test $ac_mid -le $ac_hi; then
12891 ac_mid=`expr 2 '*' $ac_mid`
12893 rm -f conftest.$ac_objext conftest.$ac_ext
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12904 # Binary search between lo and hi bounds.
12905 while test "x$ac_lo" != "x$ac_hi"; do
12906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12907 cat >conftest.$ac_ext <<_ACEOF
12908 #line $LINENO "configure"
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 $ac_includes_default
12918 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12925 rm -f conftest.$ac_objext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -s conftest.$ac_objext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_lo=`expr '(' $ac_mid ')' + 1`
12944 rm -f conftest.$ac_objext conftest.$ac_ext
12947 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12949 See \`config.log' for more details." >&5
12950 echo "$as_me: error: cannot compute sizeof (short int), 77
12951 See \`config.log' for more details." >&2;}
12952 { (exit 1); exit 1; }; } ;;
12955 if test "$cross_compiling" = yes; then
12956 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12957 See \`config.log' for more details." >&5
12958 echo "$as_me: error: cannot run test program while cross compiling
12959 See \`config.log' for more details." >&2;}
12960 { (exit 1); exit 1; }; }
12962 cat >conftest.$ac_ext <<_ACEOF
12963 #line $LINENO "configure"
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12970 long longval () { return (long) (sizeof (short int)); }
12971 unsigned long ulongval () { return (long) (sizeof (short int)); }
12973 #include <stdlib.h>
12978 FILE *f = fopen ("conftest.val", "w");
12981 if (((long) (sizeof (short int))) < 0)
12983 long i = longval ();
12984 if (i != ((long) (sizeof (short int))))
12986 fprintf (f, "%ld\n", i);
12990 unsigned long i = ulongval ();
12991 if (i != ((long) (sizeof (short int))))
12993 fprintf (f, "%lu\n", i);
12995 exit (ferror (f) || fclose (f) != 0);
13001 rm -f conftest$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_sizeof_short_int=`cat conftest.val`
13014 echo "$as_me: program exited with status $ac_status" >&5
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ( exit $ac_status )
13019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13020 See \`config.log' for more details." >&5
13021 echo "$as_me: error: cannot compute sizeof (short int), 77
13022 See \`config.log' for more details." >&2;}
13023 { (exit 1); exit 1; }; }
13025 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13030 ac_cv_sizeof_short_int=0
13033 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13034 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13035 cat >>confdefs.h <<_ACEOF
13036 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13040 echo "$as_me:$LINENO: checking for int" >&5
13041 echo $ECHO_N "checking for int... $ECHO_C" >&6
13042 if test "${ac_cv_type_int+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 cat >conftest.$ac_ext <<_ACEOF
13046 #line $LINENO "configure"
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 $ac_includes_default
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066 (eval $ac_compile) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13083 rm -f conftest.$ac_objext conftest.$ac_ext
13085 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13086 echo "${ECHO_T}$ac_cv_type_int" >&6
13088 echo "$as_me:$LINENO: checking size of int" >&5
13089 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13090 if test "${ac_cv_sizeof_int+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 if test "$ac_cv_type_int" = yes; then
13094 # The cast to unsigned long works around a bug in the HP C Compiler
13095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13097 # This bug is HP SR number 8606223364.
13098 if test "$cross_compiling" = yes; then
13099 # Depending upon the size, compute the lo and hi bounds.
13100 cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 $ac_includes_default
13111 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13118 rm -f conftest.$ac_objext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120 (eval $ac_compile) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13132 cat >conftest.$ac_ext <<_ACEOF
13133 #line $LINENO "configure"
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 $ac_includes_default
13143 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_hi=$ac_mid; break
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_lo=`expr $ac_mid + 1`
13168 if test $ac_lo -le $ac_mid; then
13172 ac_mid=`expr 2 '*' $ac_mid + 1`
13174 rm -f conftest.$ac_objext conftest.$ac_ext
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 $ac_includes_default
13191 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13198 rm -f conftest.$ac_objext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13200 (eval $ac_compile) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13212 cat >conftest.$ac_ext <<_ACEOF
13213 #line $LINENO "configure"
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 $ac_includes_default
13223 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13230 rm -f conftest.$ac_objext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13232 (eval $ac_compile) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -s conftest.$ac_objext'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_lo=$ac_mid; break
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_hi=`expr '(' $ac_mid ')' - 1`
13248 if test $ac_mid -le $ac_hi; then
13252 ac_mid=`expr 2 '*' $ac_mid`
13254 rm -f conftest.$ac_objext conftest.$ac_ext
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13265 # Binary search between lo and hi bounds.
13266 while test "x$ac_lo" != "x$ac_hi"; do
13267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13268 cat >conftest.$ac_ext <<_ACEOF
13269 #line $LINENO "configure"
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 $ac_includes_default
13279 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13286 rm -f conftest.$ac_objext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288 (eval $ac_compile) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -s conftest.$ac_objext'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13300 echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13303 ac_lo=`expr '(' $ac_mid ')' + 1`
13305 rm -f conftest.$ac_objext conftest.$ac_ext
13308 ?*) ac_cv_sizeof_int=$ac_lo;;
13309 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13310 See \`config.log' for more details." >&5
13311 echo "$as_me: error: cannot compute sizeof (int), 77
13312 See \`config.log' for more details." >&2;}
13313 { (exit 1); exit 1; }; } ;;
13316 if test "$cross_compiling" = yes; then
13317 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13318 See \`config.log' for more details." >&5
13319 echo "$as_me: error: cannot run test program while cross compiling
13320 See \`config.log' for more details." >&2;}
13321 { (exit 1); exit 1; }; }
13323 cat >conftest.$ac_ext <<_ACEOF
13324 #line $LINENO "configure"
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13331 long longval () { return (long) (sizeof (int)); }
13332 unsigned long ulongval () { return (long) (sizeof (int)); }
13334 #include <stdlib.h>
13339 FILE *f = fopen ("conftest.val", "w");
13342 if (((long) (sizeof (int))) < 0)
13344 long i = longval ();
13345 if (i != ((long) (sizeof (int))))
13347 fprintf (f, "%ld\n", i);
13351 unsigned long i = ulongval ();
13352 if (i != ((long) (sizeof (int))))
13354 fprintf (f, "%lu\n", i);
13356 exit (ferror (f) || fclose (f) != 0);
13362 rm -f conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364 (eval $ac_link) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_cv_sizeof_int=`cat conftest.val`
13375 echo "$as_me: program exited with status $ac_status" >&5
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ( exit $ac_status )
13380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13381 See \`config.log' for more details." >&5
13382 echo "$as_me: error: cannot compute sizeof (int), 77
13383 See \`config.log' for more details." >&2;}
13384 { (exit 1); exit 1; }; }
13386 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13394 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13395 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13396 cat >>confdefs.h <<_ACEOF
13397 #define SIZEOF_INT $ac_cv_sizeof_int
13401 echo "$as_me:$LINENO: checking for long int" >&5
13402 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13403 if test "${ac_cv_type_long_int+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13417 if ((long int *) 0)
13419 if (sizeof (long int))
13425 rm -f conftest.$ac_objext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_cv_type_long_int=yes
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ac_cv_type_long_int=no
13444 rm -f conftest.$ac_objext conftest.$ac_ext
13446 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13447 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13449 echo "$as_me:$LINENO: checking size of long int" >&5
13450 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13451 if test "${ac_cv_sizeof_long_int+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 if test "$ac_cv_type_long_int" = yes; then
13455 # The cast to unsigned long works around a bug in the HP C Compiler
13456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13458 # This bug is HP SR number 8606223364.
13459 if test "$cross_compiling" = yes; then
13460 # Depending upon the size, compute the lo and hi bounds.
13461 cat >conftest.$ac_ext <<_ACEOF
13462 #line $LINENO "configure"
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13468 $ac_includes_default
13472 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13479 rm -f conftest.$ac_objext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481 (eval $ac_compile) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13493 cat >conftest.$ac_ext <<_ACEOF
13494 #line $LINENO "configure"
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 $ac_includes_default
13504 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_hi=$ac_mid; break
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_lo=`expr $ac_mid + 1`
13529 if test $ac_lo -le $ac_mid; then
13533 ac_mid=`expr 2 '*' $ac_mid + 1`
13535 rm -f conftest.$ac_objext conftest.$ac_ext
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 cat >conftest.$ac_ext <<_ACEOF
13542 #line $LINENO "configure"
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13548 $ac_includes_default
13552 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -s conftest.$ac_objext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13573 cat >conftest.$ac_ext <<_ACEOF
13574 #line $LINENO "configure"
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 $ac_includes_default
13584 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } &&
13597 { ac_try='test -s conftest.$ac_objext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_lo=$ac_mid; break
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_hi=`expr '(' $ac_mid ')' - 1`
13609 if test $ac_mid -le $ac_hi; then
13613 ac_mid=`expr 2 '*' $ac_mid`
13615 rm -f conftest.$ac_objext conftest.$ac_ext
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13626 # Binary search between lo and hi bounds.
13627 while test "x$ac_lo" != "x$ac_hi"; do
13628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 $ac_includes_default
13640 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13647 rm -f conftest.$ac_objext
13648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13649 (eval $ac_compile) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -s conftest.$ac_objext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 ac_lo=`expr '(' $ac_mid ')' + 1`
13666 rm -f conftest.$ac_objext conftest.$ac_ext
13669 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13670 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13671 See \`config.log' for more details." >&5
13672 echo "$as_me: error: cannot compute sizeof (long int), 77
13673 See \`config.log' for more details." >&2;}
13674 { (exit 1); exit 1; }; } ;;
13677 if test "$cross_compiling" = yes; then
13678 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13679 See \`config.log' for more details." >&5
13680 echo "$as_me: error: cannot run test program while cross compiling
13681 See \`config.log' for more details." >&2;}
13682 { (exit 1); exit 1; }; }
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 long longval () { return (long) (sizeof (long int)); }
13693 unsigned long ulongval () { return (long) (sizeof (long int)); }
13695 #include <stdlib.h>
13700 FILE *f = fopen ("conftest.val", "w");
13703 if (((long) (sizeof (long int))) < 0)
13705 long i = longval ();
13706 if (i != ((long) (sizeof (long int))))
13708 fprintf (f, "%ld\n", i);
13712 unsigned long i = ulongval ();
13713 if (i != ((long) (sizeof (long int))))
13715 fprintf (f, "%lu\n", i);
13717 exit (ferror (f) || fclose (f) != 0);
13723 rm -f conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725 (eval $ac_link) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_sizeof_long_int=`cat conftest.val`
13736 echo "$as_me: program exited with status $ac_status" >&5
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ( exit $ac_status )
13741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13742 See \`config.log' for more details." >&5
13743 echo "$as_me: error: cannot compute sizeof (long int), 77
13744 See \`config.log' for more details." >&2;}
13745 { (exit 1); exit 1; }; }
13747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13752 ac_cv_sizeof_long_int=0
13755 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13756 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13757 cat >>confdefs.h <<_ACEOF
13758 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13762 echo "$as_me:$LINENO: checking for long long int" >&5
13763 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13764 if test "${ac_cv_type_long_long_int+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 cat >conftest.$ac_ext <<_ACEOF
13768 #line $LINENO "configure"
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 $ac_includes_default
13778 if ((long long int *) 0)
13780 if (sizeof (long long int))
13786 rm -f conftest.$ac_objext
13787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13788 (eval $ac_compile) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_type_long_long_int=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_cv_type_long_long_int=no
13805 rm -f conftest.$ac_objext conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13808 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13810 echo "$as_me:$LINENO: checking size of long long int" >&5
13811 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13812 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 if test "$ac_cv_type_long_long_int" = yes; then
13816 # The cast to unsigned long works around a bug in the HP C Compiler
13817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13819 # This bug is HP SR number 8606223364.
13820 if test "$cross_compiling" = yes; then
13821 # Depending upon the size, compute the lo and hi bounds.
13822 cat >conftest.$ac_ext <<_ACEOF
13823 #line $LINENO "configure"
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13829 $ac_includes_default
13833 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13840 rm -f conftest.$ac_objext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13854 cat >conftest.$ac_ext <<_ACEOF
13855 #line $LINENO "configure"
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 $ac_includes_default
13865 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -s conftest.$ac_objext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_hi=$ac_mid; break
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_lo=`expr $ac_mid + 1`
13890 if test $ac_lo -le $ac_mid; then
13894 ac_mid=`expr 2 '*' $ac_mid + 1`
13896 rm -f conftest.$ac_objext conftest.$ac_ext
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 $ac_includes_default
13913 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13920 rm -f conftest.$ac_objext
13921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13922 (eval $ac_compile) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -s conftest.$ac_objext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13934 cat >conftest.$ac_ext <<_ACEOF
13935 #line $LINENO "configure"
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 $ac_includes_default
13945 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13952 rm -f conftest.$ac_objext
13953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954 (eval $ac_compile) 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_lo=$ac_mid; break
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_hi=`expr '(' $ac_mid ')' - 1`
13970 if test $ac_mid -le $ac_hi; then
13974 ac_mid=`expr 2 '*' $ac_mid`
13976 rm -f conftest.$ac_objext conftest.$ac_ext
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13987 # Binary search between lo and hi bounds.
13988 while test "x$ac_lo" != "x$ac_hi"; do
13989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line $LINENO "configure"
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 $ac_includes_default
14001 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 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
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 ac_lo=`expr '(' $ac_mid ')' + 1`
14027 rm -f conftest.$ac_objext conftest.$ac_ext
14030 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14031 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14032 See \`config.log' for more details." >&5
14033 echo "$as_me: error: cannot compute sizeof (long long int), 77
14034 See \`config.log' for more details." >&2;}
14035 { (exit 1); exit 1; }; } ;;
14038 if test "$cross_compiling" = yes; then
14039 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14040 See \`config.log' for more details." >&5
14041 echo "$as_me: error: cannot run test program while cross compiling
14042 See \`config.log' for more details." >&2;}
14043 { (exit 1); exit 1; }; }
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 $ac_includes_default
14053 long longval () { return (long) (sizeof (long long int)); }
14054 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14056 #include <stdlib.h>
14061 FILE *f = fopen ("conftest.val", "w");
14064 if (((long) (sizeof (long long int))) < 0)
14066 long i = longval ();
14067 if (i != ((long) (sizeof (long long int))))
14069 fprintf (f, "%ld\n", i);
14073 unsigned long i = ulongval ();
14074 if (i != ((long) (sizeof (long long int))))
14076 fprintf (f, "%lu\n", i);
14078 exit (ferror (f) || fclose (f) != 0);
14084 rm -f conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_sizeof_long_long_int=`cat conftest.val`
14097 echo "$as_me: program exited with status $ac_status" >&5
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ( exit $ac_status )
14102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14103 See \`config.log' for more details." >&5
14104 echo "$as_me: error: cannot compute sizeof (long long int), 77
14105 See \`config.log' for more details." >&2;}
14106 { (exit 1); exit 1; }; }
14108 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14113 ac_cv_sizeof_long_long_int=0
14116 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14117 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14118 cat >>confdefs.h <<_ACEOF
14119 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14123 echo "$as_me:$LINENO: checking for int *" >&5
14124 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14125 if test "${ac_cv_type_int_p+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 cat >conftest.$ac_ext <<_ACEOF
14129 #line $LINENO "configure"
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 $ac_includes_default
14141 if (sizeof (int *))
14147 rm -f conftest.$ac_objext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149 (eval $ac_compile) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -s conftest.$ac_objext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_type_int_p=yes
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_cv_type_int_p=no
14166 rm -f conftest.$ac_objext conftest.$ac_ext
14168 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14169 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14171 echo "$as_me:$LINENO: checking size of int *" >&5
14172 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14173 if test "${ac_cv_sizeof_int_p+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 if test "$ac_cv_type_int_p" = yes; then
14177 # The cast to unsigned long works around a bug in the HP C Compiler
14178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14180 # This bug is HP SR number 8606223364.
14181 if test "$cross_compiling" = yes; then
14182 # Depending upon the size, compute the lo and hi bounds.
14183 cat >conftest.$ac_ext <<_ACEOF
14184 #line $LINENO "configure"
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 $ac_includes_default
14194 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14201 rm -f conftest.$ac_objext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14203 (eval $ac_compile) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -s conftest.$ac_objext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14215 cat >conftest.$ac_ext <<_ACEOF
14216 #line $LINENO "configure"
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14222 $ac_includes_default
14226 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14233 rm -f conftest.$ac_objext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235 (eval $ac_compile) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_hi=$ac_mid; break
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 ac_lo=`expr $ac_mid + 1`
14251 if test $ac_lo -le $ac_mid; then
14255 ac_mid=`expr 2 '*' $ac_mid + 1`
14257 rm -f conftest.$ac_objext conftest.$ac_ext
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 cat >conftest.$ac_ext <<_ACEOF
14264 #line $LINENO "configure"
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 $ac_includes_default
14274 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14281 rm -f conftest.$ac_objext
14282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14283 (eval $ac_compile) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14295 cat >conftest.$ac_ext <<_ACEOF
14296 #line $LINENO "configure"
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 $ac_includes_default
14306 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315 (eval $ac_compile) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_lo=$ac_mid; break
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_hi=`expr '(' $ac_mid ')' - 1`
14331 if test $ac_mid -le $ac_hi; then
14335 ac_mid=`expr 2 '*' $ac_mid`
14337 rm -f conftest.$ac_objext conftest.$ac_ext
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14348 # Binary search between lo and hi bounds.
14349 while test "x$ac_lo" != "x$ac_hi"; do
14350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14351 cat >conftest.$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14362 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14369 rm -f conftest.$ac_objext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14371 (eval $ac_compile) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
14375 { ac_try='test -s conftest.$ac_objext'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_lo=`expr '(' $ac_mid ')' + 1`
14388 rm -f conftest.$ac_objext conftest.$ac_ext
14391 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14393 See \`config.log' for more details." >&5
14394 echo "$as_me: error: cannot compute sizeof (int *), 77
14395 See \`config.log' for more details." >&2;}
14396 { (exit 1); exit 1; }; } ;;
14399 if test "$cross_compiling" = yes; then
14400 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14401 See \`config.log' for more details." >&5
14402 echo "$as_me: error: cannot run test program while cross compiling
14403 See \`config.log' for more details." >&2;}
14404 { (exit 1); exit 1; }; }
14406 cat >conftest.$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 $ac_includes_default
14414 long longval () { return (long) (sizeof (int *)); }
14415 unsigned long ulongval () { return (long) (sizeof (int *)); }
14417 #include <stdlib.h>
14422 FILE *f = fopen ("conftest.val", "w");
14425 if (((long) (sizeof (int *))) < 0)
14427 long i = longval ();
14428 if (i != ((long) (sizeof (int *))))
14430 fprintf (f, "%ld\n", i);
14434 unsigned long i = ulongval ();
14435 if (i != ((long) (sizeof (int *))))
14437 fprintf (f, "%lu\n", i);
14439 exit (ferror (f) || fclose (f) != 0);
14445 rm -f conftest$ac_exeext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14447 (eval $ac_link) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_sizeof_int_p=`cat conftest.val`
14458 echo "$as_me: program exited with status $ac_status" >&5
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ( exit $ac_status )
14463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14464 See \`config.log' for more details." >&5
14465 echo "$as_me: error: cannot compute sizeof (int *), 77
14466 See \`config.log' for more details." >&2;}
14467 { (exit 1); exit 1; }; }
14469 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14474 ac_cv_sizeof_int_p=0
14477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14478 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14479 cat >>confdefs.h <<_ACEOF
14480 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14485 # Check for sys/types.h types
14486 echo "$as_me:$LINENO: checking for u_int type" >&5
14487 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14488 if test "${ac_cv_have_u_int+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 cat >conftest.$ac_ext <<_ACEOF
14493 #line $LINENO "configure"
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <sys/types.h>
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -s conftest.$ac_objext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 ac_cv_have_u_int="yes"
14522 echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14525 ac_cv_have_u_int="no"
14528 rm -f conftest.$ac_objext conftest.$ac_ext
14531 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14532 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14533 if test "x$ac_cv_have_u_int" = "xyes" ; then
14534 cat >>confdefs.h <<\_ACEOF
14535 #define HAVE_U_INT 1
14541 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14542 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14543 if test "${ac_cv_have_intmax_t+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 cat >conftest.$ac_ext <<_ACEOF
14548 #line $LINENO "configure"
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 #include <sys/types.h>
14563 rm -f conftest.$ac_objext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14565 (eval $ac_compile) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_have_intmax_t="yes"
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14581 cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #include <stdint.h>
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599 (eval $ac_compile) 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -s conftest.$ac_objext'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14609 ac_cv_have_intmax_t="yes"
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ac_cv_have_intmax_t="no"
14617 rm -f conftest.$ac_objext conftest.$ac_ext
14621 rm -f conftest.$ac_objext conftest.$ac_ext
14625 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14626 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14627 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14628 cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_INTMAX_T 1
14636 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14637 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14638 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 #include <sys/types.h>
14653 u_intmax_t a; a = 1;
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660 (eval $ac_compile) 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
14670 ac_cv_have_u_intmax_t="yes"
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14676 cat >conftest.$ac_ext <<_ACEOF
14677 #line $LINENO "configure"
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <stdint.h>
14687 u_intmax_t a; a = 1;
14692 rm -f conftest.$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694 (eval $ac_compile) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_have_u_intmax_t="yes"
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_have_u_intmax_t="no"
14712 rm -f conftest.$ac_objext conftest.$ac_ext
14716 rm -f conftest.$ac_objext conftest.$ac_ext
14719 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14720 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14721 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14722 cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_U_INTMAX_T 1
14730 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14731 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14732 if test "${ac_cv_have_intxx_t+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14737 #line $LINENO "configure"
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <sys/types.h>
14747 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14752 rm -f conftest.$ac_objext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_have_intxx_t="yes"
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_cv_have_intxx_t="no"
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14775 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14776 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14777 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14778 cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_INTXX_T 1
14785 echo "$as_me:$LINENO: checking for int64_t type" >&5
14786 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14787 if test "${ac_cv_have_int64_t+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 cat >conftest.$ac_ext <<_ACEOF
14792 #line $LINENO "configure"
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <sys/types.h>
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809 (eval $ac_compile) 2>&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
14813 { ac_try='test -s conftest.$ac_objext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_have_int64_t="yes"
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_have_int64_t="no"
14827 rm -f conftest.$ac_objext conftest.$ac_ext
14830 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14831 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14832 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_INT64_T 1
14840 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14841 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14842 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14857 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 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
14874 ac_cv_have_u_intxx_t="yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_have_u_intxx_t="no"
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14885 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14886 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14887 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_U_INTXX_T 1
14895 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14896 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14897 if test "${ac_cv_have_u_int64_t+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14912 u_int64_t a; a = 1;
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919 (eval $ac_compile) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_cv_have_u_int64_t="yes"
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_have_u_int64_t="no"
14937 rm -f conftest.$ac_objext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14941 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14942 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14943 cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_U_INT64_T 1
14950 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14951 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14953 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14954 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14962 #include <sys/bitypes.h>
14966 int8_t a; int16_t b; int32_t c;
14967 u_int8_t e; u_int16_t f; u_int32_t g;
14968 a = b = c = e = f = g = 1;
14973 rm -f conftest.$ac_objext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14975 (eval $ac_compile) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_U_INTXX_T 1
14989 cat >>confdefs.h <<\_ACEOF
14990 #define HAVE_INTXX_T 1
14993 cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_SYS_BITYPES_H 1
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 echo "$as_me:$LINENO: result: no" >&5
15004 echo "${ECHO_T}no" >&6
15007 rm -f conftest.$ac_objext conftest.$ac_ext
15010 if test -z "$have_u_intxx_t" ; then
15011 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15012 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15013 if test "${ac_cv_have_uintxx_t+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <sys/types.h>
15028 uint8_t a; uint16_t b;
15029 uint32_t c; a = b = c = 1;
15034 rm -f conftest.$ac_objext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15036 (eval $ac_compile) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -s conftest.$ac_objext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_cv_have_uintxx_t="yes"
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 ac_cv_have_uintxx_t="no"
15054 rm -f conftest.$ac_objext conftest.$ac_ext
15057 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15058 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15059 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15060 cat >>confdefs.h <<\_ACEOF
15061 #define HAVE_UINTXX_T 1
15067 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15068 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15070 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15071 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15072 cat >conftest.$ac_ext <<_ACEOF
15073 #line $LINENO "configure"
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 #include <sys/bitypes.h>
15083 int64_t a; u_int64_t b;
15089 rm -f conftest.$ac_objext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15091 (eval $ac_compile) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } &&
15095 { ac_try='test -s conftest.$ac_objext'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_U_INT64_T 1
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_INT64_T 1
15109 echo "$as_me:$LINENO: result: yes" >&5
15110 echo "${ECHO_T}yes" >&6
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 echo "$as_me:$LINENO: result: no" >&5
15116 echo "${ECHO_T}no" >&6
15119 rm -f conftest.$ac_objext conftest.$ac_ext
15122 if (test -z "$have_uintxx_t" && \
15123 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15125 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15126 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <sys/bitypes.h>
15138 uint8_t a; uint16_t b;
15139 uint32_t c; a = b = c = 1;
15144 rm -f conftest.$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 cat >>confdefs.h <<\_ACEOF
15157 #define HAVE_UINTXX_T 1
15160 echo "$as_me:$LINENO: result: yes" >&5
15161 echo "${ECHO_T}yes" >&6
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 echo "$as_me:$LINENO: result: no" >&5
15167 echo "${ECHO_T}no" >&6
15170 rm -f conftest.$ac_objext conftest.$ac_ext
15206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15207 echo "$as_me:$LINENO: checking for $ac_func" >&5
15208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15209 if eval "test \"\${$as_ac_var+set}\" = set"; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 cat >conftest.$ac_ext <<_ACEOF
15213 #line $LINENO "configure"
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 /* System header to define __stub macros and hopefully few prototypes,
15220 which can conflict with char $ac_func (); below.
15221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15222 <limits.h> exists even on freestanding compilers. */
15224 # include <limits.h>
15226 # include <assert.h>
15228 /* Override any gcc2 internal prototype to avoid an error. */
15233 /* We use char because int might match the return type of a gcc2
15234 builtin and then its argument prototype would still apply. */
15236 /* The GNU C library defines this for functions which it implements
15237 to always fail with ENOSYS. Some functions are actually named
15238 something starting with __ and the normal name is an alias. */
15239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15242 char (*f) () = $ac_func;
15251 return f != $ac_func;
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 eval "$as_ac_var=yes"
15270 echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 eval "$as_ac_var=no"
15275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15279 if test `eval echo '${'$as_ac_var'}'` = yes; then
15280 cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15285 echo 'configure: cannot find needed function.'; exit 1
15292 for ac_func in fchdir
15294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15295 echo "$as_me:$LINENO: checking for $ac_func" >&5
15296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15297 if eval "test \"\${$as_ac_var+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char $ac_func (); below.
15309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310 <limits.h> exists even on freestanding compilers. */
15312 # include <limits.h>
15314 # include <assert.h>
15316 /* Override any gcc2 internal prototype to avoid an error. */
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 char (*f) () = $ac_func;
15339 return f != $ac_func;
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -s conftest$ac_exeext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 eval "$as_ac_var=yes"
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 eval "$as_ac_var=no"
15363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15367 if test `eval echo '${'$as_ac_var'}'` = yes; then
15368 cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_FCHDIR 1
15379 for ac_func in strtoll
15381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 echo "$as_me:$LINENO: checking for $ac_func" >&5
15383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15384 if eval "test \"\${$as_ac_var+set}\" = set"; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15388 #line $LINENO "configure"
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 /* System header to define __stub macros and hopefully few prototypes,
15395 which can conflict with char $ac_func (); below.
15396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15397 <limits.h> exists even on freestanding compilers. */
15399 # include <limits.h>
15401 # include <assert.h>
15403 /* Override any gcc2 internal prototype to avoid an error. */
15408 /* We use char because int might match the return type of a gcc2
15409 builtin and then its argument prototype would still apply. */
15411 /* The GNU C library defines this for functions which it implements
15412 to always fail with ENOSYS. Some functions are actually named
15413 something starting with __ and the normal name is an alias. */
15414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15417 char (*f) () = $ac_func;
15426 return f != $ac_func;
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -s conftest$ac_exeext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 eval "$as_ac_var=yes"
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 eval "$as_ac_var=no"
15450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15454 if test `eval echo '${'$as_ac_var'}'` = yes; then
15455 cat >>confdefs.h <<_ACEOF
15456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15458 cat >>confdefs.h <<\_ACEOF
15459 #define HAVE_STRTOLL 1
15467 for ac_func in chflags
15469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470 echo "$as_me:$LINENO: checking for $ac_func" >&5
15471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_var+set}\" = set"; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15476 #line $LINENO "configure"
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 /* System header to define __stub macros and hopefully few prototypes,
15483 which can conflict with char $ac_func (); below.
15484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15485 <limits.h> exists even on freestanding compilers. */
15487 # include <limits.h>
15489 # include <assert.h>
15491 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15499 /* The GNU C library defines this for functions which it implements
15500 to always fail with ENOSYS. Some functions are actually named
15501 something starting with __ and the normal name is an alias. */
15502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15505 char (*f) () = $ac_func;
15514 return f != $ac_func;
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -s conftest$ac_exeext'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 eval "$as_ac_var=yes"
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 eval "$as_ac_var=no"
15538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15542 if test `eval echo '${'$as_ac_var'}'` = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15555 for ac_func in snprintf vsnprintf gethostid getdomainname
15557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15558 echo "$as_me:$LINENO: checking for $ac_func" >&5
15559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15560 if eval "test \"\${$as_ac_var+set}\" = set"; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 cat >conftest.$ac_ext <<_ACEOF
15564 #line $LINENO "configure"
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 /* System header to define __stub macros and hopefully few prototypes,
15571 which can conflict with char $ac_func (); below.
15572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15573 <limits.h> exists even on freestanding compilers. */
15575 # include <limits.h>
15577 # include <assert.h>
15579 /* Override any gcc2 internal prototype to avoid an error. */
15584 /* We use char because int might match the return type of a gcc2
15585 builtin and then its argument prototype would still apply. */
15587 /* The GNU C library defines this for functions which it implements
15588 to always fail with ENOSYS. Some functions are actually named
15589 something starting with __ and the normal name is an alias. */
15590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15593 char (*f) () = $ac_func;
15602 return f != $ac_func;
15607 rm -f conftest.$ac_objext conftest$ac_exeext
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 eval "$as_ac_var=yes"
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 eval "$as_ac_var=no"
15626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15630 if test `eval echo '${'$as_ac_var'}'` = yes; then
15631 cat >>confdefs.h <<_ACEOF
15632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15643 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15646 echo "$as_me:$LINENO: checking for $ac_func" >&5
15647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15648 if eval "test \"\${$as_ac_var+set}\" = set"; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 /* System header to define __stub macros and hopefully few prototypes,
15659 which can conflict with char $ac_func (); below.
15660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15661 <limits.h> exists even on freestanding compilers. */
15663 # include <limits.h>
15665 # include <assert.h>
15667 /* Override any gcc2 internal prototype to avoid an error. */
15672 /* We use char because int might match the return type of a gcc2
15673 builtin and then its argument prototype would still apply. */
15675 /* The GNU C library defines this for functions which it implements
15676 to always fail with ENOSYS. Some functions are actually named
15677 something starting with __ and the normal name is an alias. */
15678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15681 char (*f) () = $ac_func;
15690 return f != $ac_func;
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697 (eval $ac_link) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 eval "$as_ac_var=yes"
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 eval "$as_ac_var=no"
15714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15718 if test `eval echo '${'$as_ac_var'}'` = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 # If resolver functions are not in libc check for -lnsl or -lresolv.
15728 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15729 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15730 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 /* System header to define __stub macros and hopefully few prototypes,
15741 which can conflict with char gethostbyname_r (); below.
15742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15743 <limits.h> exists even on freestanding compilers. */
15745 # include <limits.h>
15747 # include <assert.h>
15749 /* Override any gcc2 internal prototype to avoid an error. */
15754 /* We use char because int might match the return type of a gcc2
15755 builtin and then its argument prototype would still apply. */
15756 char gethostbyname_r ();
15757 /* The GNU C library defines this for functions which it implements
15758 to always fail with ENOSYS. Some functions are actually named
15759 something starting with __ and the normal name is an alias. */
15760 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15763 char (*f) () = gethostbyname_r;
15772 return f != gethostbyname_r;
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779 (eval $ac_link) 2>&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -s conftest$ac_exeext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_cv_func_gethostbyname_r=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_cv_func_gethostbyname_r=no
15796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15800 if test $ac_cv_func_gethostbyname_r = yes; then
15801 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15802 echo "${ECHO_T}using libc's resolver" >&6
15805 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15808 echo $ECHO_N "(cached) $ECHO_C" >&6
15810 ac_check_lib_save_LIBS=$LIBS
15812 cat >conftest.$ac_ext <<_ACEOF
15813 #line $LINENO "configure"
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15820 /* Override any gcc2 internal prototype to avoid an error. */
15824 /* We use char because int might match the return type of a gcc2
15825 builtin and then its argument prototype would still apply. */
15826 char gethostbyname_r ();
15830 gethostbyname_r ();
15835 rm -f conftest.$ac_objext conftest$ac_exeext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15837 (eval $ac_link) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -s conftest$ac_exeext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_cv_lib_nsl_gethostbyname_r=yes
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_lib_nsl_gethostbyname_r=no
15854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15855 LIBS=$ac_check_lib_save_LIBS
15857 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15858 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15859 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define HAVE_LIBNSL 1
15869 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15870 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15871 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lresolv $LIBS"
15876 cat >conftest.$ac_ext <<_ACEOF
15877 #line $LINENO "configure"
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15884 /* Override any gcc2 internal prototype to avoid an error. */
15888 /* We use char because int might match the return type of a gcc2
15889 builtin and then its argument prototype would still apply. */
15890 char gethostbyname_r ();
15894 gethostbyname_r ();
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901 (eval $ac_link) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -s conftest$ac_exeext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_cv_lib_resolv_gethostbyname_r=yes
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15916 ac_cv_lib_resolv_gethostbyname_r=no
15918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15919 LIBS=$ac_check_lib_save_LIBS
15921 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15922 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15923 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15924 cat >>confdefs.h <<_ACEOF
15925 #define HAVE_LIBRESOLV 1
15928 LIBS="-lresolv $LIBS"
15936 # Find where sockets are (especially for Solaris)
15937 echo "$as_me:$LINENO: checking for socket" >&5
15938 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15939 if test "${ac_cv_func_socket+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 cat >conftest.$ac_ext <<_ACEOF
15943 #line $LINENO "configure"
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 /* System header to define __stub macros and hopefully few prototypes,
15950 which can conflict with char socket (); below.
15951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15952 <limits.h> exists even on freestanding compilers. */
15954 # include <limits.h>
15956 # include <assert.h>
15958 /* Override any gcc2 internal prototype to avoid an error. */
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15966 /* The GNU C library defines this for functions which it implements
15967 to always fail with ENOSYS. Some functions are actually named
15968 something starting with __ and the normal name is an alias. */
15969 #if defined (__stub_socket) || defined (__stub___socket)
15972 char (*f) () = socket;
15981 return f != socket;
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15988 (eval $ac_link) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_func_socket=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ac_cv_func_socket=no
16005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16007 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16008 echo "${ECHO_T}$ac_cv_func_socket" >&6
16009 if test $ac_cv_func_socket = yes; then
16010 echo "$as_me:$LINENO: result: using libc's socket" >&5
16011 echo "${ECHO_T}using libc's socket" >&6
16014 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16015 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16016 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 ac_check_lib_save_LIBS=$LIBS
16020 LIBS="-lxnet $LIBS"
16021 cat >conftest.$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16029 /* Override any gcc2 internal prototype to avoid an error. */
16033 /* We use char because int might match the return type of a gcc2
16034 builtin and then its argument prototype would still apply. */
16044 rm -f conftest.$ac_objext conftest$ac_exeext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16046 (eval $ac_link) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -s conftest$ac_exeext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 ac_cv_lib_xnet_socket=yes
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 ac_cv_lib_xnet_socket=no
16063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064 LIBS=$ac_check_lib_save_LIBS
16066 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16067 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16068 if test $ac_cv_lib_xnet_socket = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define HAVE_LIBXNET 1
16073 LIBS="-lxnet $LIBS"
16078 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16079 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16080 if test "${ac_cv_lib_socket_socket+set}" = set; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 ac_check_lib_save_LIBS=$LIBS
16084 LIBS="-lsocket $LIBS"
16085 cat >conftest.$ac_ext <<_ACEOF
16086 #line $LINENO "configure"
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16093 /* Override any gcc2 internal prototype to avoid an error. */
16097 /* We use char because int might match the return type of a gcc2
16098 builtin and then its argument prototype would still apply. */
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16110 (eval $ac_link) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -s conftest$ac_exeext'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_cv_lib_socket_socket=yes
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_cv_lib_socket_socket=no
16127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16130 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16131 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16132 if test $ac_cv_lib_socket_socket = yes; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_LIBSOCKET 1
16137 LIBS="-lsocket $LIBS"
16142 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16143 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16144 if test "${ac_cv_lib_inet_socket+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_check_lib_save_LIBS=$LIBS
16148 LIBS="-linet $LIBS"
16149 cat >conftest.$ac_ext <<_ACEOF
16150 #line $LINENO "configure"
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16157 /* Override any gcc2 internal prototype to avoid an error. */
16161 /* We use char because int might match the return type of a gcc2
16162 builtin and then its argument prototype would still apply. */
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -s conftest$ac_exeext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_cv_lib_inet_socket=yes
16186 echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16189 ac_cv_lib_inet_socket=no
16191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16192 LIBS=$ac_check_lib_save_LIBS
16194 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16195 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16196 if test $ac_cv_lib_inet_socket = yes; then
16197 cat >>confdefs.h <<_ACEOF
16198 #define HAVE_LIBINET 1
16201 LIBS="-linet $LIBS"
16209 for ac_func in inet_pton
16211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16212 echo "$as_me:$LINENO: checking for $ac_func" >&5
16213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16214 if eval "test \"\${$as_ac_var+set}\" = set"; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 cat >conftest.$ac_ext <<_ACEOF
16218 #line $LINENO "configure"
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 /* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func (); below.
16226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227 <limits.h> exists even on freestanding compilers. */
16229 # include <limits.h>
16231 # include <assert.h>
16233 /* Override any gcc2 internal prototype to avoid an error. */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16241 /* The GNU C library defines this for functions which it implements
16242 to always fail with ENOSYS. Some functions are actually named
16243 something starting with __ and the normal name is an alias. */
16244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16247 char (*f) () = $ac_func;
16256 return f != $ac_func;
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -s conftest$ac_exeext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 eval "$as_ac_var=yes"
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 eval "$as_ac_var=no"
16280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16284 if test `eval echo '${'$as_ac_var'}'` = yes; then
16285 cat >>confdefs.h <<_ACEOF
16286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_INET_PTON 1
16297 for ac_func in strftime
16299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16300 echo "$as_me:$LINENO: checking for $ac_func" >&5
16301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16302 if eval "test \"\${$as_ac_var+set}\" = set"; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 cat >conftest.$ac_ext <<_ACEOF
16306 #line $LINENO "configure"
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 /* System header to define __stub macros and hopefully few prototypes,
16313 which can conflict with char $ac_func (); below.
16314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16315 <limits.h> exists even on freestanding compilers. */
16317 # include <limits.h>
16319 # include <assert.h>
16321 /* Override any gcc2 internal prototype to avoid an error. */
16326 /* We use char because int might match the return type of a gcc2
16327 builtin and then its argument prototype would still apply. */
16329 /* The GNU C library defines this for functions which it implements
16330 to always fail with ENOSYS. Some functions are actually named
16331 something starting with __ and the normal name is an alias. */
16332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16335 char (*f) () = $ac_func;
16344 return f != $ac_func;
16349 rm -f conftest.$ac_objext conftest$ac_exeext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16351 (eval $ac_link) 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16361 eval "$as_ac_var=yes"
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 eval "$as_ac_var=no"
16368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16372 if test `eval echo '${'$as_ac_var'}'` = yes; then
16373 cat >>confdefs.h <<_ACEOF
16374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16378 # strftime is in -lintl on SCO UNIX.
16379 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16380 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16381 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16384 ac_check_lib_save_LIBS=$LIBS
16385 LIBS="-lintl $LIBS"
16386 cat >conftest.$ac_ext <<_ACEOF
16387 #line $LINENO "configure"
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16394 /* Override any gcc2 internal prototype to avoid an error. */
16398 /* We use char because int might match the return type of a gcc2
16399 builtin and then its argument prototype would still apply. */
16409 rm -f conftest.$ac_objext conftest$ac_exeext
16410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16411 (eval $ac_link) 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -s conftest$ac_exeext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_lib_intl_strftime=yes
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_cv_lib_intl_strftime=no
16428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16432 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16433 if test $ac_cv_lib_intl_strftime = yes; then
16434 cat >>confdefs.h <<\_ACEOF
16435 #define HAVE_STRFTIME 1
16438 LIBS="-lintl $LIBS"
16445 for ac_func in vprintf
16447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16448 echo "$as_me:$LINENO: checking for $ac_func" >&5
16449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16450 if eval "test \"\${$as_ac_var+set}\" = set"; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 cat >conftest.$ac_ext <<_ACEOF
16454 #line $LINENO "configure"
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h. */
16460 /* System header to define __stub macros and hopefully few prototypes,
16461 which can conflict with char $ac_func (); below.
16462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463 <limits.h> exists even on freestanding compilers. */
16465 # include <limits.h>
16467 # include <assert.h>
16469 /* Override any gcc2 internal prototype to avoid an error. */
16474 /* We use char because int might match the return type of a gcc2
16475 builtin and then its argument prototype would still apply. */
16477 /* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16483 char (*f) () = $ac_func;
16492 return f != $ac_func;
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); } &&
16503 { ac_try='test -s conftest$ac_exeext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 eval "$as_ac_var=yes"
16511 echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16514 eval "$as_ac_var=no"
16516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16525 echo "$as_me:$LINENO: checking for _doprnt" >&5
16526 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16527 if test "${ac_cv_func__doprnt+set}" = set; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 cat >conftest.$ac_ext <<_ACEOF
16531 #line $LINENO "configure"
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char _doprnt (); below.
16539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540 <limits.h> exists even on freestanding compilers. */
16542 # include <limits.h>
16544 # include <assert.h>
16546 /* Override any gcc2 internal prototype to avoid an error. */
16551 /* We use char because int might match the return type of a gcc2
16552 builtin and then its argument prototype would still apply. */
16554 /* The GNU C library defines this for functions which it implements
16555 to always fail with ENOSYS. Some functions are actually named
16556 something starting with __ and the normal name is an alias. */
16557 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16560 char (*f) () = _doprnt;
16569 return f != _doprnt;
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576 (eval $ac_link) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_func__doprnt=yes
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_func__doprnt=no
16593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16595 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16596 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16597 if test $ac_cv_func__doprnt = yes; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_DOPRNT 1
16609 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16610 # for constant arguments. Useless!
16611 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16612 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16613 if test "${ac_cv_working_alloca_h+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 #include <alloca.h>
16627 char *p = (char *) alloca (2 * sizeof (int));
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634 (eval $ac_link) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -s conftest$ac_exeext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_working_alloca_h=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_working_alloca_h=no
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16655 if test $ac_cv_working_alloca_h = yes; then
16657 cat >>confdefs.h <<\_ACEOF
16658 #define HAVE_ALLOCA_H 1
16663 echo "$as_me:$LINENO: checking for alloca" >&5
16664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16665 if test "${ac_cv_func_alloca_works+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 cat >conftest.$ac_ext <<_ACEOF
16669 #line $LINENO "configure"
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16676 # define alloca __builtin_alloca
16679 # include <malloc.h>
16680 # define alloca _alloca
16683 # include <alloca.h>
16688 # ifndef alloca /* predefined by HP cc +Olibcalls */
16699 char *p = (char *) alloca (1);
16704 rm -f conftest.$ac_objext conftest$ac_exeext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16706 (eval $ac_link) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -s conftest$ac_exeext'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_func_alloca_works=yes
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_cv_func_alloca_works=no
16723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16725 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16726 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16728 if test $ac_cv_func_alloca_works = yes; then
16730 cat >>confdefs.h <<\_ACEOF
16731 #define HAVE_ALLOCA 1
16735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16736 # that cause trouble. Some versions do not even contain alloca or
16737 # contain a buggy version. If you still want to use their alloca,
16738 # use ar to extract alloca.o from them instead of compiling alloca.c.
16740 ALLOCA=alloca.$ac_objext
16742 cat >>confdefs.h <<\_ACEOF
16747 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16748 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16749 if test "${ac_cv_os_cray+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 #if defined(CRAY) && ! defined(CRAY2)
16766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16767 $EGREP "webecray" >/dev/null 2>&1; then
16775 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16776 echo "${ECHO_T}$ac_cv_os_cray" >&6
16777 if test $ac_cv_os_cray = yes; then
16778 for ac_func in _getb67 GETB67 getb67; do
16779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16780 echo "$as_me:$LINENO: checking for $ac_func" >&5
16781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16782 if eval "test \"\${$as_ac_var+set}\" = set"; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 cat >conftest.$ac_ext <<_ACEOF
16786 #line $LINENO "configure"
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16797 # include <limits.h>
16799 # include <assert.h>
16801 /* Override any gcc2 internal prototype to avoid an error. */
16806 /* We use char because int might match the return type of a gcc2
16807 builtin and then its argument prototype would still apply. */
16809 /* The GNU C library defines this for functions which it implements
16810 to always fail with ENOSYS. Some functions are actually named
16811 something starting with __ and the normal name is an alias. */
16812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16815 char (*f) () = $ac_func;
16824 return f != $ac_func;
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 eval "$as_ac_var=yes"
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 eval "$as_ac_var=no"
16848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16852 if test `eval echo '${'$as_ac_var'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define CRAY_STACKSEG_END $ac_func
16864 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16865 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16866 if test "${ac_cv_c_stack_direction+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16869 if test "$cross_compiling" = yes; then
16870 ac_cv_c_stack_direction=0
16872 cat >conftest.$ac_ext <<_ACEOF
16873 #line $LINENO "configure"
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16880 find_stack_direction ()
16882 static char *addr = 0;
16887 return find_stack_direction ();
16890 return (&dummy > addr) ? 1 : -1;
16896 exit (find_stack_direction () < 0);
16899 rm -f conftest$ac_exeext
16900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901 (eval $ac_link) 2>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_cv_c_stack_direction=1
16912 echo "$as_me: program exited with status $ac_status" >&5
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ( exit $ac_status )
16917 ac_cv_c_stack_direction=-1
16919 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16922 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16923 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16925 cat >>confdefs.h <<_ACEOF
16926 #define STACK_DIRECTION $ac_cv_c_stack_direction
16932 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16933 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16934 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16935 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 ac_check_lib_save_LIBS=$LIBS
16940 cat >conftest.$ac_ext <<_ACEOF
16941 #line $LINENO "configure"
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16948 /* Override any gcc2 internal prototype to avoid an error. */
16952 /* We use char because int might match the return type of a gcc2
16953 builtin and then its argument prototype would still apply. */
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try='test -s conftest$ac_exeext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_lib_sun_getmntent=yes
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_lib_sun_getmntent=no
16982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16983 LIBS=$ac_check_lib_save_LIBS
16985 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16986 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16987 if test $ac_cv_lib_sun_getmntent = yes; then
16990 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16991 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16992 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 ac_check_lib_save_LIBS=$LIBS
16997 cat >conftest.$ac_ext <<_ACEOF
16998 #line $LINENO "configure"
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17005 /* Override any gcc2 internal prototype to avoid an error. */
17009 /* We use char because int might match the return type of a gcc2
17010 builtin and then its argument prototype would still apply. */
17020 rm -f conftest.$ac_objext conftest$ac_exeext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022 (eval $ac_link) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_lib_seq_getmntent=yes
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 ac_cv_lib_seq_getmntent=no
17039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17040 LIBS=$ac_check_lib_save_LIBS
17042 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17043 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17044 if test $ac_cv_lib_seq_getmntent = yes; then
17047 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17048 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17049 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 ac_check_lib_save_LIBS=$LIBS
17054 cat >conftest.$ac_ext <<_ACEOF
17055 #line $LINENO "configure"
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17062 /* Override any gcc2 internal prototype to avoid an error. */
17066 /* We use char because int might match the return type of a gcc2
17067 builtin and then its argument prototype would still apply. */
17077 rm -f conftest.$ac_objext conftest$ac_exeext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079 (eval $ac_link) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } &&
17083 { ac_try='test -s conftest$ac_exeext'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
17089 ac_cv_lib_gen_getmntent=yes
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_lib_gen_getmntent=no
17096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17097 LIBS=$ac_check_lib_save_LIBS
17099 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17100 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17101 if test $ac_cv_lib_gen_getmntent = yes; then
17110 for ac_func in getmntent
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17115 if eval "test \"\${$as_ac_var+set}\" = set"; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 /* System header to define __stub macros and hopefully few prototypes,
17126 which can conflict with char $ac_func (); below.
17127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128 <limits.h> exists even on freestanding compilers. */
17130 # include <limits.h>
17132 # include <assert.h>
17134 /* Override any gcc2 internal prototype to avoid an error. */
17139 /* We use char because int might match the return type of a gcc2
17140 builtin and then its argument prototype would still apply. */
17142 /* The GNU C library defines this for functions which it implements
17143 to always fail with ENOSYS. Some functions are actually named
17144 something starting with __ and the normal name is an alias. */
17145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17148 char (*f) () = $ac_func;
17157 return f != $ac_func;
17162 rm -f conftest.$ac_objext conftest$ac_exeext
17163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17164 (eval $ac_link) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 eval "$as_ac_var=yes"
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 eval "$as_ac_var=no"
17181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17185 if test `eval echo '${'$as_ac_var'}'` = yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17194 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17195 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17196 if test "${ac_cv_func_closedir_void+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 if test "$cross_compiling" = yes; then
17200 ac_cv_func_closedir_void=yes
17202 cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 $ac_includes_default
17210 #include <$ac_header_dirent>
17211 #ifndef __cplusplus
17218 exit (closedir (opendir (".")) != 0);
17223 rm -f conftest$ac_exeext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225 (eval $ac_link) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_func_closedir_void=no
17236 echo "$as_me: program exited with status $ac_status" >&5
17237 echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17240 ( exit $ac_status )
17241 ac_cv_func_closedir_void=yes
17243 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17246 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17247 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17248 if test $ac_cv_func_closedir_void = yes; then
17250 cat >>confdefs.h <<\_ACEOF
17251 #define CLOSEDIR_VOID 1
17256 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17257 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17258 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 if test "$cross_compiling" = yes; then
17262 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17263 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17264 { (exit 1); exit 1; }; }
17266 cat >conftest.$ac_ext <<_ACEOF
17267 #line $LINENO "configure"
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17274 # include <unistd.h>
17280 /* If this system has a BSD-style setpgrp which takes arguments,
17281 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17282 exit successfully. */
17283 exit (setpgrp (1,1) == -1 ? 0 : 1);
17288 rm -f conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290 (eval $ac_link) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_func_setpgrp_void=no
17301 echo "$as_me: program exited with status $ac_status" >&5
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 ( exit $ac_status )
17306 ac_cv_func_setpgrp_void=yes
17308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17311 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17312 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17313 if test $ac_cv_func_setpgrp_void = yes; then
17315 cat >>confdefs.h <<\_ACEOF
17316 #define SETPGRP_VOID 1
17320 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17321 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17322 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 # Some versions of Solaris, SCO, and the GNU C Library
17326 # have a broken or incompatible fnmatch.
17327 # So we run a test program. If we are cross-compiling, take no chance.
17328 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17329 if test "$cross_compiling" = yes; then
17330 ac_cv_func_fnmatch_works=cross
17332 cat >conftest.$ac_ext <<_ACEOF
17333 #line $LINENO "configure"
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339 #include <fnmatch.h>
17340 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17341 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17347 (!(y ("a*", "abc", 0)
17348 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17349 && y ("a\\\\bc", "abc", 0)
17350 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17351 && y ("*x", ".x", 0)
17352 && n ("*x", ".x", FNM_PERIOD)
17358 rm -f conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360 (eval $ac_link) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_func_fnmatch_works=yes
17371 echo "$as_me: program exited with status $ac_status" >&5
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ( exit $ac_status )
17376 ac_cv_func_fnmatch_works=no
17378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17381 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17382 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17383 if test $ac_cv_func_fnmatch_works = yes; then
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_FNMATCH 1
17395 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17396 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17397 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 ac_check_lib_save_LIBS=$LIBS
17401 LIBS="-lxpg4 $LIBS"
17402 cat >conftest.$ac_ext <<_ACEOF
17403 #line $LINENO "configure"
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 /* Override any gcc2 internal prototype to avoid an error. */
17414 /* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17425 rm -f conftest.$ac_objext conftest$ac_exeext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17427 (eval $ac_link) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -s conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_xpg4_setlocale=yes
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17442 ac_cv_lib_xpg4_setlocale=no
17444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17445 LIBS=$ac_check_lib_save_LIBS
17447 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17448 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17449 if test $ac_cv_lib_xpg4_setlocale = yes; then
17450 LIBS="$LIBS -lxpg4"
17456 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17457 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17458 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 ac_check_lib_save_LIBS=$LIBS
17463 cat >conftest.$ac_ext <<_ACEOF
17464 #line $LINENO "configure"
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17471 /* Override any gcc2 internal prototype to avoid an error. */
17475 /* We use char because int might match the return type of a gcc2
17476 builtin and then its argument prototype would still apply. */
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17488 (eval $ac_link) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } &&
17492 { ac_try='test -s conftest$ac_exeext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_cv_lib_sun_getpwnam=yes
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 ac_cv_lib_sun_getpwnam=no
17505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17506 LIBS=$ac_check_lib_save_LIBS
17508 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17509 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17510 if test $ac_cv_lib_sun_getpwnam = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define HAVE_LIBSUN 1
17521 for ac_header in zlib.h
17523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17525 echo "$as_me:$LINENO: checking for $ac_header" >&5
17526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17533 # Is the header compilable?
17534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17537 #line $LINENO "configure"
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17543 $ac_includes_default
17544 #include <$ac_header>
17546 rm -f conftest.$ac_objext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548 (eval $ac_compile) 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -s conftest.$ac_objext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_header_compiler=yes
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_header_compiler=no
17565 rm -f conftest.$ac_objext conftest.$ac_ext
17566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17567 echo "${ECHO_T}$ac_header_compiler" >&6
17569 # Is the header present?
17570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17572 cat >conftest.$ac_ext <<_ACEOF
17573 #line $LINENO "configure"
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <$ac_header>
17581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17584 grep -v '^ *+' conftest.er1 >conftest.err
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } >/dev/null; then
17589 if test -s conftest.err; then
17590 ac_cpp_err=$ac_c_preproc_warn_flag
17597 if test -z "$ac_cpp_err"; then
17598 ac_header_preproc=yes
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_header_preproc=no
17605 rm -f conftest.err conftest.$ac_ext
17606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17607 echo "${ECHO_T}$ac_header_preproc" >&6
17609 # So? What about this header?
17610 case $ac_header_compiler:$ac_header_preproc in
17612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17618 ## ------------------------------------ ##
17619 ## Report this to bug-autoconf@gnu.org. ##
17620 ## ------------------------------------ ##
17623 sed "s/^/$as_me: WARNING: /" >&2
17626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17634 ## ------------------------------------ ##
17635 ## Report this to bug-autoconf@gnu.org. ##
17636 ## ------------------------------------ ##
17639 sed "s/^/$as_me: WARNING: /" >&2
17642 echo "$as_me:$LINENO: checking for $ac_header" >&5
17643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17647 eval "$as_ac_Header=$ac_header_preproc"
17649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17662 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17663 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17664 if test "${ac_cv_lib_z_deflate+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 ac_check_lib_save_LIBS=$LIBS
17669 cat >conftest.$ac_ext <<_ACEOF
17670 #line $LINENO "configure"
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17677 /* Override any gcc2 internal prototype to avoid an error. */
17681 /* We use char because int might match the return type of a gcc2
17682 builtin and then its argument prototype would still apply. */
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694 (eval $ac_link) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -s conftest$ac_exeext'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 ac_cv_lib_z_deflate=yes
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 ac_cv_lib_z_deflate=no
17711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17712 LIBS=$ac_check_lib_save_LIBS
17714 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17715 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17716 if test $ac_cv_lib_z_deflate = yes; then
17721 if test x$FDLIBS = x-lz; then
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_LIBZ 1
17729 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17730 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17731 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17732 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17736 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17738 # Is the header compilable?
17739 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17740 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17741 cat >conftest.$ac_ext <<_ACEOF
17742 #line $LINENO "configure"
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 #include <sys/acl.h>
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753 (eval $ac_compile) 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -s conftest.$ac_objext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_header_compiler=yes
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 ac_header_compiler=no
17770 rm -f conftest.$ac_objext conftest.$ac_ext
17771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17772 echo "${ECHO_T}$ac_header_compiler" >&6
17774 # Is the header present?
17775 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17776 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17777 cat >conftest.$ac_ext <<_ACEOF
17778 #line $LINENO "configure"
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 #include <sys/acl.h>
17786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } >/dev/null; then
17794 if test -s conftest.err; then
17795 ac_cpp_err=$ac_c_preproc_warn_flag
17802 if test -z "$ac_cpp_err"; then
17803 ac_header_preproc=yes
17805 echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17808 ac_header_preproc=no
17810 rm -f conftest.err conftest.$ac_ext
17811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17812 echo "${ECHO_T}$ac_header_preproc" >&6
17814 # So? What about this header?
17815 case $ac_header_compiler:$ac_header_preproc in
17817 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17818 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17819 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17820 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17823 ## ------------------------------------ ##
17824 ## Report this to bug-autoconf@gnu.org. ##
17825 ## ------------------------------------ ##
17828 sed "s/^/$as_me: WARNING: /" >&2
17831 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17832 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17833 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17834 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17835 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17836 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17839 ## ------------------------------------ ##
17840 ## Report this to bug-autoconf@gnu.org. ##
17841 ## ------------------------------------ ##
17844 sed "s/^/$as_me: WARNING: /" >&2
17847 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17848 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17849 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 ac_cv_header_sys_acl_h=$ac_header_preproc
17854 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17855 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17860 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17861 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17862 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 ac_check_lib_save_LIBS=$LIBS
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 /* Override any gcc2 internal prototype to avoid an error. */
17879 /* We use char because int might match the return type of a gcc2
17880 builtin and then its argument prototype would still apply. */
17881 char acl_get_file ();
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892 (eval $ac_link) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_lib_acl_acl_get_file=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_lib_acl_acl_get_file=no
17909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17913 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17914 if test $ac_cv_lib_acl_acl_get_file = yes; then
17915 FDLIBS="-lacl $FDLIBS"
17919 if test $ac_cv_lib_acl_acl_get_file = yes; then
17920 cat >>confdefs.h <<\_ACEOF
17928 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17929 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17930 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 ac_check_lib_save_LIBS=$LIBS
17934 LIBS="-lpthread $LIBS"
17935 cat >conftest.$ac_ext <<_ACEOF
17936 #line $LINENO "configure"
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h. */
17943 /* Override any gcc2 internal prototype to avoid an error. */
17947 /* We use char because int might match the return type of a gcc2
17948 builtin and then its argument prototype would still apply. */
17949 char pthread_create ();
17958 rm -f conftest.$ac_objext conftest$ac_exeext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960 (eval $ac_link) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -s conftest$ac_exeext'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_cv_lib_pthread_pthread_create=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_cv_lib_pthread_pthread_create=no
17977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17980 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17981 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17982 if test $ac_cv_lib_pthread_pthread_create = yes; then
17983 PTHREAD_LIB="-lpthread"
17985 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17986 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17987 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 ac_check_lib_save_LIBS=$LIBS
17991 LIBS="-lpthreads $LIBS"
17992 cat >conftest.$ac_ext <<_ACEOF
17993 #line $LINENO "configure"
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
18000 /* Override any gcc2 internal prototype to avoid an error. */
18004 /* We use char because int might match the return type of a gcc2
18005 builtin and then its argument prototype would still apply. */
18006 char pthread_create ();
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017 (eval $ac_link) 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -s conftest$ac_exeext'
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_cv_lib_pthreads_pthread_create=yes
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_cv_lib_pthreads_pthread_create=no
18034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18037 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18038 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18039 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18040 PTHREAD_LIB="-lpthreads"
18042 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18043 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18044 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 ac_check_lib_save_LIBS=$LIBS
18049 cat >conftest.$ac_ext <<_ACEOF
18050 #line $LINENO "configure"
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18057 /* Override any gcc2 internal prototype to avoid an error. */
18061 /* We use char because int might match the return type of a gcc2
18062 builtin and then its argument prototype would still apply. */
18063 char pthread_create ();
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074 (eval $ac_link) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
18078 { ac_try='test -s conftest$ac_exeext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_cv_lib_c_r_pthread_create=yes
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 ac_cv_lib_c_r_pthread_create=no
18091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18092 LIBS=$ac_check_lib_save_LIBS
18094 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18095 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18096 if test $ac_cv_lib_c_r_pthread_create = yes; then
18097 PTHREAD_LIB="-lc_r"
18099 echo "$as_me:$LINENO: checking for pthread_create" >&5
18100 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18101 if test "${ac_cv_func_pthread_create+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 cat >conftest.$ac_ext <<_ACEOF
18105 #line $LINENO "configure"
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 /* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char pthread_create (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18116 # include <limits.h>
18118 # include <assert.h>
18120 /* Override any gcc2 internal prototype to avoid an error. */
18125 /* We use char because int might match the return type of a gcc2
18126 builtin and then its argument prototype would still apply. */
18127 char pthread_create ();
18128 /* The GNU C library defines this for functions which it implements
18129 to always fail with ENOSYS. Some functions are actually named
18130 something starting with __ and the normal name is an alias. */
18131 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18134 char (*f) () = pthread_create;
18143 return f != pthread_create;
18148 rm -f conftest.$ac_objext conftest$ac_exeext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18150 (eval $ac_link) 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -s conftest$ac_exeext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_cv_func_pthread_create=yes
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_cv_func_pthread_create=no
18167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18169 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18170 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18183 cat >>confdefs.h <<\_ACEOF
18189 CFLAGS=${CFLAGS--O}
18190 LDFLAGS=${LDFLAGS--O}
18191 DB_LIBS="${SQL_LFLAGS}"
18193 CPPFLAGS="$CPPFLAGS"
18218 # Finally we set appropriate distribution specific
18219 # variables and defaults
18221 # PFILES are platform specific files
18222 PFILES="platforms/Makefile"
18226 hostname=`uname -n | cut -d '.' -f 1`
18227 case "$DISTNAME" in
18230 PSCMD="ps -e -o pid,comm"
18231 PFILES="${PFILES} \
18232 platforms/aix/Makefile"
18233 TAPEDRIVE="/dev/rmt0.1"
18237 PTHREAD_LIB="-lpthread -lexc"
18238 if test "${CC}" = "gcc" ; then
18245 TAPEDRIVE="/dev/nrmt0"
18248 DISTVER=`uname -a |awk '{print $3}'`
18249 TAPEDRIVE="/dev/nrmt0"
18250 PTHREAD_LIB="-pthread"
18251 CFLAGS="${CFLAGS} -pthread"
18252 PSCMD="ps -x -o pid,command"
18255 PFILES="${PFILES} \
18256 platforms/bsdi/Makefile \
18257 platforms/bsdi/bacula-fd \
18258 platforms/bsdi/bacula-sd \
18259 platforms/bsdi/bacula-dir"
18260 largefile_support="yes"
18263 DISTVER=`uname -a |awk '{print $3}'`
18264 TAPEDRIVE="/dev/nrst0"
18266 WCFLAGS="-mwindows"
18267 WLDFLAGS="-mwindows"
18271 TAPEDRIVE="/dev/nst0"
18272 PSCMD="ps -e -o pid,command"
18274 PFILES="${PFILES} \
18275 platforms/darwin/Makefile"
18278 DISTVER=`cat /etc/debian_version`
18279 TAPEDRIVE="/dev/nrst0"
18280 PSCMD="ps -e -o pid,command"
18283 DISTVER=`uname -a |awk '{print $3}'`
18284 VER=`echo $DISTVER | cut -c 1`
18285 if test x$VER = x4 ; then
18286 PTHREAD_LIB="-pthread"
18287 CFLAGS="${CFLAGS} -pthread"
18291 TAPEDRIVE="/dev/nrsa0"
18292 PSCMD="ps -x -o pid,command"
18293 PFILES="${PFILES} \
18294 platforms/freebsd/Makefile \
18295 platforms/freebsd/bacula-fd \
18296 platforms/freebsd/bacula-sd \
18297 platforms/freebsd/bacula-dir"
18298 largefile_support="yes"
18301 PSCMD="UNIX95=1 ps -e -o pid,comm"
18302 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18304 TAPEDRIVE="/dev/rmt/0hnb"
18308 TAPEDRIVE="/dev/rmt/0cbn"
18309 PSCMD="ps -e -o pid,comm"
18310 PFILES="${PFILES} \
18311 platforms/irix/Makefile \
18312 platforms/irix/bacula-fd \
18313 platforms/irix/bacula-sd \
18314 platforms/irix/bacula-dir"
18317 DISTVER=`uname -a |awk '{print $3}'`
18320 TAPEDRIVE="/dev/nrst0"
18321 PSCMD="ps -a -o pid,command"
18322 PTHREAD_LIB="-pthread"
18323 CFLAGS="${CFLAGS} -pthread"
18326 DISTVER=`uname -a |awk '{print $3}'`
18329 TAPEDRIVE="/dev/nrst0"
18330 PSCMD="ps -a -o pid,command"
18331 PTHREAD_LIB="-pthread"
18332 CFLAGS="${CFLAGS} -pthread"
18333 PFILES="${PFILES} \
18334 platforms/openbsd/Makefile \
18335 platforms/openbsd/bacula-fd \
18336 platforms/openbsd/bacula-sd \
18337 platforms/openbsd/bacula-dir"
18340 if test -f /etc/whitebox-release ; then
18341 f=/etc/whitebox-release
18343 f=/etc/redhat-release
18345 if test `cat $f | grep release |\
18346 cut -f 3 -d ' '`x = "Enterprise"x ; then
18347 DISTVER="Enterprise "`cat $f | grep release |\
18350 DISTVER=`cat /etc/redhat-release | grep release |\
18353 TAPEDRIVE="/dev/nst0"
18354 PSCMD="ps -e -o pid,command"
18355 PFILES="${PFILES} \
18356 platforms/redhat/Makefile \
18357 platforms/redhat/bacula-fd \
18358 platforms/redhat/bacula-sd \
18359 platforms/redhat/bacula-dir \
18360 platforms/redhat/bacula.spec \
18362 hostname=`hostname -s`
18365 DISTVER=`cat /etc/mandrake-release | grep release |\
18367 TAPEDRIVE="/dev/nst0"
18368 PSCMD="ps -e -o pid,command"
18369 PFILES="${PFILES} \
18370 platforms/mandrake/Makefile \
18371 platforms/mandrake/bacula-fd \
18372 platforms/mandrake/bacula-sd \
18373 platforms/mandrake/bacula-dir \
18374 platforms/mandrake/bacula.spec \
18378 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18379 TAPEDRIVE="/dev/nst0"
18380 PSCMD="ps -e -o pid,command"
18381 PFILES="${PFILES} \
18382 platforms/gentoo/Makefile \
18383 platforms/gentoo/bacula-fd \
18384 platforms/gentoo/bacula-sd \
18385 platforms/gentoo/bacula-dir"
18388 DISTVER=`cat /etc/slackware-version`
18389 TAPEDRIVE="/dev/nst0"
18390 PSCMD="ps -e -o pid,command"
18391 PFILES="${PFILES} \
18392 platforms/slackware/Makefile \
18393 platforms/slackware/rc.bacula-fd \
18394 platforms/slackware/rc.bacula-sd \
18395 platforms/slackware/rc.bacula-dir\
18396 platforms/slackware/functions.bacula"
18400 TAPEDRIVE="/dev/rmt/0cbn"
18401 PSCMD="ps -e -o pid,comm"
18402 PFILES="${PFILES} \
18403 platforms/solaris/Makefile \
18404 platforms/solaris/bacula-fd \
18405 platforms/solaris/bacula-sd \
18406 platforms/solaris/bacula-dir"
18407 if test x$DISTVER = x5.6 ; then
18408 cat >>confdefs.h <<\_ACEOF
18409 #define HAVE_OLD_SOCKOPT 1
18415 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18417 TAPEDRIVE="/dev/nst0"
18418 PSCMD="ps -e -o pid,command"
18419 PFILES="${PFILES} \
18420 platforms/suse/Makefile \
18421 platforms/suse/bacula-fd \
18422 platforms/suse/bacula-sd \
18423 platforms/suse/bacula-dir \
18424 platforms/suse/bacula \
18425 platforms/suse/bacula.spec"
18430 TAPEDRIVE="/dev/nst0"
18431 PSCMD="ps -e -o pid,command"
18432 PFILES="${PFILES} \
18433 platforms/suse/Makefile \
18434 platforms/suse/bacula-fd \
18435 platforms/suse/bacula-sd \
18436 platforms/suse/bacula-dir"
18440 TAPEDRIVE="/dev/nst0"
18443 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18449 LIBS="$PTHREAD_LIB $LIBS"
18451 cat >>confdefs.h <<_ACEOF
18455 cat >>confdefs.h <<_ACEOF
18466 MCOMMON=./autoconf/Make.common
18469 if test "x${subsysdir}" = "x${sbindir}" ; then
18472 echo "You have set both --sbindir and --with-subsys-dir"
18473 echo " equal to: ${subsysdir} "
18474 echo "This is not permitted. Please reconfigure."
18476 echo "Aborting configuration ..."
18482 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18483 ac_config_commands="$ac_config_commands default"
18484 cat >confcache <<\_ACEOF
18485 # This file is a shell script that caches the results of configure
18486 # tests run on this system so they can be shared between configure
18487 # scripts and configure runs, see configure's option --config-cache.
18488 # It is not useful on other systems. If it contains results you don't
18489 # want to keep, you may remove or edit it.
18491 # config.status only pays attention to the cache file if you give it
18492 # the --recheck option to rerun configure.
18494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18496 # following values.
18500 # The following way of writing the cache mishandles newlines in values,
18501 # but we know of no workaround that is simple, portable, and efficient.
18502 # So, don't put newlines in cache variables' values.
18503 # Ultrix sh set writes to stderr and can't be redirected directly,
18504 # and sets the high bit in the cache file unless we assign to the vars.
18507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18509 # `set' does not quote correctly, so add quotes (double-quote
18510 # substitution turns \\\\ into \\, and sed turns \\ into \).
18513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18516 # `set' quotes correctly as required by POSIX, so do not add quotes.
18518 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18527 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18529 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18530 if test -w $cache_file; then
18531 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18532 cat confcache >$cache_file
18534 echo "not updating unwritable cache $cache_file"
18539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18540 # Let make expand exec_prefix.
18541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18545 # trailing colons and then remove the whole line if VPATH becomes empty
18546 # (actually we leave an empty line to preserve line numbers).
18547 if test "x$srcdir" = x.; then
18548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18549 s/:*\$(srcdir):*/:/;
18550 s/:*\${srcdir}:*/:/;
18552 s/^\([^=]*=[ ]*\):*/\1/;
18558 DEFS=-DHAVE_CONFIG_H
18562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18563 # 1. Remove the extension, and $U if already installed.
18564 ac_i=`echo "$ac_i" |
18565 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18567 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18568 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18570 LIBOBJS=$ac_libobjs
18572 LTLIBOBJS=$ac_ltlibobjs
18576 : ${CONFIG_STATUS=./config.status}
18577 ac_clean_files_save=$ac_clean_files
18578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18581 cat >$CONFIG_STATUS <<_ACEOF
18583 # Generated by $as_me.
18584 # Run this file to recreate the current configuration.
18585 # Compiler output produced by configure, useful for debugging
18586 # configure, is in config.log if it exists.
18589 ac_cs_recheck=false
18591 SHELL=\${CONFIG_SHELL-$SHELL}
18594 cat >>$CONFIG_STATUS <<\_ACEOF
18595 ## --------------------- ##
18596 ## M4sh Initialization. ##
18597 ## --------------------- ##
18599 # Be Bourne compatible
18600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18604 # is contrary to our usage. Disable this feature.
18605 alias -g '${1+"$@"}'='"$@"'
18606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18610 # Support unset when possible.
18611 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18618 # Work around bugs in pre-3.0 UWIN ksh.
18619 $as_unset ENV MAIL MAILPATH
18626 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18627 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18628 LC_TELEPHONE LC_TIME
18630 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18631 eval $as_var=C; export $as_var
18637 # Required to use basename.
18638 if expr a : '\(a\)' >/dev/null 2>&1; then
18644 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18645 as_basename=basename
18651 # Name of the executable.
18652 as_me=`$as_basename "$0" ||
18653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18654 X"$0" : 'X\(//\)$' \| \
18655 X"$0" : 'X\(/\)$' \| \
18656 . : '\(.\)' 2>/dev/null ||
18658 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18659 /^X\/\(\/\/\)$/{ s//\1/; q; }
18660 /^X\/\(\/\).*/{ s//\1/; q; }
18664 # PATH needs CR, and LINENO needs CR and PATH.
18665 # Avoid depending upon Character Ranges.
18666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18669 as_cr_digits='0123456789'
18670 as_cr_alnum=$as_cr_Letters$as_cr_digits
18672 # The user is always right.
18673 if test "${PATH_SEPARATOR+set}" != set; then
18674 echo "#! /bin/sh" >conf$$.sh
18675 echo "exit 0" >>conf$$.sh
18677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18686 as_lineno_1=$LINENO
18687 as_lineno_2=$LINENO
18688 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18689 test "x$as_lineno_1" != "x$as_lineno_2" &&
18690 test "x$as_lineno_3" = "x$as_lineno_2" || {
18691 # Find who we are. Look in the path if we contain no path at all
18694 *[\\/]* ) as_myself=$0 ;;
18695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18699 test -z "$as_dir" && as_dir=.
18700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18705 # We did not find ourselves, most probably we were run as `sh COMMAND'
18706 # in which case we are not to be found in the path.
18707 if test "x$as_myself" = x; then
18710 if test ! -f "$as_myself"; then
18711 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18712 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18713 { (exit 1); exit 1; }; }
18715 case $CONFIG_SHELL in
18717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18718 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18721 test -z "$as_dir" && as_dir=.
18722 for as_base in sh bash ksh sh5; do
18725 if ("$as_dir/$as_base" -c '
18726 as_lineno_1=$LINENO
18727 as_lineno_2=$LINENO
18728 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18729 test "x$as_lineno_1" != "x$as_lineno_2" &&
18730 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18731 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18732 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18733 CONFIG_SHELL=$as_dir/$as_base
18734 export CONFIG_SHELL
18735 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18744 # uniformly replaced by the line number. The first 'sed' inserts a
18745 # line-number line before each line; the second 'sed' does the real
18746 # work. The second script uses 'N' to pair each line-number line
18747 # with the numbered line, and appends trailing '-' during
18748 # substitution so that $LINENO is not a special case at line end.
18749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18750 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18751 sed '=' <$as_myself |
18756 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18759 s,^['$as_cr_digits']*\n,,
18760 ' >$as_me.lineno &&
18761 chmod +x $as_me.lineno ||
18762 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18763 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18764 { (exit 1); exit 1; }; }
18766 # Don't try to exec as it changes $[0], causing all sort of problems
18767 # (the dirname of $[0] is not the place where we might find the
18768 # original and so on. Autoconf is especially sensible to this).
18770 # Exit status is that of the last command.
18775 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18776 *c*,-n*) ECHO_N= ECHO_C='
18778 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18779 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18782 if expr a : '\(a\)' >/dev/null 2>&1; then
18788 rm -f conf$$ conf$$.exe conf$$.file
18790 if ln -s conf$$.file conf$$ 2>/dev/null; then
18791 # We could just check for DJGPP; but this test a) works b) is more generic
18792 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18793 if test -f conf$$.exe; then
18794 # Don't use ln at all; we don't have any links
18799 elif ln conf$$.file conf$$ 2>/dev/null; then
18804 rm -f conf$$ conf$$.exe conf$$.file
18806 if mkdir -p . 2>/dev/null; then
18812 as_executable_p="test -f"
18814 # Sed expression to map a string onto a valid CPP name.
18815 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18817 # Sed expression to map a string onto a valid variable name.
18818 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18822 # We need space, tab and new line, in precisely that order.
18832 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18833 # report actual input values of CONFIG_FILES etc. instead of their
18834 # values after options handling. Logging --version etc. is OK.
18838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18839 ## Running $as_me. ##
18844 This file was extended by $as_me, which was
18845 generated by GNU Autoconf 2.57. Invocation command line was
18847 CONFIG_FILES = $CONFIG_FILES
18848 CONFIG_HEADERS = $CONFIG_HEADERS
18849 CONFIG_LINKS = $CONFIG_LINKS
18850 CONFIG_COMMANDS = $CONFIG_COMMANDS
18854 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18858 # Files that config.status was made for.
18859 if test -n "$ac_config_files"; then
18860 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18863 if test -n "$ac_config_headers"; then
18864 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18867 if test -n "$ac_config_links"; then
18868 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18871 if test -n "$ac_config_commands"; then
18872 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18875 cat >>$CONFIG_STATUS <<\_ACEOF
18878 \`$as_me' instantiates files from templates according to the
18879 current configuration.
18881 Usage: $0 [OPTIONS] [FILE]...
18883 -h, --help print this help, then exit
18884 -V, --version print version number, then exit
18885 -q, --quiet do not print progress messages
18886 -d, --debug don't remove temporary files
18887 --recheck update $as_me by reconfiguring in the same conditions
18888 --file=FILE[:TEMPLATE]
18889 instantiate the configuration file FILE
18890 --header=FILE[:TEMPLATE]
18891 instantiate the configuration header FILE
18893 Configuration files:
18896 Configuration headers:
18899 Configuration commands:
18902 Report bugs to <bug-autoconf@gnu.org>."
18905 cat >>$CONFIG_STATUS <<_ACEOF
18908 configured by $0, generated by GNU Autoconf 2.57,
18909 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18911 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18912 Free Software Foundation, Inc.
18913 This config.status script is free software; the Free Software Foundation
18914 gives unlimited permission to copy, distribute and modify it."
18919 cat >>$CONFIG_STATUS <<\_ACEOF
18920 # If no file are specified by the user, then we need to provide default
18921 # value. By we need to know if files were specified by the user.
18927 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18928 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18936 *) # This is not an option, so the user has probably given explicit
18939 ac_need_defaults=false;;
18943 # Handling of the options.
18945 cat >>$CONFIG_STATUS <<\_ACEOF
18946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18948 --version | --vers* | -V )
18949 echo "$ac_cs_version"; exit 0 ;;
18951 # Conflict between --help and --header
18952 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18953 Try \`$0 --help' for more information." >&5
18954 echo "$as_me: error: ambiguous option: $1
18955 Try \`$0 --help' for more information." >&2;}
18956 { (exit 1); exit 1; }; };;
18957 --help | --hel | -h )
18958 echo "$ac_cs_usage"; exit 0 ;;
18959 --debug | --d* | -d )
18961 --file | --fil | --fi | --f )
18963 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18964 ac_need_defaults=false;;
18965 --header | --heade | --head | --hea )
18967 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18968 ac_need_defaults=false;;
18969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18970 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18973 # This is an error.
18974 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18975 Try \`$0 --help' for more information." >&5
18976 echo "$as_me: error: unrecognized option: $1
18977 Try \`$0 --help' for more information." >&2;}
18978 { (exit 1); exit 1; }; } ;;
18980 *) ac_config_targets="$ac_config_targets $1" ;;
18986 ac_configure_extra_args=
18988 if $ac_cs_silent; then
18990 ac_configure_extra_args="$ac_configure_extra_args --silent"
18994 cat >>$CONFIG_STATUS <<_ACEOF
18995 if \$ac_cs_recheck; then
18996 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18997 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19006 cat >>$CONFIG_STATUS <<\_ACEOF
19007 for ac_config_target in $ac_config_targets
19009 case "$ac_config_target" in
19010 # Handling of arguments.
19011 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19012 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19013 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19014 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19015 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19016 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19017 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19018 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19019 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19020 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19021 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19022 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19023 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19024 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19025 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19026 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19027 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19028 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19029 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19030 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19031 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19032 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19033 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19034 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19035 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19036 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19037 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19038 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19039 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19040 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19041 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19042 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19043 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19044 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19045 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19046 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19047 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19048 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19049 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19050 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19051 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19052 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19053 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19054 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19055 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19056 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19057 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19058 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19059 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19060 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19061 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19062 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19063 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19064 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19065 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19066 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19067 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19068 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19069 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19070 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19071 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19072 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19073 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19074 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19075 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19076 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19077 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19078 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19079 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19080 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19081 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19082 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19083 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19084 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19085 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19086 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19087 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19088 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19089 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19090 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19091 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19092 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19093 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19094 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19095 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19096 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19097 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19098 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19099 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19100 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19101 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19102 { (exit 1); exit 1; }; };;
19106 # If the user did not use the arguments to specify the items to instantiate,
19107 # then the envvar interface is used. Set only those that are not.
19108 # We use the long form for the default assignment because of an extremely
19109 # bizarre bug on SunOS 4.1.3.
19110 if $ac_need_defaults; then
19111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19116 # Have a temporary directory for convenience. Make it in the build tree
19117 # simply because there is no reason to put it here, and in addition,
19118 # creating and moving files from /tmp can sometimes cause problems.
19119 # Create a temporary directory, and hook for its removal unless debugging.
19122 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19123 trap '{ (exit 1); exit 1; }' 1 2 13 15
19126 # Create a (secure) tmp directory for tmp files.
19129 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19130 test -n "$tmp" && test -d "$tmp"
19133 tmp=./confstat$$-$RANDOM
19134 (umask 077 && mkdir $tmp)
19137 echo "$me: cannot create a temporary directory in ." >&2
19138 { (exit 1); exit 1; }
19143 cat >>$CONFIG_STATUS <<_ACEOF
19146 # CONFIG_FILES section.
19149 # No need to generate the scripts if there are no CONFIG_FILES.
19150 # This happens for instance when ./config.status config.h
19151 if test -n "\$CONFIG_FILES"; then
19152 # Protect against being on the right side of a sed subst in config.status.
19153 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19154 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19155 s,@SHELL@,$SHELL,;t t
19156 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19157 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19158 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19159 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19160 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19161 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19162 s,@exec_prefix@,$exec_prefix,;t t
19163 s,@prefix@,$prefix,;t t
19164 s,@program_transform_name@,$program_transform_name,;t t
19165 s,@bindir@,$bindir,;t t
19166 s,@sbindir@,$sbindir,;t t
19167 s,@libexecdir@,$libexecdir,;t t
19168 s,@datadir@,$datadir,;t t
19169 s,@sysconfdir@,$sysconfdir,;t t
19170 s,@sharedstatedir@,$sharedstatedir,;t t
19171 s,@localstatedir@,$localstatedir,;t t
19172 s,@libdir@,$libdir,;t t
19173 s,@includedir@,$includedir,;t t
19174 s,@oldincludedir@,$oldincludedir,;t t
19175 s,@infodir@,$infodir,;t t
19176 s,@mandir@,$mandir,;t t
19177 s,@build_alias@,$build_alias,;t t
19178 s,@host_alias@,$host_alias,;t t
19179 s,@target_alias@,$target_alias,;t t
19180 s,@DEFS@,$DEFS,;t t
19181 s,@ECHO_C@,$ECHO_C,;t t
19182 s,@ECHO_N@,$ECHO_N,;t t
19183 s,@ECHO_T@,$ECHO_T,;t t
19184 s,@LIBS@,$LIBS,;t t
19185 s,@BUILD_DIR@,$BUILD_DIR,;t t
19186 s,@TRUEPRG@,$TRUEPRG,;t t
19187 s,@FALSEPRG@,$FALSEPRG,;t t
19188 s,@VERSION@,$VERSION,;t t
19189 s,@DATE@,$DATE,;t t
19190 s,@LSMDATE@,$LSMDATE,;t t
19192 s,@CFLAGS@,$CFLAGS,;t t
19193 s,@LDFLAGS@,$LDFLAGS,;t t
19194 s,@CPPFLAGS@,$CPPFLAGS,;t t
19195 s,@ac_ct_CC@,$ac_ct_CC,;t t
19196 s,@EXEEXT@,$EXEEXT,;t t
19197 s,@OBJEXT@,$OBJEXT,;t t
19199 s,@CXXFLAGS@,$CXXFLAGS,;t t
19200 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19202 s,@EGREP@,$EGREP,;t t
19203 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19204 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19205 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19206 s,@RANLIB@,$RANLIB,;t t
19207 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19213 s,@ECHO@,$ECHO,;t t
19217 s,@OPENSSL@,$OPENSSL,;t t
19219 s,@PKGCONFIG@,$PKGCONFIG,;t t
19220 s,@WXCONFIG@,$WXCONFIG,;t t
19221 s,@ARFLAGS@,$ARFLAGS,;t t
19222 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19223 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19224 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19225 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19226 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19227 s,@build@,$build,;t t
19228 s,@build_cpu@,$build_cpu,;t t
19229 s,@build_vendor@,$build_vendor,;t t
19230 s,@build_os@,$build_os,;t t
19231 s,@host@,$host,;t t
19232 s,@host_cpu@,$host_cpu,;t t
19233 s,@host_vendor@,$host_vendor,;t t
19234 s,@host_os@,$host_os,;t t
19235 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19236 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19237 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19238 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19239 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19240 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19241 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19242 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19243 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19244 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19245 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19246 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19247 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19248 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19249 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19250 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19251 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19252 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19253 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19254 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19255 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19256 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19257 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19258 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19259 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19260 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19261 s,@MSGFMT@,$MSGFMT,;t t
19262 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19263 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19264 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19265 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19266 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19267 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19268 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19269 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19270 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19271 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19272 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19273 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19274 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19275 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19276 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19277 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19278 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19279 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19280 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19281 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19282 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19283 s,@GNOME_DIR@,$GNOME_DIR,;t t
19284 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19285 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19286 s,@WX_DIR@,$WX_DIR,;t t
19287 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19288 s,@STATIC_FD@,$STATIC_FD,;t t
19289 s,@STATIC_SD@,$STATIC_SD,;t t
19290 s,@STATIC_DIR@,$STATIC_DIR,;t t
19291 s,@STATIC_CONS@,$STATIC_CONS,;t t
19292 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19293 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19294 s,@ALL_DIRS@,$ALL_DIRS,;t t
19295 s,@CONS_INC@,$CONS_INC,;t t
19296 s,@CONS_OBJ@,$CONS_OBJ,;t t
19297 s,@CONS_SRC@,$CONS_SRC,;t t
19298 s,@CONS_LIBS@,$CONS_LIBS,;t t
19299 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19300 s,@READLINE_SRC@,$READLINE_SRC,;t t
19301 s,@working_dir@,$working_dir,;t t
19302 s,@scriptdir@,$scriptdir,;t t
19303 s,@dump_email@,$dump_email,;t t
19304 s,@job_email@,$job_email,;t t
19305 s,@smtp_host@,$smtp_host,;t t
19306 s,@piddir@,$piddir,;t t
19307 s,@subsysdir@,$subsysdir,;t t
19308 s,@baseport@,$baseport,;t t
19309 s,@dir_port@,$dir_port,;t t
19310 s,@fd_port@,$fd_port,;t t
19311 s,@sd_port@,$sd_port,;t t
19312 s,@dir_password@,$dir_password,;t t
19313 s,@fd_password@,$fd_password,;t t
19314 s,@sd_password@,$sd_password,;t t
19315 s,@dir_user@,$dir_user,;t t
19316 s,@dir_group@,$dir_group,;t t
19317 s,@sd_user@,$sd_user,;t t
19318 s,@sd_group@,$sd_group,;t t
19319 s,@fd_user@,$fd_user,;t t
19320 s,@fd_group@,$fd_group,;t t
19321 s,@SBINPERM@,$SBINPERM,;t t
19322 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19323 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19324 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19325 s,@cats@,$cats,;t t
19326 s,@DB_NAME@,$DB_NAME,;t t
19327 s,@GETCONF@,$GETCONF,;t t
19328 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19329 s,@X_CFLAGS@,$X_CFLAGS,;t t
19330 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19331 s,@X_LIBS@,$X_LIBS,;t t
19332 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19333 s,@LIBOBJS@,$LIBOBJS,;t t
19334 s,@ALLOCA@,$ALLOCA,;t t
19335 s,@FDLIBS@,$FDLIBS,;t t
19336 s,@DEBUG@,$DEBUG,;t t
19337 s,@DINCLUDE@,$DINCLUDE,;t t
19338 s,@DLIB@,$DLIB,;t t
19339 s,@DB_LIBS@,$DB_LIBS,;t t
19340 s,@WCFLAGS@,$WCFLAGS,;t t
19341 s,@WLDFLAGS@,$WLDFLAGS,;t t
19342 s,@OBJLIST@,$OBJLIST,;t t
19343 s,@hostname@,$hostname,;t t
19344 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19345 s,@PSCMD@,$PSCMD,;t t
19346 s,@WIN32@,$WIN32,;t t
19347 s,@MACOSX@,$MACOSX,;t t
19348 s,@DISTNAME@,$DISTNAME,;t t
19349 s,@DISTVER@,$DISTVER,;t t
19350 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19351 /@MCOMMON@/r $MCOMMON
19357 cat >>$CONFIG_STATUS <<\_ACEOF
19358 # Split the substitutions into bite-sized pieces for seds with
19359 # small command number limits, like on Digital OSF/1 and HP-UX.
19360 ac_max_sed_lines=48
19361 ac_sed_frag=1 # Number of current file.
19362 ac_beg=1 # First line for current file.
19363 ac_end=$ac_max_sed_lines # Line after last line for current file.
19366 while $ac_more_lines; do
19367 if test $ac_beg -gt 1; then
19368 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19370 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19372 if test ! -s $tmp/subs.frag; then
19373 ac_more_lines=false
19375 # The purpose of the label and of the branching condition is to
19376 # speed up the sed processing (if there are no `@' at all, there
19377 # is no need to browse any of the substitutions).
19378 # These are the two extra sed commands mentioned above.
19380 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19381 if test -z "$ac_sed_cmds"; then
19382 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19384 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19386 ac_sed_frag=`expr $ac_sed_frag + 1`
19388 ac_end=`expr $ac_end + $ac_max_sed_lines`
19391 if test -z "$ac_sed_cmds"; then
19394 fi # test -n "$CONFIG_FILES"
19397 cat >>$CONFIG_STATUS <<\_ACEOF
19398 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19399 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19401 - | *:- | *:-:* ) # input from stdin
19403 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19405 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19407 * ) ac_file_in=$ac_file.in ;;
19410 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19411 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19413 X"$ac_file" : 'X\(//\)[^/]' \| \
19414 X"$ac_file" : 'X\(//\)$' \| \
19415 X"$ac_file" : 'X\(/\)' \| \
19416 . : '\(.\)' 2>/dev/null ||
19418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19420 /^X\(\/\/\)$/{ s//\1/; q; }
19421 /^X\(\/\).*/{ s//\1/; q; }
19423 { if $as_mkdir_p; then
19428 while test ! -d "$as_dir"; do
19429 as_dirs="$as_dir $as_dirs"
19430 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19432 X"$as_dir" : 'X\(//\)[^/]' \| \
19433 X"$as_dir" : 'X\(//\)$' \| \
19434 X"$as_dir" : 'X\(/\)' \| \
19435 . : '\(.\)' 2>/dev/null ||
19437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19439 /^X\(\/\/\)$/{ s//\1/; q; }
19440 /^X\(\/\).*/{ s//\1/; q; }
19443 test ! -n "$as_dirs" || mkdir $as_dirs
19444 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19445 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19446 { (exit 1); exit 1; }; }; }
19450 if test "$ac_dir" != .; then
19451 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19452 # A "../" for each directory in $ac_dir_suffix.
19453 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19455 ac_dir_suffix= ac_top_builddir=
19459 .) # No --srcdir option. We are building in place.
19461 if test -z "$ac_top_builddir"; then
19464 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19466 [\\/]* | ?:[\\/]* ) # Absolute path.
19467 ac_srcdir=$srcdir$ac_dir_suffix;
19468 ac_top_srcdir=$srcdir ;;
19469 *) # Relative path.
19470 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19471 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19473 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19475 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19476 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19477 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19478 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19483 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19486 if test x"$ac_file" != x-; then
19487 { echo "$as_me:$LINENO: creating $ac_file" >&5
19488 echo "$as_me: creating $ac_file" >&6;}
19491 # Let's still pretend it is `configure' which instantiates (i.e., don't
19492 # use $as_me), people would be surprised to read:
19493 # /* config.h. Generated by config.status. */
19494 if test x"$ac_file" = x-; then
19497 configure_input="$ac_file. "
19499 configure_input=$configure_input"Generated from `echo $ac_file_in |
19500 sed 's,.*/,,'` by configure."
19502 # First look for the input files in the build tree, otherwise in the
19504 ac_file_inputs=`IFS=:
19505 for f in $ac_file_in; do
19507 -) echo $tmp/stdin ;;
19509 # Absolute (can't be DOS-style, as IFS=:)
19510 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19511 echo "$as_me: error: cannot find input file: $f" >&2;}
19512 { (exit 1); exit 1; }; }
19515 if test -f "$f"; then
19518 elif test -f "$srcdir/$f"; then
19523 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19524 echo "$as_me: error: cannot find input file: $f" >&2;}
19525 { (exit 1); exit 1; }; }
19528 done` || { (exit 1); exit 1; }
19530 cat >>$CONFIG_STATUS <<_ACEOF
19534 cat >>$CONFIG_STATUS <<\_ACEOF
19536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19537 s,@configure_input@,$configure_input,;t t
19538 s,@srcdir@,$ac_srcdir,;t t
19539 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19540 s,@top_srcdir@,$ac_top_srcdir,;t t
19541 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19542 s,@builddir@,$ac_builddir,;t t
19543 s,@abs_builddir@,$ac_abs_builddir,;t t
19544 s,@top_builddir@,$ac_top_builddir,;t t
19545 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19546 s,@INSTALL@,$ac_INSTALL,;t t
19547 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19549 if test x"$ac_file" != x-; then
19550 mv $tmp/out $ac_file
19558 cat >>$CONFIG_STATUS <<\_ACEOF
19561 # CONFIG_HEADER section.
19564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19565 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19567 # ac_d sets the value in "#define NAME VALUE" lines.
19568 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19569 ac_dB='[ ].*$,\1#\2'
19572 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19573 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19574 ac_uB='$,\1#\2define\3'
19578 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19581 - | *:- | *:-:* ) # input from stdin
19583 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19585 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19587 * ) ac_file_in=$ac_file.in ;;
19590 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19591 echo "$as_me: creating $ac_file" >&6;}
19593 # First look for the input files in the build tree, otherwise in the
19595 ac_file_inputs=`IFS=:
19596 for f in $ac_file_in; do
19598 -) echo $tmp/stdin ;;
19600 # Absolute (can't be DOS-style, as IFS=:)
19601 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19602 echo "$as_me: error: cannot find input file: $f" >&2;}
19603 { (exit 1); exit 1; }; }
19606 if test -f "$f"; then
19609 elif test -f "$srcdir/$f"; then
19614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19615 echo "$as_me: error: cannot find input file: $f" >&2;}
19616 { (exit 1); exit 1; }; }
19619 done` || { (exit 1); exit 1; }
19620 # Remove the trailing spaces.
19621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19626 # `conftest.undefs', that substitutes the proper values into
19627 # config.h.in to produce config.h. The first handles `#define'
19628 # templates, and the second `#undef' templates.
19629 # And first: Protect against being on the right side of a sed subst in
19630 # config.status. Protect against being in an unquoted here document
19631 # in config.status.
19632 rm -f conftest.defines conftest.undefs
19633 # Using a here document instead of a string reduces the quoting nightmare.
19634 # Putting comments in sed scripts is not portable.
19636 # `end' is used to avoid that the second main sed command (meant for
19637 # 0-ary CPP macros) applies to n-ary macro definitions.
19638 # See the Autoconf documentation for `clear'.
19639 cat >confdef2sed.sed <<\_ACEOF
19644 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19646 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19649 # If some macros were called several times there might be several times
19650 # the same #defines, which is useless. Nevertheless, we may not want to
19651 # sort them, since we want the *last* AC-DEFINE to be honored.
19652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19654 rm -f confdef2sed.sed
19656 # This sed command replaces #undef with comments. This is necessary, for
19657 # example, in the case of _POSIX_SOURCE, which is predefined and required
19658 # on some systems where configure will not decide to define it.
19659 cat >>conftest.undefs <<\_ACEOF
19660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19663 # Break up conftest.defines because some shells have a limit on the size
19664 # of here documents, and old seds have small limits too (100 cmds).
19665 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19666 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19667 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19668 echo ' :' >>$CONFIG_STATUS
19669 rm -f conftest.tail
19670 while grep . conftest.defines >/dev/null
19672 # Write a limited-size here document to $tmp/defines.sed.
19673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19674 # Speed up: don't consider the non `#define' lines.
19675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19676 # Work around the forget-to-reset-the-flag bug.
19677 echo 't clr' >>$CONFIG_STATUS
19678 echo ': clr' >>$CONFIG_STATUS
19679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19683 mv $tmp/out $tmp/in
19685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19686 rm -f conftest.defines
19687 mv conftest.tail conftest.defines
19689 rm -f conftest.defines
19690 echo ' fi # grep' >>$CONFIG_STATUS
19691 echo >>$CONFIG_STATUS
19693 # Break up conftest.undefs because some shells have a limit on the size
19694 # of here documents, and old seds have small limits too (100 cmds).
19695 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19696 rm -f conftest.tail
19697 while grep . conftest.undefs >/dev/null
19699 # Write a limited-size here document to $tmp/undefs.sed.
19700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19701 # Speed up: don't consider the non `#undef'
19702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19703 # Work around the forget-to-reset-the-flag bug.
19704 echo 't clr' >>$CONFIG_STATUS
19705 echo ': clr' >>$CONFIG_STATUS
19706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19710 mv $tmp/out $tmp/in
19712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19713 rm -f conftest.undefs
19714 mv conftest.tail conftest.undefs
19716 rm -f conftest.undefs
19718 cat >>$CONFIG_STATUS <<\_ACEOF
19719 # Let's still pretend it is `configure' which instantiates (i.e., don't
19720 # use $as_me), people would be surprised to read:
19721 # /* config.h. Generated by config.status. */
19722 if test x"$ac_file" = x-; then
19723 echo "/* Generated by configure. */" >$tmp/config.h
19725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19727 cat $tmp/in >>$tmp/config.h
19729 if test x"$ac_file" != x-; then
19730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19732 echo "$as_me: $ac_file is unchanged" >&6;}
19734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19736 X"$ac_file" : 'X\(//\)[^/]' \| \
19737 X"$ac_file" : 'X\(//\)$' \| \
19738 X"$ac_file" : 'X\(/\)' \| \
19739 . : '\(.\)' 2>/dev/null ||
19741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19743 /^X\(\/\/\)$/{ s//\1/; q; }
19744 /^X\(\/\).*/{ s//\1/; q; }
19746 { if $as_mkdir_p; then
19751 while test ! -d "$as_dir"; do
19752 as_dirs="$as_dir $as_dirs"
19753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19755 X"$as_dir" : 'X\(//\)[^/]' \| \
19756 X"$as_dir" : 'X\(//\)$' \| \
19757 X"$as_dir" : 'X\(/\)' \| \
19758 . : '\(.\)' 2>/dev/null ||
19760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19762 /^X\(\/\/\)$/{ s//\1/; q; }
19763 /^X\(\/\).*/{ s//\1/; q; }
19766 test ! -n "$as_dirs" || mkdir $as_dirs
19767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19769 { (exit 1); exit 1; }; }; }
19772 mv $tmp/config.h $ac_file
19776 rm -f $tmp/config.h
19780 cat >>$CONFIG_STATUS <<\_ACEOF
19783 # CONFIG_COMMANDS section.
19785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19786 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19787 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19788 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19790 X"$ac_dest" : 'X\(//\)[^/]' \| \
19791 X"$ac_dest" : 'X\(//\)$' \| \
19792 X"$ac_dest" : 'X\(/\)' \| \
19793 . : '\(.\)' 2>/dev/null ||
19795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19797 /^X\(\/\/\)$/{ s//\1/; q; }
19798 /^X\(\/\).*/{ s//\1/; q; }
19802 if test "$ac_dir" != .; then
19803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19804 # A "../" for each directory in $ac_dir_suffix.
19805 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19807 ac_dir_suffix= ac_top_builddir=
19811 .) # No --srcdir option. We are building in place.
19813 if test -z "$ac_top_builddir"; then
19816 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19818 [\\/]* | ?:[\\/]* ) # Absolute path.
19819 ac_srcdir=$srcdir$ac_dir_suffix;
19820 ac_top_srcdir=$srcdir ;;
19821 *) # Relative path.
19822 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19823 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19825 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19827 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19828 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19829 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19830 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19833 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19834 echo "$as_me: executing $ac_dest commands" >&6;}
19836 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19842 cat >>$CONFIG_STATUS <<\_ACEOF
19844 { (exit 0); exit 0; }
19846 chmod +x $CONFIG_STATUS
19847 ac_clean_files=$ac_clean_files_save
19850 # configure is writing to config.log, and then calls config.status.
19851 # config.status does its own redirection, appending to config.log.
19852 # Unfortunately, on DOS this fails, as config.log is still kept open
19853 # by configure, so config.status won't be able to write to it; its
19854 # output is simply discarded. So we exec the FD to /dev/null,
19855 # effectively closing config.log, so it can be properly (re)opened and
19856 # appended to by config.status. When coming back to configure, we
19857 # need to make the FD available again.
19858 if test "$no_create" != yes; then
19860 ac_config_status_args=
19861 test "$silent" = yes &&
19862 ac_config_status_args="$ac_config_status_args --quiet"
19864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19867 # would make configure fail if this is the last instruction.
19868 $ac_cs_success || { (exit 1); exit 1; }
19873 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19874 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19879 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19880 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19882 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19883 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19885 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19886 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19888 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19889 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19891 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19892 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19894 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19895 chmod 755 $c/sqlite
19898 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19899 largefile_support="yes"
19903 # A whole lot of hand springs to get the compiler version.
19904 # This is because gcc changed the output in version 3.0
19906 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19907 if test "x${CCVERSION}" = "x" ; then
19908 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19910 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19911 if test x"${CXXVERSION}" = x ; then
19912 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19915 if test "x${subsysdir}" = "x${sbindir}" ; then
19918 echo "You have set --sbindir and --with-subsys-dir"
19919 echo " both equal to: ${subsysdir} "
19920 echo " This is not permitted. Please reconfigure."
19922 echo "Aborting configuration ..."
19928 if test "x${db_name}" = "xInternal" ; then
19931 echo "You have not specified either --enable-client-only or one of the"
19932 echo " supported databases: MySQL, PostgreSQL, or SQLite".
19933 echo " This is not permitted. Please reconfigure."
19935 echo "Aborting the configuration ..."
19942 Configuration on `date`:
19944 Host: $host -- ${DISTNAME} ${DISTVER}
19945 Bacula version: ${VERSION} (${DATE})
19946 Source code location: ${srcdir}
19947 Install binaries: ${sbindir}
19948 Install config files: ${sysconfdir}
19949 Scripts directory: ${scriptdir}
19950 Working directory: ${working_dir}
19951 PID directory: ${piddir}
19952 Subsys directory: ${subsysdir}
19953 C Compiler: ${CC} ${CCVERSION}
19954 C++ Compiler: ${CXX} ${CXXVERSION}
19955 Compiler flags: ${WCFLAGS} ${CFLAGS}
19956 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19958 Statically Linked Tools: ${support_static_tools}
19959 Statically Linked FD: ${support_static_fd}
19960 Statically Linked SD: ${support_static_sd}
19961 Statically Linked DIR: ${support_static_dir}
19962 Statically Linked CONS: ${support_static_cons}
19963 Database type: ${db_name}
19964 Database lib: ${DB_LIBS}
19966 Job Output Email: ${job_email}
19967 Traceback Email: ${dump_email}
19968 SMTP Host Address: ${smtp_host}
19970 Director Port: ${dir_port}
19971 File daemon Port: ${fd_port}
19972 Storage daemon Port: ${sd_port}
19974 Director User: ${dir_user}
19975 Director Group: ${dir_group}
19976 Storage Daemon User: ${sd_user}
19977 Storage DaemonGroup: ${sd_group}
19978 File Daemon User: ${fd_user}
19979 File Daemon Group: ${fd_group}
19981 SQL binaries Directory ${SQL_BINDIR}
19983 Large file support: $largefile_support
19984 Bacula conio support: ${got_conio} ${CONS_LIBS}
19985 readline support: ${got_readline} ${PRTREADLINE_SRC}
19986 TCP Wrappers support: ${TCPW_MSG}
19987 ZLIB support: ${have_zlib}
19988 enable-smartalloc: ${support_smartalloc}
19989 enable-gnome: ${support_gnome} ${gnome_version}
19990 enable-wx-console: ${support_wx_console}
19991 client-only: ${build_client_only}
19992 ACL support: ${have_acl}
19999 # cweb support: ${got_cweb} ${CWEB_SRC}
20000 # gmp support: ${got_gmp} ${GMP_SRC}