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 "ranlib", so it can be a program name with args.
3575 set dummy ranlib; 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_RANLIB+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_path_RANLIB="$RANLIB" # 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_RANLIB="$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_RANLIB" && ac_cv_path_RANLIB="ranlib"
3604 RANLIB=$ac_cv_path_RANLIB
3606 if test -n "$RANLIB"; then
3607 echo "$as_me:$LINENO: result: $RANLIB" >&5
3608 echo "${ECHO_T}$RANLIB" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "openssl", so it can be a program name with args.
3615 set dummy openssl; 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_OPENSSL+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_cv_path_OPENSSL="$OPENSSL" # 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_OPENSSL="$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_OPENSSL" && ac_cv_path_OPENSSL="none"
3644 OPENSSL=$ac_cv_path_OPENSSL
3646 if test -n "$OPENSSL"; then
3647 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3648 echo "${ECHO_T}$OPENSSL" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 # Extract the first word of "mtx", so it can be a program name with args.
3655 set dummy mtx; 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_MTX+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_path_MTX="$MTX" # 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_MTX="$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_MTX" && ac_cv_path_MTX="mtx"
3686 if test -n "$MTX"; then
3687 echo "$as_me:$LINENO: result: $MTX" >&5
3688 echo "${ECHO_T}$MTX" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 # Extract the first word of "pkg-config", so it can be a program name with args.
3695 set dummy pkg-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_PKGCONFIG+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_path_PKGCONFIG="$PKGCONFIG" # 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_PKGCONFIG="$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_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3724 PKGCONFIG=$ac_cv_path_PKGCONFIG
3726 if test -n "$PKGCONFIG"; then
3727 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3728 echo "${ECHO_T}$PKGCONFIG" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3734 # Extract the first word of "wx-config", so it can be a program name with args.
3735 set dummy wx-config; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3764 WXCONFIG=$ac_cv_path_WXCONFIG
3766 if test -n "$WXCONFIG"; then
3767 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3768 echo "${ECHO_T}$WXCONFIG" >&6
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3775 test -n "$ARFLAG" || ARFLAGS="cr"
3788 # Make sure we can run config.sub.
3789 $ac_config_sub sun4 >/dev/null 2>&1 ||
3790 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3791 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3792 { (exit 1); exit 1; }; }
3794 echo "$as_me:$LINENO: checking build system type" >&5
3795 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3796 if test "${ac_cv_build+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_cv_build_alias=$build_alias
3800 test -z "$ac_cv_build_alias" &&
3801 ac_cv_build_alias=`$ac_config_guess`
3802 test -z "$ac_cv_build_alias" &&
3803 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3804 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3805 { (exit 1); exit 1; }; }
3806 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3807 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3808 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3809 { (exit 1); exit 1; }; }
3812 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3813 echo "${ECHO_T}$ac_cv_build" >&6
3815 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3816 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3817 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3820 echo "$as_me:$LINENO: checking for Operating System" >&5
3821 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3822 echo "$as_me:$LINENO: checking host system type" >&5
3823 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3824 if test "${ac_cv_host+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cv_host_alias=$host_alias
3828 test -z "$ac_cv_host_alias" &&
3829 ac_cv_host_alias=$ac_cv_build_alias
3830 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3831 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3832 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3833 { (exit 1); exit 1; }; }
3836 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3837 echo "${ECHO_T}$ac_cv_host" >&6
3839 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3840 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3841 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3845 *cygwin* ) CYGWIN=yes;;
3849 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3855 HAVE_SUN_OS_FALSE='#'
3857 HAVE_SUN_OS_TRUE='#'
3860 cat >>confdefs.h <<\_ACEOF
3861 #define HAVE_SUN_OS 1
3869 HAVE_SUN_OS_FALSE='#'
3871 HAVE_SUN_OS_TRUE='#'
3876 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3882 HAVE_OSF1_OS_FALSE='#'
3884 HAVE_OSF1_OS_TRUE='#'
3887 cat >>confdefs.h <<\_ACEOF
3888 #define HAVE_OSF1_OS 1
3896 HAVE_OSF1_OS_FALSE='#'
3898 HAVE_OSF1_OS_TRUE='#'
3903 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3909 HAVE_AIX_OS_FALSE='#'
3911 HAVE_AIX_OS_TRUE='#'
3914 cat >>confdefs.h <<\_ACEOF
3915 #define HAVE_AIX_OS 1
3923 HAVE_AIX_OS_FALSE='#'
3925 HAVE_AIX_OS_TRUE='#'
3930 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3936 HAVE_HPUX_OS_FALSE='#'
3938 HAVE_HPUX_OS_TRUE='#'
3941 cat >>confdefs.h <<\_ACEOF
3942 #define HAVE_HPUX_OS 1
3950 HAVE_HPUX_OS_FALSE='#'
3952 HAVE_HPUX_OS_TRUE='#'
3957 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3963 HAVE_LINUX_OS_FALSE='#'
3965 HAVE_LINUX_OS_TRUE='#'
3966 HAVE_LINUX_OS_FALSE=
3968 cat >>confdefs.h <<\_ACEOF
3969 #define HAVE_LINUX_OS 1
3977 HAVE_LINUX_OS_FALSE='#'
3979 HAVE_LINUX_OS_TRUE='#'
3980 HAVE_LINUX_OS_FALSE=
3984 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3989 HAVE_FREEBSD_OS_TRUE=
3990 HAVE_FREEBSD_OS_FALSE='#'
3992 HAVE_FREEBSD_OS_TRUE='#'
3993 HAVE_FREEBSD_OS_FALSE=
3995 cat >>confdefs.h <<\_ACEOF
3996 #define HAVE_FREEBSD_OS 1
4003 HAVE_FREEBSD_OS_TRUE=
4004 HAVE_FREEBSD_OS_FALSE='#'
4006 HAVE_FREEBSD_OS_TRUE='#'
4007 HAVE_FREEBSD_OS_FALSE=
4011 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4016 HAVE_NETBSD_OS_TRUE=
4017 HAVE_NETBSD_OS_FALSE='#'
4019 HAVE_NETBSD_OS_TRUE='#'
4020 HAVE_NETBSD_OS_FALSE=
4022 cat >>confdefs.h <<\_ACEOF
4023 #define HAVE_NETBSD_OS 1
4030 HAVE_NETBSD_OS_TRUE=
4031 HAVE_NETBSD_OS_FALSE='#'
4033 HAVE_NETBSD_OS_TRUE='#'
4034 HAVE_NETBSD_OS_FALSE=
4038 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4043 HAVE_OPENBSD_OS_TRUE=
4044 HAVE_OPENBSD_OS_FALSE='#'
4046 HAVE_OPENBSD_OS_TRUE='#'
4047 HAVE_OPENBSD_OS_FALSE=
4049 cat >>confdefs.h <<\_ACEOF
4050 #define HAVE_OPENBSD_OS 1
4057 HAVE_OPENBSD_OS_TRUE=
4058 HAVE_OPENBSD_OS_FALSE='#'
4060 HAVE_OPENBSD_OS_TRUE='#'
4061 HAVE_OPENBSD_OS_FALSE=
4065 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4071 HAVE_BSDI_OS_FALSE='#'
4073 HAVE_BSDI_OS_TRUE='#'
4076 cat >>confdefs.h <<\_ACEOF
4077 #define HAVE_BSDI_OS 1
4085 HAVE_BSDI_OS_FALSE='#'
4087 HAVE_BSDI_OS_TRUE='#'
4092 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4098 HAVE_SGI_OS_FALSE='#'
4100 HAVE_SGI_OS_TRUE='#'
4103 cat >>confdefs.h <<\_ACEOF
4104 #define HAVE_SGI_OS 1
4112 HAVE_SGI_OS_FALSE='#'
4114 HAVE_SGI_OS_TRUE='#'
4119 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4125 HAVE_IRIX_OS_FALSE='#'
4127 HAVE_IRIX_OS_TRUE='#'
4130 cat >>confdefs.h <<\_ACEOF
4131 #define HAVE_IRIX_OS 1
4139 HAVE_IRIX_OS_FALSE='#'
4141 HAVE_IRIX_OS_TRUE='#'
4146 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4151 HAVE_DARWIN_OS_TRUE=
4152 HAVE_DARWIN_OS_FALSE='#'
4154 HAVE_DARWIN_OS_TRUE='#'
4155 HAVE_DARWIN_OS_FALSE=
4157 cat >>confdefs.h <<\_ACEOF
4158 #define HAVE_DARWIN_OS 1
4165 HAVE_DARWIN_OS_TRUE=
4166 HAVE_DARWIN_OS_FALSE='#'
4168 HAVE_DARWIN_OS_TRUE='#'
4169 HAVE_DARWIN_OS_FALSE=
4173 echo "$as_me:$LINENO: result: \" \"" >&5
4174 echo "${ECHO_T}\" \"" >&6
4177 # -----------------------------------------------------------
4178 # ----------------------------------------------------------
4179 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4180 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4181 if test "x$DISTNAME" != "x"
4183 echo "distname set to $DISTNAME"
4184 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4187 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4196 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4199 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4202 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4205 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4208 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4211 elif test -f /etc/SuSE-release
4214 elif test -d /etc/SuSEconfig
4217 elif test -f /etc/mandrake-release
4220 elif test -f /etc/redhat-release
4223 elif test -f /etc/gentoo-release
4226 elif test -f /etc/debian_version
4229 elif test -f /etc/slackware-version
4232 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4235 elif test -f /etc/engarde-version
4238 elif test "$CYGWIN" = yes
4241 cat >>confdefs.h <<\_ACEOF
4242 #define HAVE_CYGWIN 1
4248 echo "$as_me:$LINENO: result: \" \"" >&5
4249 echo "${ECHO_T}\" \"" >&6
4252 # -----------------------------------------------------------
4253 # ----------------------------------------------------------
4258 INSIDE_GNOME_COMMON_TRUE=
4259 INSIDE_GNOME_COMMON_FALSE='#'
4261 INSIDE_GNOME_COMMON_TRUE='#'
4262 INSIDE_GNOME_COMMON_FALSE=
4265 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4267 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4270 # ------------------------------------------------------------------
4271 # If the user has not set --prefix, we set our default to nothing.
4272 # In this case, if the user has not set --sysconfdir, we set it
4273 # to the package default of /etc/bacula. If either --prefix or
4274 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4275 # ------------------------------------------------------------------
4276 if test x${prefix} = xNONE ; then
4277 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4278 sysconfdir=/etc/bacula
4282 sysconfdir=`eval echo ${sysconfdir}`
4284 # -------------------------------------------------------------------------
4285 # If the user has not set --exec-prefix, we default to ${prefix}
4286 # -------------------------------------------------------------------------
4287 if test x${exec_prefix} = xNONE ; then
4288 exec_prefix=${prefix}
4291 # ------------------------------------------------------------------
4292 # If the user has not set --sbindir, we set our default as /sbin
4293 # ------------------------------------------------------------------
4294 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4295 sbindir=${exec_prefix}/sbin
4297 sbindir=`eval echo ${sbindir}`
4299 # ------------------------------------------------------------------
4300 # All list of languages for which a translation exist. Each
4301 # language is separated by a space.
4302 # ------------------------------------------------------------------
4305 for ac_prog in msgfmt
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4311 if test "${ac_cv_path_MSGFMT+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 MSGFMT=$ac_cv_path_MSGFMT
4338 if test -n "$MSGFMT"; then
4339 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4340 echo "${ECHO_T}$MSGFMT" >&6
4342 echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4346 test -n "$MSGFMT" && break
4348 test -n "$MSGFMT" || MSGFMT="no"
4350 if test "$MSGFMT" = "no"
4352 echo 'msgfmt program not found, disabling NLS !'
4354 USE_INCLUDED_LIBINTL=no
4362 support_postgresql=no
4363 support_smartalloc=yes
4364 support_readline=yes
4367 support_wx_console=no
4369 support_static_tools=no
4370 support_static_fd=no
4371 support_static_sd=no
4372 support_static_dir=no
4373 support_static_cons=no
4374 build_client_only=no
4380 # -------------------------------------------
4381 # gnome (default off)
4382 # -------------------------------------------
4383 # Check whether --enable-gnome or --disable-gnome was given.
4384 if test "${enable_gnome+set}" = set; then
4385 enableval="$enable_gnome"
4386 if test x$enableval = xyes; then
4392 if test x$support_gnome = xyes; then
4393 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4395 if test $pkg = 0; then
4396 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4397 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4398 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4399 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4404 GNOME_DIR=src/gnome2-console
4405 gnome_version="Version 2.x"
4418 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4419 if test "${with_gnome_includes+set}" = set; then
4420 withval="$with_gnome_includes"
4422 CFLAGS="$CFLAGS -I$withval"
4427 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4428 if test "${with_gnome_libs+set}" = set; then
4429 withval="$with_gnome_libs"
4431 LDFLAGS="$LDFLAGS -L$withval"
4432 gnome_prefix=$withval
4437 # Check whether --with-gnome or --without-gnome was given.
4438 if test "${with_gnome+set}" = set; then
4439 withval="$with_gnome"
4440 if test x$withval = xyes; then
4444 if test "x$withval" = xno; then
4448 LDFLAGS="$LDFLAGS -L$withval/lib"
4449 CFLAGS="$CFLAGS -I$withval/include"
4450 gnome_prefix=$withval/lib
4457 if test "x$want_gnome" = xyes; then
4459 # Extract the first word of "gnome-config", so it can be a program name with args.
4460 set dummy gnome-config; ac_word=$2
4461 echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 case $GNOME_CONFIG in
4468 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4489 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4491 if test -n "$GNOME_CONFIG"; then
4492 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4493 echo "${ECHO_T}$GNOME_CONFIG" >&6
4495 echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6
4499 if test "$GNOME_CONFIG" = "no"; then
4500 no_gnome_config="yes"
4502 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4503 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4504 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4505 echo "$as_me:$LINENO: result: yes" >&5
4506 echo "${ECHO_T}yes" >&6
4509 # Extract the first word of "orbit-config", so it can be a program name with args.
4510 set dummy orbit-config; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 case $ORBIT_CONFIG in
4518 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4539 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4541 if test -n "$ORBIT_CONFIG"; then
4542 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4543 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 # Extract the first word of "orbit-idl", so it can be a program name with args.
4550 set dummy orbit-idl; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4579 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4581 if test -n "$ORBIT_IDL"; then
4582 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4583 echo "${ECHO_T}$ORBIT_IDL" >&6
4585 echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4589 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4590 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4591 if test "${gnome_cv_orbit_found+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4596 gnome_cv_orbit_found=no
4598 gnome_cv_orbit_found=yes
4602 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4603 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4606 if test x$gnome_cv_orbit_found = xyes; then
4608 HAVE_ORBIT_FALSE='#'
4613 if test x$gnome_cv_orbit_found = xyes; then
4615 ORBIT_CFLAGS=`orbit-config --cflags client server`
4616 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4620 if test xfail = xfailure; then
4621 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4622 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4623 { (exit 1); exit 1; }; }
4627 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4628 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4629 if test "${gnome_cv_gnorba_found+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 gnome_cv_gnorba_found=no
4634 if test x$gnome_cv_orbit_found = xyes; then
4635 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4636 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4637 if test -n "$GNORBA_LIBS"; then
4638 gnome_cv_gnorba_found=yes
4643 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4644 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4647 if test x$gnome_cv_gnorba_found = xyes; then
4649 HAVE_GNORBA_FALSE='#'
4651 HAVE_GNORBA_TRUE='#'
4654 if test x$gnome_cv_orbit_found = xyes; then
4656 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4657 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4661 if test xfail = xfailure; then
4662 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4663 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4664 { (exit 1); exit 1; }; }
4668 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4669 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4670 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4671 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4672 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4673 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4674 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4677 echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4679 no_gnome_config="yes"
4683 if test x$exec_prefix = xNONE; then
4684 if test x$prefix = xNONE; then
4685 gnome_prefix=$ac_default_prefix/lib
4687 gnome_prefix=$prefix/lib
4690 gnome_prefix=`eval echo \`echo $libdir\``
4693 if test "$no_gnome_config" = "yes"; then
4694 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4695 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4696 if test -f $gnome_prefix/gnomeConf.sh; then
4697 echo "$as_me:$LINENO: result: found" >&5
4698 echo "${ECHO_T}found" >&6
4699 echo "loading gnome configuration from" \
4700 "$gnome_prefix/gnomeConf.sh"
4701 . $gnome_prefix/gnomeConf.sh
4704 echo "$as_me:$LINENO: result: not found" >&5
4705 echo "${ECHO_T}not found" >&6
4706 if test xfail = xfail; then
4707 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4708 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4709 { (exit 1); exit 1; }; }
4718 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4719 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4723 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4724 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4725 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4728 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4729 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4730 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4733 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4734 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4735 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4737 echo "$as_me:$LINENO: result: unknown library" >&5
4738 echo "${ECHO_T}unknown library" >&6
4740 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4741 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4746 GNOME_DIR=src/gnome-console
4747 gnome_version="Version 1.4"
4753 # -------------------------------------------
4754 # wx-console (default off)
4755 # -------------------------------------------
4756 # Check whether --enable-wx-console or --disable-wx-console was given.
4757 if test "${enable_wx_console+set}" = set; then
4758 enableval="$enable_wx_console"
4759 if test x$enableval = xyes; then
4760 support_wx_console=yes
4765 if test x$support_wx_console = xyes; then
4766 abc=`$WXCONFIG --cppflags`
4768 if test $pkg = 0; then
4769 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4770 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4773 WX_DIR=src/wx-console
4776 echo "wx-config program not found. wx-console disabled."
4778 support_wx_console=no
4785 # -------------------------------------------
4786 # smartalloc (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4789 if test "${enable_smartalloc+set}" = set; then
4790 enableval="$enable_smartalloc"
4791 if test x$enableval = xno; then
4792 support_smartalloc=no
4796 if test x$support_smartalloc = xyes; then
4797 cat >>confdefs.h <<\_ACEOF
4798 #define SMARTALLOC 1
4803 # -------------------------------------------
4804 # static-tools (default off)
4805 # -------------------------------------------
4806 # Check whether --enable-static-tools or --disable-static-tools was given.
4807 if test "${enable_static_tools+set}" = set; then
4808 enableval="$enable_static_tools"
4809 if test x$enableval = xyes; then
4810 support_static_tools=yes
4815 if test x$support_static_tools = xyes; then
4816 TTOOL_LDFLAGS="-static"
4820 # -------------------------------------------
4821 # static-fd (default off)
4822 # -------------------------------------------
4823 # Check whether --enable-static-fd or --disable-static-fd was given.
4824 if test "${enable_static_fd+set}" = set; then
4825 enableval="$enable_static_fd"
4826 if test x$enableval = xyes; then
4827 support_static_fd=yes
4832 if test x$support_static_fd = xyes; then
4833 STATIC_FD="static-bacula-fd"
4837 # -------------------------------------------
4838 # static-sd (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-sd or --disable-static-sd was given.
4841 if test "${enable_static_sd+set}" = set; then
4842 enableval="$enable_static_sd"
4843 if test x$enableval = xyes; then
4844 support_static_sd=yes
4849 if test x$support_static_sd = xyes; then
4850 STATIC_SD="static-bacula-sd"
4854 # -------------------------------------------
4855 # static-dir (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-dir or --disable-static-dir was given.
4858 if test "${enable_static_dir+set}" = set; then
4859 enableval="$enable_static_dir"
4860 if test x$enableval = xyes; then
4861 support_static_dir=yes
4866 if test x$support_static_dir = xyes; then
4867 STATIC_DIR="static-bacula-dir"
4871 # -------------------------------------------
4872 # static-cons (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-cons or --disable-static-cons was given.
4875 if test "${enable_static_cons+set}" = set; then
4876 enableval="$enable_static_cons"
4877 if test x$enableval = xyes; then
4878 support_static_cons=yes
4885 if test x$support_static_cons = xyes; then
4886 STATIC_CONS="static-bconsole"
4887 STATIC_GNOME_CONS="static-gnome-console"
4888 STATIC_WX_CONS="static-wx-console"
4894 # -------------------------------------------
4895 # client_only (default off)
4896 # -------------------------------------------
4897 # Check whether --enable-client-only or --disable-client-only was given.
4898 if test "${enable_client_only+set}" = set; then
4899 enableval="$enable_client_only"
4900 if test x$enableval = xyes; then
4901 build_client_only=yes
4904 if test x$build_client_only = xno; then
4911 # ---------------------------------------------------
4912 # Check for conio (Bacula readline substitute)(
4913 # ---------------------------------------------------
4914 # this allows you to turn it completely off
4915 # Check whether --enable-conio or --disable-conio was given.
4916 if test "${enable_conio+set}" = set; then
4917 enableval="$enable_conio"
4918 if test x$enableval = xno; then
4924 if test x$support_conio = xyes; then
4925 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4926 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4927 if test "${ac_cv_header_stdc+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 cat >conftest.$ac_ext <<_ACEOF
4931 #line $LINENO "configure"
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_header_stdc=yes
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 ac_cv_header_stdc=no
4969 rm -f conftest.$ac_objext conftest.$ac_ext
4971 if test $ac_cv_header_stdc = yes; then
4972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4973 cat >conftest.$ac_ext <<_ACEOF
4974 #line $LINENO "configure"
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984 $EGREP "memchr" >/dev/null 2>&1; then
4987 ac_cv_header_stdc=no
4993 if test $ac_cv_header_stdc = yes; then
4994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 #line $LINENO "configure"
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 $EGREP "free" >/dev/null 2>&1; then
5009 ac_cv_header_stdc=no
5015 if test $ac_cv_header_stdc = yes; then
5016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5017 if test "$cross_compiling" = yes; then
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5069 ac_cv_header_stdc=no
5071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077 if test $ac_cv_header_stdc = yes; then
5079 cat >>confdefs.h <<\_ACEOF
5080 #define STDC_HEADERS 1
5085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5113 #include <$ac_header>
5115 rm -f conftest.$ac_objext
5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117 (eval $ac_compile) 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try='test -s conftest.$ac_objext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 eval "$as_ac_Header=yes"
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 eval "$as_ac_Header=no"
5134 rm -f conftest.$ac_objext conftest.$ac_ext
5136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139 cat >>confdefs.h <<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5148 if test "${ac_cv_header_termcap_h+set}" = set; then
5149 echo "$as_me:$LINENO: checking for termcap.h" >&5
5150 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5151 if test "${ac_cv_header_termcap_h+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5155 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5157 # Is the header compilable?
5158 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5159 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5160 cat >conftest.$ac_ext <<_ACEOF
5161 #line $LINENO "configure"
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 $ac_includes_default
5168 #include <termcap.h>
5170 rm -f conftest.$ac_objext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_header_compiler=yes
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5187 ac_header_compiler=no
5189 rm -f conftest.$ac_objext conftest.$ac_ext
5190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5191 echo "${ECHO_T}$ac_header_compiler" >&6
5193 # Is the header present?
5194 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5195 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <termcap.h>
5205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null; then
5213 if test -s conftest.err; then
5214 ac_cpp_err=$ac_c_preproc_warn_flag
5221 if test -z "$ac_cpp_err"; then
5222 ac_header_preproc=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_header_preproc=no
5229 rm -f conftest.err conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5231 echo "${ECHO_T}$ac_header_preproc" >&6
5233 # So? What about this header?
5234 case $ac_header_compiler:$ac_header_preproc in
5236 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5237 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5239 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5242 ## ------------------------------------ ##
5243 ## Report this to bug-autoconf@gnu.org. ##
5244 ## ------------------------------------ ##
5247 sed "s/^/$as_me: WARNING: /" >&2
5250 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5251 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5252 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5253 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5254 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5255 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5258 ## ------------------------------------ ##
5259 ## Report this to bug-autoconf@gnu.org. ##
5260 ## ------------------------------------ ##
5263 sed "s/^/$as_me: WARNING: /" >&2
5266 echo "$as_me:$LINENO: checking for termcap.h" >&5
5267 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5268 if test "${ac_cv_header_termcap_h+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 ac_cv_header_termcap_h=$ac_header_preproc
5273 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5274 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5277 if test $ac_cv_header_termcap_h = yes; then
5278 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5279 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5280 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 ac_check_lib_save_LIBS=$LIBS
5284 LIBS="-ltermcap $LIBS"
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_lib_termcap_tgetent=yes
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 ac_cv_lib_termcap_tgetent=no
5327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_check_lib_save_LIBS
5330 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5331 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5332 if test $ac_cv_lib_termcap_tgetent = yes; then
5333 CONS_LIBS="-ltermcap"
5339 cat >>confdefs.h <<\_ACEOF
5340 #define HAVE_CONIO 1
5345 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5346 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5347 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 ac_check_lib_save_LIBS=$LIBS
5351 LIBS="-lncurses $LIBS"
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5360 /* Override any gcc2 internal prototype to avoid an error. */
5364 /* We use char because int might match the return type of a gcc2
5365 builtin and then its argument prototype would still apply. */
5375 rm -f conftest.$ac_objext conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377 (eval $ac_link) 2>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -s conftest$ac_exeext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_cv_lib_ncurses_tgetent=yes
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ac_cv_lib_ncurses_tgetent=no
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5397 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5398 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5399 if test $ac_cv_lib_ncurses_tgetent = yes; then
5400 CONS_LIBS="-lncurses"
5406 cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_CONIO 1
5412 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5420 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5427 # ---------------------------------------------------
5428 # Check for readline support/directory (default off)
5429 # ---------------------------------------------------
5430 # this allows you to turn it completely off
5431 # Check whether --enable-readline or --disable-readline was given.
5432 if test "${enable_readline+set}" = set; then
5433 enableval="$enable_readline"
5434 if test x$enableval = xno; then
5441 if test x$support_readline = xyes; then
5443 # Check whether --with-readline or --without-readline was given.
5444 if test "${with_readline+set}" = set; then
5445 withval="$with_readline"
5447 case "$with_readline" in
5450 if test "$with_readline" != "yes"; then
5451 CONS_INC="-I${with_readline}"
5452 CONS_LDFLAGS="-L$with_readline"
5454 with_readline="/usr/include/readline"
5456 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5459 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5466 # Is the header compilable?
5467 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5468 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5470 #line $LINENO "configure"
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 $ac_includes_default
5477 #include <${with_readline}/readline.h>
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_header_compiler=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_compiler=no
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5500 echo "${ECHO_T}$ac_header_compiler" >&6
5502 # Is the header present?
5503 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5504 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <${with_readline}/readline.h>
5514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } >/dev/null; then
5522 if test -s conftest.err; then
5523 ac_cpp_err=$ac_c_preproc_warn_flag
5530 if test -z "$ac_cpp_err"; then
5531 ac_header_preproc=yes
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_header_preproc=no
5538 rm -f conftest.err conftest.$ac_ext
5539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6
5542 # So? What about this header?
5543 case $ac_header_compiler:$ac_header_preproc in
5545 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5551 ## ------------------------------------ ##
5552 ## Report this to bug-autoconf@gnu.org. ##
5553 ## ------------------------------------ ##
5556 sed "s/^/$as_me: WARNING: /" >&2
5559 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5560 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5561 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5562 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5564 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5567 ## ------------------------------------ ##
5568 ## Report this to bug-autoconf@gnu.org. ##
5569 ## ------------------------------------ ##
5572 sed "s/^/$as_me: WARNING: /" >&2
5575 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5576 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 eval "$as_ac_Header=$ac_header_preproc"
5582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5587 cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_READLINE 1
5591 CONS_LIBS="-lreadline -ltermcap"
5596 echo "readline.h not found. readline turned off ..."
5608 # check for standard readline library
5609 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5610 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5611 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5612 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5616 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5618 # Is the header compilable?
5619 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5620 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 $ac_includes_default
5629 #include </usr/include/readline/readline.h>
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } &&
5637 { ac_try='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_header_compiler=yes
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_header_compiler=no
5650 rm -f conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5656 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include </usr/include/readline/readline.h>
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null; then
5674 if test -s conftest.err; then
5675 ac_cpp_err=$ac_c_preproc_warn_flag
5682 if test -z "$ac_cpp_err"; then
5683 ac_header_preproc=yes
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 ac_header_preproc=no
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5694 # So? What about this header?
5695 case $ac_header_compiler:$ac_header_preproc in
5697 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5703 ## ------------------------------------ ##
5704 ## Report this to bug-autoconf@gnu.org. ##
5705 ## ------------------------------------ ##
5708 sed "s/^/$as_me: WARNING: /" >&2
5711 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5712 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5713 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5714 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5716 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5719 ## ------------------------------------ ##
5720 ## Report this to bug-autoconf@gnu.org. ##
5721 ## ------------------------------------ ##
5724 sed "s/^/$as_me: WARNING: /" >&2
5727 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5728 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5729 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5734 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5735 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5738 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5739 cat >>confdefs.h <<\_ACEOF
5740 #define HAVE_READLINE 1
5744 CONS_INC="-I/usr/include/readline"
5745 CONS_LIBS="-lreadline -ltermcap"
5749 # Did not find standard library, so try Bacula's default
5750 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5753 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5760 # Is the header compilable?
5761 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5762 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 $ac_includes_default
5771 #include <${TOP_DIR}/depkgs/readline/readline.h>
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_header_compiler=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_header_compiler=no
5792 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5794 echo "${ECHO_T}$ac_header_compiler" >&6
5796 # Is the header present?
5797 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 #include <${TOP_DIR}/depkgs/readline/readline.h>
5808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev/null; then
5816 if test -s conftest.err; then
5817 ac_cpp_err=$ac_c_preproc_warn_flag
5824 if test -z "$ac_cpp_err"; then
5825 ac_header_preproc=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_header_preproc=no
5832 rm -f conftest.err conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5834 echo "${ECHO_T}$ac_header_preproc" >&6
5836 # So? What about this header?
5837 case $ac_header_compiler:$ac_header_preproc in
5839 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5840 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5842 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5845 ## ------------------------------------ ##
5846 ## Report this to bug-autoconf@gnu.org. ##
5847 ## ------------------------------------ ##
5850 sed "s/^/$as_me: WARNING: /" >&2
5853 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5854 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5856 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5861 ## ------------------------------------ ##
5862 ## Report this to bug-autoconf@gnu.org. ##
5863 ## ------------------------------------ ##
5866 sed "s/^/$as_me: WARNING: /" >&2
5869 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5870 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 eval "$as_ac_Header=$ac_header_preproc"
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881 cat >>confdefs.h <<\_ACEOF
5882 #define HAVE_READLINE 1
5886 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5887 CONS_LIBS="-lreadline -lhistory -ltermcap"
5888 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5889 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5893 echo "readline.h not found. readline turned off ..."
5919 # Minimal stuff for readline Makefile configuration
5923 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5924 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5925 if test "${ac_cv_header_stat_broken+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5929 #line $LINENO "configure"
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #include <sys/types.h>
5936 #include <sys/stat.h>
5938 #if defined(S_ISBLK) && defined(S_IFDIR)
5939 # if S_ISBLK (S_IFDIR)
5944 #if defined(S_ISBLK) && defined(S_IFCHR)
5945 # if S_ISBLK (S_IFCHR)
5950 #if defined(S_ISLNK) && defined(S_IFREG)
5951 # if S_ISLNK (S_IFREG)
5956 #if defined(S_ISSOCK) && defined(S_IFREG)
5957 # if S_ISSOCK (S_IFREG)
5963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5964 $EGREP "You lose" >/dev/null 2>&1; then
5965 ac_cv_header_stat_broken=yes
5967 ac_cv_header_stat_broken=no
5972 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5973 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5974 if test $ac_cv_header_stat_broken = yes; then
5976 cat >>confdefs.h <<\_ACEOF
5977 #define STAT_MACROS_BROKEN 1
5988 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5989 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5990 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5991 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <sys/types.h>
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -s conftest.$ac_objext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 eval "$as_ac_Header=yes"
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 eval "$as_ac_Header=no"
6033 rm -f conftest.$ac_objext conftest.$ac_ext
6035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6042 ac_header_dirent=$ac_hdr; break
6046 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6047 if test $ac_header_dirent = dirent.h; then
6048 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6049 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6050 if test "${ac_cv_search_opendir+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_opendir=no
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -s conftest$ac_exeext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_search_opendir="none required"
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6097 if test "$ac_cv_search_opendir" = no; then
6098 for ac_lib in dir; do
6099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6100 cat >conftest.$ac_ext <<_ACEOF
6101 #line $LINENO "configure"
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6108 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_search_opendir="-l$ac_lib"
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6145 LIBS=$ac_func_search_save_LIBS
6147 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6148 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6149 if test "$ac_cv_search_opendir" != no; then
6150 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6155 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6156 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6157 if test "${ac_cv_search_opendir+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 ac_func_search_save_LIBS=$LIBS
6161 ac_cv_search_opendir=no
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6170 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_search_opendir="none required"
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6204 if test "$ac_cv_search_opendir" = no; then
6206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6207 cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6215 /* Override any gcc2 internal prototype to avoid an error. */
6219 /* We use char because int might match the return type of a gcc2
6220 builtin and then its argument prototype would still apply. */
6230 rm -f conftest.$ac_objext conftest$ac_exeext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232 (eval $ac_link) 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -s conftest$ac_exeext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_search_opendir="-l$ac_lib"
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6252 LIBS=$ac_func_search_save_LIBS
6254 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6255 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6256 if test "$ac_cv_search_opendir" != no; then
6257 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6272 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6275 echo "$as_me:$LINENO: checking for $ac_func" >&5
6276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6277 if eval "test \"\${$as_ac_var+set}\" = set"; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 /* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char $ac_func (); below.
6289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6290 <limits.h> exists even on freestanding compilers. */
6292 # include <limits.h>
6294 # include <assert.h>
6296 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6304 /* The GNU C library defines this for functions which it implements
6305 to always fail with ENOSYS. Some functions are actually named
6306 something starting with __ and the normal name is an alias. */
6307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6310 char (*f) () = $ac_func;
6319 return f != $ac_func;
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest$ac_exeext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 eval "$as_ac_var=yes"
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6341 eval "$as_ac_var=no"
6343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6347 if test `eval echo '${'$as_ac_var'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6357 for ac_func in nanosleep nl_langinfo
6359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6360 echo "$as_me:$LINENO: checking for $ac_func" >&5
6361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6362 if eval "test \"\${$as_ac_var+set}\" = set"; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 cat >conftest.$ac_ext <<_ACEOF
6366 #line $LINENO "configure"
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func (); below.
6374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6375 <limits.h> exists even on freestanding compilers. */
6377 # include <limits.h>
6379 # include <assert.h>
6381 /* Override any gcc2 internal prototype to avoid an error. */
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6389 /* The GNU C library defines this for functions which it implements
6390 to always fail with ENOSYS. Some functions are actually named
6391 something starting with __ and the normal name is an alias. */
6392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6395 char (*f) () = $ac_func;
6404 return f != $ac_func;
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest$ac_exeext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 eval "$as_ac_var=yes"
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 eval "$as_ac_var=no"
6428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6432 if test `eval echo '${'$as_ac_var'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6442 for ac_header in varargs.h
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo "$as_me:$LINENO: checking for $ac_header" >&5
6447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6454 # Is the header compilable?
6455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 $ac_includes_default
6465 #include <$ac_header>
6467 rm -f conftest.$ac_objext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_header_compiler=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_header_compiler=no
6486 rm -f conftest.$ac_objext conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6488 echo "${ECHO_T}$ac_header_compiler" >&6
6490 # Is the header present?
6491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6493 cat >conftest.$ac_ext <<_ACEOF
6494 #line $LINENO "configure"
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <$ac_header>
6502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_c_preproc_warn_flag
6518 if test -z "$ac_cpp_err"; then
6519 ac_header_preproc=yes
6521 echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6524 ac_header_preproc=no
6526 rm -f conftest.err conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6528 echo "${ECHO_T}$ac_header_preproc" >&6
6530 # So? What about this header?
6531 case $ac_header_compiler:$ac_header_preproc in
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6539 ## ------------------------------------ ##
6540 ## Report this to bug-autoconf@gnu.org. ##
6541 ## ------------------------------------ ##
6544 sed "s/^/$as_me: WARNING: /" >&2
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6555 ## ------------------------------------ ##
6556 ## Report this to bug-autoconf@gnu.org. ##
6557 ## ------------------------------------ ##
6560 sed "s/^/$as_me: WARNING: /" >&2
6563 echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 eval "$as_ac_Header=$ac_header_preproc"
6570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584 # End of readline/conio stuff
6585 # -----------------------------------------------------------------------
6588 # ---------------------------------------------------
6589 # Check for GMP support/directory
6590 # ---------------------------------------------------
6594 # [ --with-gmp[=DIR] Specify gmp library directory],
6596 # case "$with_gmp" in
6599 # if test "$with_gmp" != "yes"; then
6600 # GMP_INC="-I$with_gmp"
6602 # GMP_LDFLAGS="-L$with_gmp"
6604 # with_gmp="/usr/include"
6606 # AC_CHECK_HEADER($with_gmp/gmp.h,
6607 # [ AC_MSG_RESULT(yes)
6608 # AC_DEFINE(HAVE_GMP)
6612 # [ AC_MSG_ERROR([*** gmp library missing])
6618 # # check for standard gmp library
6619 # AC_CHECK_HEADER(/usr/include/gmp.h,
6620 # [ AC_MSG_RESULT(yes)
6621 # AC_DEFINE(HAVE_GMP)
6626 # # Did not find standard library, so use our own
6627 # AC_MSG_RESULT(yes)
6628 # AC_DEFINE(HAVE_GMP)
6631 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6633 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6634 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6640 #AC_SUBST(GMP_LDFLAGS)
6644 # -----------------------------------------------------------------------
6647 # ---------------------------------------------------
6648 # Check for CWEB support/directory
6649 # ---------------------------------------------------
6654 # [ --with-cweb[=DIR] Specify cweb library directory],
6656 # case "$with_cweb" in
6659 # if test "$with_cweb" != "yes"; then
6660 # CWEB_INC="-I$with_cweb"
6661 # CWEB_LIBS="-lcweb"
6662 # CWEB_LDFLAGS="-L$with_cweb"
6664 # with_cweb="/usr/include"
6666 # AC_CHECK_HEADER($with_cweb/cweb.h,
6667 # [ AC_MSG_RESULT(yes)
6668 # AC_DEFINE(HAVE_CWEB)
6669 # CWEB_LIBS="-lcweb"
6672 # [ AC_MSG_ERROR([*** cweb library missing])
6678 # # check for standard cweb library
6679 # AC_CHECK_HEADER(/usr/include/cweb.h,
6680 # [ AC_MSG_RESULT(yes)
6681 # AC_DEFINE(HAVE_CWEB)
6684 # CWEB_LIBS="-lcweb"
6686 # # Did not find starndard library, so use our own
6687 # AC_MSG_RESULT(yes)
6688 # AC_DEFINE(HAVE_CWEB)
6691 # CWEB=${TOP_DIR}/depkgs/cweb
6692 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6693 # CWEB_LIBS="-lcweb"
6694 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6695 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6701 #AC_SUBST(CWEB_LIBS)
6702 #AC_SUBST(CWEB_LDFLAGS)
6706 # -----------------------------------------------------------------------
6710 # -----------------------------------------------------------
6711 # Check whether user wants TCP wrappers support (default off)
6712 # -----------------------------------------------------------
6715 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6716 if test "${with_tcp_wrappers+set}" = set; then
6717 withval="$with_tcp_wrappers"
6719 if test "x$withval" != "xno" ; then
6721 LIBS="$saved_LIBS -lwrap"
6722 echo "$as_me:$LINENO: checking for libwrap" >&5
6723 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6724 cat >conftest.$ac_ext <<_ACEOF
6725 #line $LINENO "configure"
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6732 int deny_severity = 0;
6733 int allow_severity = 0;
6734 struct request_info *req;
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745 (eval $ac_link) 2>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -s conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6756 echo "$as_me:$LINENO: result: yes" >&5
6757 echo "${ECHO_T}yes" >&6
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_LIBWRAP 1
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6769 LIBS="$saved_LIBS -lwrap -lnsl"
6770 cat >conftest.$ac_ext <<_ACEOF
6771 #line $LINENO "configure"
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h. */
6778 int deny_severity = 0;
6779 int allow_severity = 0;
6780 struct request_info *req;
6789 rm -f conftest.$ac_objext conftest$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6802 echo "$as_me:$LINENO: result: yes" >&5
6803 echo "${ECHO_T}yes" >&6
6804 cat >>confdefs.h <<\_ACEOF
6805 #define HAVE_LIBWRAP 1
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6815 echo "$as_me: error: *** libwrap missing" >&2;}
6816 { (exit 1); exit 1; }; }
6819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6828 # ------------------------------------------
6829 # Where to place working dir
6830 # ------------------------------------------
6831 working_dir=`eval echo ${prefix}/var/bacula/working`
6833 # Check whether --with-working-dir or --without-working-dir was given.
6834 if test "${with_working_dir+set}" = set; then
6835 withval="$with_working_dir"
6837 if test "x$withval" != "xno" ; then
6838 working_dir=$withval
6847 # ------------------------------------------
6848 # Where to place scriptdir (script files)
6849 # ------------------------------------------
6850 scriptdir=`eval echo ${sysconfdir}`
6852 # Check whether --with-scriptdir or --without-scriptdir was given.
6853 if test "${with_scriptdir+set}" = set; then
6854 withval="$with_scriptdir"
6856 if test "x$withval" != "xno" ; then
6866 # ------------------------------------------
6867 # Where to send dump email
6868 # ------------------------------------------
6869 dump_email=root@localhost
6871 # Check whether --with-dump-email or --without-dump-email was given.
6872 if test "${with_dump_email+set}" = set; then
6873 withval="$with_dump_email"
6875 if test "x$withval" != "xno" ; then
6884 # ------------------------------------------
6885 # Where to send job email
6886 # ------------------------------------------
6887 job_email=root@localhost
6889 # Check whether --with-job-email or --without-job-email was given.
6890 if test "${with_job_email+set}" = set; then
6891 withval="$with_job_email"
6893 if test "x$withval" != "xno" ; then
6902 # ------------------------------------------
6903 # Where to find smtp host
6904 # ------------------------------------------
6907 # Check whether --with-smtp_host or --without-smtp_host was given.
6908 if test "${with_smtp_host+set}" = set; then
6909 withval="$with_smtp_host"
6911 if test "x$withval" != "xno" ; then
6921 # ------------------------------------
6922 # Where to place pid files
6923 # ------------------------------------
6926 # Check whether --with-pid-dir or --without-pid-dir was given.
6927 if test "${with_pid_dir+set}" = set; then
6928 withval="$with_pid_dir"
6930 if test "x$withval" != "xno" ; then
6937 cat >>confdefs.h <<_ACEOF
6938 #define _PATH_BACULA_PIDDIR "$piddir"
6944 # ------------------------------------
6945 # Where to place subsys "lock file"
6946 # ------------------------------------
6947 subsysdir=/var/run/subsys
6949 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6950 if test "${with_subsys_dir+set}" = set; then
6951 withval="$with_subsys_dir"
6953 if test "x$withval" != "xno" ; then
6964 # ------------------------------------
6965 # Where to start assigning ports
6966 # ------------------------------------
6969 # Check whether --with-baseport or --without-baseport was given.
6970 if test "${with_baseport+set}" = set; then
6971 withval="$with_baseport"
6973 if test "x$withval" != "xno" ; then
6981 dir_port=`expr $baseport`
6982 fd_port=`expr $baseport + 1`
6983 sd_port=`expr $fd_port + 1`
6990 # ------------------------------------------
6991 # Generate passwords
6992 # ------------------------------------------
6995 # Check whether --with-dir-password or --without-dir-password was given.
6996 if test "${with_dir_password+set}" = set; then
6997 withval="$with_dir_password"
6999 if test "x$withval" != "xno" ; then
7000 dir_password=$withval
7006 if test "x$dir_password" = "x" ; then
7007 if test "x$OPENSSL" = "xnone" ; then
7008 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7009 key=`autoconf/randpass 33`
7011 key=`openssl rand -base64 33`
7018 # Check whether --with-fd-password or --without-fd-password was given.
7019 if test "${with_fd_password+set}" = set; then
7020 withval="$with_fd_password"
7022 if test "x$withval" != "xno" ; then
7023 fd_password=$withval
7029 if test "x$fd_password" = "x" ; then
7030 if test "x$OPENSSL" = "xnone" ; then
7031 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7032 key=`autoconf/randpass 37`
7034 key=`openssl rand -base64 33`
7041 # Check whether --with-sd-password or --without-sd-password was given.
7042 if test "${with_sd_password+set}" = set; then
7043 withval="$with_sd_password"
7045 if test "x$withval" != "xno" ; then
7046 sd_password=$withval
7052 if test "x$sd_password" = "x" ; then
7053 if test "x$OPENSSL" = "xnone" ; then
7054 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7055 key=`autoconf/randpass 41`
7057 key=`openssl rand -base64 33`
7069 # Handle users and groups for each daemon
7073 # Check whether --with-dir_user or --without-dir_user was given.
7074 if test "${with_dir_user+set}" = set; then
7075 withval="$with_dir_user"
7077 if test "x$withval" != "x" ; then
7086 # Check whether --with-dir_group or --without-dir_group was given.
7087 if test "${with_dir_group+set}" = set; then
7088 withval="$with_dir_group"
7090 if test "x$withval" != "x" ; then
7099 # Check whether --with-sd_user or --without-sd_user was given.
7100 if test "${with_sd_user+set}" = set; then
7101 withval="$with_sd_user"
7103 if test "x$withval" != "x" ; then
7112 # Check whether --with-sd_group or --without-sd_group was given.
7113 if test "${with_sd_group+set}" = set; then
7114 withval="$with_sd_group"
7116 if test "x$withval" != "x" ; then
7125 # Check whether --with-fd_user or --without-fd_user was given.
7126 if test "${with_fd_user+set}" = set; then
7127 withval="$with_fd_user"
7129 if test "x$withval" != "x" ; then
7138 # Check whether --with-fd_group or --without-fd_group was given.
7139 if test "${with_fd_group+set}" = set; then
7140 withval="$with_fd_group"
7142 if test "x$withval" != "x" ; then
7160 # allow setting default executable permissions
7164 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7165 if test "${with_sbin_perm+set}" = set; then
7166 withval="$with_sbin_perm"
7168 if test "x$withval" != "x" ; then
7177 # ------------------------------------------------
7178 # Bacula check for various SQL database engines
7179 # ------------------------------------------------
7182 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7183 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7185 # Check whether --with-postgresql or --without-postgresql was given.
7186 if test "${with_postgresql+set}" = set; then
7187 withval="$with_postgresql"
7189 if test "$withval" != "no"; then
7190 if test "$db_found" = "yes"; then
7191 echo "$as_me:$LINENO: result: error" >&5
7192 echo "${ECHO_T}error" >&6
7193 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7194 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7195 { (exit 1); exit 1; }; };
7197 if test "$withval" = "yes"; then
7198 if test -f /usr/local/include/libpq-fe.h; then
7199 POSTGRESQL_INCDIR=/usr/local/include
7200 POSTGRESQL_LIBDIR=/usr/local/lib
7201 POSTGRESQL_BINDIR=/usr/local/bin
7202 elif test -f /usr/include/libpq-fe.h; then
7203 POSTGRESQL_INCDIR=/usr/include
7204 POSTGRESQL_LIBDIR=/usr/lib
7205 POSTGRESQL_BINDIR=/usr/bin
7206 elif test -f /usr/include/pgsql/libpq-fe.h; then
7207 POSTGRESQL_INCDIR=/usr/include/pgsql
7208 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7209 POSTGRESQL_BINDIR=/usr/bin
7210 elif test -f /usr/include/postgresql/libpq-fe.h; then
7211 POSTGRESQL_INCDIR=/usr/include/postgresql
7212 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7213 POSTGRESQL_BINDIR=/usr/bin
7215 echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7218 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7219 { (exit 1); exit 1; }; }
7221 elif test -f $withval/include/libpq-fe.h; then
7222 POSTGRESQL_INCDIR=$withval/include
7223 POSTGRESQL_LIBDIR=$withval/lib
7224 POSTGRESQL_BINDIR=$withval/bin
7226 echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6
7228 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7229 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7230 { (exit 1); exit 1; }; }
7232 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7233 echo "$as_me:$LINENO: checking for crypt" >&5
7234 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7235 if test "${ac_cv_func_crypt+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char crypt (); below.
7247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 <limits.h> exists even on freestanding compilers. */
7250 # include <limits.h>
7252 # include <assert.h>
7254 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_crypt) || defined (__stub___crypt)
7268 char (*f) () = crypt;
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284 (eval $ac_link) 2>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -s conftest$ac_exeext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_cv_func_crypt=yes
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7304 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7305 if test $ac_cv_func_crypt = yes; then
7308 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7309 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7310 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_check_lib_save_LIBS=$LIBS
7314 LIBS="-lcrypt $LIBS"
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7323 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7338 rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7340 (eval $ac_link) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -s conftest$ac_exeext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 ac_cv_lib_crypt_crypt=yes
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_cv_lib_crypt_crypt=no
7357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7360 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7361 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7362 if test $ac_cv_lib_crypt_crypt = yes; then
7363 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7368 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7369 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7370 SQL_BINDIR=$POSTGRESQL_BINDIR
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_POSTGRESQL 1
7375 echo "$as_me:$LINENO: result: yes" >&5
7376 echo "${ECHO_T}yes" >&6
7378 support_postgresql=yes
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7400 echo "$as_me:$LINENO: checking for MySQL support" >&5
7401 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7403 # Check whether --with-mysql or --without-mysql was given.
7404 if test "${with_mysql+set}" = set; then
7405 withval="$with_mysql"
7407 if test "$withval" != "no"; then
7408 if test "$withval" = "yes"; then
7409 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7410 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7411 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7412 MYSQL_BINDIR=/usr/local/mysql/bin
7413 elif test -f /usr/include/mysql/mysql.h; then
7414 MYSQL_INCDIR=/usr/include/mysql
7415 MYSQL_LIBDIR=/usr/lib/mysql
7416 MYSQL_BINDIR=/usr/bin
7417 elif test -f /usr/include/mysql.h; then
7418 MYSQL_INCDIR=/usr/include
7419 MYSQL_LIBDIR=/usr/lib
7420 MYSQL_BINDIR=/usr/bin
7421 elif test -f /usr/local/include/mysql/mysql.h; then
7422 MYSQL_INCDIR=/usr/local/include/mysql
7423 MYSQL_LIBDIR=/usr/local/lib/mysql
7424 MYSQL_BINDIR=/usr/local/bin
7425 elif test -f /usr/local/include/mysql.h; then
7426 MYSQL_INCDIR=/usr/local/include
7427 MYSQL_LIBDIR=/usr/local/lib
7428 MYSQL_BINDIR=/usr/local/bin
7430 echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7432 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7433 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7434 { (exit 1); exit 1; }; }
7437 if test -f $withval/include/mysql/mysql.h; then
7438 MYSQL_INCDIR=$withval/include/mysql
7439 MYSQL_LIBDIR=$withval/lib/mysql
7440 MYSQL_BINDIR=$withval/bin
7441 elif test -f $withval/include/mysql.h; then
7442 MYSQL_INCDIR=$withval/include
7443 MYSQL_LIBDIR=$withval/lib
7444 MYSQL_BINDIR=$withval/bin
7446 echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7449 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7450 { (exit 1); exit 1; }; }
7453 SQL_INCLUDE=-I$MYSQL_INCDIR
7454 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7455 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7456 cat >>confdefs.h <<\_ACEOF
7457 #define HAVE_THREAD_SAFE_MYSQL 1
7461 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7463 SQL_BINDIR=$MYSQL_BINDIR
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_MYSQL 1
7469 echo "$as_me:$LINENO: result: yes" >&5
7470 echo "${ECHO_T}yes" >&6
7477 echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7483 echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6
7489 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7490 if test "${with_embedded_mysql+set}" = set; then
7491 withval="$with_embedded_mysql"
7493 if test "$withval" != "no"; then
7494 if test "$withval" = "yes"; then
7495 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7496 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7497 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7498 MYSQL_BINDIR=/usr/local/mysql/bin
7499 elif test -f /usr/include/mysql/mysql.h; then
7500 MYSQL_INCDIR=/usr/include/mysql
7501 MYSQL_LIBDIR=/usr/lib/mysql
7502 MYSQL_BINDIR=/usr/bin
7503 elif test -f /usr/include/mysql.h; then
7504 MYSQL_INCDIR=/usr/include
7505 MYSQL_LIBDIR=/usr/lib
7506 MYSQL_BINDIR=/usr/bin
7507 elif test -f /usr/local/include/mysql/mysql.h; then
7508 MYSQL_INCDIR=/usr/local/include/mysql
7509 MYSQL_LIBDIR=/usr/local/lib/mysql
7510 MYSQL_BINDIR=/usr/local/bin
7511 elif test -f /usr/local/include/mysql.h; then
7512 MYSQL_INCDIR=/usr/local/include
7513 MYSQL_LIBDIR=/usr/local/lib
7514 MYSQL_BINDIR=/usr/local/bin
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7518 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7519 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7520 { (exit 1); exit 1; }; }
7523 if test -f $withval/include/mysql/mysql.h; then
7524 MYSQL_INCDIR=$withval/include/mysql
7525 MYSQL_LIBDIR=$withval/lib/mysql
7526 MYSQL_BINDIR=$withval/bin
7527 elif test -f $withval/include/mysql.h; then
7528 MYSQL_INCDIR=$withval/include
7529 MYSQL_LIBDIR=$withval/lib
7530 MYSQL_BINDIR=$withval/bin
7532 echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6
7534 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7535 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7536 { (exit 1); exit 1; }; }
7539 SQL_INCLUDE=-I$MYSQL_INCDIR
7540 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7541 SQL_BINDIR=$MYSQL_BINDIR
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_MYSQL 1
7547 cat >>confdefs.h <<\_ACEOF
7548 #define HAVE_EMBEDDED_MYSQL 1
7551 echo "$as_me:$LINENO: result: yes" >&5
7552 echo "${ECHO_T}yes" >&6
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7565 echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7579 echo "$as_me:$LINENO: checking for SQLite support" >&5
7580 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7582 # Check whether --with-sqlite or --without-sqlite was given.
7583 if test "${with_sqlite+set}" = set; then
7584 withval="$with_sqlite"
7586 if test "$withval" != "no"; then
7587 if test "$withval" = "yes"; then
7588 if test -f /usr/local/include/sqlite.h; then
7589 SQLITE_INCDIR=/usr/local/include
7590 SQLITE_LIBDIR=/usr/local/lib
7591 SQLITE_BINDIR=/usr/local/bin
7592 elif test -f /usr/include/sqlite.h; then
7593 SQLITE_INCDIR=/usr/include
7594 SQLITE_LIBDIR=/usr/lib
7595 SQLITE_BINDIR=/usr/bin
7597 echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6
7599 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7600 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7601 { (exit 1); exit 1; }; }
7604 if test -f $withval/sqlite.h; then
7605 SQLITE_INCDIR=$withval
7606 SQLITE_LIBDIR=$withval
7607 SQLITE_BINDIR=$withval
7609 echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6
7611 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7612 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7613 { (exit 1); exit 1; }; }
7616 SQL_INCLUDE=-I$SQLITE_INCDIR
7617 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7618 SQL_BINDIR=$SQLITE_BINDIR
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_SQLITE 1
7624 echo "$as_me:$LINENO: result: yes" >&5
7625 echo "${ECHO_T}yes" >&6
7632 echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7638 echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6
7651 cat >>confdefs.h <<\_ACEOF
7652 #define PROTOTYPES 1
7656 if test -z "$CFLAGS"; then
7657 if test -z "$CCOPTS"; then
7666 largefile_support="no"
7668 # Check whether --enable-largefile or --disable-largefile was given.
7669 if test "${enable_largefile+set}" = set; then
7670 enableval="$enable_largefile"
7673 if test "$enable_largefile" != no; then
7674 if test -n "$ac_tool_prefix"; then
7675 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7676 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_GETCONF+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 if test -n "$GETCONF"; then
7683 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 GETCONF=$ac_cv_prog_GETCONF
7702 if test -n "$GETCONF"; then
7703 echo "$as_me:$LINENO: result: $GETCONF" >&5
7704 echo "${ECHO_T}$GETCONF" >&6
7706 echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7711 if test -z "$ac_cv_prog_GETCONF"; then
7712 ac_ct_GETCONF=$GETCONF
7713 # Extract the first word of "getconf", so it can be a program name with args.
7714 set dummy getconf; ac_word=$2
7715 echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 if test -n "$ac_ct_GETCONF"; then
7721 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_GETCONF="getconf"
7731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7740 if test -n "$ac_ct_GETCONF"; then
7741 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7742 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7744 echo "$as_me:$LINENO: result: no" >&5
7745 echo "${ECHO_T}no" >&6
7748 GETCONF=$ac_ct_GETCONF
7750 GETCONF="$ac_cv_prog_GETCONF"
7753 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7754 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7755 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7759 ac_cv_sys_largefile_CFLAGS=no
7761 # IRIX 6.2 and later require cc -n32.
7762 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7763 if test "$GCC" != yes; then
7764 ac_cv_sys_largefile_CFLAGS=-n32
7767 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786 (eval $ac_link) 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7798 echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7801 ac_cv_sys_largefile_CFLAGS=no
7803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7808 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7809 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7810 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7811 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7812 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7816 ac_cv_sys_largefile_LDFLAGS=no
7820 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7821 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7822 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7823 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7824 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7828 ac_cv_sys_largefile_LIBS=no
7832 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7833 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7835 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7838 -D_FILE_OFFSET_BITS=*) ;;
7839 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7840 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7846 '') CPPFLAGS="$ac_flag" ;;
7847 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7855 '') CFLAGS="$ac_flag" ;;
7856 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7861 case "$ac_cv_sys_largefile_LDFLAGS" in
7865 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7866 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7869 case "$ac_cv_sys_largefile_LIBS" in
7873 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7874 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7877 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7878 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 ac_cv_sys_file_offset_bits=no
7884 # HP-UX 10.20 and later
7885 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7886 ac_cv_sys_file_offset_bits=64 ;;
7888 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7890 -D_FILE_OFFSET_BITS)
7891 ac_cv_sys_file_offset_bits=1 ;;
7892 -D_FILE_OFFSET_BITS=*)
7893 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7898 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7900 if test "$ac_cv_sys_file_offset_bits" != no; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7907 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7908 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7909 if test "${ac_cv_sys_largefile_source+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_cv_sys_largefile_source=no
7914 # HP-UX 10.20 and later
7915 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7916 ac_cv_sys_largefile_source=1 ;;
7918 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7920 -D_LARGEFILE_SOURCE)
7921 ac_cv_sys_largefile_source=1 ;;
7922 -D_LARGEFILE_SOURCE=*)
7923 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7928 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7929 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7930 if test "$ac_cv_sys_largefile_source" != no; then
7932 cat >>confdefs.h <<_ACEOF
7933 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7937 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7938 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7939 if test "${ac_cv_sys_large_files+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 ac_cv_sys_large_files=no
7945 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7946 ac_cv_sys_large_files=1 ;;
7948 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7951 ac_cv_sys_large_files=1 ;;
7953 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7958 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7959 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7960 if test "$ac_cv_sys_large_files" != no; then
7962 cat >>confdefs.h <<_ACEOF
7963 #define _LARGE_FILES $ac_cv_sys_large_files
7971 echo "$as_me:$LINENO: checking for X" >&5
7972 echo $ECHO_N "checking for X... $ECHO_C" >&6
7975 # Check whether --with-x or --without-x was given.
7976 if test "${with_x+set}" = set; then
7980 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7981 if test "x$with_x" = xno; then
7982 # The user explicitly disabled X.
7985 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7986 # Both variables are already set.
7989 if test "${ac_cv_have_x+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 # One or both of the vars are not set, and there is no cached value.
7993 ac_x_includes=no ac_x_libraries=no
7995 if mkdir conftest.dir; then
7997 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7998 cat >Imakefile <<'_ACEOF'
8000 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8002 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8004 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8005 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8006 for ac_extension in a so sl; do
8007 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8008 test -f $ac_im_libdir/libX11.$ac_extension; then
8009 ac_im_usrlibdir=$ac_im_libdir; break
8012 # Screen out bogus values from the imake configuration. They are
8013 # bogus both because they are the default anyway, and because
8014 # using them would break gcc on systems where it needs fixed includes.
8015 case $ac_im_incroot in
8017 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8019 case $ac_im_usrlibdir in
8021 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8028 # Standard set of common directories for X headers.
8029 # Check X11 before X11Rn because it is often a symlink to the current release.
8041 /usr/local/X11/include
8042 /usr/local/X11R6/include
8043 /usr/local/X11R5/include
8044 /usr/local/X11R4/include
8046 /usr/local/include/X11
8047 /usr/local/include/X11R6
8048 /usr/local/include/X11R5
8049 /usr/local/include/X11R4
8053 /usr/XFree86/include/X11
8057 /usr/unsupported/include
8059 /usr/local/x11r5/include
8060 /usr/lpp/Xamples/include
8062 /usr/openwin/include
8063 /usr/openwin/share/include'
8065 if test "$ac_x_includes" = no; then
8066 # Guess where to find include files, by looking for Intrinsic.h.
8067 # First, try using that file with no special directory specified.
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 #include <X11/Intrinsic.h>
8077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } >/dev/null; then
8085 if test -s conftest.err; then
8086 ac_cpp_err=$ac_c_preproc_warn_flag
8093 if test -z "$ac_cpp_err"; then
8094 # We can compile using X headers with no special include directory.
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 for ac_dir in $ac_x_header_dirs; do
8101 if test -r "$ac_dir/X11/Intrinsic.h"; then
8102 ac_x_includes=$ac_dir
8107 rm -f conftest.err conftest.$ac_ext
8108 fi # $ac_x_includes = no
8110 if test "$ac_x_libraries" = no; then
8111 # Check for the libraries.
8112 # See if we find them without any special options.
8113 # Don't add to $LIBS permanently.
8116 cat >conftest.$ac_ext <<_ACEOF
8117 #line $LINENO "configure"
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <X11/Intrinsic.h>
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8145 # We can link X programs with no special library path.
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8152 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8154 # Don't even attempt the hair of trying to link an X program!
8155 for ac_extension in a so sl; do
8156 if test -r $ac_dir/libXt.$ac_extension; then
8157 ac_x_libraries=$ac_dir
8163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8164 fi # $ac_x_libraries = no
8166 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8167 # Didn't find X anywhere. Cache the known absence of X.
8168 ac_cv_have_x="have_x=no"
8170 # Record where we found X for the cache.
8171 ac_cv_have_x="have_x=yes \
8172 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8177 eval "$ac_cv_have_x"
8180 if test "$have_x" != yes; then
8181 echo "$as_me:$LINENO: result: $have_x" >&5
8182 echo "${ECHO_T}$have_x" >&6
8185 # If each of the values was on the command line, it overrides each guess.
8186 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8187 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8188 # Update the cache value to reflect the command line values.
8189 ac_cv_have_x="have_x=yes \
8190 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8191 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8192 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8195 if test "$no_x" = yes; then
8196 # Not all programs may use this symbol, but it does not hurt to define it.
8198 cat >>confdefs.h <<\_ACEOF
8199 #define X_DISPLAY_MISSING 1
8202 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8204 if test -n "$x_includes"; then
8205 X_CFLAGS="$X_CFLAGS -I$x_includes"
8208 # It would also be nice to do this for all -L options, not just this one.
8209 if test -n "$x_libraries"; then
8210 X_LIBS="$X_LIBS -L$x_libraries"
8211 # For Solaris; some versions of Sun CC require a space after -R and
8212 # others require no space. Words are not sufficient . . . .
8213 case `(uname -sr) 2>/dev/null` in
8215 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8216 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8217 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8254 if test $ac_R_nospace = yes; then
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8257 X_LIBS="$X_LIBS -R$x_libraries"
8259 LIBS="$ac_xsave_LIBS -R $x_libraries"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8296 if test $ac_R_space = yes; then
8297 echo "$as_me:$LINENO: result: yes" >&5
8298 echo "${ECHO_T}yes" >&6
8299 X_LIBS="$X_LIBS -R $x_libraries"
8301 echo "$as_me:$LINENO: result: neither works" >&5
8302 echo "${ECHO_T}neither works" >&6
8309 # Check for system-dependent libraries X programs must link with.
8310 # Do this before checking for the system-independent R6 libraries
8311 # (-lICE), since we may need -lsocket or whatever for X linking.
8313 if test "$ISC" = yes; then
8314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8316 # Martyn Johnson says this is needed for Ultrix, if the X
8317 # libraries were built with DECnet support. And Karl Berry says
8318 # the Alpha needs dnet_stub (dnet does not exist).
8319 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 /* Override any gcc2 internal prototype to avoid an error. */
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8334 char XOpenDisplay ();
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } &&
8349 { ac_try='test -s conftest$ac_exeext'
8350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8361 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8362 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 ac_check_lib_save_LIBS=$LIBS
8367 cat >conftest.$ac_ext <<_ACEOF
8368 #line $LINENO "configure"
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8375 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8390 rm -f conftest.$ac_objext conftest$ac_exeext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8392 (eval $ac_link) 2>&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -s conftest$ac_exeext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_lib_dnet_dnet_ntoa=yes
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8407 ac_cv_lib_dnet_dnet_ntoa=no
8409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8410 LIBS=$ac_check_lib_save_LIBS
8412 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8413 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8414 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8415 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8418 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8419 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8420 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8421 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-ldnet_stub $LIBS"
8426 cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8434 /* Override any gcc2 internal prototype to avoid an error. */
8438 /* We use char because int might match the return type of a gcc2
8439 builtin and then its argument prototype would still apply. */
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451 (eval $ac_link) 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_lib_dnet_stub_dnet_ntoa=no
8468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8472 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8473 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8474 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8480 LIBS="$ac_xsave_LIBS"
8482 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8483 # to get the SysV transport functions.
8484 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8486 # The nsl library prevents programs from opening the X display
8487 # on Irix 5.2, according to T.E. Dickey.
8488 # The functions gethostbyname, getservbyname, and inet_addr are
8489 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8490 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8491 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8492 if test "${ac_cv_func_gethostbyname+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 /* System header to define __stub macros and hopefully few prototypes,
8503 which can conflict with char gethostbyname (); below.
8504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8505 <limits.h> exists even on freestanding compilers. */
8507 # include <limits.h>
8509 # include <assert.h>
8511 /* Override any gcc2 internal prototype to avoid an error. */
8516 /* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8518 char gethostbyname ();
8519 /* The GNU C library defines this for functions which it implements
8520 to always fail with ENOSYS. Some functions are actually named
8521 something starting with __ and the normal name is an alias. */
8522 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8525 char (*f) () = gethostbyname;
8534 return f != gethostbyname;
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_func_gethostbyname=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_func_gethostbyname=no
8558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8561 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8563 if test $ac_cv_func_gethostbyname = no; then
8564 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8565 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8566 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 ac_check_lib_save_LIBS=$LIBS
8571 cat >conftest.$ac_ext <<_ACEOF
8572 #line $LINENO "configure"
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8579 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char gethostbyname ();
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_lib_nsl_gethostbyname=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_cv_lib_nsl_gethostbyname=no
8613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8614 LIBS=$ac_check_lib_save_LIBS
8616 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8617 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8618 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8622 if test $ac_cv_lib_nsl_gethostbyname = no; then
8623 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8624 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8625 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 ac_check_lib_save_LIBS=$LIBS
8630 cat >conftest.$ac_ext <<_ACEOF
8631 #line $LINENO "configure"
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8638 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char gethostbyname ();
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_bsd_gethostbyname=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_lib_bsd_gethostbyname=no
8672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8675 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8676 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8677 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8684 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8685 # socket/setsockopt and other routines are undefined under SCO ODT
8686 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8687 # on later versions), says Simon Leinen: it contains gethostby*
8688 # variants that don't use the name server (or something). -lsocket
8689 # must be given before -lnsl if both are needed. We assume that
8690 # if connect needs -lnsl, so does gethostbyname.
8691 echo "$as_me:$LINENO: checking for connect" >&5
8692 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8693 if test "${ac_cv_func_connect+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 /* System header to define __stub macros and hopefully few prototypes,
8704 which can conflict with char connect (); below.
8705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706 <limits.h> exists even on freestanding compilers. */
8708 # include <limits.h>
8710 # include <assert.h>
8712 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8720 /* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723 #if defined (__stub_connect) || defined (__stub___connect)
8726 char (*f) () = connect;
8735 return f != connect;
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8742 (eval $ac_link) 2>&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -s conftest$ac_exeext'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_func_connect=yes
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8757 ac_cv_func_connect=no
8759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8761 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8762 echo "${ECHO_T}$ac_cv_func_connect" >&6
8764 if test $ac_cv_func_connect = no; then
8765 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8766 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8767 if test "${ac_cv_lib_socket_connect+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any gcc2 internal prototype to avoid an error. */
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -s conftest$ac_exeext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 ac_cv_lib_socket_connect=yes
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_cv_lib_socket_connect=no
8814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8815 LIBS=$ac_check_lib_save_LIBS
8817 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8818 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8819 if test $ac_cv_lib_socket_connect = yes; then
8820 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8825 # Guillermo Gomez says -lposix is necessary on A/UX.
8826 echo "$as_me:$LINENO: checking for remove" >&5
8827 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8828 if test "${ac_cv_func_remove+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 cat >conftest.$ac_ext <<_ACEOF
8832 #line $LINENO "configure"
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 /* System header to define __stub macros and hopefully few prototypes,
8839 which can conflict with char remove (); below.
8840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8841 <limits.h> exists even on freestanding compilers. */
8843 # include <limits.h>
8845 # include <assert.h>
8847 /* Override any gcc2 internal prototype to avoid an error. */
8852 /* We use char because int might match the return type of a gcc2
8853 builtin and then its argument prototype would still apply. */
8855 /* The GNU C library defines this for functions which it implements
8856 to always fail with ENOSYS. Some functions are actually named
8857 something starting with __ and the normal name is an alias. */
8858 #if defined (__stub_remove) || defined (__stub___remove)
8861 char (*f) () = remove;
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_cv_func_remove=yes
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_cv_func_remove=no
8894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8896 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8897 echo "${ECHO_T}$ac_cv_func_remove" >&6
8899 if test $ac_cv_func_remove = no; then
8900 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8901 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8902 if test "${ac_cv_lib_posix_remove+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 ac_check_lib_save_LIBS=$LIBS
8906 LIBS="-lposix $LIBS"
8907 cat >conftest.$ac_ext <<_ACEOF
8908 #line $LINENO "configure"
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8915 /* Override any gcc2 internal prototype to avoid an error. */
8919 /* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_posix_remove=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_lib_posix_remove=no
8949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8952 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8953 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8954 if test $ac_cv_lib_posix_remove = yes; then
8955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8960 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8961 echo "$as_me:$LINENO: checking for shmat" >&5
8962 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8963 if test "${ac_cv_func_shmat+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8967 #line $LINENO "configure"
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 /* System header to define __stub macros and hopefully few prototypes,
8974 which can conflict with char shmat (); below.
8975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8976 <limits.h> exists even on freestanding compilers. */
8978 # include <limits.h>
8980 # include <assert.h>
8982 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8990 /* The GNU C library defines this for functions which it implements
8991 to always fail with ENOSYS. Some functions are actually named
8992 something starting with __ and the normal name is an alias. */
8993 #if defined (__stub_shmat) || defined (__stub___shmat)
8996 char (*f) () = shmat;
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_func_shmat=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9032 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9034 if test $ac_cv_func_shmat = no; then
9035 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9036 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9037 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 ac_check_lib_save_LIBS=$LIBS
9042 cat >conftest.$ac_ext <<_ACEOF
9043 #line $LINENO "configure"
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9050 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9065 rm -f conftest.$ac_objext conftest$ac_exeext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9067 (eval $ac_link) 2>&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_cv_lib_ipc_shmat=yes
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_cv_lib_ipc_shmat=no
9084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9087 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9088 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9089 if test $ac_cv_lib_ipc_shmat = yes; then
9090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9096 # Check for libraries that X11R6 Xt/Xaw programs need.
9097 ac_save_LDFLAGS=$LDFLAGS
9098 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9099 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9100 # check for ICE first), but we must link in the order -lSM -lICE or
9101 # we get undefined symbols. So assume we have SM if we have ICE.
9102 # These have to be linked with before -lX11, unlike the other
9103 # libraries we check for below, so use a different variable.
9104 # John Interrante, Karl Berry
9105 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9106 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9107 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9112 cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9120 /* Override any gcc2 internal prototype to avoid an error. */
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9126 char IceConnectionNumber ();
9130 IceConnectionNumber ();
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137 (eval $ac_link) 2>&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_lib_ICE_IceConnectionNumber=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 ac_cv_lib_ICE_IceConnectionNumber=no
9154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9157 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9158 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9159 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9160 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9163 LDFLAGS=$ac_save_LDFLAGS
9215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217 echo "$as_me:$LINENO: checking for $ac_header" >&5
9218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9225 # Is the header compilable?
9226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9229 #line $LINENO "configure"
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9236 #include <$ac_header>
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest.$ac_objext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_header_compiler=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_header_compiler=no
9257 rm -f conftest.$ac_objext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9259 echo "${ECHO_T}$ac_header_compiler" >&6
9261 # Is the header present?
9262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271 #include <$ac_header>
9273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null; then
9281 if test -s conftest.err; then
9282 ac_cpp_err=$ac_c_preproc_warn_flag
9289 if test -z "$ac_cpp_err"; then
9290 ac_header_preproc=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_preproc=no
9297 rm -f conftest.err conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9299 echo "${ECHO_T}$ac_header_preproc" >&6
9301 # So? What about this header?
9302 case $ac_header_compiler:$ac_header_preproc in
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9310 ## ------------------------------------ ##
9311 ## Report this to bug-autoconf@gnu.org. ##
9312 ## ------------------------------------ ##
9315 sed "s/^/$as_me: WARNING: /" >&2
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9326 ## ------------------------------------ ##
9327 ## Report this to bug-autoconf@gnu.org. ##
9328 ## ------------------------------------ ##
9331 sed "s/^/$as_me: WARNING: /" >&2
9334 echo "$as_me:$LINENO: checking for $ac_header" >&5
9335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 eval "$as_ac_Header=$ac_header_preproc"
9341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346 cat >>confdefs.h <<_ACEOF
9347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9356 if test "${ac_cv_header_stdc+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9360 #line $LINENO "configure"
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 ac_cv_header_stdc=yes
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_cv_header_stdc=no
9398 rm -f conftest.$ac_objext conftest.$ac_ext
9400 if test $ac_cv_header_stdc = yes; then
9401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "memchr" >/dev/null 2>&1; then
9416 ac_cv_header_stdc=no
9422 if test $ac_cv_header_stdc = yes; then
9423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9424 cat >conftest.$ac_ext <<_ACEOF
9425 #line $LINENO "configure"
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9435 $EGREP "free" >/dev/null 2>&1; then
9438 ac_cv_header_stdc=no
9444 if test $ac_cv_header_stdc = yes; then
9445 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9446 if test "$cross_compiling" = yes; then
9449 cat >conftest.$ac_ext <<_ACEOF
9450 #line $LINENO "configure"
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9457 #if ((' ' & 0x0FF) == 0x020)
9458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9461 # define ISLOWER(c) \
9462 (('a' <= (c) && (c) <= 'i') \
9463 || ('j' <= (c) && (c) <= 'r') \
9464 || ('s' <= (c) && (c) <= 'z'))
9465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9473 for (i = 0; i < 256; i++)
9474 if (XOR (islower (i), ISLOWER (i))
9475 || toupper (i) != TOUPPER (i))
9480 rm -f conftest$ac_exeext
9481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9482 (eval $ac_link) 2>&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9493 echo "$as_me: program exited with status $ac_status" >&5
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9498 ac_cv_header_stdc=no
9500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9506 if test $ac_cv_header_stdc = yes; then
9508 cat >>confdefs.h <<\_ACEOF
9509 #define STDC_HEADERS 1
9514 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9515 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9516 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 cat >conftest.$ac_ext <<_ACEOF
9520 #line $LINENO "configure"
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 #include <sys/types.h>
9530 return makedev(0, 0);
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_header_sys_types_h_makedev=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_cv_header_sys_types_h_makedev=no
9554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9558 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9560 if test $ac_cv_header_sys_types_h_makedev = no; then
9561 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9562 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9563 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9564 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9568 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9570 # Is the header compilable?
9571 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9572 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line $LINENO "configure"
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 $ac_includes_default
9581 #include <sys/mkdev.h>
9583 rm -f conftest.$ac_objext
9584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585 (eval $ac_compile) 2>&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -s conftest.$ac_objext'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_header_compiler=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_header_compiler=no
9602 rm -f conftest.$ac_objext conftest.$ac_ext
9603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9604 echo "${ECHO_T}$ac_header_compiler" >&6
9606 # Is the header present?
9607 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9608 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9610 #line $LINENO "configure"
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 #include <sys/mkdev.h>
9618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } >/dev/null; then
9626 if test -s conftest.err; then
9627 ac_cpp_err=$ac_c_preproc_warn_flag
9634 if test -z "$ac_cpp_err"; then
9635 ac_header_preproc=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_header_preproc=no
9642 rm -f conftest.err conftest.$ac_ext
9643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9644 echo "${ECHO_T}$ac_header_preproc" >&6
9646 # So? What about this header?
9647 case $ac_header_compiler:$ac_header_preproc in
9649 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9650 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9652 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9655 ## ------------------------------------ ##
9656 ## Report this to bug-autoconf@gnu.org. ##
9657 ## ------------------------------------ ##
9660 sed "s/^/$as_me: WARNING: /" >&2
9663 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9664 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9665 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9666 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9668 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9671 ## ------------------------------------ ##
9672 ## Report this to bug-autoconf@gnu.org. ##
9673 ## ------------------------------------ ##
9676 sed "s/^/$as_me: WARNING: /" >&2
9679 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9680 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9681 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9686 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9687 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9690 if test $ac_cv_header_sys_mkdev_h = yes; then
9692 cat >>confdefs.h <<\_ACEOF
9693 #define MAJOR_IN_MKDEV 1
9700 if test $ac_cv_header_sys_mkdev_h = no; then
9701 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9702 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9703 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9704 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9708 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9710 # Is the header compilable?
9711 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9712 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line $LINENO "configure"
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 $ac_includes_default
9721 #include <sys/sysmacros.h>
9723 rm -f conftest.$ac_objext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9725 (eval $ac_compile) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_header_compiler=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_header_compiler=no
9742 rm -f conftest.$ac_objext conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744 echo "${ECHO_T}$ac_header_compiler" >&6
9746 # Is the header present?
9747 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9748 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 #include <sys/sysmacros.h>
9758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } >/dev/null; then
9766 if test -s conftest.err; then
9767 ac_cpp_err=$ac_c_preproc_warn_flag
9774 if test -z "$ac_cpp_err"; then
9775 ac_header_preproc=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_preproc=no
9782 rm -f conftest.err conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9784 echo "${ECHO_T}$ac_header_preproc" >&6
9786 # So? What about this header?
9787 case $ac_header_compiler:$ac_header_preproc in
9789 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9790 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9792 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9795 ## ------------------------------------ ##
9796 ## Report this to bug-autoconf@gnu.org. ##
9797 ## ------------------------------------ ##
9800 sed "s/^/$as_me: WARNING: /" >&2
9803 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9804 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9806 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9808 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9811 ## ------------------------------------ ##
9812 ## Report this to bug-autoconf@gnu.org. ##
9813 ## ------------------------------------ ##
9816 sed "s/^/$as_me: WARNING: /" >&2
9819 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9820 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9821 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9826 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9827 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9830 if test $ac_cv_header_sys_sysmacros_h = yes; then
9832 cat >>confdefs.h <<\_ACEOF
9833 #define MAJOR_IN_SYSMACROS 1
9848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9850 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 cat >conftest.$ac_ext <<_ACEOF
9856 #line $LINENO "configure"
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 #include <sys/types.h>
9874 rm -f conftest.$ac_objext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9876 (eval $ac_compile) 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 eval "$as_ac_Header=yes"
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 eval "$as_ac_Header=no"
9893 rm -f conftest.$ac_objext conftest.$ac_ext
9895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9898 cat >>confdefs.h <<_ACEOF
9899 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9902 ac_header_dirent=$ac_hdr; break
9906 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9907 if test $ac_header_dirent = dirent.h; then
9908 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9909 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9910 if test "${ac_cv_search_opendir+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 ac_func_search_save_LIBS=$LIBS
9914 ac_cv_search_opendir=no
9915 cat >conftest.$ac_ext <<_ACEOF
9916 #line $LINENO "configure"
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9923 /* Override any gcc2 internal prototype to avoid an error. */
9927 /* We use char because int might match the return type of a gcc2
9928 builtin and then its argument prototype would still apply. */
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -s conftest$ac_exeext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 ac_cv_search_opendir="none required"
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
9957 if test "$ac_cv_search_opendir" = no; then
9958 for ac_lib in dir; do
9959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9968 /* Override any gcc2 internal prototype to avoid an error. */
9972 /* We use char because int might match the return type of a gcc2
9973 builtin and then its argument prototype would still apply. */
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_search_opendir="-l$ac_lib"
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_func_search_save_LIBS
10007 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10008 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10009 if test "$ac_cv_search_opendir" != no; then
10010 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10015 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10016 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10017 if test "${ac_cv_search_opendir+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_func_search_save_LIBS=$LIBS
10021 ac_cv_search_opendir=no
10022 cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10030 /* Override any gcc2 internal prototype to avoid an error. */
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 ac_cv_search_opendir="none required"
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
10064 if test "$ac_cv_search_opendir" = no; then
10065 for ac_lib in x; do
10066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10068 #line $LINENO "configure"
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_search_opendir="-l$ac_lib"
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_func_search_save_LIBS
10114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10116 if test "$ac_cv_search_opendir" != no; then
10117 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10123 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10124 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10125 if test "${ac_cv_header_stat_broken+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 cat >conftest.$ac_ext <<_ACEOF
10129 #line $LINENO "configure"
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 #include <sys/types.h>
10136 #include <sys/stat.h>
10138 #if defined(S_ISBLK) && defined(S_IFDIR)
10139 # if S_ISBLK (S_IFDIR)
10144 #if defined(S_ISBLK) && defined(S_IFCHR)
10145 # if S_ISBLK (S_IFCHR)
10150 #if defined(S_ISLNK) && defined(S_IFREG)
10151 # if S_ISLNK (S_IFREG)
10156 #if defined(S_ISSOCK) && defined(S_IFREG)
10157 # if S_ISSOCK (S_IFREG)
10163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10164 $EGREP "You lose" >/dev/null 2>&1; then
10165 ac_cv_header_stat_broken=yes
10167 ac_cv_header_stat_broken=no
10172 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10173 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10174 if test $ac_cv_header_stat_broken = yes; then
10176 cat >>confdefs.h <<\_ACEOF
10177 #define STAT_MACROS_BROKEN 1
10182 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10183 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10184 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 cat >conftest.$ac_ext <<_ACEOF
10188 #line $LINENO "configure"
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 #include <sys/types.h>
10195 #include <sys/wait.h>
10196 #ifndef WEXITSTATUS
10197 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10200 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10208 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215 (eval $ac_compile) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -s conftest.$ac_objext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_header_sys_wait_h=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_header_sys_wait_h=no
10232 rm -f conftest.$ac_objext conftest.$ac_ext
10234 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10235 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10236 if test $ac_cv_header_sys_wait_h = yes; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_SYS_WAIT_H 1
10244 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10245 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10246 if test "${ac_cv_header_time+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <sys/types.h>
10257 #include <sys/time.h>
10263 if ((struct tm *) 0)
10269 rm -f conftest.$ac_objext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -s conftest.$ac_objext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_header_time=yes
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 ac_cv_header_time=no
10288 rm -f conftest.$ac_objext conftest.$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10291 echo "${ECHO_T}$ac_cv_header_time" >&6
10292 if test $ac_cv_header_time = yes; then
10294 cat >>confdefs.h <<\_ACEOF
10295 #define TIME_WITH_SYS_TIME 1
10301 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10302 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10303 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10317 static struct stat ac_aggr;
10318 if (ac_aggr.st_blksize)
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_member_struct_stat_st_blksize=yes
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 $ac_includes_default
10352 static struct stat ac_aggr;
10353 if (sizeof ac_aggr.st_blksize)
10359 rm -f conftest.$ac_objext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_member_struct_stat_st_blksize=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_member_struct_stat_st_blksize=no
10378 rm -f conftest.$ac_objext conftest.$ac_ext
10380 rm -f conftest.$ac_objext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10383 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10384 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_ST_BLKSIZE 1
10398 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10399 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10400 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 cat >conftest.$ac_ext <<_ACEOF
10404 #line $LINENO "configure"
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10414 static struct stat ac_aggr;
10415 if (ac_aggr.st_blocks)
10421 rm -f conftest.$ac_objext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10423 (eval $ac_compile) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -s conftest.$ac_objext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_cv_member_struct_stat_st_blocks=yes
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 cat >conftest.$ac_ext <<_ACEOF
10439 #line $LINENO "configure"
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 $ac_includes_default
10449 static struct stat ac_aggr;
10450 if (sizeof ac_aggr.st_blocks)
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -s conftest.$ac_objext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 ac_cv_member_struct_stat_st_blocks=yes
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10473 ac_cv_member_struct_stat_st_blocks=no
10475 rm -f conftest.$ac_objext conftest.$ac_ext
10477 rm -f conftest.$ac_objext conftest.$ac_ext
10479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10480 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10481 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10483 cat >>confdefs.h <<_ACEOF
10484 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_ST_BLOCKS 1
10493 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10497 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10498 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10499 if test "${ac_cv_struct_tm+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <sys/types.h>
10515 struct tm *tp; tp->tm_sec;
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522 (eval $ac_compile) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -s conftest.$ac_objext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_struct_tm=time.h
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 ac_cv_struct_tm=sys/time.h
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10541 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10542 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10543 if test $ac_cv_struct_tm = sys/time.h; then
10545 cat >>confdefs.h <<\_ACEOF
10546 #define TM_IN_SYS_TIME 1
10551 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10552 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10553 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <sys/types.h>
10564 #include <$ac_cv_struct_tm>
10570 static struct tm ac_aggr;
10571 if (ac_aggr.tm_zone)
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_member_struct_tm_tm_zone=yes
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line $LINENO "configure"
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <sys/types.h>
10602 #include <$ac_cv_struct_tm>
10608 static struct tm ac_aggr;
10609 if (sizeof ac_aggr.tm_zone)
10615 rm -f conftest.$ac_objext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617 (eval $ac_compile) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try='test -s conftest.$ac_objext'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_member_struct_tm_tm_zone=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10632 ac_cv_member_struct_tm_tm_zone=no
10634 rm -f conftest.$ac_objext conftest.$ac_ext
10636 rm -f conftest.$ac_objext conftest.$ac_ext
10638 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10639 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10640 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10642 cat >>confdefs.h <<_ACEOF
10643 #define HAVE_STRUCT_TM_TM_ZONE 1
10649 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_TM_ZONE 1
10656 echo "$as_me:$LINENO: checking for tzname" >&5
10657 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10658 if test "${ac_cv_var_tzname+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10669 #ifndef tzname /* For SGI. */
10670 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10683 (eval $ac_link) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try='test -s conftest$ac_exeext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_var_tzname=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_var_tzname=no
10700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10702 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10703 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10704 if test $ac_cv_var_tzname = yes; then
10706 cat >>confdefs.h <<\_ACEOF
10707 #define HAVE_TZNAME 1
10714 echo "$as_me:$LINENO: checking for utime.h" >&5
10715 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10716 if test "${ba_cv_header_utime_h+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10720 #line $LINENO "configure"
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10727 #include <sys/types.h>
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ba_cv_header_utime_h=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ba_cv_header_utime_h=no
10756 rm -f conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10759 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10760 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_UTIME_H 1
10765 echo "$as_me:$LINENO: checking for socklen_t" >&5
10766 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10767 if test "${ba_cv_header_socklen_t+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 #line $LINENO "configure"
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10778 #include <sys/types.h>
10779 #include <sys/socket.h>
10788 rm -f conftest.$ac_objext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790 (eval $ac_compile) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -s conftest.$ac_objext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ba_cv_header_socklen_t=yes
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ba_cv_header_socklen_t=no
10807 rm -f conftest.$ac_objext conftest.$ac_ext
10809 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10810 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10811 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10812 #define HAVE_SOCKLEN_T 1
10816 echo "$as_me:$LINENO: checking for bigendian" >&5
10817 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10818 if test "${ba_cv_bigendian+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 if test "$cross_compiling" = yes; then
10824 cat >conftest.$ac_ext <<_ACEOF
10825 #line $LINENO "configure"
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10833 rm -f conftest$ac_exeext
10834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835 (eval $ac_link) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ba_cv_bigendian=yes
10846 echo "$as_me: program exited with status $ac_status" >&5
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10850 ( exit $ac_status )
10853 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10857 echo "${ECHO_T}$ba_cv_bigendian" >&6
10858 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_BIGENDIAN 1
10864 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10865 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10866 if test "${ac_cv_c_const+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 cat >conftest.$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10880 /* FIXME: Include the comments suggested by Paul. */
10881 #ifndef __cplusplus
10882 /* Ultrix mips cc rejects this. */
10883 typedef int charset[2];
10885 /* SunOS 4.1.1 cc rejects this. */
10886 char const *const *ccp;
10888 /* NEC SVR4.0.2 mips cc rejects this. */
10889 struct point {int x, y;};
10890 static struct point const zero = {0,0};
10891 /* AIX XL C 1.02.0.0 rejects this.
10892 It does not let you subtract one const X* pointer from another in
10893 an arm of an if-expression whose if-part is not a constant
10895 const char *g = "string";
10896 ccp = &g + (g ? g-g : 0);
10897 /* HPUX 7.0 cc rejects these. */
10900 ccp = (char const *const *) p;
10901 { /* SCO 3.2v4 cc rejects this. */
10903 char const *s = 0 ? (char *) 0 : (char const *) 0;
10907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10908 int x[] = {25, 17};
10909 const int *foo = &x[0];
10912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10913 typedef const int *iptr;
10917 { /* AIX XL C 1.02.0.0 rejects this saying
10918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10919 struct s { int j; const int *ap[3]; };
10920 struct s *b; b->j = 5;
10922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10923 const int foo = 10;
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10950 rm -f conftest.$ac_objext conftest.$ac_ext
10952 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10953 echo "${ECHO_T}$ac_cv_c_const" >&6
10954 if test $ac_cv_c_const = no; then
10956 cat >>confdefs.h <<\_ACEOF
10964 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10965 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10967 # The order of these tests is important.
10968 cat >conftest.$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <sys/statvfs.h>
10976 #include <sys/fstyp.h>
10978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } >/dev/null; then
10986 if test -s conftest.err; then
10987 ac_cpp_err=$ac_c_preproc_warn_flag
10994 if test -z "$ac_cpp_err"; then
10995 cat >>confdefs.h <<\_ACEOF
10996 #define FSTYPE_STATVFS 1
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11005 rm -f conftest.err conftest.$ac_ext
11006 if test $fstype = no; then
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include <sys/statfs.h>
11015 #include <sys/fstyp.h>
11017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11020 grep -v '^ *+' conftest.er1 >conftest.err
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } >/dev/null; then
11025 if test -s conftest.err; then
11026 ac_cpp_err=$ac_c_preproc_warn_flag
11033 if test -z "$ac_cpp_err"; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define FSTYPE_USG_STATFS 1
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11044 rm -f conftest.err conftest.$ac_ext
11046 if test $fstype = no; then
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line $LINENO "configure"
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <sys/statfs.h>
11055 #include <sys/vmount.h>
11057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } >/dev/null; then
11065 if test -s conftest.err; then
11066 ac_cpp_err=$ac_c_preproc_warn_flag
11073 if test -z "$ac_cpp_err"; then
11074 cat >>confdefs.h <<\_ACEOF
11075 #define FSTYPE_AIX_STATFS 1
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11084 rm -f conftest.err conftest.$ac_ext
11086 if test $fstype = no; then
11087 cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <mntent.h>
11096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } >/dev/null; then
11104 if test -s conftest.err; then
11105 ac_cpp_err=$ac_c_preproc_warn_flag
11112 if test -z "$ac_cpp_err"; then
11113 cat >>confdefs.h <<\_ACEOF
11114 #define FSTYPE_MNTENT 1
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11123 rm -f conftest.err conftest.$ac_ext
11125 if test $fstype = no; then
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <sys/mount.h>
11136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11137 $EGREP "f_type;" >/dev/null 2>&1; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define FSTYPE_STATFS 1
11146 if test $fstype = no; then
11147 cat >conftest.$ac_ext <<_ACEOF
11148 #line $LINENO "configure"
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <sys/mount.h>
11155 #include <sys/fs_types.h>
11157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11160 grep -v '^ *+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } >/dev/null; then
11165 if test -s conftest.err; then
11166 ac_cpp_err=$ac_c_preproc_warn_flag
11173 if test -z "$ac_cpp_err"; then
11174 cat >>confdefs.h <<\_ACEOF
11175 #define FSTYPE_GETMNT 1
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11184 rm -f conftest.err conftest.$ac_ext
11186 echo "$as_me:$LINENO: result: $fstype" >&5
11187 echo "${ECHO_T}$fstype" >&6
11189 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11190 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11191 if test "${ac_cv_type_signal+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11195 #line $LINENO "configure"
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <sys/types.h>
11202 #include <signal.h>
11207 extern "C" void (*signal (int, void (*)(int)))(int);
11209 void (*signal ()) ();
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -s conftest.$ac_objext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 ac_cv_type_signal=void
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 ac_cv_type_signal=int
11239 rm -f conftest.$ac_objext conftest.$ac_ext
11241 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11242 echo "${ECHO_T}$ac_cv_type_signal" >&6
11244 cat >>confdefs.h <<_ACEOF
11245 #define RETSIGTYPE $ac_cv_type_signal
11250 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11251 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11252 if test "${bash_cv_signal_vintage+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <signal.h>
11269 struct sigaction sa;
11270 sigemptyset(&ss); sigsuspend(&ss);
11271 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11272 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280 (eval $ac_link) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 bash_cv_signal_vintage=posix
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11296 cat >conftest.$ac_ext <<_ACEOF
11297 #line $LINENO "configure"
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 #include <signal.h>
11308 int mask = sigmask(SIGINT);
11309 sigsetmask(mask); sigblock(mask); sigpause(mask);
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 bash_cv_signal_vintage=4.2bsd
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11333 cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11341 #include <signal.h>
11342 RETSIGTYPE foo() { }
11347 int mask = sigmask(SIGINT);
11348 sigset(SIGINT, foo); sigrelse(SIGINT);
11349 sighold(SIGINT); sigpause(SIGINT);
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357 (eval $ac_link) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 bash_cv_signal_vintage=svr3
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 bash_cv_signal_vintage=v7
11375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11386 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11387 if test "$bash_cv_signal_vintage" = posix; then
11388 cat >>confdefs.h <<\_ACEOF
11389 #define HAVE_POSIX_SIGNALS 1
11392 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_BSD_SIGNALS 1
11397 elif test "$bash_cv_signal_vintage" = svr3; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_USG_SIGHOLD 1
11404 echo "$as_me:$LINENO: checking for mode_t" >&5
11405 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11406 if test "${ac_cv_type_mode_t+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 $ac_includes_default
11422 if (sizeof (mode_t))
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 ac_cv_type_mode_t=yes
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_cv_type_mode_t=no
11447 rm -f conftest.$ac_objext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11450 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11451 if test $ac_cv_type_mode_t = yes; then
11455 cat >>confdefs.h <<_ACEOF
11461 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11462 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11463 if test "${ac_cv_type_uid_t+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 cat >conftest.$ac_ext <<_ACEOF
11467 #line $LINENO "configure"
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #include <sys/types.h>
11476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477 $EGREP "uid_t" >/dev/null 2>&1; then
11478 ac_cv_type_uid_t=yes
11480 ac_cv_type_uid_t=no
11485 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11486 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11487 if test $ac_cv_type_uid_t = no; then
11489 cat >>confdefs.h <<\_ACEOF
11494 cat >>confdefs.h <<\_ACEOF
11500 echo "$as_me:$LINENO: checking for size_t" >&5
11501 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11502 if test "${ac_cv_type_size_t+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 $ac_includes_default
11518 if (sizeof (size_t))
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 ac_cv_type_size_t=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_cv_type_size_t=no
11543 rm -f conftest.$ac_objext conftest.$ac_ext
11545 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11546 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11547 if test $ac_cv_type_size_t = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define size_t unsigned
11557 echo "$as_me:$LINENO: checking for pid_t" >&5
11558 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11559 if test "${ac_cv_type_pid_t+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11575 if (sizeof (pid_t))
11581 rm -f conftest.$ac_objext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583 (eval $ac_compile) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -s conftest.$ac_objext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_type_pid_t=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_type_pid_t=no
11600 rm -f conftest.$ac_objext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11603 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11604 if test $ac_cv_type_pid_t = yes; then
11608 cat >>confdefs.h <<_ACEOF
11614 echo "$as_me:$LINENO: checking for off_t" >&5
11615 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11616 if test "${ac_cv_type_off_t+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 $ac_includes_default
11632 if (sizeof (off_t))
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_type_off_t=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_cv_type_off_t=no
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11659 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11660 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11661 if test $ac_cv_type_off_t = yes; then
11665 cat >>confdefs.h <<_ACEOF
11671 echo "$as_me:$LINENO: checking for ino_t" >&5
11672 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11673 if test "${ac_cv_type_ino_t+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11689 if (sizeof (ino_t))
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_type_ino_t=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_type_ino_t=no
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11718 if test $ac_cv_type_ino_t = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define ino_t unsigned long
11728 echo "$as_me:$LINENO: checking for dev_t" >&5
11729 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11730 if test "${ac_cv_type_dev_t+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 cat >conftest.$ac_ext <<_ACEOF
11734 #line $LINENO "configure"
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 $ac_includes_default
11746 if (sizeof (dev_t))
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_type_dev_t=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_cv_type_dev_t=no
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11774 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11775 if test $ac_cv_type_dev_t = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define dev_t unsigned long
11785 echo "$as_me:$LINENO: checking for daddr_t" >&5
11786 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11787 if test "${ac_cv_type_daddr_t+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11791 #line $LINENO "configure"
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11803 if (sizeof (daddr_t))
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_type_daddr_t=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 ac_cv_type_daddr_t=no
11828 rm -f conftest.$ac_objext conftest.$ac_ext
11830 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11831 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11832 if test $ac_cv_type_daddr_t = yes; then
11836 cat >>confdefs.h <<_ACEOF
11837 #define daddr_t long
11842 echo "$as_me:$LINENO: checking for major_t" >&5
11843 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11844 if test "${ac_cv_type_major_t+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11860 if (sizeof (major_t))
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_type_major_t=yes
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_cv_type_major_t=no
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11887 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11888 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11889 if test $ac_cv_type_major_t = yes; then
11893 cat >>confdefs.h <<_ACEOF
11894 #define major_t int
11899 echo "$as_me:$LINENO: checking for minor_t" >&5
11900 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11901 if test "${ac_cv_type_minor_t+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 cat >conftest.$ac_ext <<_ACEOF
11905 #line $LINENO "configure"
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 $ac_includes_default
11917 if (sizeof (minor_t))
11923 rm -f conftest.$ac_objext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925 (eval $ac_compile) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_cv_type_minor_t=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_cv_type_minor_t=no
11942 rm -f conftest.$ac_objext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11945 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11946 if test $ac_cv_type_minor_t = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define minor_t int
11956 echo "$as_me:$LINENO: checking for ssize_t" >&5
11957 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11958 if test "${ac_cv_type_ssize_t+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11962 #line $LINENO "configure"
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11974 if (sizeof (ssize_t))
11980 rm -f conftest.$ac_objext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11982 (eval $ac_compile) 2>&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -s conftest.$ac_objext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_cv_type_ssize_t=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_cv_type_ssize_t=no
11999 rm -f conftest.$ac_objext conftest.$ac_ext
12001 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12002 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12003 if test $ac_cv_type_ssize_t = yes; then
12007 cat >>confdefs.h <<_ACEOF
12008 #define ssize_t int
12013 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12014 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12015 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line $LINENO "configure"
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12025 $ac_includes_default
12029 static struct stat ac_aggr;
12030 if (ac_aggr.st_blocks)
12036 rm -f conftest.$ac_objext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -s conftest.$ac_objext'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_member_struct_stat_st_blocks=yes
12050 echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 cat >conftest.$ac_ext <<_ACEOF
12054 #line $LINENO "configure"
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 $ac_includes_default
12064 static struct stat ac_aggr;
12065 if (sizeof ac_aggr.st_blocks)
12071 rm -f conftest.$ac_objext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073 (eval $ac_compile) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_member_struct_stat_st_blocks=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_cv_member_struct_stat_st_blocks=no
12090 rm -f conftest.$ac_objext conftest.$ac_ext
12092 rm -f conftest.$ac_objext conftest.$ac_ext
12094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12095 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12096 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12098 cat >>confdefs.h <<_ACEOF
12099 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12103 cat >>confdefs.h <<\_ACEOF
12104 #define HAVE_ST_BLOCKS 1
12108 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12113 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12114 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12115 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12129 static struct stat ac_aggr;
12130 if (ac_aggr.st_rdev)
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_member_struct_stat_st_rdev=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line $LINENO "configure"
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12164 static struct stat ac_aggr;
12165 if (sizeof ac_aggr.st_rdev)
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_member_struct_stat_st_rdev=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_member_struct_stat_st_rdev=no
12190 rm -f conftest.$ac_objext conftest.$ac_ext
12192 rm -f conftest.$ac_objext conftest.$ac_ext
12194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12195 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12196 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_STRUCT_STAT_ST_RDEV 1
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_ST_RDEV 1
12210 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12211 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12212 if test "${ac_cv_struct_tm+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 #include <sys/types.h>
12228 struct tm *tp; tp->tm_sec;
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_cv_struct_tm=time.h
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 ac_cv_struct_tm=sys/time.h
12252 rm -f conftest.$ac_objext conftest.$ac_ext
12254 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12255 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12256 if test $ac_cv_struct_tm = sys/time.h; then
12258 cat >>confdefs.h <<\_ACEOF
12259 #define TM_IN_SYS_TIME 1
12264 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12265 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12266 if test "${ac_cv_c_const+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 cat >conftest.$ac_ext <<_ACEOF
12270 #line $LINENO "configure"
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12280 /* FIXME: Include the comments suggested by Paul. */
12281 #ifndef __cplusplus
12282 /* Ultrix mips cc rejects this. */
12283 typedef int charset[2];
12285 /* SunOS 4.1.1 cc rejects this. */
12286 char const *const *ccp;
12288 /* NEC SVR4.0.2 mips cc rejects this. */
12289 struct point {int x, y;};
12290 static struct point const zero = {0,0};
12291 /* AIX XL C 1.02.0.0 rejects this.
12292 It does not let you subtract one const X* pointer from another in
12293 an arm of an if-expression whose if-part is not a constant
12295 const char *g = "string";
12296 ccp = &g + (g ? g-g : 0);
12297 /* HPUX 7.0 cc rejects these. */
12300 ccp = (char const *const *) p;
12301 { /* SCO 3.2v4 cc rejects this. */
12303 char const *s = 0 ? (char *) 0 : (char const *) 0;
12307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12308 int x[] = {25, 17};
12309 const int *foo = &x[0];
12312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12313 typedef const int *iptr;
12317 { /* AIX XL C 1.02.0.0 rejects this saying
12318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12319 struct s { int j; const int *ap[3]; };
12320 struct s *b; b->j = 5;
12322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12323 const int foo = 10;
12331 rm -f conftest.$ac_objext
12332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333 (eval $ac_compile) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -s conftest.$ac_objext'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
12345 echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12350 rm -f conftest.$ac_objext conftest.$ac_ext
12352 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12353 echo "${ECHO_T}$ac_cv_c_const" >&6
12354 if test $ac_cv_c_const = no; then
12356 cat >>confdefs.h <<\_ACEOF
12364 echo "$as_me:$LINENO: checking for char" >&5
12365 echo $ECHO_N "checking for char... $ECHO_C" >&6
12366 if test "${ac_cv_type_char+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 $ac_includes_default
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390 (eval $ac_compile) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -s conftest.$ac_objext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 ac_cv_type_char=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12407 rm -f conftest.$ac_objext conftest.$ac_ext
12409 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12410 echo "${ECHO_T}$ac_cv_type_char" >&6
12412 echo "$as_me:$LINENO: checking size of char" >&5
12413 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12414 if test "${ac_cv_sizeof_char+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 if test "$ac_cv_type_char" = yes; then
12418 # The cast to unsigned long works around a bug in the HP C Compiler
12419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12421 # This bug is HP SR number 8606223364.
12422 if test "$cross_compiling" = yes; then
12423 # Depending upon the size, compute the lo and hi bounds.
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12435 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 $ac_includes_default
12467 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_hi=$ac_mid; break
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12491 ac_lo=`expr $ac_mid + 1`
12492 if test $ac_lo -le $ac_mid; then
12496 ac_mid=`expr 2 '*' $ac_mid + 1`
12498 rm -f conftest.$ac_objext conftest.$ac_ext
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #line $LINENO "configure"
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 $ac_includes_default
12515 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12522 rm -f conftest.$ac_objext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -s conftest.$ac_objext'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; }; then
12536 cat >conftest.$ac_ext <<_ACEOF
12537 #line $LINENO "configure"
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12543 $ac_includes_default
12547 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12554 rm -f conftest.$ac_objext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12556 (eval $ac_compile) 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -s conftest.$ac_objext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_lo=$ac_mid; break
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_hi=`expr '(' $ac_mid ')' - 1`
12572 if test $ac_mid -le $ac_hi; then
12576 ac_mid=`expr 2 '*' $ac_mid`
12578 rm -f conftest.$ac_objext conftest.$ac_ext
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12586 rm -f conftest.$ac_objext conftest.$ac_ext
12588 rm -f conftest.$ac_objext conftest.$ac_ext
12589 # Binary search between lo and hi bounds.
12590 while test "x$ac_lo" != "x$ac_hi"; do
12591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12592 cat >conftest.$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12603 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12610 rm -f conftest.$ac_objext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_lo=`expr '(' $ac_mid ')' + 1`
12629 rm -f conftest.$ac_objext conftest.$ac_ext
12632 ?*) ac_cv_sizeof_char=$ac_lo;;
12633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12634 See \`config.log' for more details." >&5
12635 echo "$as_me: error: cannot compute sizeof (char), 77
12636 See \`config.log' for more details." >&2;}
12637 { (exit 1); exit 1; }; } ;;
12640 if test "$cross_compiling" = yes; then
12641 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12642 See \`config.log' for more details." >&5
12643 echo "$as_me: error: cannot run test program while cross compiling
12644 See \`config.log' for more details." >&2;}
12645 { (exit 1); exit 1; }; }
12647 cat >conftest.$ac_ext <<_ACEOF
12648 #line $LINENO "configure"
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 long longval () { return (long) (sizeof (char)); }
12656 unsigned long ulongval () { return (long) (sizeof (char)); }
12658 #include <stdlib.h>
12663 FILE *f = fopen ("conftest.val", "w");
12666 if (((long) (sizeof (char))) < 0)
12668 long i = longval ();
12669 if (i != ((long) (sizeof (char))))
12671 fprintf (f, "%ld\n", i);
12675 unsigned long i = ulongval ();
12676 if (i != ((long) (sizeof (char))))
12678 fprintf (f, "%lu\n", i);
12680 exit (ferror (f) || fclose (f) != 0);
12686 rm -f conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_sizeof_char=`cat conftest.val`
12699 echo "$as_me: program exited with status $ac_status" >&5
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ( exit $ac_status )
12704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12705 See \`config.log' for more details." >&5
12706 echo "$as_me: error: cannot compute sizeof (char), 77
12707 See \`config.log' for more details." >&2;}
12708 { (exit 1); exit 1; }; }
12710 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12715 ac_cv_sizeof_char=0
12718 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12719 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12720 cat >>confdefs.h <<_ACEOF
12721 #define SIZEOF_CHAR $ac_cv_sizeof_char
12725 echo "$as_me:$LINENO: checking for short int" >&5
12726 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12727 if test "${ac_cv_type_short_int+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12731 #line $LINENO "configure"
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 $ac_includes_default
12741 if ((short int *) 0)
12743 if (sizeof (short int))
12749 rm -f conftest.$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751 (eval $ac_compile) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_type_short_int=yes
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12766 ac_cv_type_short_int=no
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12770 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12771 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12773 echo "$as_me:$LINENO: checking size of short int" >&5
12774 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12775 if test "${ac_cv_sizeof_short_int+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 if test "$ac_cv_type_short_int" = yes; then
12779 # The cast to unsigned long works around a bug in the HP C Compiler
12780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12782 # This bug is HP SR number 8606223364.
12783 if test "$cross_compiling" = yes; then
12784 # Depending upon the size, compute the lo and hi bounds.
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 $ac_includes_default
12796 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12824 $ac_includes_default
12828 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_hi=$ac_mid; break
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_lo=`expr $ac_mid + 1`
12853 if test $ac_lo -le $ac_mid; then
12857 ac_mid=`expr 2 '*' $ac_mid + 1`
12859 rm -f conftest.$ac_objext conftest.$ac_ext
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 $ac_includes_default
12876 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12883 rm -f conftest.$ac_objext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12897 cat >conftest.$ac_ext <<_ACEOF
12898 #line $LINENO "configure"
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 $ac_includes_default
12908 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_lo=$ac_mid; break
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ac_hi=`expr '(' $ac_mid ')' - 1`
12933 if test $ac_mid -le $ac_hi; then
12937 ac_mid=`expr 2 '*' $ac_mid`
12939 rm -f conftest.$ac_objext conftest.$ac_ext
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12947 rm -f conftest.$ac_objext conftest.$ac_ext
12949 rm -f conftest.$ac_objext conftest.$ac_ext
12950 # Binary search between lo and hi bounds.
12951 while test "x$ac_lo" != "x$ac_hi"; do
12952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12953 cat >conftest.$ac_ext <<_ACEOF
12954 #line $LINENO "configure"
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 $ac_includes_default
12964 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12971 rm -f conftest.$ac_objext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12973 (eval $ac_compile) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -s conftest.$ac_objext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 ac_lo=`expr '(' $ac_mid ')' + 1`
12990 rm -f conftest.$ac_objext conftest.$ac_ext
12993 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12995 See \`config.log' for more details." >&5
12996 echo "$as_me: error: cannot compute sizeof (short int), 77
12997 See \`config.log' for more details." >&2;}
12998 { (exit 1); exit 1; }; } ;;
13001 if test "$cross_compiling" = yes; then
13002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13003 See \`config.log' for more details." >&5
13004 echo "$as_me: error: cannot run test program while cross compiling
13005 See \`config.log' for more details." >&2;}
13006 { (exit 1); exit 1; }; }
13008 cat >conftest.$ac_ext <<_ACEOF
13009 #line $LINENO "configure"
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 $ac_includes_default
13016 long longval () { return (long) (sizeof (short int)); }
13017 unsigned long ulongval () { return (long) (sizeof (short int)); }
13019 #include <stdlib.h>
13024 FILE *f = fopen ("conftest.val", "w");
13027 if (((long) (sizeof (short int))) < 0)
13029 long i = longval ();
13030 if (i != ((long) (sizeof (short int))))
13032 fprintf (f, "%ld\n", i);
13036 unsigned long i = ulongval ();
13037 if (i != ((long) (sizeof (short int))))
13039 fprintf (f, "%lu\n", i);
13041 exit (ferror (f) || fclose (f) != 0);
13047 rm -f conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_sizeof_short_int=`cat conftest.val`
13060 echo "$as_me: program exited with status $ac_status" >&5
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ( exit $ac_status )
13065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13066 See \`config.log' for more details." >&5
13067 echo "$as_me: error: cannot compute sizeof (short int), 77
13068 See \`config.log' for more details." >&2;}
13069 { (exit 1); exit 1; }; }
13071 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13076 ac_cv_sizeof_short_int=0
13079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13080 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13081 cat >>confdefs.h <<_ACEOF
13082 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13086 echo "$as_me:$LINENO: checking for int" >&5
13087 echo $ECHO_N "checking for int... $ECHO_C" >&6
13088 if test "${ac_cv_type_int+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 $ac_includes_default
13110 rm -f conftest.$ac_objext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112 (eval $ac_compile) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13129 rm -f conftest.$ac_objext conftest.$ac_ext
13131 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13132 echo "${ECHO_T}$ac_cv_type_int" >&6
13134 echo "$as_me:$LINENO: checking size of int" >&5
13135 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13136 if test "${ac_cv_sizeof_int+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 if test "$ac_cv_type_int" = yes; then
13140 # The cast to unsigned long works around a bug in the HP C Compiler
13141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13143 # This bug is HP SR number 8606223364.
13144 if test "$cross_compiling" = yes; then
13145 # Depending upon the size, compute the lo and hi bounds.
13146 cat >conftest.$ac_ext <<_ACEOF
13147 #line $LINENO "configure"
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 $ac_includes_default
13157 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 $ac_includes_default
13189 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -s conftest.$ac_objext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_hi=$ac_mid; break
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_lo=`expr $ac_mid + 1`
13214 if test $ac_lo -le $ac_mid; then
13218 ac_mid=`expr 2 '*' $ac_mid + 1`
13220 rm -f conftest.$ac_objext conftest.$ac_ext
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 $ac_includes_default
13237 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13244 rm -f conftest.$ac_objext
13245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 $ac_includes_default
13269 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13276 rm -f conftest.$ac_objext
13277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13278 (eval $ac_compile) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try='test -s conftest.$ac_objext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_lo=$ac_mid; break
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13293 ac_hi=`expr '(' $ac_mid ')' - 1`
13294 if test $ac_mid -le $ac_hi; then
13298 ac_mid=`expr 2 '*' $ac_mid`
13300 rm -f conftest.$ac_objext conftest.$ac_ext
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13308 rm -f conftest.$ac_objext conftest.$ac_ext
13310 rm -f conftest.$ac_objext conftest.$ac_ext
13311 # Binary search between lo and hi bounds.
13312 while test "x$ac_lo" != "x$ac_hi"; do
13313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13314 cat >conftest.$ac_ext <<_ACEOF
13315 #line $LINENO "configure"
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13325 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13332 rm -f conftest.$ac_objext
13333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13334 (eval $ac_compile) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
13338 { ac_try='test -s conftest.$ac_objext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_lo=`expr '(' $ac_mid ')' + 1`
13351 rm -f conftest.$ac_objext conftest.$ac_ext
13354 ?*) ac_cv_sizeof_int=$ac_lo;;
13355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13356 See \`config.log' for more details." >&5
13357 echo "$as_me: error: cannot compute sizeof (int), 77
13358 See \`config.log' for more details." >&2;}
13359 { (exit 1); exit 1; }; } ;;
13362 if test "$cross_compiling" = yes; then
13363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13364 See \`config.log' for more details." >&5
13365 echo "$as_me: error: cannot run test program while cross compiling
13366 See \`config.log' for more details." >&2;}
13367 { (exit 1); exit 1; }; }
13369 cat >conftest.$ac_ext <<_ACEOF
13370 #line $LINENO "configure"
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 $ac_includes_default
13377 long longval () { return (long) (sizeof (int)); }
13378 unsigned long ulongval () { return (long) (sizeof (int)); }
13380 #include <stdlib.h>
13385 FILE *f = fopen ("conftest.val", "w");
13388 if (((long) (sizeof (int))) < 0)
13390 long i = longval ();
13391 if (i != ((long) (sizeof (int))))
13393 fprintf (f, "%ld\n", i);
13397 unsigned long i = ulongval ();
13398 if (i != ((long) (sizeof (int))))
13400 fprintf (f, "%lu\n", i);
13402 exit (ferror (f) || fclose (f) != 0);
13408 rm -f conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410 (eval $ac_link) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_cv_sizeof_int=`cat conftest.val`
13421 echo "$as_me: program exited with status $ac_status" >&5
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ( exit $ac_status )
13426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13427 See \`config.log' for more details." >&5
13428 echo "$as_me: error: cannot compute sizeof (int), 77
13429 See \`config.log' for more details." >&2;}
13430 { (exit 1); exit 1; }; }
13432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13441 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13442 cat >>confdefs.h <<_ACEOF
13443 #define SIZEOF_INT $ac_cv_sizeof_int
13447 echo "$as_me:$LINENO: checking for long int" >&5
13448 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13449 if test "${ac_cv_type_long_int+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 cat >conftest.$ac_ext <<_ACEOF
13453 #line $LINENO "configure"
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 $ac_includes_default
13463 if ((long int *) 0)
13465 if (sizeof (long int))
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try='test -s conftest.$ac_objext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_type_long_int=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_cv_type_long_int=no
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13492 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13493 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13495 echo "$as_me:$LINENO: checking size of long int" >&5
13496 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13497 if test "${ac_cv_sizeof_long_int+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 if test "$ac_cv_type_long_int" = yes; then
13501 # The cast to unsigned long works around a bug in the HP C Compiler
13502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13504 # This bug is HP SR number 8606223364.
13505 if test "$cross_compiling" = yes; then
13506 # Depending upon the size, compute the lo and hi bounds.
13507 cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13518 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527 (eval $ac_compile) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line $LINENO "configure"
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 $ac_includes_default
13550 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559 (eval $ac_compile) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_hi=$ac_mid; break
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_lo=`expr $ac_mid + 1`
13575 if test $ac_lo -le $ac_mid; then
13579 ac_mid=`expr 2 '*' $ac_mid + 1`
13581 rm -f conftest.$ac_objext conftest.$ac_ext
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 cat >conftest.$ac_ext <<_ACEOF
13588 #line $LINENO "configure"
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $ac_includes_default
13598 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607 (eval $ac_compile) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13619 cat >conftest.$ac_ext <<_ACEOF
13620 #line $LINENO "configure"
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13630 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13637 rm -f conftest.$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639 (eval $ac_compile) 2>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
13643 { ac_try='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_lo=$ac_mid; break
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_hi=`expr '(' $ac_mid ')' - 1`
13655 if test $ac_mid -le $ac_hi; then
13659 ac_mid=`expr 2 '*' $ac_mid`
13661 rm -f conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13669 rm -f conftest.$ac_objext conftest.$ac_ext
13671 rm -f conftest.$ac_objext conftest.$ac_ext
13672 # Binary search between lo and hi bounds.
13673 while test "x$ac_lo" != "x$ac_hi"; do
13674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13675 cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 $ac_includes_default
13686 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695 (eval $ac_compile) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13707 echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13710 ac_lo=`expr '(' $ac_mid ')' + 1`
13712 rm -f conftest.$ac_objext conftest.$ac_ext
13715 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13717 See \`config.log' for more details." >&5
13718 echo "$as_me: error: cannot compute sizeof (long int), 77
13719 See \`config.log' for more details." >&2;}
13720 { (exit 1); exit 1; }; } ;;
13723 if test "$cross_compiling" = yes; then
13724 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13725 See \`config.log' for more details." >&5
13726 echo "$as_me: error: cannot run test program while cross compiling
13727 See \`config.log' for more details." >&2;}
13728 { (exit 1); exit 1; }; }
13730 cat >conftest.$ac_ext <<_ACEOF
13731 #line $LINENO "configure"
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 $ac_includes_default
13738 long longval () { return (long) (sizeof (long int)); }
13739 unsigned long ulongval () { return (long) (sizeof (long int)); }
13741 #include <stdlib.h>
13746 FILE *f = fopen ("conftest.val", "w");
13749 if (((long) (sizeof (long int))) < 0)
13751 long i = longval ();
13752 if (i != ((long) (sizeof (long int))))
13754 fprintf (f, "%ld\n", i);
13758 unsigned long i = ulongval ();
13759 if (i != ((long) (sizeof (long int))))
13761 fprintf (f, "%lu\n", i);
13763 exit (ferror (f) || fclose (f) != 0);
13769 rm -f conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_sizeof_long_int=`cat conftest.val`
13782 echo "$as_me: program exited with status $ac_status" >&5
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ( exit $ac_status )
13787 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13788 See \`config.log' for more details." >&5
13789 echo "$as_me: error: cannot compute sizeof (long int), 77
13790 See \`config.log' for more details." >&2;}
13791 { (exit 1); exit 1; }; }
13793 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13798 ac_cv_sizeof_long_int=0
13801 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13802 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13803 cat >>confdefs.h <<_ACEOF
13804 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13808 echo "$as_me:$LINENO: checking for long long int" >&5
13809 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13810 if test "${ac_cv_type_long_long_int+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 cat >conftest.$ac_ext <<_ACEOF
13814 #line $LINENO "configure"
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13824 if ((long long int *) 0)
13826 if (sizeof (long long int))
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_cv_type_long_long_int=yes
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13849 ac_cv_type_long_long_int=no
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13853 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13854 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13856 echo "$as_me:$LINENO: checking size of long long int" >&5
13857 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13858 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 if test "$ac_cv_type_long_long_int" = yes; then
13862 # The cast to unsigned long works around a bug in the HP C Compiler
13863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13865 # This bug is HP SR number 8606223364.
13866 if test "$cross_compiling" = yes; then
13867 # Depending upon the size, compute the lo and hi bounds.
13868 cat >conftest.$ac_ext <<_ACEOF
13869 #line $LINENO "configure"
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 $ac_includes_default
13879 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13900 cat >conftest.$ac_ext <<_ACEOF
13901 #line $LINENO "configure"
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13907 $ac_includes_default
13911 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13918 rm -f conftest.$ac_objext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_hi=$ac_mid; break
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 ac_lo=`expr $ac_mid + 1`
13936 if test $ac_lo -le $ac_mid; then
13940 ac_mid=`expr 2 '*' $ac_mid + 1`
13942 rm -f conftest.$ac_objext conftest.$ac_ext
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 cat >conftest.$ac_ext <<_ACEOF
13949 #line $LINENO "configure"
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 $ac_includes_default
13959 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -s conftest.$ac_objext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13980 cat >conftest.$ac_ext <<_ACEOF
13981 #line $LINENO "configure"
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 $ac_includes_default
13991 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_lo=$ac_mid; break
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_hi=`expr '(' $ac_mid ')' - 1`
14016 if test $ac_mid -le $ac_hi; then
14020 ac_mid=`expr 2 '*' $ac_mid`
14022 rm -f conftest.$ac_objext conftest.$ac_ext
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14030 rm -f conftest.$ac_objext conftest.$ac_ext
14032 rm -f conftest.$ac_objext conftest.$ac_ext
14033 # Binary search between lo and hi bounds.
14034 while test "x$ac_lo" != "x$ac_hi"; do
14035 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14036 cat >conftest.$ac_ext <<_ACEOF
14037 #line $LINENO "configure"
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14047 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_lo=`expr '(' $ac_mid ')' + 1`
14073 rm -f conftest.$ac_objext conftest.$ac_ext
14076 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14077 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14078 See \`config.log' for more details." >&5
14079 echo "$as_me: error: cannot compute sizeof (long long int), 77
14080 See \`config.log' for more details." >&2;}
14081 { (exit 1); exit 1; }; } ;;
14084 if test "$cross_compiling" = yes; then
14085 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14086 See \`config.log' for more details." >&5
14087 echo "$as_me: error: cannot run test program while cross compiling
14088 See \`config.log' for more details." >&2;}
14089 { (exit 1); exit 1; }; }
14091 cat >conftest.$ac_ext <<_ACEOF
14092 #line $LINENO "configure"
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14098 $ac_includes_default
14099 long longval () { return (long) (sizeof (long long int)); }
14100 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14102 #include <stdlib.h>
14107 FILE *f = fopen ("conftest.val", "w");
14110 if (((long) (sizeof (long long int))) < 0)
14112 long i = longval ();
14113 if (i != ((long) (sizeof (long long int))))
14115 fprintf (f, "%ld\n", i);
14119 unsigned long i = ulongval ();
14120 if (i != ((long) (sizeof (long long int))))
14122 fprintf (f, "%lu\n", i);
14124 exit (ferror (f) || fclose (f) != 0);
14130 rm -f conftest$ac_exeext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14132 (eval $ac_link) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_sizeof_long_long_int=`cat conftest.val`
14143 echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ( exit $ac_status )
14148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14149 See \`config.log' for more details." >&5
14150 echo "$as_me: error: cannot compute sizeof (long long int), 77
14151 See \`config.log' for more details." >&2;}
14152 { (exit 1); exit 1; }; }
14154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14159 ac_cv_sizeof_long_long_int=0
14162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14163 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14164 cat >>confdefs.h <<_ACEOF
14165 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14169 echo "$as_me:$LINENO: checking for int *" >&5
14170 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14171 if test "${ac_cv_type_int_p+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14175 #line $LINENO "configure"
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 $ac_includes_default
14187 if (sizeof (int *))
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_type_int_p=yes
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14210 ac_cv_type_int_p=no
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14214 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14215 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14217 echo "$as_me:$LINENO: checking size of int *" >&5
14218 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14219 if test "${ac_cv_sizeof_int_p+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 if test "$ac_cv_type_int_p" = yes; then
14223 # The cast to unsigned long works around a bug in the HP C Compiler
14224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14226 # This bug is HP SR number 8606223364.
14227 if test "$cross_compiling" = yes; then
14228 # Depending upon the size, compute the lo and hi bounds.
14229 cat >conftest.$ac_ext <<_ACEOF
14230 #line $LINENO "configure"
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14240 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 $ac_includes_default
14272 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_hi=$ac_mid; break
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_lo=`expr $ac_mid + 1`
14297 if test $ac_lo -le $ac_mid; then
14301 ac_mid=`expr 2 '*' $ac_mid + 1`
14303 rm -f conftest.$ac_objext conftest.$ac_ext
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 $ac_includes_default
14320 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14341 cat >conftest.$ac_ext <<_ACEOF
14342 #line $LINENO "configure"
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 $ac_includes_default
14352 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361 (eval $ac_compile) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_lo=$ac_mid; break
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_hi=`expr '(' $ac_mid ')' - 1`
14377 if test $ac_mid -le $ac_hi; then
14381 ac_mid=`expr 2 '*' $ac_mid`
14383 rm -f conftest.$ac_objext conftest.$ac_ext
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14391 rm -f conftest.$ac_objext conftest.$ac_ext
14393 rm -f conftest.$ac_objext conftest.$ac_ext
14394 # Binary search between lo and hi bounds.
14395 while test "x$ac_lo" != "x$ac_hi"; do
14396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14397 cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 $ac_includes_default
14408 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -s conftest.$ac_objext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 ac_lo=`expr '(' $ac_mid ')' + 1`
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14437 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14438 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14439 See \`config.log' for more details." >&5
14440 echo "$as_me: error: cannot compute sizeof (int *), 77
14441 See \`config.log' for more details." >&2;}
14442 { (exit 1); exit 1; }; } ;;
14445 if test "$cross_compiling" = yes; then
14446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14447 See \`config.log' for more details." >&5
14448 echo "$as_me: error: cannot run test program while cross compiling
14449 See \`config.log' for more details." >&2;}
14450 { (exit 1); exit 1; }; }
14452 cat >conftest.$ac_ext <<_ACEOF
14453 #line $LINENO "configure"
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 $ac_includes_default
14460 long longval () { return (long) (sizeof (int *)); }
14461 unsigned long ulongval () { return (long) (sizeof (int *)); }
14463 #include <stdlib.h>
14468 FILE *f = fopen ("conftest.val", "w");
14471 if (((long) (sizeof (int *))) < 0)
14473 long i = longval ();
14474 if (i != ((long) (sizeof (int *))))
14476 fprintf (f, "%ld\n", i);
14480 unsigned long i = ulongval ();
14481 if (i != ((long) (sizeof (int *))))
14483 fprintf (f, "%lu\n", i);
14485 exit (ferror (f) || fclose (f) != 0);
14491 rm -f conftest$ac_exeext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14493 (eval $ac_link) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_sizeof_int_p=`cat conftest.val`
14504 echo "$as_me: program exited with status $ac_status" >&5
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ( exit $ac_status )
14509 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14510 See \`config.log' for more details." >&5
14511 echo "$as_me: error: cannot compute sizeof (int *), 77
14512 See \`config.log' for more details." >&2;}
14513 { (exit 1); exit 1; }; }
14515 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14520 ac_cv_sizeof_int_p=0
14523 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14524 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14525 cat >>confdefs.h <<_ACEOF
14526 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14531 # Check for sys/types.h types
14532 echo "$as_me:$LINENO: checking for u_int type" >&5
14533 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14534 if test "${ac_cv_have_u_int+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 cat >conftest.$ac_ext <<_ACEOF
14539 #line $LINENO "configure"
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <sys/types.h>
14554 rm -f conftest.$ac_objext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_have_u_int="yes"
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_have_u_int="no"
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14577 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14578 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14579 if test "x$ac_cv_have_u_int" = "xyes" ; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_U_INT 1
14587 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14588 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14589 if test "${ac_cv_have_intmax_t+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 cat >conftest.$ac_ext <<_ACEOF
14594 #line $LINENO "configure"
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 #include <sys/types.h>
14609 rm -f conftest.$ac_objext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611 (eval $ac_compile) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_cv_have_intmax_t="yes"
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14627 cat >conftest.$ac_ext <<_ACEOF
14628 #line $LINENO "configure"
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 #include <stdint.h>
14643 rm -f conftest.$ac_objext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14645 (eval $ac_compile) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -s conftest.$ac_objext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_cv_have_intmax_t="yes"
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_cv_have_intmax_t="no"
14663 rm -f conftest.$ac_objext conftest.$ac_ext
14667 rm -f conftest.$ac_objext conftest.$ac_ext
14671 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14672 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14673 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_INTMAX_T 1
14682 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14683 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14684 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 cat >conftest.$ac_ext <<_ACEOF
14689 #line $LINENO "configure"
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include <sys/types.h>
14699 u_intmax_t a; a = 1;
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_cv_have_u_intmax_t="yes"
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14722 cat >conftest.$ac_ext <<_ACEOF
14723 #line $LINENO "configure"
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 #include <stdint.h>
14733 u_intmax_t a; a = 1;
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740 (eval $ac_compile) 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest.$ac_objext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_cv_have_u_intmax_t="yes"
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_cv_have_u_intmax_t="no"
14758 rm -f conftest.$ac_objext conftest.$ac_ext
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14765 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14766 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14767 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_U_INTMAX_T 1
14776 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14777 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14778 if test "${ac_cv_have_intxx_t+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 cat >conftest.$ac_ext <<_ACEOF
14783 #line $LINENO "configure"
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <sys/types.h>
14793 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_have_intxx_t="yes"
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_cv_have_intxx_t="no"
14818 rm -f conftest.$ac_objext conftest.$ac_ext
14821 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14822 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14823 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE_INTXX_T 1
14831 echo "$as_me:$LINENO: checking for int64_t type" >&5
14832 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14833 if test "${ac_cv_have_int64_t+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 cat >conftest.$ac_ext <<_ACEOF
14838 #line $LINENO "configure"
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14853 rm -f conftest.$ac_objext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_cv_have_int64_t="yes"
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ac_cv_have_int64_t="no"
14873 rm -f conftest.$ac_objext conftest.$ac_ext
14876 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14877 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14878 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14879 cat >>confdefs.h <<\_ACEOF
14880 #define HAVE_INT64_T 1
14886 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14887 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14888 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <sys/types.h>
14903 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_have_u_intxx_t="yes"
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_have_u_intxx_t="no"
14928 rm -f conftest.$ac_objext conftest.$ac_ext
14931 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14932 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14933 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14934 cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_U_INTXX_T 1
14941 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14942 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14943 if test "${ac_cv_have_u_int64_t+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 cat >conftest.$ac_ext <<_ACEOF
14948 #line $LINENO "configure"
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 #include <sys/types.h>
14958 u_int64_t a; a = 1;
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 ac_cv_have_u_int64_t="yes"
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 ac_cv_have_u_int64_t="no"
14983 rm -f conftest.$ac_objext conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14987 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14988 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14989 cat >>confdefs.h <<\_ACEOF
14990 #define HAVE_U_INT64_T 1
14996 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14997 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14999 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15000 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <sys/bitypes.h>
15012 int8_t a; int16_t b; int32_t c;
15013 u_int8_t e; u_int16_t f; u_int32_t g;
15014 a = b = c = e = f = g = 1;
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021 (eval $ac_compile) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -s conftest.$ac_objext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_U_INTXX_T 1
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_INTXX_T 1
15039 cat >>confdefs.h <<\_ACEOF
15040 #define HAVE_SYS_BITYPES_H 1
15043 echo "$as_me:$LINENO: result: yes" >&5
15044 echo "${ECHO_T}yes" >&6
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15053 rm -f conftest.$ac_objext conftest.$ac_ext
15056 if test -z "$have_u_intxx_t" ; then
15057 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15058 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15059 if test "${ac_cv_have_uintxx_t+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 cat >conftest.$ac_ext <<_ACEOF
15064 #line $LINENO "configure"
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <sys/types.h>
15074 uint8_t a; uint16_t b;
15075 uint32_t c; a = b = c = 1;
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_cv_have_uintxx_t="yes"
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_have_uintxx_t="no"
15100 rm -f conftest.$ac_objext conftest.$ac_ext
15103 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15104 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15105 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15106 cat >>confdefs.h <<\_ACEOF
15107 #define HAVE_UINTXX_T 1
15143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15144 echo "$as_me:$LINENO: checking for $ac_func" >&5
15145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15146 if eval "test \"\${$as_ac_var+set}\" = set"; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 cat >conftest.$ac_ext <<_ACEOF
15150 #line $LINENO "configure"
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 /* System header to define __stub macros and hopefully few prototypes,
15157 which can conflict with char $ac_func (); below.
15158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15159 <limits.h> exists even on freestanding compilers. */
15161 # include <limits.h>
15163 # include <assert.h>
15165 /* Override any gcc2 internal prototype to avoid an error. */
15170 /* We use char because int might match the return type of a gcc2
15171 builtin and then its argument prototype would still apply. */
15173 /* The GNU C library defines this for functions which it implements
15174 to always fail with ENOSYS. Some functions are actually named
15175 something starting with __ and the normal name is an alias. */
15176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15179 char (*f) () = $ac_func;
15188 return f != $ac_func;
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -s conftest$ac_exeext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
15205 eval "$as_ac_var=yes"
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15210 eval "$as_ac_var=no"
15212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15216 if test `eval echo '${'$as_ac_var'}'` = yes; then
15217 cat >>confdefs.h <<_ACEOF
15218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15222 echo 'configure: cannot find needed function.'; exit 1
15229 for ac_func in fchdir
15231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15232 echo "$as_me:$LINENO: checking for $ac_func" >&5
15233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15234 if eval "test \"\${$as_ac_var+set}\" = set"; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 /* System header to define __stub macros and hopefully few prototypes,
15245 which can conflict with char $ac_func (); below.
15246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15247 <limits.h> exists even on freestanding compilers. */
15249 # include <limits.h>
15251 # include <assert.h>
15253 /* Override any gcc2 internal prototype to avoid an error. */
15258 /* We use char because int might match the return type of a gcc2
15259 builtin and then its argument prototype would still apply. */
15261 /* The GNU C library defines this for functions which it implements
15262 to always fail with ENOSYS. Some functions are actually named
15263 something starting with __ and the normal name is an alias. */
15264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15267 char (*f) () = $ac_func;
15276 return f != $ac_func;
15281 rm -f conftest.$ac_objext conftest$ac_exeext
15282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15283 (eval $ac_link) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -s conftest$ac_exeext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 eval "$as_ac_var=yes"
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 eval "$as_ac_var=no"
15300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15304 if test `eval echo '${'$as_ac_var'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15308 cat >>confdefs.h <<\_ACEOF
15309 #define HAVE_FCHDIR 1
15316 for ac_func in strtoll
15318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15319 echo "$as_me:$LINENO: checking for $ac_func" >&5
15320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15321 if eval "test \"\${$as_ac_var+set}\" = set"; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 cat >conftest.$ac_ext <<_ACEOF
15325 #line $LINENO "configure"
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 /* System header to define __stub macros and hopefully few prototypes,
15332 which can conflict with char $ac_func (); below.
15333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15334 <limits.h> exists even on freestanding compilers. */
15336 # include <limits.h>
15338 # include <assert.h>
15340 /* Override any gcc2 internal prototype to avoid an error. */
15345 /* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
15348 /* The GNU C library defines this for functions which it implements
15349 to always fail with ENOSYS. Some functions are actually named
15350 something starting with __ and the normal name is an alias. */
15351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15354 char (*f) () = $ac_func;
15363 return f != $ac_func;
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 eval "$as_ac_var=yes"
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 eval "$as_ac_var=no"
15387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15391 if test `eval echo '${'$as_ac_var'}'` = yes; then
15392 cat >>confdefs.h <<_ACEOF
15393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15395 cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_STRTOLL 1
15404 for ac_func in chflags
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15409 if eval "test \"\${$as_ac_var+set}\" = set"; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 /* System header to define __stub macros and hopefully few prototypes,
15420 which can conflict with char $ac_func (); below.
15421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15422 <limits.h> exists even on freestanding compilers. */
15424 # include <limits.h>
15426 # include <assert.h>
15428 /* Override any gcc2 internal prototype to avoid an error. */
15433 /* We use char because int might match the return type of a gcc2
15434 builtin and then its argument prototype would still apply. */
15436 /* The GNU C library defines this for functions which it implements
15437 to always fail with ENOSYS. Some functions are actually named
15438 something starting with __ and the normal name is an alias. */
15439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15442 char (*f) () = $ac_func;
15451 return f != $ac_func;
15456 rm -f conftest.$ac_objext conftest$ac_exeext
15457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458 (eval $ac_link) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -s conftest$ac_exeext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 eval "$as_ac_var=yes"
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 eval "$as_ac_var=no"
15475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15479 if test `eval echo '${'$as_ac_var'}'` = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 for ac_func in snprintf vsnprintf gethostid getdomainname
15494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15495 echo "$as_me:$LINENO: checking for $ac_func" >&5
15496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15497 if eval "test \"\${$as_ac_var+set}\" = set"; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 cat >conftest.$ac_ext <<_ACEOF
15501 #line $LINENO "configure"
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15512 # include <limits.h>
15514 # include <assert.h>
15516 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15524 /* The GNU C library defines this for functions which it implements
15525 to always fail with ENOSYS. Some functions are actually named
15526 something starting with __ and the normal name is an alias. */
15527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15530 char (*f) () = $ac_func;
15539 return f != $ac_func;
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15546 (eval $ac_link) 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 eval "$as_ac_var=yes"
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 eval "$as_ac_var=no"
15563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568 cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15580 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15583 echo "$as_me:$LINENO: checking for $ac_func" >&5
15584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15585 if eval "test \"\${$as_ac_var+set}\" = set"; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 cat >conftest.$ac_ext <<_ACEOF
15589 #line $LINENO "configure"
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 /* System header to define __stub macros and hopefully few prototypes,
15596 which can conflict with char $ac_func (); below.
15597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15598 <limits.h> exists even on freestanding compilers. */
15600 # include <limits.h>
15602 # include <assert.h>
15604 /* Override any gcc2 internal prototype to avoid an error. */
15609 /* We use char because int might match the return type of a gcc2
15610 builtin and then its argument prototype would still apply. */
15612 /* The GNU C library defines this for functions which it implements
15613 to always fail with ENOSYS. Some functions are actually named
15614 something starting with __ and the normal name is an alias. */
15615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15618 char (*f) () = $ac_func;
15627 return f != $ac_func;
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634 (eval $ac_link) 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } &&
15638 { ac_try='test -s conftest$ac_exeext'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 eval "$as_ac_var=yes"
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 eval "$as_ac_var=no"
15651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15655 if test `eval echo '${'$as_ac_var'}'` = yes; then
15656 cat >>confdefs.h <<_ACEOF
15657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15664 # If resolver functions are not in libc check for -lnsl or -lresolv.
15665 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15666 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15667 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 cat >conftest.$ac_ext <<_ACEOF
15671 #line $LINENO "configure"
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 /* System header to define __stub macros and hopefully few prototypes,
15678 which can conflict with char gethostbyname_r (); below.
15679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15680 <limits.h> exists even on freestanding compilers. */
15682 # include <limits.h>
15684 # include <assert.h>
15686 /* Override any gcc2 internal prototype to avoid an error. */
15691 /* We use char because int might match the return type of a gcc2
15692 builtin and then its argument prototype would still apply. */
15693 char gethostbyname_r ();
15694 /* The GNU C library defines this for functions which it implements
15695 to always fail with ENOSYS. Some functions are actually named
15696 something starting with __ and the normal name is an alias. */
15697 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15700 char (*f) () = gethostbyname_r;
15709 return f != gethostbyname_r;
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716 (eval $ac_link) 2>&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -s conftest$ac_exeext'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_func_gethostbyname_r=yes
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 ac_cv_func_gethostbyname_r=no
15733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15735 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15736 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15737 if test $ac_cv_func_gethostbyname_r = yes; then
15738 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15739 echo "${ECHO_T}using libc's resolver" >&6
15742 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15743 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15744 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 ac_check_lib_save_LIBS=$LIBS
15749 cat >conftest.$ac_ext <<_ACEOF
15750 #line $LINENO "configure"
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15757 /* Override any gcc2 internal prototype to avoid an error. */
15761 /* We use char because int might match the return type of a gcc2
15762 builtin and then its argument prototype would still apply. */
15763 char gethostbyname_r ();
15767 gethostbyname_r ();
15772 rm -f conftest.$ac_objext conftest$ac_exeext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15774 (eval $ac_link) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 ac_cv_lib_nsl_gethostbyname_r=yes
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 ac_cv_lib_nsl_gethostbyname_r=no
15791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15792 LIBS=$ac_check_lib_save_LIBS
15794 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15795 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15796 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_LIBNSL 1
15806 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15807 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15808 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-lresolv $LIBS"
15813 cat >conftest.$ac_ext <<_ACEOF
15814 #line $LINENO "configure"
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15821 /* Override any gcc2 internal prototype to avoid an error. */
15825 /* We use char because int might match the return type of a gcc2
15826 builtin and then its argument prototype would still apply. */
15827 char gethostbyname_r ();
15831 gethostbyname_r ();
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838 (eval $ac_link) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -s conftest$ac_exeext'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_cv_lib_resolv_gethostbyname_r=yes
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_cv_lib_resolv_gethostbyname_r=no
15855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_check_lib_save_LIBS
15858 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15859 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15860 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_LIBRESOLV 1
15865 LIBS="-lresolv $LIBS"
15873 # Find where sockets are (especially for Solaris)
15874 echo "$as_me:$LINENO: checking for socket" >&5
15875 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15876 if test "${ac_cv_func_socket+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15880 #line $LINENO "configure"
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 /* System header to define __stub macros and hopefully few prototypes,
15887 which can conflict with char socket (); below.
15888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15889 <limits.h> exists even on freestanding compilers. */
15891 # include <limits.h>
15893 # include <assert.h>
15895 /* Override any gcc2 internal prototype to avoid an error. */
15900 /* We use char because int might match the return type of a gcc2
15901 builtin and then its argument prototype would still apply. */
15903 /* The GNU C library defines this for functions which it implements
15904 to always fail with ENOSYS. Some functions are actually named
15905 something starting with __ and the normal name is an alias. */
15906 #if defined (__stub_socket) || defined (__stub___socket)
15909 char (*f) () = socket;
15918 return f != socket;
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925 (eval $ac_link) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
15929 { ac_try='test -s conftest$ac_exeext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_cv_func_socket=yes
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_cv_func_socket=no
15942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15944 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15945 echo "${ECHO_T}$ac_cv_func_socket" >&6
15946 if test $ac_cv_func_socket = yes; then
15947 echo "$as_me:$LINENO: result: using libc's socket" >&5
15948 echo "${ECHO_T}using libc's socket" >&6
15951 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15952 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15953 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 ac_check_lib_save_LIBS=$LIBS
15957 LIBS="-lxnet $LIBS"
15958 cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15966 /* Override any gcc2 internal prototype to avoid an error. */
15970 /* We use char because int might match the return type of a gcc2
15971 builtin and then its argument prototype would still apply. */
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15983 (eval $ac_link) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -s conftest$ac_exeext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_cv_lib_xnet_socket=yes
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_cv_lib_xnet_socket=no
16000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16001 LIBS=$ac_check_lib_save_LIBS
16003 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16004 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16005 if test $ac_cv_lib_xnet_socket = yes; then
16006 cat >>confdefs.h <<_ACEOF
16007 #define HAVE_LIBXNET 1
16010 LIBS="-lxnet $LIBS"
16015 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16016 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16017 if test "${ac_cv_lib_socket_socket+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 ac_check_lib_save_LIBS=$LIBS
16021 LIBS="-lsocket $LIBS"
16022 cat >conftest.$ac_ext <<_ACEOF
16023 #line $LINENO "configure"
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16030 /* Override any gcc2 internal prototype to avoid an error. */
16034 /* We use char because int might match the return type of a gcc2
16035 builtin and then its argument prototype would still apply. */
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047 (eval $ac_link) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -s conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_lib_socket_socket=yes
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ac_cv_lib_socket_socket=no
16064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16067 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16068 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16069 if test $ac_cv_lib_socket_socket = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_LIBSOCKET 1
16074 LIBS="-lsocket $LIBS"
16079 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16080 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16081 if test "${ac_cv_lib_inet_socket+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 ac_check_lib_save_LIBS=$LIBS
16085 LIBS="-linet $LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16087 #line $LINENO "configure"
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16094 /* Override any gcc2 internal prototype to avoid an error. */
16098 /* We use char because int might match the return type of a gcc2
16099 builtin and then its argument prototype would still apply. */
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16111 (eval $ac_link) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_cv_lib_inet_socket=yes
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ac_cv_lib_inet_socket=no
16128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16129 LIBS=$ac_check_lib_save_LIBS
16131 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16132 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16133 if test $ac_cv_lib_inet_socket = yes; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_LIBINET 1
16138 LIBS="-linet $LIBS"
16146 for ac_func in inet_pton
16148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16149 echo "$as_me:$LINENO: checking for $ac_func" >&5
16150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16151 if eval "test \"\${$as_ac_var+set}\" = set"; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 cat >conftest.$ac_ext <<_ACEOF
16155 #line $LINENO "configure"
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 /* System header to define __stub macros and hopefully few prototypes,
16162 which can conflict with char $ac_func (); below.
16163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16164 <limits.h> exists even on freestanding compilers. */
16166 # include <limits.h>
16168 # include <assert.h>
16170 /* Override any gcc2 internal prototype to avoid an error. */
16175 /* We use char because int might match the return type of a gcc2
16176 builtin and then its argument prototype would still apply. */
16178 /* The GNU C library defines this for functions which it implements
16179 to always fail with ENOSYS. Some functions are actually named
16180 something starting with __ and the normal name is an alias. */
16181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16184 char (*f) () = $ac_func;
16193 return f != $ac_func;
16198 rm -f conftest.$ac_objext conftest$ac_exeext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16200 (eval $ac_link) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 eval "$as_ac_var=yes"
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 eval "$as_ac_var=no"
16217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16221 if test `eval echo '${'$as_ac_var'}'` = yes; then
16222 cat >>confdefs.h <<_ACEOF
16223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16225 cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_INET_PTON 1
16234 for ac_func in strftime
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16239 if eval "test \"\${$as_ac_var+set}\" = set"; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16243 #line $LINENO "configure"
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 /* System header to define __stub macros and hopefully few prototypes,
16250 which can conflict with char $ac_func (); below.
16251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16252 <limits.h> exists even on freestanding compilers. */
16254 # include <limits.h>
16256 # include <assert.h>
16258 /* Override any gcc2 internal prototype to avoid an error. */
16263 /* We use char because int might match the return type of a gcc2
16264 builtin and then its argument prototype would still apply. */
16266 /* The GNU C library defines this for functions which it implements
16267 to always fail with ENOSYS. Some functions are actually named
16268 something starting with __ and the normal name is an alias. */
16269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16272 char (*f) () = $ac_func;
16281 return f != $ac_func;
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288 (eval $ac_link) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } &&
16292 { ac_try='test -s conftest$ac_exeext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 eval "$as_ac_var=yes"
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 eval "$as_ac_var=no"
16305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16309 if test `eval echo '${'$as_ac_var'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16315 # strftime is in -lintl on SCO UNIX.
16316 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16317 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16318 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 ac_check_lib_save_LIBS=$LIBS
16322 LIBS="-lintl $LIBS"
16323 cat >conftest.$ac_ext <<_ACEOF
16324 #line $LINENO "configure"
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16331 /* Override any gcc2 internal prototype to avoid an error. */
16335 /* We use char because int might match the return type of a gcc2
16336 builtin and then its argument prototype would still apply. */
16346 rm -f conftest.$ac_objext conftest$ac_exeext
16347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16348 (eval $ac_link) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -s conftest$ac_exeext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_lib_intl_strftime=yes
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_lib_intl_strftime=no
16365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16366 LIBS=$ac_check_lib_save_LIBS
16368 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16369 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16370 if test $ac_cv_lib_intl_strftime = yes; then
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_STRFTIME 1
16375 LIBS="-lintl $LIBS"
16382 for ac_func in vprintf
16384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* System header to define __stub macros and hopefully few prototypes,
16398 which can conflict with char $ac_func (); below.
16399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400 <limits.h> exists even on freestanding compilers. */
16402 # include <limits.h>
16404 # include <assert.h>
16406 /* Override any gcc2 internal prototype to avoid an error. */
16411 /* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16414 /* The GNU C library defines this for functions which it implements
16415 to always fail with ENOSYS. Some functions are actually named
16416 something starting with __ and the normal name is an alias. */
16417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16420 char (*f) () = $ac_func;
16429 return f != $ac_func;
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 eval "$as_ac_var=yes"
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no"
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16462 echo "$as_me:$LINENO: checking for _doprnt" >&5
16463 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16464 if test "${ac_cv_func__doprnt+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 cat >conftest.$ac_ext <<_ACEOF
16468 #line $LINENO "configure"
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* System header to define __stub macros and hopefully few prototypes,
16475 which can conflict with char _doprnt (); below.
16476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16477 <limits.h> exists even on freestanding compilers. */
16479 # include <limits.h>
16481 # include <assert.h>
16483 /* Override any gcc2 internal prototype to avoid an error. */
16488 /* We use char because int might match the return type of a gcc2
16489 builtin and then its argument prototype would still apply. */
16491 /* The GNU C library defines this for functions which it implements
16492 to always fail with ENOSYS. Some functions are actually named
16493 something starting with __ and the normal name is an alias. */
16494 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16497 char (*f) () = _doprnt;
16506 return f != _doprnt;
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16513 (eval $ac_link) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_cv_func__doprnt=yes
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 ac_cv_func__doprnt=no
16530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16532 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16533 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16534 if test $ac_cv_func__doprnt = yes; then
16536 cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_DOPRNT 1
16546 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16547 # for constant arguments. Useless!
16548 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16549 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16550 if test "${ac_cv_working_alloca_h+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16553 cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 #include <alloca.h>
16564 char *p = (char *) alloca (2 * sizeof (int));
16569 rm -f conftest.$ac_objext conftest$ac_exeext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16571 (eval $ac_link) 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -s conftest$ac_exeext'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 ac_cv_working_alloca_h=yes
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ac_cv_working_alloca_h=no
16588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16590 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16591 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16592 if test $ac_cv_working_alloca_h = yes; then
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_ALLOCA_H 1
16600 echo "$as_me:$LINENO: checking for alloca" >&5
16601 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16602 if test "${ac_cv_func_alloca_works+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.$ac_ext <<_ACEOF
16606 #line $LINENO "configure"
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16613 # define alloca __builtin_alloca
16616 # include <malloc.h>
16617 # define alloca _alloca
16620 # include <alloca.h>
16625 # ifndef alloca /* predefined by HP cc +Olibcalls */
16636 char *p = (char *) alloca (1);
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_func_alloca_works=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_func_alloca_works=no
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16662 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16663 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16665 if test $ac_cv_func_alloca_works = yes; then
16667 cat >>confdefs.h <<\_ACEOF
16668 #define HAVE_ALLOCA 1
16672 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16673 # that cause trouble. Some versions do not even contain alloca or
16674 # contain a buggy version. If you still want to use their alloca,
16675 # use ar to extract alloca.o from them instead of compiling alloca.c.
16677 ALLOCA=alloca.$ac_objext
16679 cat >>confdefs.h <<\_ACEOF
16684 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16685 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16686 if test "${ac_cv_os_cray+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 cat >conftest.$ac_ext <<_ACEOF
16690 #line $LINENO "configure"
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 #if defined(CRAY) && ! defined(CRAY2)
16703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16704 $EGREP "webecray" >/dev/null 2>&1; then
16712 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16713 echo "${ECHO_T}$ac_cv_os_cray" >&6
16714 if test $ac_cv_os_cray = yes; then
16715 for ac_func in _getb67 GETB67 getb67; do
16716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16717 echo "$as_me:$LINENO: checking for $ac_func" >&5
16718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16719 if eval "test \"\${$as_ac_var+set}\" = set"; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 cat >conftest.$ac_ext <<_ACEOF
16723 #line $LINENO "configure"
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 /* System header to define __stub macros and hopefully few prototypes,
16730 which can conflict with char $ac_func (); below.
16731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16732 <limits.h> exists even on freestanding compilers. */
16734 # include <limits.h>
16736 # include <assert.h>
16738 /* Override any gcc2 internal prototype to avoid an error. */
16743 /* We use char because int might match the return type of a gcc2
16744 builtin and then its argument prototype would still apply. */
16746 /* The GNU C library defines this for functions which it implements
16747 to always fail with ENOSYS. Some functions are actually named
16748 something starting with __ and the normal name is an alias. */
16749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16752 char (*f) () = $ac_func;
16761 return f != $ac_func;
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768 (eval $ac_link) 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -s conftest$ac_exeext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 eval "$as_ac_var=yes"
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 eval "$as_ac_var=no"
16785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16789 if test `eval echo '${'$as_ac_var'}'` = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792 #define CRAY_STACKSEG_END $ac_func
16801 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16802 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16803 if test "${ac_cv_c_stack_direction+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 if test "$cross_compiling" = yes; then
16807 ac_cv_c_stack_direction=0
16809 cat >conftest.$ac_ext <<_ACEOF
16810 #line $LINENO "configure"
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h. */
16817 find_stack_direction ()
16819 static char *addr = 0;
16824 return find_stack_direction ();
16827 return (&dummy > addr) ? 1 : -1;
16833 exit (find_stack_direction () < 0);
16836 rm -f conftest$ac_exeext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16838 (eval $ac_link) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_cv_c_stack_direction=1
16849 echo "$as_me: program exited with status $ac_status" >&5
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ( exit $ac_status )
16854 ac_cv_c_stack_direction=-1
16856 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16859 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16860 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16862 cat >>confdefs.h <<_ACEOF
16863 #define STACK_DIRECTION $ac_cv_c_stack_direction
16869 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16870 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16871 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16872 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 ac_check_lib_save_LIBS=$LIBS
16877 cat >conftest.$ac_ext <<_ACEOF
16878 #line $LINENO "configure"
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16885 /* Override any gcc2 internal prototype to avoid an error. */
16889 /* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902 (eval $ac_link) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -s conftest$ac_exeext'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_lib_sun_getmntent=yes
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 ac_cv_lib_sun_getmntent=no
16919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16923 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16924 if test $ac_cv_lib_sun_getmntent = yes; then
16927 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16928 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16929 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 ac_check_lib_save_LIBS=$LIBS
16934 cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any gcc2 internal prototype to avoid an error. */
16946 /* We use char because int might match the return type of a gcc2
16947 builtin and then its argument prototype would still apply. */
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -s conftest$ac_exeext'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_cv_lib_seq_getmntent=yes
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 ac_cv_lib_seq_getmntent=no
16976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16977 LIBS=$ac_check_lib_save_LIBS
16979 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16980 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16981 if test $ac_cv_lib_seq_getmntent = yes; then
16984 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16985 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16986 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 ac_check_lib_save_LIBS=$LIBS
16991 cat >conftest.$ac_ext <<_ACEOF
16992 #line $LINENO "configure"
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16999 /* Override any gcc2 internal prototype to avoid an error. */
17003 /* We use char because int might match the return type of a gcc2
17004 builtin and then its argument prototype would still apply. */
17014 rm -f conftest.$ac_objext conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016 (eval $ac_link) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try='test -s conftest$ac_exeext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_lib_gen_getmntent=yes
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17031 ac_cv_lib_gen_getmntent=no
17033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_lib_save_LIBS
17036 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17037 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17038 if test $ac_cv_lib_gen_getmntent = yes; then
17047 for ac_func in getmntent
17049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17050 echo "$as_me:$LINENO: checking for $ac_func" >&5
17051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17052 if eval "test \"\${$as_ac_var+set}\" = set"; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 cat >conftest.$ac_ext <<_ACEOF
17056 #line $LINENO "configure"
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 /* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char $ac_func (); below.
17064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17071 /* Override any gcc2 internal prototype to avoid an error. */
17076 /* We use char because int might match the return type of a gcc2
17077 builtin and then its argument prototype would still apply. */
17079 /* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17085 char (*f) () = $ac_func;
17094 return f != $ac_func;
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17101 (eval $ac_link) 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 eval "$as_ac_var=yes"
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 eval "$as_ac_var=no"
17118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17122 if test `eval echo '${'$as_ac_var'}'` = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17131 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17132 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17133 if test "${ac_cv_func_closedir_void+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 if test "$cross_compiling" = yes; then
17137 ac_cv_func_closedir_void=yes
17139 cat >conftest.$ac_ext <<_ACEOF
17140 #line $LINENO "configure"
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 $ac_includes_default
17147 #include <$ac_header_dirent>
17148 #ifndef __cplusplus
17155 exit (closedir (opendir (".")) != 0);
17160 rm -f conftest$ac_exeext
17161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17162 (eval $ac_link) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_func_closedir_void=no
17173 echo "$as_me: program exited with status $ac_status" >&5
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 ( exit $ac_status )
17178 ac_cv_func_closedir_void=yes
17180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17183 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17184 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17185 if test $ac_cv_func_closedir_void = yes; then
17187 cat >>confdefs.h <<\_ACEOF
17188 #define CLOSEDIR_VOID 1
17193 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17194 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17195 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 if test "$cross_compiling" = yes; then
17199 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17200 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17201 { (exit 1); exit 1; }; }
17203 cat >conftest.$ac_ext <<_ACEOF
17204 #line $LINENO "configure"
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 # include <unistd.h>
17217 /* If this system has a BSD-style setpgrp which takes arguments,
17218 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17219 exit successfully. */
17220 exit (setpgrp (1,1) == -1 ? 0 : 1);
17225 rm -f conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_func_setpgrp_void=no
17238 echo "$as_me: program exited with status $ac_status" >&5
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ( exit $ac_status )
17243 ac_cv_func_setpgrp_void=yes
17245 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17248 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17249 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17250 if test $ac_cv_func_setpgrp_void = yes; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define SETPGRP_VOID 1
17257 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17258 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17259 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 # Some versions of Solaris, SCO, and the GNU C Library
17263 # have a broken or incompatible fnmatch.
17264 # So we run a test program. If we are cross-compiling, take no chance.
17265 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17266 if test "$cross_compiling" = yes; then
17267 ac_cv_func_fnmatch_works=cross
17269 cat >conftest.$ac_ext <<_ACEOF
17270 #line $LINENO "configure"
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 #include <fnmatch.h>
17277 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17278 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17284 (!(y ("a*", "abc", 0)
17285 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17286 && y ("a\\\\bc", "abc", 0)
17287 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17288 && y ("*x", ".x", 0)
17289 && n ("*x", ".x", FNM_PERIOD)
17295 rm -f conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 ac_cv_func_fnmatch_works=yes
17308 echo "$as_me: program exited with status $ac_status" >&5
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ( exit $ac_status )
17313 ac_cv_func_fnmatch_works=no
17315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17318 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17319 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17320 if test $ac_cv_func_fnmatch_works = yes; then
17322 cat >>confdefs.h <<\_ACEOF
17323 #define HAVE_FNMATCH 1
17332 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17333 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17334 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 ac_check_lib_save_LIBS=$LIBS
17338 LIBS="-lxpg4 $LIBS"
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17347 /* Override any gcc2 internal prototype to avoid an error. */
17351 /* We use char because int might match the return type of a gcc2
17352 builtin and then its argument prototype would still apply. */
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17364 (eval $ac_link) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_lib_xpg4_setlocale=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_lib_xpg4_setlocale=no
17381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17384 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17385 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17386 if test $ac_cv_lib_xpg4_setlocale = yes; then
17387 LIBS="$LIBS -lxpg4"
17393 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17394 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17395 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 ac_check_lib_save_LIBS=$LIBS
17400 cat >conftest.$ac_ext <<_ACEOF
17401 #line $LINENO "configure"
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17408 /* Override any gcc2 internal prototype to avoid an error. */
17412 /* We use char because int might match the return type of a gcc2
17413 builtin and then its argument prototype would still apply. */
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425 (eval $ac_link) 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_sun_getpwnam=yes
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 ac_cv_lib_sun_getpwnam=no
17442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17443 LIBS=$ac_check_lib_save_LIBS
17445 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17446 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17447 if test $ac_cv_lib_sun_getpwnam = yes; then
17448 cat >>confdefs.h <<_ACEOF
17449 #define HAVE_LIBSUN 1
17458 for ac_header in zlib.h
17460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17462 echo "$as_me:$LINENO: checking for $ac_header" >&5
17463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17470 # Is the header compilable?
17471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17473 cat >conftest.$ac_ext <<_ACEOF
17474 #line $LINENO "configure"
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 $ac_includes_default
17481 #include <$ac_header>
17483 rm -f conftest.$ac_objext
17484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17485 (eval $ac_compile) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -s conftest.$ac_objext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_header_compiler=yes
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 ac_header_compiler=no
17502 rm -f conftest.$ac_objext conftest.$ac_ext
17503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17504 echo "${ECHO_T}$ac_header_compiler" >&6
17506 # Is the header present?
17507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17510 #line $LINENO "configure"
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h. */
17516 #include <$ac_header>
17518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } >/dev/null; then
17526 if test -s conftest.err; then
17527 ac_cpp_err=$ac_c_preproc_warn_flag
17534 if test -z "$ac_cpp_err"; then
17535 ac_header_preproc=yes
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 ac_header_preproc=no
17542 rm -f conftest.err conftest.$ac_ext
17543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17544 echo "${ECHO_T}$ac_header_preproc" >&6
17546 # So? What about this header?
17547 case $ac_header_compiler:$ac_header_preproc in
17549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17555 ## ------------------------------------ ##
17556 ## Report this to bug-autoconf@gnu.org. ##
17557 ## ------------------------------------ ##
17560 sed "s/^/$as_me: WARNING: /" >&2
17563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17571 ## ------------------------------------ ##
17572 ## Report this to bug-autoconf@gnu.org. ##
17573 ## ------------------------------------ ##
17576 sed "s/^/$as_me: WARNING: /" >&2
17579 echo "$as_me:$LINENO: checking for $ac_header" >&5
17580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 eval "$as_ac_Header=$ac_header_preproc"
17586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17599 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17600 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17601 if test "${ac_cv_lib_z_deflate+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 ac_check_lib_save_LIBS=$LIBS
17606 cat >conftest.$ac_ext <<_ACEOF
17607 #line $LINENO "configure"
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17614 /* Override any gcc2 internal prototype to avoid an error. */
17618 /* We use char because int might match the return type of a gcc2
17619 builtin and then its argument prototype would still apply. */
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631 (eval $ac_link) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -s conftest$ac_exeext'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); }; }; then
17641 ac_cv_lib_z_deflate=yes
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_cv_lib_z_deflate=no
17648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17649 LIBS=$ac_check_lib_save_LIBS
17651 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17652 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17653 if test $ac_cv_lib_z_deflate = yes; then
17658 if test x$FDLIBS = x-lz; then
17659 cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_LIBZ 1
17666 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17667 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17668 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17669 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17673 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17675 # Is the header compilable?
17676 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17677 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17679 #line $LINENO "configure"
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 $ac_includes_default
17686 #include <sys/acl.h>
17688 rm -f conftest.$ac_objext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -s conftest.$ac_objext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_header_compiler=yes
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ac_header_compiler=no
17707 rm -f conftest.$ac_objext conftest.$ac_ext
17708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17709 echo "${ECHO_T}$ac_header_compiler" >&6
17711 # Is the header present?
17712 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17713 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17715 #line $LINENO "configure"
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include <sys/acl.h>
17723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17726 grep -v '^ *+' conftest.er1 >conftest.err
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } >/dev/null; then
17731 if test -s conftest.err; then
17732 ac_cpp_err=$ac_c_preproc_warn_flag
17739 if test -z "$ac_cpp_err"; then
17740 ac_header_preproc=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ac_header_preproc=no
17747 rm -f conftest.err conftest.$ac_ext
17748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17749 echo "${ECHO_T}$ac_header_preproc" >&6
17751 # So? What about this header?
17752 case $ac_header_compiler:$ac_header_preproc in
17754 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17755 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17757 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17760 ## ------------------------------------ ##
17761 ## Report this to bug-autoconf@gnu.org. ##
17762 ## ------------------------------------ ##
17765 sed "s/^/$as_me: WARNING: /" >&2
17768 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17769 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17770 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17771 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17772 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17773 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17776 ## ------------------------------------ ##
17777 ## Report this to bug-autoconf@gnu.org. ##
17778 ## ------------------------------------ ##
17781 sed "s/^/$as_me: WARNING: /" >&2
17784 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17785 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17786 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 ac_cv_header_sys_acl_h=$ac_header_preproc
17791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17792 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17797 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17798 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17799 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 ac_check_lib_save_LIBS=$LIBS
17804 cat >conftest.$ac_ext <<_ACEOF
17805 #line $LINENO "configure"
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17812 /* Override any gcc2 internal prototype to avoid an error. */
17816 /* We use char because int might match the return type of a gcc2
17817 builtin and then its argument prototype would still apply. */
17818 char acl_get_file ();
17827 rm -f conftest.$ac_objext conftest$ac_exeext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17829 (eval $ac_link) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_cv_lib_acl_acl_get_file=yes
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_lib_acl_acl_get_file=no
17846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17849 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17850 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17851 if test $ac_cv_lib_acl_acl_get_file = yes; then
17852 FDLIBS="-lacl $FDLIBS"
17856 if test $ac_cv_lib_acl_acl_get_file = yes; then
17857 cat >>confdefs.h <<\_ACEOF
17865 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17866 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17867 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-lpthread $LIBS"
17872 cat >conftest.$ac_ext <<_ACEOF
17873 #line $LINENO "configure"
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17880 /* Override any gcc2 internal prototype to avoid an error. */
17884 /* We use char because int might match the return type of a gcc2
17885 builtin and then its argument prototype would still apply. */
17886 char pthread_create ();
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17897 (eval $ac_link) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
17901 { ac_try='test -s conftest$ac_exeext'
17902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903 (eval $ac_try) 2>&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 ac_cv_lib_pthread_pthread_create=yes
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_cv_lib_pthread_pthread_create=no
17914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17915 LIBS=$ac_check_lib_save_LIBS
17917 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17918 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17919 if test $ac_cv_lib_pthread_pthread_create = yes; then
17920 PTHREAD_LIB="-lpthread"
17922 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17923 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17924 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 ac_check_lib_save_LIBS=$LIBS
17928 LIBS="-lpthreads $LIBS"
17929 cat >conftest.$ac_ext <<_ACEOF
17930 #line $LINENO "configure"
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17937 /* Override any gcc2 internal prototype to avoid an error. */
17941 /* We use char because int might match the return type of a gcc2
17942 builtin and then its argument prototype would still apply. */
17943 char pthread_create ();
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954 (eval $ac_link) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -s conftest$ac_exeext'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964 ac_cv_lib_pthreads_pthread_create=yes
17966 echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 ac_cv_lib_pthreads_pthread_create=no
17971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17974 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17975 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17976 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17977 PTHREAD_LIB="-lpthreads"
17979 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17980 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17981 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 ac_check_lib_save_LIBS=$LIBS
17986 cat >conftest.$ac_ext <<_ACEOF
17987 #line $LINENO "configure"
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17994 /* Override any gcc2 internal prototype to avoid an error. */
17998 /* We use char because int might match the return type of a gcc2
17999 builtin and then its argument prototype would still apply. */
18000 char pthread_create ();
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18011 (eval $ac_link) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_lib_c_r_pthread_create=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_lib_c_r_pthread_create=no
18028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18029 LIBS=$ac_check_lib_save_LIBS
18031 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18032 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18033 if test $ac_cv_lib_c_r_pthread_create = yes; then
18034 PTHREAD_LIB="-lc_r"
18036 echo "$as_me:$LINENO: checking for pthread_create" >&5
18037 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18038 if test "${ac_cv_func_pthread_create+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 /* System header to define __stub macros and hopefully few prototypes,
18049 which can conflict with char pthread_create (); below.
18050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18051 <limits.h> exists even on freestanding compilers. */
18053 # include <limits.h>
18055 # include <assert.h>
18057 /* Override any gcc2 internal prototype to avoid an error. */
18062 /* We use char because int might match the return type of a gcc2
18063 builtin and then its argument prototype would still apply. */
18064 char pthread_create ();
18065 /* The GNU C library defines this for functions which it implements
18066 to always fail with ENOSYS. Some functions are actually named
18067 something starting with __ and the normal name is an alias. */
18068 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18071 char (*f) () = pthread_create;
18080 return f != pthread_create;
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_func_pthread_create=yes
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 ac_cv_func_pthread_create=no
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18106 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18107 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18120 cat >>confdefs.h <<\_ACEOF
18126 CFLAGS=${CFLAGS--O}
18127 LDFLAGS=${LDFLAGS--O}
18128 DB_LIBS="${SQL_LFLAGS}"
18130 CPPFLAGS="$CPPFLAGS"
18155 # Finally we set appropriate distribution specific
18156 # variables and defaults
18158 # PFILES are platform specific files
18159 PFILES="platforms/Makefile"
18163 hostname=`uname -n | cut -d '.' -f 1`
18164 case "$DISTNAME" in
18167 PSCMD="ps -e -o pid,comm"
18168 PFILES="${PFILES} \
18169 platforms/aix/Makefile"
18170 TAPEDRIVE="/dev/rmt0.1"
18174 PTHREAD_LIB="-lpthread -lexc"
18175 if test "${CC}" = "gcc" ; then
18182 TAPEDRIVE="/dev/nrmt0"
18185 DISTVER=`uname -a |awk '{print $3}'`
18186 TAPEDRIVE="/dev/nrmt0"
18187 PTHREAD_LIB="-pthread"
18188 CFLAGS="${CFLAGS} -pthread"
18189 PSCMD="ps -x -o pid,command"
18192 PFILES="${PFILES} \
18193 platforms/bsdi/Makefile \
18194 platforms/bsdi/bacula-fd \
18195 platforms/bsdi/bacula-sd \
18196 platforms/bsdi/bacula-dir"
18197 largefile_support="yes"
18200 DISTVER=`uname -a |awk '{print $3}'`
18201 TAPEDRIVE="/dev/nrst0"
18203 WCFLAGS="-mwindows"
18204 WLDFLAGS="-mwindows"
18208 TAPEDRIVE="/dev/nst0"
18209 PSCMD="ps -e -o pid,command"
18211 PFILES="${PFILES} \
18212 platforms/darwin/Makefile"
18215 DISTVER=`cat /etc/debian_version`
18216 TAPEDRIVE="/dev/nrst0"
18217 PSCMD="ps -e -o pid,command"
18220 DISTVER=`uname -a |awk '{print $3}'`
18221 VER=`echo $DISTVER | cut -c 1`
18222 if test x$VER = x4 ; then
18223 PTHREAD_LIB="-pthread"
18224 CFLAGS="${CFLAGS} -pthread"
18228 TAPEDRIVE="/dev/nrsa0"
18229 PSCMD="ps -x -o pid,command"
18230 PFILES="${PFILES} \
18231 platforms/freebsd/Makefile \
18232 platforms/freebsd/bacula-fd \
18233 platforms/freebsd/bacula-sd \
18234 platforms/freebsd/bacula-dir"
18235 largefile_support="yes"
18238 PSCMD="UNIX95=1 ps -e -o pid,comm"
18239 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18241 TAPEDRIVE="/dev/rmt/0hnb"
18245 TAPEDRIVE="/dev/rmt/0cbn"
18246 PSCMD="ps -e -o pid,comm"
18247 PFILES="${PFILES} \
18248 platforms/irix/Makefile \
18249 platforms/irix/bacula-fd \
18250 platforms/irix/bacula-sd \
18251 platforms/irix/bacula-dir"
18254 DISTVER=`uname -a |awk '{print $3}'`
18257 TAPEDRIVE="/dev/nrst0"
18258 PSCMD="ps -a -o pid,command"
18259 PTHREAD_LIB="-pthread"
18260 CFLAGS="${CFLAGS} -pthread"
18263 DISTVER=`uname -a |awk '{print $3}'`
18266 TAPEDRIVE="/dev/nrst0"
18267 PSCMD="ps -a -o pid,command"
18268 PTHREAD_LIB="-pthread"
18269 CFLAGS="${CFLAGS} -pthread"
18270 PFILES="${PFILES} \
18271 platforms/openbsd/Makefile \
18272 platforms/openbsd/bacula-fd \
18273 platforms/openbsd/bacula-sd \
18274 platforms/openbsd/bacula-dir"
18277 if test `cat /etc/redhat-release | grep release |\
18278 cut -f 3 -d ' '`x = "Enterprise"x ; then
18279 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18282 DISTVER=`cat /etc/redhat-release | grep release |\
18285 TAPEDRIVE="/dev/nst0"
18286 PSCMD="ps -e -o pid,command"
18287 PFILES="${PFILES} \
18288 platforms/redhat/Makefile \
18289 platforms/redhat/bacula-fd \
18290 platforms/redhat/bacula-sd \
18291 platforms/redhat/bacula-dir \
18292 platforms/redhat/bacula.spec \
18294 hostname=`hostname -s`
18297 DISTVER=`cat /etc/mandrake-release | grep release |\
18299 TAPEDRIVE="/dev/nst0"
18300 PSCMD="ps -e -o pid,command"
18301 PFILES="${PFILES} \
18302 platforms/mandrake/Makefile \
18303 platforms/mandrake/bacula-fd \
18304 platforms/mandrake/bacula-sd \
18305 platforms/mandrake/bacula-dir \
18306 platforms/mandrake/bacula.spec \
18310 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18311 TAPEDRIVE="/dev/nst0"
18312 PSCMD="ps -e -o pid,command"
18313 PFILES="${PFILES} \
18314 platforms/gentoo/Makefile \
18315 platforms/gentoo/bacula-fd \
18316 platforms/gentoo/bacula-sd \
18317 platforms/gentoo/bacula-dir"
18320 DISTVER=`cat /etc/slackware-version`
18321 TAPEDRIVE="/dev/nst0"
18322 PSCMD="ps -e -o pid,command"
18323 PFILES="${PFILES} \
18324 platforms/slackware/Makefile \
18325 platforms/slackware/rc.bacula-fd \
18326 platforms/slackware/rc.bacula-sd \
18327 platforms/slackware/rc.bacula-dir\
18328 platforms/slackware/functions.bacula"
18332 TAPEDRIVE="/dev/rmt/0cbn"
18333 PSCMD="ps -e -o pid,comm"
18334 PFILES="${PFILES} \
18335 platforms/solaris/Makefile \
18336 platforms/solaris/bacula-fd \
18337 platforms/solaris/bacula-sd \
18338 platforms/solaris/bacula-dir"
18339 if test x$DISTVER = x5.6 ; then
18340 cat >>confdefs.h <<\_ACEOF
18341 #define HAVE_OLD_SOCKOPT 1
18347 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18349 TAPEDRIVE="/dev/nst0"
18350 PSCMD="ps -e -o pid,command"
18351 PFILES="${PFILES} \
18352 platforms/suse/Makefile \
18353 platforms/suse/bacula-fd \
18354 platforms/suse/bacula-sd \
18355 platforms/suse/bacula-dir \
18356 platforms/suse/bacula \
18357 platforms/suse/bacula.spec"
18362 TAPEDRIVE="/dev/nst0"
18363 PSCMD="ps -e -o pid,command"
18364 PFILES="${PFILES} \
18365 platforms/suse/Makefile \
18366 platforms/suse/bacula-fd \
18367 platforms/suse/bacula-sd \
18368 platforms/suse/bacula-dir"
18372 TAPEDRIVE="/dev/nst0"
18375 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18381 LIBS="$PTHREAD_LIB $LIBS"
18383 cat >>confdefs.h <<_ACEOF
18387 cat >>confdefs.h <<_ACEOF
18398 MCOMMON=./autoconf/Make.common
18401 if test "x${subsysdir}" = "x${sbindir}" ; then
18404 echo "You have set both --sbindir and --with-subsys-dir"
18405 echo " equal to: ${subsysdir} "
18406 echo "This is not permitted. Please reconfigure."
18408 echo "Aborting configuration ..."
18414 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18415 ac_config_commands="$ac_config_commands default"
18416 cat >confcache <<\_ACEOF
18417 # This file is a shell script that caches the results of configure
18418 # tests run on this system so they can be shared between configure
18419 # scripts and configure runs, see configure's option --config-cache.
18420 # It is not useful on other systems. If it contains results you don't
18421 # want to keep, you may remove or edit it.
18423 # config.status only pays attention to the cache file if you give it
18424 # the --recheck option to rerun configure.
18426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18428 # following values.
18432 # The following way of writing the cache mishandles newlines in values,
18433 # but we know of no workaround that is simple, portable, and efficient.
18434 # So, don't put newlines in cache variables' values.
18435 # Ultrix sh set writes to stderr and can't be redirected directly,
18436 # and sets the high bit in the cache file unless we assign to the vars.
18439 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18441 # `set' does not quote correctly, so add quotes (double-quote
18442 # substitution turns \\\\ into \\, and sed turns \\ into \).
18445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18448 # `set' quotes correctly as required by POSIX, so do not add quotes.
18450 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18459 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18461 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18462 if test -w $cache_file; then
18463 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18464 cat confcache >$cache_file
18466 echo "not updating unwritable cache $cache_file"
18471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18472 # Let make expand exec_prefix.
18473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18475 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18476 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18477 # trailing colons and then remove the whole line if VPATH becomes empty
18478 # (actually we leave an empty line to preserve line numbers).
18479 if test "x$srcdir" = x.; then
18480 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18481 s/:*\$(srcdir):*/:/;
18482 s/:*\${srcdir}:*/:/;
18484 s/^\([^=]*=[ ]*\):*/\1/;
18490 DEFS=-DHAVE_CONFIG_H
18494 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18495 # 1. Remove the extension, and $U if already installed.
18496 ac_i=`echo "$ac_i" |
18497 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18499 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18500 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18502 LIBOBJS=$ac_libobjs
18504 LTLIBOBJS=$ac_ltlibobjs
18508 : ${CONFIG_STATUS=./config.status}
18509 ac_clean_files_save=$ac_clean_files
18510 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18511 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18512 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18513 cat >$CONFIG_STATUS <<_ACEOF
18515 # Generated by $as_me.
18516 # Run this file to recreate the current configuration.
18517 # Compiler output produced by configure, useful for debugging
18518 # configure, is in config.log if it exists.
18521 ac_cs_recheck=false
18523 SHELL=\${CONFIG_SHELL-$SHELL}
18526 cat >>$CONFIG_STATUS <<\_ACEOF
18527 ## --------------------- ##
18528 ## M4sh Initialization. ##
18529 ## --------------------- ##
18531 # Be Bourne compatible
18532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18535 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18536 # is contrary to our usage. Disable this feature.
18537 alias -g '${1+"$@"}'='"$@"'
18538 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18542 # Support unset when possible.
18543 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18550 # Work around bugs in pre-3.0 UWIN ksh.
18551 $as_unset ENV MAIL MAILPATH
18558 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18559 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18560 LC_TELEPHONE LC_TIME
18562 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18563 eval $as_var=C; export $as_var
18569 # Required to use basename.
18570 if expr a : '\(a\)' >/dev/null 2>&1; then
18576 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18577 as_basename=basename
18583 # Name of the executable.
18584 as_me=`$as_basename "$0" ||
18585 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18586 X"$0" : 'X\(//\)$' \| \
18587 X"$0" : 'X\(/\)$' \| \
18588 . : '\(.\)' 2>/dev/null ||
18590 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18591 /^X\/\(\/\/\)$/{ s//\1/; q; }
18592 /^X\/\(\/\).*/{ s//\1/; q; }
18596 # PATH needs CR, and LINENO needs CR and PATH.
18597 # Avoid depending upon Character Ranges.
18598 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18599 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18600 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18601 as_cr_digits='0123456789'
18602 as_cr_alnum=$as_cr_Letters$as_cr_digits
18604 # The user is always right.
18605 if test "${PATH_SEPARATOR+set}" != set; then
18606 echo "#! /bin/sh" >conf$$.sh
18607 echo "exit 0" >>conf$$.sh
18609 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18618 as_lineno_1=$LINENO
18619 as_lineno_2=$LINENO
18620 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18621 test "x$as_lineno_1" != "x$as_lineno_2" &&
18622 test "x$as_lineno_3" = "x$as_lineno_2" || {
18623 # Find who we are. Look in the path if we contain no path at all
18626 *[\\/]* ) as_myself=$0 ;;
18627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18628 for as_dir in $PATH
18631 test -z "$as_dir" && as_dir=.
18632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18637 # We did not find ourselves, most probably we were run as `sh COMMAND'
18638 # in which case we are not to be found in the path.
18639 if test "x$as_myself" = x; then
18642 if test ! -f "$as_myself"; then
18643 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18644 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18645 { (exit 1); exit 1; }; }
18647 case $CONFIG_SHELL in
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18653 test -z "$as_dir" && as_dir=.
18654 for as_base in sh bash ksh sh5; do
18657 if ("$as_dir/$as_base" -c '
18658 as_lineno_1=$LINENO
18659 as_lineno_2=$LINENO
18660 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18661 test "x$as_lineno_1" != "x$as_lineno_2" &&
18662 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18663 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18664 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18665 CONFIG_SHELL=$as_dir/$as_base
18666 export CONFIG_SHELL
18667 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18675 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18676 # uniformly replaced by the line number. The first 'sed' inserts a
18677 # line-number line before each line; the second 'sed' does the real
18678 # work. The second script uses 'N' to pair each line-number line
18679 # with the numbered line, and appends trailing '-' during
18680 # substitution so that $LINENO is not a special case at line end.
18681 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18682 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18683 sed '=' <$as_myself |
18688 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18691 s,^['$as_cr_digits']*\n,,
18692 ' >$as_me.lineno &&
18693 chmod +x $as_me.lineno ||
18694 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18695 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18696 { (exit 1); exit 1; }; }
18698 # Don't try to exec as it changes $[0], causing all sort of problems
18699 # (the dirname of $[0] is not the place where we might find the
18700 # original and so on. Autoconf is especially sensible to this).
18702 # Exit status is that of the last command.
18707 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18708 *c*,-n*) ECHO_N= ECHO_C='
18710 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18711 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18714 if expr a : '\(a\)' >/dev/null 2>&1; then
18720 rm -f conf$$ conf$$.exe conf$$.file
18722 if ln -s conf$$.file conf$$ 2>/dev/null; then
18723 # We could just check for DJGPP; but this test a) works b) is more generic
18724 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18725 if test -f conf$$.exe; then
18726 # Don't use ln at all; we don't have any links
18731 elif ln conf$$.file conf$$ 2>/dev/null; then
18736 rm -f conf$$ conf$$.exe conf$$.file
18738 if mkdir -p . 2>/dev/null; then
18744 as_executable_p="test -f"
18746 # Sed expression to map a string onto a valid CPP name.
18747 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18749 # Sed expression to map a string onto a valid variable name.
18750 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18754 # We need space, tab and new line, in precisely that order.
18764 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18765 # report actual input values of CONFIG_FILES etc. instead of their
18766 # values after options handling. Logging --version etc. is OK.
18770 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18771 ## Running $as_me. ##
18776 This file was extended by $as_me, which was
18777 generated by GNU Autoconf 2.57. Invocation command line was
18779 CONFIG_FILES = $CONFIG_FILES
18780 CONFIG_HEADERS = $CONFIG_HEADERS
18781 CONFIG_LINKS = $CONFIG_LINKS
18782 CONFIG_COMMANDS = $CONFIG_COMMANDS
18786 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18790 # Files that config.status was made for.
18791 if test -n "$ac_config_files"; then
18792 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18795 if test -n "$ac_config_headers"; then
18796 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18799 if test -n "$ac_config_links"; then
18800 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18803 if test -n "$ac_config_commands"; then
18804 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18807 cat >>$CONFIG_STATUS <<\_ACEOF
18810 \`$as_me' instantiates files from templates according to the
18811 current configuration.
18813 Usage: $0 [OPTIONS] [FILE]...
18815 -h, --help print this help, then exit
18816 -V, --version print version number, then exit
18817 -q, --quiet do not print progress messages
18818 -d, --debug don't remove temporary files
18819 --recheck update $as_me by reconfiguring in the same conditions
18820 --file=FILE[:TEMPLATE]
18821 instantiate the configuration file FILE
18822 --header=FILE[:TEMPLATE]
18823 instantiate the configuration header FILE
18825 Configuration files:
18828 Configuration headers:
18831 Configuration commands:
18834 Report bugs to <bug-autoconf@gnu.org>."
18837 cat >>$CONFIG_STATUS <<_ACEOF
18840 configured by $0, generated by GNU Autoconf 2.57,
18841 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18843 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18844 Free Software Foundation, Inc.
18845 This config.status script is free software; the Free Software Foundation
18846 gives unlimited permission to copy, distribute and modify it."
18851 cat >>$CONFIG_STATUS <<\_ACEOF
18852 # If no file are specified by the user, then we need to provide default
18853 # value. By we need to know if files were specified by the user.
18859 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18860 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18868 *) # This is not an option, so the user has probably given explicit
18871 ac_need_defaults=false;;
18875 # Handling of the options.
18877 cat >>$CONFIG_STATUS <<\_ACEOF
18878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18880 --version | --vers* | -V )
18881 echo "$ac_cs_version"; exit 0 ;;
18883 # Conflict between --help and --header
18884 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18885 Try \`$0 --help' for more information." >&5
18886 echo "$as_me: error: ambiguous option: $1
18887 Try \`$0 --help' for more information." >&2;}
18888 { (exit 1); exit 1; }; };;
18889 --help | --hel | -h )
18890 echo "$ac_cs_usage"; exit 0 ;;
18891 --debug | --d* | -d )
18893 --file | --fil | --fi | --f )
18895 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18896 ac_need_defaults=false;;
18897 --header | --heade | --head | --hea )
18899 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18900 ac_need_defaults=false;;
18901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18902 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18905 # This is an error.
18906 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18907 Try \`$0 --help' for more information." >&5
18908 echo "$as_me: error: unrecognized option: $1
18909 Try \`$0 --help' for more information." >&2;}
18910 { (exit 1); exit 1; }; } ;;
18912 *) ac_config_targets="$ac_config_targets $1" ;;
18918 ac_configure_extra_args=
18920 if $ac_cs_silent; then
18922 ac_configure_extra_args="$ac_configure_extra_args --silent"
18926 cat >>$CONFIG_STATUS <<_ACEOF
18927 if \$ac_cs_recheck; then
18928 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18929 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18938 cat >>$CONFIG_STATUS <<\_ACEOF
18939 for ac_config_target in $ac_config_targets
18941 case "$ac_config_target" in
18942 # Handling of arguments.
18943 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18944 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18945 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18946 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18947 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18948 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18949 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18950 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18951 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18952 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18953 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18954 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18955 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18956 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18957 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18958 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18959 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18960 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18961 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18962 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18963 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18964 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18965 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18966 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18967 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18968 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18969 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18970 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18971 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18972 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18973 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18974 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18975 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18976 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18977 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18978 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18979 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18980 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18981 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18982 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18983 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18984 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18985 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18986 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18987 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18988 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18989 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18990 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18991 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18992 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18993 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18994 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18995 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18996 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18997 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18998 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18999 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19000 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19001 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19002 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19003 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19004 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19005 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19006 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19007 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19008 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19009 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19010 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19011 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19012 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19013 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19014 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19015 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19016 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19017 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19018 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19019 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19020 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19021 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19022 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19023 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19024 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19025 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19026 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19027 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19028 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19029 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19030 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19031 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19032 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19033 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19035 { (exit 1); exit 1; }; };;
19039 # If the user did not use the arguments to specify the items to instantiate,
19040 # then the envvar interface is used. Set only those that are not.
19041 # We use the long form for the default assignment because of an extremely
19042 # bizarre bug on SunOS 4.1.3.
19043 if $ac_need_defaults; then
19044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19045 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19046 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19049 # Have a temporary directory for convenience. Make it in the build tree
19050 # simply because there is no reason to put it here, and in addition,
19051 # creating and moving files from /tmp can sometimes cause problems.
19052 # Create a temporary directory, and hook for its removal unless debugging.
19055 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19056 trap '{ (exit 1); exit 1; }' 1 2 13 15
19059 # Create a (secure) tmp directory for tmp files.
19062 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19063 test -n "$tmp" && test -d "$tmp"
19066 tmp=./confstat$$-$RANDOM
19067 (umask 077 && mkdir $tmp)
19070 echo "$me: cannot create a temporary directory in ." >&2
19071 { (exit 1); exit 1; }
19076 cat >>$CONFIG_STATUS <<_ACEOF
19079 # CONFIG_FILES section.
19082 # No need to generate the scripts if there are no CONFIG_FILES.
19083 # This happens for instance when ./config.status config.h
19084 if test -n "\$CONFIG_FILES"; then
19085 # Protect against being on the right side of a sed subst in config.status.
19086 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19087 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19088 s,@SHELL@,$SHELL,;t t
19089 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19090 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19091 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19092 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19093 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19094 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19095 s,@exec_prefix@,$exec_prefix,;t t
19096 s,@prefix@,$prefix,;t t
19097 s,@program_transform_name@,$program_transform_name,;t t
19098 s,@bindir@,$bindir,;t t
19099 s,@sbindir@,$sbindir,;t t
19100 s,@libexecdir@,$libexecdir,;t t
19101 s,@datadir@,$datadir,;t t
19102 s,@sysconfdir@,$sysconfdir,;t t
19103 s,@sharedstatedir@,$sharedstatedir,;t t
19104 s,@localstatedir@,$localstatedir,;t t
19105 s,@libdir@,$libdir,;t t
19106 s,@includedir@,$includedir,;t t
19107 s,@oldincludedir@,$oldincludedir,;t t
19108 s,@infodir@,$infodir,;t t
19109 s,@mandir@,$mandir,;t t
19110 s,@build_alias@,$build_alias,;t t
19111 s,@host_alias@,$host_alias,;t t
19112 s,@target_alias@,$target_alias,;t t
19113 s,@DEFS@,$DEFS,;t t
19114 s,@ECHO_C@,$ECHO_C,;t t
19115 s,@ECHO_N@,$ECHO_N,;t t
19116 s,@ECHO_T@,$ECHO_T,;t t
19117 s,@LIBS@,$LIBS,;t t
19118 s,@BUILD_DIR@,$BUILD_DIR,;t t
19119 s,@TRUEPRG@,$TRUEPRG,;t t
19120 s,@FALSEPRG@,$FALSEPRG,;t t
19121 s,@VERSION@,$VERSION,;t t
19122 s,@DATE@,$DATE,;t t
19123 s,@LSMDATE@,$LSMDATE,;t t
19125 s,@CFLAGS@,$CFLAGS,;t t
19126 s,@LDFLAGS@,$LDFLAGS,;t t
19127 s,@CPPFLAGS@,$CPPFLAGS,;t t
19128 s,@ac_ct_CC@,$ac_ct_CC,;t t
19129 s,@EXEEXT@,$EXEEXT,;t t
19130 s,@OBJEXT@,$OBJEXT,;t t
19132 s,@CXXFLAGS@,$CXXFLAGS,;t t
19133 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19135 s,@EGREP@,$EGREP,;t t
19136 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19137 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19138 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19139 s,@RANLIB@,$RANLIB,;t t
19140 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19146 s,@ECHO@,$ECHO,;t t
19150 s,@OPENSSL@,$OPENSSL,;t t
19152 s,@PKGCONFIG@,$PKGCONFIG,;t t
19153 s,@WXCONFIG@,$WXCONFIG,;t t
19154 s,@ARFLAGS@,$ARFLAGS,;t t
19155 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19156 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19157 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19158 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19159 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19160 s,@build@,$build,;t t
19161 s,@build_cpu@,$build_cpu,;t t
19162 s,@build_vendor@,$build_vendor,;t t
19163 s,@build_os@,$build_os,;t t
19164 s,@host@,$host,;t t
19165 s,@host_cpu@,$host_cpu,;t t
19166 s,@host_vendor@,$host_vendor,;t t
19167 s,@host_os@,$host_os,;t t
19168 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19169 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19170 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19171 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19172 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19173 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19174 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19175 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19176 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19177 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19178 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19179 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19180 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19181 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19182 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19183 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19184 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19185 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19186 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19187 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19188 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19189 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19190 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19191 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19192 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19193 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19194 s,@MSGFMT@,$MSGFMT,;t t
19195 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19196 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19197 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19198 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19199 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19200 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19201 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19202 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19203 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19204 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19205 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19206 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19207 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19208 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19209 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19210 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19211 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19212 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19213 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19214 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19215 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19216 s,@GNOME_DIR@,$GNOME_DIR,;t t
19217 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19218 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19219 s,@WX_DIR@,$WX_DIR,;t t
19220 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19221 s,@STATIC_FD@,$STATIC_FD,;t t
19222 s,@STATIC_SD@,$STATIC_SD,;t t
19223 s,@STATIC_DIR@,$STATIC_DIR,;t t
19224 s,@STATIC_CONS@,$STATIC_CONS,;t t
19225 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19226 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19227 s,@ALL_DIRS@,$ALL_DIRS,;t t
19228 s,@CONS_INC@,$CONS_INC,;t t
19229 s,@CONS_OBJ@,$CONS_OBJ,;t t
19230 s,@CONS_SRC@,$CONS_SRC,;t t
19231 s,@CONS_LIBS@,$CONS_LIBS,;t t
19232 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19233 s,@READLINE_SRC@,$READLINE_SRC,;t t
19234 s,@working_dir@,$working_dir,;t t
19235 s,@scriptdir@,$scriptdir,;t t
19236 s,@dump_email@,$dump_email,;t t
19237 s,@job_email@,$job_email,;t t
19238 s,@smtp_host@,$smtp_host,;t t
19239 s,@piddir@,$piddir,;t t
19240 s,@subsysdir@,$subsysdir,;t t
19241 s,@baseport@,$baseport,;t t
19242 s,@dir_port@,$dir_port,;t t
19243 s,@fd_port@,$fd_port,;t t
19244 s,@sd_port@,$sd_port,;t t
19245 s,@dir_password@,$dir_password,;t t
19246 s,@fd_password@,$fd_password,;t t
19247 s,@sd_password@,$sd_password,;t t
19248 s,@dir_user@,$dir_user,;t t
19249 s,@dir_group@,$dir_group,;t t
19250 s,@sd_user@,$sd_user,;t t
19251 s,@sd_group@,$sd_group,;t t
19252 s,@fd_user@,$fd_user,;t t
19253 s,@fd_group@,$fd_group,;t t
19254 s,@SBINPERM@,$SBINPERM,;t t
19255 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19256 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19257 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19258 s,@cats@,$cats,;t t
19259 s,@DB_NAME@,$DB_NAME,;t t
19260 s,@GETCONF@,$GETCONF,;t t
19261 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19262 s,@X_CFLAGS@,$X_CFLAGS,;t t
19263 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19264 s,@X_LIBS@,$X_LIBS,;t t
19265 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19266 s,@LIBOBJS@,$LIBOBJS,;t t
19267 s,@ALLOCA@,$ALLOCA,;t t
19268 s,@FDLIBS@,$FDLIBS,;t t
19269 s,@DEBUG@,$DEBUG,;t t
19270 s,@DINCLUDE@,$DINCLUDE,;t t
19271 s,@DLIB@,$DLIB,;t t
19272 s,@DB_LIBS@,$DB_LIBS,;t t
19273 s,@WCFLAGS@,$WCFLAGS,;t t
19274 s,@WLDFLAGS@,$WLDFLAGS,;t t
19275 s,@OBJLIST@,$OBJLIST,;t t
19276 s,@hostname@,$hostname,;t t
19277 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19278 s,@PSCMD@,$PSCMD,;t t
19279 s,@WIN32@,$WIN32,;t t
19280 s,@MACOSX@,$MACOSX,;t t
19281 s,@DISTNAME@,$DISTNAME,;t t
19282 s,@DISTVER@,$DISTVER,;t t
19283 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19284 /@MCOMMON@/r $MCOMMON
19290 cat >>$CONFIG_STATUS <<\_ACEOF
19291 # Split the substitutions into bite-sized pieces for seds with
19292 # small command number limits, like on Digital OSF/1 and HP-UX.
19293 ac_max_sed_lines=48
19294 ac_sed_frag=1 # Number of current file.
19295 ac_beg=1 # First line for current file.
19296 ac_end=$ac_max_sed_lines # Line after last line for current file.
19299 while $ac_more_lines; do
19300 if test $ac_beg -gt 1; then
19301 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19303 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19305 if test ! -s $tmp/subs.frag; then
19306 ac_more_lines=false
19308 # The purpose of the label and of the branching condition is to
19309 # speed up the sed processing (if there are no `@' at all, there
19310 # is no need to browse any of the substitutions).
19311 # These are the two extra sed commands mentioned above.
19313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19314 if test -z "$ac_sed_cmds"; then
19315 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19317 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19319 ac_sed_frag=`expr $ac_sed_frag + 1`
19321 ac_end=`expr $ac_end + $ac_max_sed_lines`
19324 if test -z "$ac_sed_cmds"; then
19327 fi # test -n "$CONFIG_FILES"
19330 cat >>$CONFIG_STATUS <<\_ACEOF
19331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19334 - | *:- | *:-:* ) # input from stdin
19336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19340 * ) ac_file_in=$ac_file.in ;;
19343 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19344 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19345 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19346 X"$ac_file" : 'X\(//\)[^/]' \| \
19347 X"$ac_file" : 'X\(//\)$' \| \
19348 X"$ac_file" : 'X\(/\)' \| \
19349 . : '\(.\)' 2>/dev/null ||
19351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19353 /^X\(\/\/\)$/{ s//\1/; q; }
19354 /^X\(\/\).*/{ s//\1/; q; }
19356 { if $as_mkdir_p; then
19361 while test ! -d "$as_dir"; do
19362 as_dirs="$as_dir $as_dirs"
19363 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365 X"$as_dir" : 'X\(//\)[^/]' \| \
19366 X"$as_dir" : 'X\(//\)$' \| \
19367 X"$as_dir" : 'X\(/\)' \| \
19368 . : '\(.\)' 2>/dev/null ||
19370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19371 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19372 /^X\(\/\/\)$/{ s//\1/; q; }
19373 /^X\(\/\).*/{ s//\1/; q; }
19376 test ! -n "$as_dirs" || mkdir $as_dirs
19377 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19378 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19379 { (exit 1); exit 1; }; }; }
19383 if test "$ac_dir" != .; then
19384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19385 # A "../" for each directory in $ac_dir_suffix.
19386 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19388 ac_dir_suffix= ac_top_builddir=
19392 .) # No --srcdir option. We are building in place.
19394 if test -z "$ac_top_builddir"; then
19397 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19399 [\\/]* | ?:[\\/]* ) # Absolute path.
19400 ac_srcdir=$srcdir$ac_dir_suffix;
19401 ac_top_srcdir=$srcdir ;;
19402 *) # Relative path.
19403 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19404 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19406 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19408 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19409 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19410 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19411 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19416 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19419 if test x"$ac_file" != x-; then
19420 { echo "$as_me:$LINENO: creating $ac_file" >&5
19421 echo "$as_me: creating $ac_file" >&6;}
19424 # Let's still pretend it is `configure' which instantiates (i.e., don't
19425 # use $as_me), people would be surprised to read:
19426 # /* config.h. Generated by config.status. */
19427 if test x"$ac_file" = x-; then
19430 configure_input="$ac_file. "
19432 configure_input=$configure_input"Generated from `echo $ac_file_in |
19433 sed 's,.*/,,'` by configure."
19435 # First look for the input files in the build tree, otherwise in the
19437 ac_file_inputs=`IFS=:
19438 for f in $ac_file_in; do
19440 -) echo $tmp/stdin ;;
19442 # Absolute (can't be DOS-style, as IFS=:)
19443 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19444 echo "$as_me: error: cannot find input file: $f" >&2;}
19445 { (exit 1); exit 1; }; }
19448 if test -f "$f"; then
19451 elif test -f "$srcdir/$f"; then
19456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19457 echo "$as_me: error: cannot find input file: $f" >&2;}
19458 { (exit 1); exit 1; }; }
19461 done` || { (exit 1); exit 1; }
19463 cat >>$CONFIG_STATUS <<_ACEOF
19467 cat >>$CONFIG_STATUS <<\_ACEOF
19469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19470 s,@configure_input@,$configure_input,;t t
19471 s,@srcdir@,$ac_srcdir,;t t
19472 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19473 s,@top_srcdir@,$ac_top_srcdir,;t t
19474 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19475 s,@builddir@,$ac_builddir,;t t
19476 s,@abs_builddir@,$ac_abs_builddir,;t t
19477 s,@top_builddir@,$ac_top_builddir,;t t
19478 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19479 s,@INSTALL@,$ac_INSTALL,;t t
19480 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19482 if test x"$ac_file" != x-; then
19483 mv $tmp/out $ac_file
19491 cat >>$CONFIG_STATUS <<\_ACEOF
19494 # CONFIG_HEADER section.
19497 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19498 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19500 # ac_d sets the value in "#define NAME VALUE" lines.
19501 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19502 ac_dB='[ ].*$,\1#\2'
19505 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19506 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19507 ac_uB='$,\1#\2define\3'
19511 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19514 - | *:- | *:-:* ) # input from stdin
19516 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19519 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19520 * ) ac_file_in=$ac_file.in ;;
19523 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19524 echo "$as_me: creating $ac_file" >&6;}
19526 # First look for the input files in the build tree, otherwise in the
19528 ac_file_inputs=`IFS=:
19529 for f in $ac_file_in; do
19531 -) echo $tmp/stdin ;;
19533 # Absolute (can't be DOS-style, as IFS=:)
19534 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19535 echo "$as_me: error: cannot find input file: $f" >&2;}
19536 { (exit 1); exit 1; }; }
19539 if test -f "$f"; then
19542 elif test -f "$srcdir/$f"; then
19547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19548 echo "$as_me: error: cannot find input file: $f" >&2;}
19549 { (exit 1); exit 1; }; }
19552 done` || { (exit 1); exit 1; }
19553 # Remove the trailing spaces.
19554 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19558 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19559 # `conftest.undefs', that substitutes the proper values into
19560 # config.h.in to produce config.h. The first handles `#define'
19561 # templates, and the second `#undef' templates.
19562 # And first: Protect against being on the right side of a sed subst in
19563 # config.status. Protect against being in an unquoted here document
19564 # in config.status.
19565 rm -f conftest.defines conftest.undefs
19566 # Using a here document instead of a string reduces the quoting nightmare.
19567 # Putting comments in sed scripts is not portable.
19569 # `end' is used to avoid that the second main sed command (meant for
19570 # 0-ary CPP macros) applies to n-ary macro definitions.
19571 # See the Autoconf documentation for `clear'.
19572 cat >confdef2sed.sed <<\_ACEOF
19577 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19579 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19582 # If some macros were called several times there might be several times
19583 # the same #defines, which is useless. Nevertheless, we may not want to
19584 # sort them, since we want the *last* AC-DEFINE to be honored.
19585 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19586 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19587 rm -f confdef2sed.sed
19589 # This sed command replaces #undef with comments. This is necessary, for
19590 # example, in the case of _POSIX_SOURCE, which is predefined and required
19591 # on some systems where configure will not decide to define it.
19592 cat >>conftest.undefs <<\_ACEOF
19593 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19596 # Break up conftest.defines because some shells have a limit on the size
19597 # of here documents, and old seds have small limits too (100 cmds).
19598 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19599 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19600 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19601 echo ' :' >>$CONFIG_STATUS
19602 rm -f conftest.tail
19603 while grep . conftest.defines >/dev/null
19605 # Write a limited-size here document to $tmp/defines.sed.
19606 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19607 # Speed up: don't consider the non `#define' lines.
19608 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19609 # Work around the forget-to-reset-the-flag bug.
19610 echo 't clr' >>$CONFIG_STATUS
19611 echo ': clr' >>$CONFIG_STATUS
19612 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19614 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19616 mv $tmp/out $tmp/in
19618 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19619 rm -f conftest.defines
19620 mv conftest.tail conftest.defines
19622 rm -f conftest.defines
19623 echo ' fi # grep' >>$CONFIG_STATUS
19624 echo >>$CONFIG_STATUS
19626 # Break up conftest.undefs because some shells have a limit on the size
19627 # of here documents, and old seds have small limits too (100 cmds).
19628 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19629 rm -f conftest.tail
19630 while grep . conftest.undefs >/dev/null
19632 # Write a limited-size here document to $tmp/undefs.sed.
19633 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19634 # Speed up: don't consider the non `#undef'
19635 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19636 # Work around the forget-to-reset-the-flag bug.
19637 echo 't clr' >>$CONFIG_STATUS
19638 echo ': clr' >>$CONFIG_STATUS
19639 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19641 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19643 mv $tmp/out $tmp/in
19645 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19646 rm -f conftest.undefs
19647 mv conftest.tail conftest.undefs
19649 rm -f conftest.undefs
19651 cat >>$CONFIG_STATUS <<\_ACEOF
19652 # Let's still pretend it is `configure' which instantiates (i.e., don't
19653 # use $as_me), people would be surprised to read:
19654 # /* config.h. Generated by config.status. */
19655 if test x"$ac_file" = x-; then
19656 echo "/* Generated by configure. */" >$tmp/config.h
19658 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19660 cat $tmp/in >>$tmp/config.h
19662 if test x"$ac_file" != x-; then
19663 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19665 echo "$as_me: $ac_file is unchanged" >&6;}
19667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19669 X"$ac_file" : 'X\(//\)[^/]' \| \
19670 X"$ac_file" : 'X\(//\)$' \| \
19671 X"$ac_file" : 'X\(/\)' \| \
19672 . : '\(.\)' 2>/dev/null ||
19674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19676 /^X\(\/\/\)$/{ s//\1/; q; }
19677 /^X\(\/\).*/{ s//\1/; q; }
19679 { if $as_mkdir_p; then
19684 while test ! -d "$as_dir"; do
19685 as_dirs="$as_dir $as_dirs"
19686 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19688 X"$as_dir" : 'X\(//\)[^/]' \| \
19689 X"$as_dir" : 'X\(//\)$' \| \
19690 X"$as_dir" : 'X\(/\)' \| \
19691 . : '\(.\)' 2>/dev/null ||
19693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19695 /^X\(\/\/\)$/{ s//\1/; q; }
19696 /^X\(\/\).*/{ s//\1/; q; }
19699 test ! -n "$as_dirs" || mkdir $as_dirs
19700 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19702 { (exit 1); exit 1; }; }; }
19705 mv $tmp/config.h $ac_file
19709 rm -f $tmp/config.h
19713 cat >>$CONFIG_STATUS <<\_ACEOF
19716 # CONFIG_COMMANDS section.
19718 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19719 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19720 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19721 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19722 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19723 X"$ac_dest" : 'X\(//\)[^/]' \| \
19724 X"$ac_dest" : 'X\(//\)$' \| \
19725 X"$ac_dest" : 'X\(/\)' \| \
19726 . : '\(.\)' 2>/dev/null ||
19728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19730 /^X\(\/\/\)$/{ s//\1/; q; }
19731 /^X\(\/\).*/{ s//\1/; q; }
19735 if test "$ac_dir" != .; then
19736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19737 # A "../" for each directory in $ac_dir_suffix.
19738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19740 ac_dir_suffix= ac_top_builddir=
19744 .) # No --srcdir option. We are building in place.
19746 if test -z "$ac_top_builddir"; then
19749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19751 [\\/]* | ?:[\\/]* ) # Absolute path.
19752 ac_srcdir=$srcdir$ac_dir_suffix;
19753 ac_top_srcdir=$srcdir ;;
19754 *) # Relative path.
19755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19758 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19760 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19761 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19762 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19763 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19766 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19767 echo "$as_me: executing $ac_dest commands" >&6;}
19769 default ) (echo "Doing make of dependencies"; make depend;)
19775 cat >>$CONFIG_STATUS <<\_ACEOF
19777 { (exit 0); exit 0; }
19779 chmod +x $CONFIG_STATUS
19780 ac_clean_files=$ac_clean_files_save
19783 # configure is writing to config.log, and then calls config.status.
19784 # config.status does its own redirection, appending to config.log.
19785 # Unfortunately, on DOS this fails, as config.log is still kept open
19786 # by configure, so config.status won't be able to write to it; its
19787 # output is simply discarded. So we exec the FD to /dev/null,
19788 # effectively closing config.log, so it can be properly (re)opened and
19789 # appended to by config.status. When coming back to configure, we
19790 # need to make the FD available again.
19791 if test "$no_create" != yes; then
19793 ac_config_status_args=
19794 test "$silent" = yes &&
19795 ac_config_status_args="$ac_config_status_args --quiet"
19797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19800 # would make configure fail if this is the last instruction.
19801 $ac_cs_success || { (exit 1); exit 1; }
19806 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19807 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19812 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19813 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19815 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19816 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19818 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19819 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19821 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19822 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19824 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19825 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19827 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19828 chmod 755 $c/sqlite
19831 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19832 largefile_support="yes"
19836 # A whole lot of hand springs to get the compiler version.
19837 # This is because gcc changed the output in version 3.0
19839 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19840 if test "x${CCVERSION}" = "x" ; then
19841 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19843 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19844 if test x"${CXXVERSION}" = x ; then
19845 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19848 if test "x${subsysdir}" = "x${sbindir}" ; then
19851 echo "You have set --sbindir and --with-subsys-dir"
19852 echo " both equal to: ${subsysdir} "
19853 echo " This is not permitted. Please reconfigure."
19854 echo "Aborting configuration ..."
19861 Configuration on `date`:
19863 Host: $host -- ${DISTNAME} ${DISTVER}
19864 Bacula version: ${VERSION} (${DATE})
19865 Source code location: ${srcdir}
19866 Install binaries: ${sbindir}
19867 Install config files: ${sysconfdir}
19868 Scripts directory: ${scriptdir}
19869 Working directory: ${working_dir}
19870 PID directory: ${piddir}
19871 Subsys directory: ${subsysdir}
19872 C Compiler: ${CC} ${CCVERSION}
19873 C++ Compiler: ${CXX} ${CXXVERSION}
19874 Compiler flags: ${WCFLAGS} ${CFLAGS}
19875 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19877 Statically Linked Tools: ${support_static_tools}
19878 Statically Linked FD: ${support_static_fd}
19879 Statically Linked SD: ${support_static_sd}
19880 Statically Linked DIR: ${support_static_dir}
19881 Statically Linked CONS: ${support_static_cons}
19882 Database type: ${db_name}
19883 Database lib: ${DB_LIBS}
19885 Job Output Email: ${job_email}
19886 Traceback Email: ${dump_email}
19887 SMTP Host Address: ${smtp_host}
19889 Director Port: ${dir_port}
19890 File daemon Port: ${fd_port}
19891 Storage daemon Port: ${sd_port}
19893 Director User: ${dir_user}
19894 Director Group: ${dir_group}
19895 Storage Daemon User: ${sd_user}
19896 Storage DaemonGroup: ${sd_group}
19897 File Daemon User: ${fd_user}
19898 File Daemon Group: ${fd_group}
19900 SQL binaries Directory ${SQL_BINDIR}
19902 Large file support: $largefile_support
19903 Bacula conio support: ${got_conio} ${CONS_LIBS}
19904 readline support: ${got_readline} ${PRTREADLINE_SRC}
19905 TCP Wrappers support: ${TCPW_MSG}
19906 ZLIB support: ${have_zlib}
19907 enable-smartalloc: ${support_smartalloc}
19908 enable-gnome: ${support_gnome} ${gnome_version}
19909 enable-wx-console: ${support_wx_console}
19910 client-only: ${build_client_only}
19911 ACL support: ${have_acl}
19918 # cweb support: ${got_cweb} ${CWEB_SRC}
19919 # gmp support: ${got_gmp} ${GMP_SRC}