2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --disable-nls do not use Native Language Support
868 --disable-rpath do not hardcode runtime library paths
869 --enable-gnome enable build of gnome-console GUI disabled
870 --enable-wx-console enable build of wxWidgets console disabled
871 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
872 --enable-smartalloc enable smartalloc debugging support disabled
873 --enable-static-tools enable static tape tools disabled
874 --enable-static-fd enable static File daemon disabled
875 --enable-static-sd enable static Storage daemon disabled
876 --enable-static-dir enable static Director disabled
877 --enable-static-cons enable static Console disabled
878 --enable-client-only build client (File daemon) only disabled
879 --enable-build-dird enable building of dird (Director) enabled
880 --enable-build-stored enable building of stored (Storage daemon) enabled
881 --disable-conio disable conio support enabled
883 --disable-readline disable readline support disable
885 --disable-largefile omit support for large files
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
892 --without-libiconv-prefix don't search for libiconv in includedir and libdir
893 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
894 --without-libintl-prefix don't search for libintl in includedir and libdir
895 --with-included-gettext use the GNU gettext library included here
896 --with-readline=DIR specify readline library directory
898 --with-python=DIR Include Python support. DIR is the Python base
899 install directory, default is to search through
900 a number of common places for the Python files.
901 --with-tcp-wrappers=DIR enable tcpwrappers support
903 Include OpenSSL support. DIR is the OpenSSL base
904 --with-working-dir=PATH specify path of Bacula working directory
905 --with-scriptdir=PATH specify path of Bacula scripts directory
906 --with-dump-email=EMAIL dump email address
907 --with-job-email=EMAIL job output email address
908 --with-smtp-host=HOST SMTP mail host address
909 --with-pid-dir=PATH specify location of Bacula pid files
910 --with-subsys-dir=PATH specify location of Bacula subsys file
911 --with-baseport=PORT specify base port address for daemons
912 --with-dir-password=PASSWORD specify Director's password
913 --with-fd-password=PASSWORD specify Client's password
914 --with-sd-password=PASSWORD specify Storage daemon's password
915 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
916 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
917 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
918 --with-dir-user=USER specify user for Director daemon
919 --with-dir-group=GROUP specify group for Director daemon
920 --with-sd-user=USER specify user for Storage daemon
921 --with-sd-group=GROUP specify group for Storage daemon
922 --with-fd-user=USER specify user for File daemon
923 --with-fd-group=GROUP specify group for File daemon
924 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
925 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
926 base install directory, defaults to /usr/local/pgsql
928 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
929 install directory, default is to search through
930 a number of common places for the MySQL files.
932 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
933 install directory, default is to search through
934 a number of common places for the MySQL files.
936 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
937 install directory, default is to search through
938 a number of common places for the SQLite3 files.
940 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
941 install directory, default is to search through
942 a number of common places for the SQLite files.
943 --with-x use the X Window System
945 Some influential environment variables:
946 CC C compiler command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
949 nonstandard directory <lib dir>
950 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
951 headers in a nonstandard directory <include dir>
952 CXX C++ compiler command
953 CXXFLAGS C++ compiler flags
955 WXCONFIG wx-config command. On some systems, you must set it to
956 wx-config-2.6 to use wxWidgets 2.6.
957 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
965 if test "$ac_init_help" = "recursive"; then
966 # If there are subdirs, report their specific --help.
968 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969 test -d $ac_dir || continue
972 if test "$ac_dir" != .; then
973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974 # A "../" for each directory in $ac_dir_suffix.
975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
977 ac_dir_suffix= ac_top_builddir=
981 .) # No --srcdir option. We are building in place.
983 if test -z "$ac_top_builddir"; then
986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
988 [\\/]* | ?:[\\/]* ) # Absolute path.
989 ac_srcdir=$srcdir$ac_dir_suffix;
990 ac_top_srcdir=$srcdir ;;
992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
999 .) ac_abs_builddir="$ac_dir";;
1002 .) ac_abs_builddir=`pwd`;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 case ${ac_top_builddir}. in
1011 .) ac_abs_top_builddir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1020 .) ac_abs_srcdir=$ac_abs_builddir;;
1021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 case $ac_top_srcdir in
1029 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1036 # Check for guested configure; otherwise get Cygnus style configure.
1037 if test -f $ac_srcdir/configure.gnu; then
1039 $SHELL $ac_srcdir/configure.gnu --help=recursive
1040 elif test -f $ac_srcdir/configure; then
1042 $SHELL $ac_srcdir/configure --help=recursive
1043 elif test -f $ac_srcdir/configure.ac ||
1044 test -f $ac_srcdir/configure.in; then
1046 $ac_configure --help
1048 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59. Invocation command line was
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1104 test -z "$as_dir" && as_dir=.
1105 echo "PATH: $as_dir"
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1129 ac_must_keep_next=false
1135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1139 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1143 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1145 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146 if test $ac_must_keep_next = true; then
1147 ac_must_keep_next=false # Got value, back to normal.
1150 *=* | --config-cache | -C | -disable-* | --disable-* \
1151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153 | -with-* | --with-* | -without-* | --without-* | --x)
1154 case "$ac_configure_args0 " in
1155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1158 -* ) ac_must_keep_next=true ;;
1161 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162 # Get rid of the leading space.
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log. We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177 # Save into config.log some information that might help in debugging.
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1187 # The following way of writing the cache mishandles newlines in values,
1190 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1193 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1210 for ac_var in $ac_subst_vars
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -n "$ac_subst_files"; then
1224 for ac_var in $ac_subst_files
1226 eval ac_val=$`echo $ac_var`
1227 echo "$ac_var='"'"'$ac_val'"'"'"
1232 if test -s confdefs.h; then
1239 sed "/^$/d" confdefs.h | sort
1242 test "$ac_signal" != 0 &&
1243 echo "$as_me: caught signal $ac_signal"
1244 echo "$as_me: exit $exit_status"
1246 rm -f core *.core &&
1247 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1250 for ac_signal in 1 2 13 15; do
1251 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1260 # Predefined preprocessor variables.
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290 if test "x$prefix" != xNONE; then
1291 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1293 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1296 for ac_site_file in $CONFIG_SITE; do
1297 if test -r "$ac_site_file"; then
1298 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300 sed 's/^/| /' "$ac_site_file" >&5
1305 if test -r "$cache_file"; then
1306 # Some versions of bash will fail to source /dev/null (special
1307 # files actually), so we avoid doing that.
1308 if test -f "$cache_file"; then
1309 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1312 [\\/]* | ?:[\\/]* ) . $cache_file;;
1313 *) . ./$cache_file;;
1317 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1322 # Check that the precious variables saved in the cache have kept the same
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328 eval ac_new_set=\$ac_env_${ac_var}_set
1329 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330 eval ac_new_val="\$ac_env_${ac_var}_value"
1331 case $ac_old_set,$ac_new_set in
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1337 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339 ac_cache_corrupted=: ;;
1342 if test "x$ac_old_val" != "x$ac_new_val"; then
1343 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1346 echo "$as_me: former value: $ac_old_val" >&2;}
1347 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1348 echo "$as_me: current value: $ac_new_val" >&2;}
1349 ac_cache_corrupted=:
1352 # Pass precious variables to config.status.
1353 if test "$ac_new_set" = set; then
1355 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357 *) ac_arg=$ac_var=$ac_new_val ;;
1359 case " $ac_configure_args " in
1360 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1361 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1365 if $ac_cache_corrupted; then
1366 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370 { (exit 1); exit 1; }; }
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1404 if test -f $ac_dir/install-sh; then
1406 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 elif test -f $ac_dir/install.sh; then
1410 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 elif test -f $ac_dir/shtool; then
1414 ac_install_sh="$ac_aux_dir/shtool install -c"
1418 if test -z "$ac_aux_dir"; then
1419 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1421 { (exit 1); exit 1; }; }
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1435 # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy $ac_prog; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 test -z "$as_dir" && as_dir=.
1452 for ac_exec_ext in '' $ac_executable_extensions; do
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1454 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464 TRUEPRG=$ac_cv_path_TRUEPRG
1466 if test -n "$TRUEPRG"; then
1467 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1468 echo "${ECHO_T}$TRUEPRG" >&6
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1474 test -n "$TRUEPRG" && break
1476 test -n "$TRUEPRG" || TRUEPRG=":"
1478 for ac_prog in false
1480 # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy $ac_prog; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir=.
1497 for ac_exec_ext in '' $ac_executable_extensions; do
1498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1499 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509 FALSEPRG=$ac_cv_path_FALSEPRG
1511 if test -n "$FALSEPRG"; then
1512 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1513 echo "${ECHO_T}$FALSEPRG" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1519 test -n "$FALSEPRG" && break
1521 test -n "$FALSEPRG" || FALSEPRG=":"
1526 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 echo "configuring for bacula $VERSION ($DATE)"
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 if test -n "$ac_tool_prefix"; then
1539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 if test -n "$CC"; then
1567 echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1570 echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1575 if test -z "$ac_cv_prog_CC"; then
1577 # Extract the first word of "gcc", so it can be a program name with args.
1578 set dummy gcc; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_ac_ct_CC="gcc"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604 if test -n "$ac_ct_CC"; then
1605 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1606 echo "${ECHO_T}$ac_ct_CC" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1617 if test -z "$CC"; then
1618 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620 set dummy ${ac_tool_prefix}cc; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="${ac_tool_prefix}cc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1655 if test -z "$ac_cv_prog_CC"; then
1657 # Extract the first word of "cc", so it can be a program name with args.
1658 set dummy cc; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="cc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1698 if test -z "$CC"; then
1699 # Extract the first word of "cc", so it can be a program name with args.
1700 set dummy cc; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718 ac_prog_rejected=yes
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 if test $ac_prog_rejected = yes; then
1729 # We found a bogon in the path, so make sure we never use it.
1730 set dummy $ac_cv_prog_CC
1732 if test $# != 0; then
1733 # We chose a different compiler from the bogus one.
1734 # However, it has the same basename, so the bogon will be chosen
1735 # first if we set CC to just the basename; use the full file name.
1737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1752 if test -z "$CC"; then
1753 if test -n "$ac_tool_prefix"; then
1756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 if test -n "$CC"; then
1784 echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1791 test -n "$CC" && break
1794 if test -z "$CC"; then
1798 # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825 if test -n "$ac_ct_CC"; then
1826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1827 echo "${ECHO_T}$ac_ct_CC" >&6
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1833 test -n "$ac_ct_CC" && break
1842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: no acceptable C compiler found in \$PATH
1845 See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
1848 # Provide some information about the compiler.
1849 echo "$as_me:$LINENO:" \
1850 "checking for C compiler version" >&5
1851 ac_compiler=`set X $ac_compile; echo $2`
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1853 (eval $ac_compiler --version </dev/null >&5) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1857 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1858 (eval $ac_compiler -v </dev/null >&5) 2>&5
1860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861 (exit $ac_status); }
1862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1863 (eval $ac_compiler -V </dev/null >&5) 2>&5
1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866 (exit $ac_status); }
1868 cat >conftest.$ac_ext <<_ACEOF
1871 cat confdefs.h >>conftest.$ac_ext
1872 cat >>conftest.$ac_ext <<_ACEOF
1873 /* end confdefs.h. */
1883 ac_clean_files_save=$ac_clean_files
1884 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1885 # Try to create an executable without -o first, disregard a.out.
1886 # It will help us diagnose broken compilers, and finding out an intuition
1888 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1891 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1892 (eval $ac_link_default) 2>&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; then
1896 # Find the output, starting from the most likely. This scheme is
1897 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1900 # Be careful to initialize this variable, since it used to be cached.
1901 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 # b.out is created by i960 compilers.
1904 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1906 test -f "$ac_file" || continue
1908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1911 # This is the source file.
1914 # We found the default executable, but exeext='' is most
1918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 # FIXME: I believe we export ac_cv_exeext for Libtool,
1920 # but it would be cool to find out if it's true. Does anybody
1921 # maintain Libtool? --akim.
1929 echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1932 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: C compiler cannot create executables
1935 See \`config.log' for more details." >&2;}
1936 { (exit 77); exit 77; }; }
1939 ac_exeext=$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_file" >&5
1941 echo "${ECHO_T}$ac_file" >&6
1943 # Check the compiler produces executables we can run. If not, either
1944 # the compiler is broken, or we cross compile.
1945 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1946 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948 # If not cross compiling, check that we can run a simple program.
1949 if test "$cross_compiling" != yes; then
1950 if { ac_try='./$ac_file'
1951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }; }; then
1958 if test "$cross_compiling" = maybe; then
1961 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&5
1964 echo "$as_me: error: cannot run C compiled programs.
1965 If you meant to cross compile, use \`--host'.
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1971 echo "$as_me:$LINENO: result: yes" >&5
1972 echo "${ECHO_T}yes" >&6
1974 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1975 ac_clean_files=$ac_clean_files_save
1976 # Check the compiler produces executables we can run. If not, either
1977 # the compiler is broken, or we cross compile.
1978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1981 echo "${ECHO_T}$cross_compiling" >&6
1983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1986 (eval $ac_link) 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; then
1990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1992 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 for ac_file in conftest.exe conftest conftest.*; do
1995 test -f "$ac_file" || continue
1997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006 See \`config.log' for more details." >&5
2007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008 See \`config.log' for more details." >&2;}
2009 { (exit 1); exit 1; }; }
2012 rm -f conftest$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2016 rm -f conftest.$ac_ext
2017 EXEEXT=$ac_cv_exeext
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 cat >conftest.$ac_ext <<_ACEOF
2027 cat confdefs.h >>conftest.$ac_ext
2028 cat >>conftest.$ac_ext <<_ACEOF
2029 /* end confdefs.h. */
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2053 echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2056 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059 See \`config.log' for more details." >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT=$ac_cv_objext
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 cat >conftest.$ac_ext <<_ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2096 grep -v '^ *+' conftest.er1 >conftest.err
2098 cat conftest.err >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try='test -z "$ac_c_werror_flag"
2102 || test ! -s conftest.err'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; } &&
2108 { ac_try='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2116 echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2122 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2125 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2126 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2127 GCC=`test $ac_compiler_gnu = yes && echo yes`
2128 ac_test_CFLAGS=${CFLAGS+set}
2129 ac_save_CFLAGS=$CFLAGS
2131 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_g+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 cat >conftest.$ac_ext <<_ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>conftest.er1
2155 grep -v '^ *+' conftest.er1 >conftest.err
2157 cat conftest.err >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -z "$ac_c_werror_flag"
2161 || test ! -s conftest.err'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; } &&
2167 { ac_try='test -s conftest.$ac_objext'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; }; then
2175 echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2183 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2184 if test "$ac_test_CFLAGS" = set; then
2185 CFLAGS=$ac_save_CFLAGS
2186 elif test $ac_cv_prog_cc_g = yes; then
2187 if test "$GCC" = yes; then
2193 if test "$GCC" = yes; then
2199 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2200 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2201 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 ac_cv_prog_cc_stdc=no
2206 cat >conftest.$ac_ext <<_ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h. */
2214 #include <sys/types.h>
2215 #include <sys/stat.h>
2216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2217 struct buf { int x; };
2218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2219 static char *e (p, i)
2225 static char *f (char * (*g) (char **, int), char **p, ...)
2230 s = g (p, va_arg (v,int));
2235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2236 function prototypes and stuff, but not '\xHH' hex character constants.
2237 These don't provoke an error unfortunately, instead are silently treated
2238 as 'x'. The following induces an error, until -std1 is added to get
2239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2240 array size at least. It's necessary to write '\x00'==0 to get something
2241 that's true only with -std1. */
2242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2244 int test (int i, double x);
2245 struct s1 {int (*f) (int a);};
2246 struct s2 {int (*f) (double a);};
2247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2258 # Don't try gcc -ansi; that turns off useful extensions and
2259 # breaks some systems' header files.
2260 # AIX -qlanglvl=ansi
2261 # Ultrix and OSF/1 -std1
2262 # HP-UX 10.20 and later -Ae
2263 # HP-UX older versions -Aa -D_HPUX_SOURCE
2264 # SVR4 -Xc -D__EXTENSIONS__
2265 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2267 CC="$ac_save_CC $ac_arg"
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2272 grep -v '^ *+' conftest.er1 >conftest.err
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 ac_cv_prog_cc_stdc=$ac_arg
2293 echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2297 rm -f conftest.err conftest.$ac_objext
2299 rm -f conftest.$ac_ext conftest.$ac_objext
2304 case "x$ac_cv_prog_cc_stdc" in
2306 echo "$as_me:$LINENO: result: none needed" >&5
2307 echo "${ECHO_T}none needed" >&6 ;;
2309 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2310 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2311 CC="$CC $ac_cv_prog_cc_stdc" ;;
2314 # Some people use a C++ compiler to compile C. Since we use `exit',
2315 # in C++ we need to declare it. In case someone uses the same compiler
2316 # for both compiling C and C++ we need to have the C++ compiler decide
2317 # the declaration of exit, since it's the most demanding environment.
2318 cat >conftest.$ac_ext <<_ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2327 grep -v '^ *+' conftest.er1 >conftest.err
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 for ac_declaration in \
2347 'extern "C" void std::exit (int) throw (); using std::exit;' \
2348 'extern "C" void std::exit (int); using std::exit;' \
2349 'extern "C" void exit (int) throw ();' \
2350 'extern "C" void exit (int);' \
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2373 grep -v '^ *+' conftest.er1 >conftest.err
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 cat >conftest.$ac_ext <<_ACEOF
2402 cat confdefs.h >>conftest.$ac_ext
2403 cat >>conftest.$ac_ext <<_ACEOF
2404 /* end confdefs.h. */
2414 rm -f conftest.$ac_objext
2415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416 (eval $ac_compile) 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_c_werror_flag"
2424 || test ! -s conftest.err'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 if test -n "$ac_declaration"; then
2446 echo '#ifdef __cplusplus' >>confdefs.h
2447 echo $ac_declaration >>confdefs.h
2448 echo '#endif' >>confdefs.h
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_cpp='$CXXCPP $CPPFLAGS'
2465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CXX+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CXX"; then
2479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 if test -n "$CXX"; then
2499 echo "$as_me:$LINENO: result: $CXX" >&5
2500 echo "${ECHO_T}$CXX" >&6
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$CXX" && break
2509 if test -z "$CXX"; then
2511 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_CXX"; then
2521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_CXX="$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2540 if test -n "$ac_ct_CXX"; then
2541 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2542 echo "${ECHO_T}$ac_ct_CXX" >&6
2544 echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2548 test -n "$ac_ct_CXX" && break
2550 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2556 # Provide some information about the compiler.
2557 echo "$as_me:$LINENO:" \
2558 "checking for C++ compiler version" >&5
2559 ac_compiler=`set X $ac_compile; echo $2`
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2561 (eval $ac_compiler --version </dev/null >&5) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2566 (eval $ac_compiler -v </dev/null >&5) 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }
2570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2571 (eval $ac_compiler -V </dev/null >&5) 2>&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }
2576 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2577 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2578 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>conftest.er1
2603 grep -v '^ *+' conftest.er1 >conftest.err
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try='test -z "$ac_cxx_werror_flag"
2609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2632 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2633 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2634 GXX=`test $ac_compiler_gnu = yes && echo yes`
2635 ac_test_CXXFLAGS=${CXXFLAGS+set}
2636 ac_save_CXXFLAGS=$CXXFLAGS
2638 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2639 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2640 if test "${ac_cv_prog_cxx_g+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2662 grep -v '^ *+' conftest.er1 >conftest.err
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_cxx_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 ac_cv_prog_cxx_g=yes
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2691 if test "$ac_test_CXXFLAGS" = set; then
2692 CXXFLAGS=$ac_save_CXXFLAGS
2693 elif test $ac_cv_prog_cxx_g = yes; then
2694 if test "$GXX" = yes; then
2700 if test "$GXX" = yes; then
2706 for ac_declaration in \
2708 'extern "C" void std::exit (int) throw (); using std::exit;' \
2709 'extern "C" void std::exit (int); using std::exit;' \
2710 'extern "C" void exit (int) throw ();' \
2711 'extern "C" void exit (int);' \
2714 cat >conftest.$ac_ext <<_ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_cxx_werror_flag"
2740 || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_cxx_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 if test -n "$ac_declaration"; then
2807 echo '#ifdef __cplusplus' >>confdefs.h
2808 echo $ac_declaration >>confdefs.h
2809 echo '#endif' >>confdefs.h
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 if test "x$CC" != xcc; then
2819 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2820 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2822 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2823 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2825 set dummy $CC; ac_cc=`echo $2 |
2826 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2827 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 cat >conftest.$ac_ext <<_ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2845 # Make sure it works both with $CC and with simple cc.
2846 # We do the test twice because some compilers refuse to overwrite an
2847 # existing .o file with -o, though they will create one.
2848 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2849 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); };
2860 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2861 if test "x$CC" != xcc; then
2862 # Test first that cc exists at all.
2863 if { ac_try='cc -c conftest.$ac_ext >&5'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2870 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); };
2884 # cc exists but doesn't like -o.
2885 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2890 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2895 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2896 echo "$as_me:$LINENO: result: yes" >&5
2897 echo "${ECHO_T}yes" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2902 cat >>confdefs.h <<\_ACEOF
2903 #define NO_MINUS_C_MINUS_O 1
2909 ac_cpp='$CPP $CPPFLAGS'
2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2915 # On Suns, sometimes $CPP names a directory.
2916 if test -n "$CPP" && test -d "$CPP"; then
2919 if test -z "$CPP"; then
2920 if test "${ac_cv_prog_CPP+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 # Double quotes because CPP needs to be expanded
2924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927 for ac_c_preproc_warn_flag in '' yes
2929 # Use a header file that comes with gcc, so configuring glibc
2930 # with a fresh cross-compiler works.
2931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932 # <limits.h> exists even on freestanding compilers.
2933 # On the NeXT, cc -E runs the code through the compiler's parser,
2934 # not just through cpp. "Syntax error" is here to catch this case.
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2942 # include <limits.h>
2944 # include <assert.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Broken: fails on valid input.
2974 rm -f conftest.err conftest.$ac_ext
2976 # OK, works on sane cases. Now check whether non-existent headers
2977 # can be detected and how.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 #include <ac_nonexistent.h>
2986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } >/dev/null; then
2994 if test -s conftest.err; then
2995 ac_cpp_err=$ac_c_preproc_warn_flag
2996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3003 if test -z "$ac_cpp_err"; then
3004 # Broken: success on invalid input.
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Passes both tests.
3014 rm -f conftest.err conftest.$ac_ext
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3031 echo "$as_me:$LINENO: result: $CPP" >&5
3032 echo "${ECHO_T}$CPP" >&6
3034 for ac_c_preproc_warn_flag in '' yes
3036 # Use a header file that comes with gcc, so configuring glibc
3037 # with a fresh cross-compiler works.
3038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039 # <limits.h> exists even on freestanding compilers.
3040 # On the NeXT, cc -E runs the code through the compiler's parser,
3041 # not just through cpp. "Syntax error" is here to catch this case.
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3049 # include <limits.h>
3051 # include <assert.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 # Broken: fails on valid input.
3081 rm -f conftest.err conftest.$ac_ext
3083 # OK, works on sane cases. Now check whether non-existent headers
3084 # can be detected and how.
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3091 #include <ac_nonexistent.h>
3093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } >/dev/null; then
3101 if test -s conftest.err; then
3102 ac_cpp_err=$ac_c_preproc_warn_flag
3103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3110 if test -z "$ac_cpp_err"; then
3111 # Broken: success on invalid input.
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 # Passes both tests.
3121 rm -f conftest.err conftest.$ac_ext
3124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125 rm -f conftest.err conftest.$ac_ext
3126 if $ac_preproc_ok; then
3129 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3132 See \`config.log' for more details." >&2;}
3133 { (exit 1); exit 1; }; }
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 echo "$as_me:$LINENO: checking for egrep" >&5
3144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3145 if test "${ac_cv_prog_egrep+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3149 then ac_cv_prog_egrep='grep -E'
3150 else ac_cv_prog_egrep='egrep'
3153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3155 EGREP=$ac_cv_prog_egrep
3158 if test $ac_cv_c_compiler_gnu = yes; then
3159 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3160 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3161 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 ac_pattern="Autoconf.*'x'"
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3176 ac_cv_prog_gcc_traditional=yes
3178 ac_cv_prog_gcc_traditional=no
3183 if test $ac_cv_prog_gcc_traditional = no; then
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3194 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3195 ac_cv_prog_gcc_traditional=yes
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3202 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3203 if test $ac_cv_prog_gcc_traditional = yes; then
3204 CC="$CC -traditional"
3208 if test "x$CC" = xgcc; then
3209 cat >>confdefs.h <<\_ACEOF
3214 # Extract the first word of "$CXX", so it can be a program name with args.
3215 set dummy $CXX; 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_CXX+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_path_CXX="$CXX" # 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_CXX="$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_CXX" && ac_cv_path_CXX="$CXX"
3246 if test -n "$CXX"; then
3247 echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 if test ! -e $CXX; then
3255 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3256 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3257 { (exit 1); exit 1; }; }
3260 # Find a good install program. We prefer a C program (faster),
3261 # so one script is as good as another. But avoid the broken or
3262 # incompatible versions:
3263 # SysV /etc/install, /usr/sbin/install
3264 # SunOS /usr/etc/install
3265 # IRIX /sbin/install
3267 # AmigaOS /C/install, which installs bootblocks on floppy discs
3268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271 # OS/2's system install, which has a completely different semantic
3272 # ./install, which can be erroneously created by make from ./install.sh.
3273 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3274 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3275 if test -z "$INSTALL"; then
3276 if test "${ac_cv_path_install+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 # Account for people who put trailing slashes in PATH elements.
3286 ./ | .// | /cC/* | \
3287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3288 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3291 # OSF1 and SCO ODT 3.0 have their own names for install.
3292 # Don't use installbsd from OSF since it installs stuff as root
3294 for ac_prog in ginstall scoinst install; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3297 if test $ac_prog = install &&
3298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299 # AIX install. It has an incompatible calling convention.
3301 elif test $ac_prog = install &&
3302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # program-specific install script used by HP pwplus--don't use.
3306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318 if test "${ac_cv_path_install+set}" = set; then
3319 INSTALL=$ac_cv_path_install
3321 # As a last resort, use the slow shell script. We don't cache a
3322 # path for INSTALL within a source directory, because that will
3323 # break other packages using the cache if that directory is
3324 # removed, or if the path is relative.
3325 INSTALL=$ac_install_sh
3328 echo "$as_me:$LINENO: result: $INSTALL" >&5
3329 echo "${ECHO_T}$INSTALL" >&6
3331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3332 # It thinks the first close brace ends the variable substitution.
3333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_RANLIB+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$RANLIB"; then
3348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 RANLIB=$ac_cv_prog_RANLIB
3367 if test -n "$RANLIB"; then
3368 echo "$as_me:$LINENO: result: $RANLIB" >&5
3369 echo "${ECHO_T}$RANLIB" >&6
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3376 if test -z "$ac_cv_prog_RANLIB"; then
3377 ac_ct_RANLIB=$RANLIB
3378 # Extract the first word of "ranlib", so it can be a program name with args.
3379 set dummy ranlib; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$ac_ct_RANLIB"; then
3386 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_ac_ct_RANLIB="ranlib"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3406 if test -n "$ac_ct_RANLIB"; then
3407 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3408 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 RANLIB=$ac_ct_RANLIB
3416 RANLIB="$ac_cv_prog_RANLIB"
3419 # Extract the first word of "mv", so it can be a program name with args.
3420 set dummy mv; ac_word=$2
3421 echo "$as_me:$LINENO: checking for $ac_word" >&5
3422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3423 if test "${ac_cv_path_MV+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3451 if test -n "$MV"; then
3452 echo "$as_me:$LINENO: result: $MV" >&5
3453 echo "${ECHO_T}$MV" >&6
3455 echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3459 # Extract the first word of "rm", so it can be a program name with args.
3460 set dummy rm; ac_word=$2
3461 echo "$as_me:$LINENO: checking for $ac_word" >&5
3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3463 if test "${ac_cv_path_RM+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3491 if test -n "$RM"; then
3492 echo "$as_me:$LINENO: result: $RM" >&5
3493 echo "${ECHO_T}$RM" >&6
3495 echo "$as_me:$LINENO: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3499 # Extract the first word of "cp", so it can be a program name with args.
3500 set dummy cp; ac_word=$2
3501 echo "$as_me:$LINENO: checking for $ac_word" >&5
3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503 if test "${ac_cv_path_CP+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3531 if test -n "$CP"; then
3532 echo "$as_me:$LINENO: result: $CP" >&5
3533 echo "${ECHO_T}$CP" >&6
3535 echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3539 # Extract the first word of "sed", so it can be a program name with args.
3540 set dummy sed; ac_word=$2
3541 echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_path_SED+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3571 if test -n "$SED"; then
3572 echo "$as_me:$LINENO: result: $SED" >&5
3573 echo "${ECHO_T}$SED" >&6
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3579 # Extract the first word of "echo", so it can be a program name with args.
3580 set dummy echo; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_path_ECHO+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3609 ECHO=$ac_cv_path_ECHO
3611 if test -n "$ECHO"; then
3612 echo "$as_me:$LINENO: result: $ECHO" >&5
3613 echo "${ECHO_T}$ECHO" >&6
3615 echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3619 # Extract the first word of "cmp", so it can be a program name with args.
3620 set dummy cmp; ac_word=$2
3621 echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 if test "${ac_cv_path_CMP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3651 if test -n "$CMP"; then
3652 echo "$as_me:$LINENO: result: $CMP" >&5
3653 echo "${ECHO_T}$CMP" >&6
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3659 # Extract the first word of "tbl", so it can be a program name with args.
3660 set dummy tbl; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_path_TBL+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3691 if test -n "$TBL"; then
3692 echo "$as_me:$LINENO: result: $TBL" >&5
3693 echo "${ECHO_T}$TBL" >&6
3695 echo "$as_me:$LINENO: result: no" >&5
3696 echo "${ECHO_T}no" >&6
3699 # Extract the first word of "ar", so it can be a program name with args.
3700 set dummy ar; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_path_AR+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3731 if test -n "$AR"; then
3732 echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3739 # Extract the first word of "openssl", so it can be a program name with args.
3740 set dummy openssl; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_path_OPENSSL+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3769 OPENSSL=$ac_cv_path_OPENSSL
3771 if test -n "$OPENSSL"; then
3772 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3773 echo "${ECHO_T}$OPENSSL" >&6
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3779 # Extract the first word of "mtx", so it can be a program name with args.
3780 set dummy mtx; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_path_MTX+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3811 if test -n "$MTX"; then
3812 echo "$as_me:$LINENO: result: $MTX" >&5
3813 echo "${ECHO_T}$MTX" >&6
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3819 # Extract the first word of "dd", so it can be a program name with args.
3820 set dummy dd; ac_word=$2
3821 echo "$as_me:$LINENO: checking for $ac_word" >&5
3822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3823 if test "${ac_cv_path_DD+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3851 if test -n "$DD"; then
3852 echo "$as_me:$LINENO: result: $DD" >&5
3853 echo "${ECHO_T}$DD" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 # Extract the first word of "mkisofs", so it can be a program name with args.
3860 set dummy mkisofs; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_MKISOFS+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3889 MKISOFS=$ac_cv_path_MKISOFS
3891 if test -n "$MKISOFS"; then
3892 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3893 echo "${ECHO_T}$MKISOFS" >&6
3895 echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3899 # Extract the first word of "python", so it can be a program name with args.
3900 set dummy python; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_PYTHON+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3929 PYTHON=$ac_cv_path_PYTHON
3931 if test -n "$PYTHON"; then
3932 echo "$as_me:$LINENO: result: $PYTHON" >&5
3933 echo "${ECHO_T}$PYTHON" >&6
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3939 # Extract the first word of "growisofs", so it can be a program name with args.
3940 set dummy growisofs; ac_word=$2
3941 echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3969 GROWISOFS=$ac_cv_path_GROWISOFS
3971 if test -n "$GROWISOFS"; then
3972 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3973 echo "${ECHO_T}$GROWISOFS" >&6
3975 echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3979 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3980 set dummy dvd+rw-mediainfo; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 case $DVDRWMEDIAINFO in
3988 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4009 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4011 if test -n "$DVDRWMEDIAINFO"; then
4012 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4013 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4019 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4020 set dummy dvd+rw-format; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 case $DVDRWFORMAT in
4028 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4049 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4051 if test -n "$DVDRWFORMAT"; then
4052 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4053 echo "${ECHO_T}$DVDRWFORMAT" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 # Extract the first word of "pkg-config", so it can be a program name with args.
4060 set dummy pkg-config; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4089 PKGCONFIG=$ac_cv_path_PKGCONFIG
4091 if test -n "$PKGCONFIG"; then
4092 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4093 echo "${ECHO_T}$PKGCONFIG" >&6
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4100 if test "x$WXCONFIG" = x; then
4103 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4104 set dummy ${WXCONFIG}; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4133 WXCONFIG=$ac_cv_path_WXCONFIG
4135 if test -n "$WXCONFIG"; then
4136 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4137 echo "${ECHO_T}$WXCONFIG" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4144 # Extract the first word of "cdrecord", so it can be a program name with args.
4145 set dummy cdrecord; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_path_CDRECORD+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4174 CDRECORD=$ac_cv_path_CDRECORD
4176 if test -n "$CDRECORD"; then
4177 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4178 echo "${ECHO_T}$CDRECORD" >&6
4180 echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4184 # Extract the first word of "pidof", so it can be a program name with args.
4185 set dummy pidof; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_PIDOF+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4214 PIDOF=$ac_cv_path_PIDOF
4216 if test -n "$PIDOF"; then
4217 echo "$as_me:$LINENO: result: $PIDOF" >&5
4218 echo "${ECHO_T}$PIDOF" >&6
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4224 for ac_prog in gawk mawk nawk awk
4226 # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 echo "$as_me:$LINENO: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_AWK+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$AWK"; then
4234 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_AWK="$ac_prog"
4244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 if test -n "$AWK"; then
4254 echo "$as_me:$LINENO: result: $AWK" >&5
4255 echo "${ECHO_T}$AWK" >&6
4257 echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4261 test -n "$AWK" && break
4264 # Some AWK programs fail, so test it and warn the user
4265 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4266 { if ((prog == $2) || (("(" prog ")") == $2) ||
4267 (("" prog "") == $2) ||
4268 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4270 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4271 The regex engine of $AWK is too broken to be used you
4272 might want to install GNU AWK.
4273 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4274 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4275 The regex engine of $AWK is too broken to be used you
4276 might want to install GNU AWK.
4277 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4278 { (exit 1); exit 1; }; }
4281 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4282 set dummy $THE_AWK; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_AWK+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4313 if test -n "$AWK"; then
4314 echo "$as_me:$LINENO: result: $AWK" >&5
4315 echo "${ECHO_T}$AWK" >&6
4317 echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4322 test -n "$ARFLAG" || ARFLAGS="cr"
4333 # Make sure we can run config.sub.
4334 $ac_config_sub sun4 >/dev/null 2>&1 ||
4335 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4336 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4337 { (exit 1); exit 1; }; }
4339 echo "$as_me:$LINENO: checking build system type" >&5
4340 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4341 if test "${ac_cv_build+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_cv_build_alias=$build_alias
4345 test -z "$ac_cv_build_alias" &&
4346 ac_cv_build_alias=`$ac_config_guess`
4347 test -z "$ac_cv_build_alias" &&
4348 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4349 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4350 { (exit 1); exit 1; }; }
4351 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4352 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4353 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4354 { (exit 1); exit 1; }; }
4357 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4358 echo "${ECHO_T}$ac_cv_build" >&6
4360 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4361 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4362 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4366 echo "$as_me:$LINENO: checking host system type" >&5
4367 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4368 if test "${ac_cv_host+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_cv_host_alias=$host_alias
4372 test -z "$ac_cv_host_alias" &&
4373 ac_cv_host_alias=$ac_cv_build_alias
4374 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4376 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4377 { (exit 1); exit 1; }; }
4380 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4381 echo "${ECHO_T}$ac_cv_host" >&6
4383 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4384 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4385 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4389 *cygwin* ) CYGWIN=yes;;
4393 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4399 HAVE_SUN_OS_FALSE='#'
4401 HAVE_SUN_OS_TRUE='#'
4404 cat >>confdefs.h <<\_ACEOF
4405 #define HAVE_SUN_OS 1
4413 HAVE_SUN_OS_FALSE='#'
4415 HAVE_SUN_OS_TRUE='#'
4420 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4426 HAVE_OSF1_OS_FALSE='#'
4428 HAVE_OSF1_OS_TRUE='#'
4431 cat >>confdefs.h <<\_ACEOF
4432 #define HAVE_OSF1_OS 1
4440 HAVE_OSF1_OS_FALSE='#'
4442 HAVE_OSF1_OS_TRUE='#'
4447 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4453 HAVE_AIX_OS_FALSE='#'
4455 HAVE_AIX_OS_TRUE='#'
4458 cat >>confdefs.h <<\_ACEOF
4459 #define HAVE_AIX_OS 1
4467 HAVE_AIX_OS_FALSE='#'
4469 HAVE_AIX_OS_TRUE='#'
4474 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4480 HAVE_HPUX_OS_FALSE='#'
4482 HAVE_HPUX_OS_TRUE='#'
4485 cat >>confdefs.h <<\_ACEOF
4486 #define HAVE_HPUX_OS 1
4494 HAVE_HPUX_OS_FALSE='#'
4496 HAVE_HPUX_OS_TRUE='#'
4501 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4507 HAVE_LINUX_OS_FALSE='#'
4509 HAVE_LINUX_OS_TRUE='#'
4510 HAVE_LINUX_OS_FALSE=
4512 cat >>confdefs.h <<\_ACEOF
4513 #define HAVE_LINUX_OS 1
4521 HAVE_LINUX_OS_FALSE='#'
4523 HAVE_LINUX_OS_TRUE='#'
4524 HAVE_LINUX_OS_FALSE=
4528 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4533 HAVE_FREEBSD_OS_TRUE=
4534 HAVE_FREEBSD_OS_FALSE='#'
4536 HAVE_FREEBSD_OS_TRUE='#'
4537 HAVE_FREEBSD_OS_FALSE=
4539 cat >>confdefs.h <<\_ACEOF
4540 #define HAVE_FREEBSD_OS 1
4547 HAVE_FREEBSD_OS_TRUE=
4548 HAVE_FREEBSD_OS_FALSE='#'
4550 HAVE_FREEBSD_OS_TRUE='#'
4551 HAVE_FREEBSD_OS_FALSE=
4555 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4560 HAVE_NETBSD_OS_TRUE=
4561 HAVE_NETBSD_OS_FALSE='#'
4563 HAVE_NETBSD_OS_TRUE='#'
4564 HAVE_NETBSD_OS_FALSE=
4566 cat >>confdefs.h <<\_ACEOF
4567 #define HAVE_NETBSD_OS 1
4574 HAVE_NETBSD_OS_TRUE=
4575 HAVE_NETBSD_OS_FALSE='#'
4577 HAVE_NETBSD_OS_TRUE='#'
4578 HAVE_NETBSD_OS_FALSE=
4582 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4587 HAVE_OPENBSD_OS_TRUE=
4588 HAVE_OPENBSD_OS_FALSE='#'
4590 HAVE_OPENBSD_OS_TRUE='#'
4591 HAVE_OPENBSD_OS_FALSE=
4593 cat >>confdefs.h <<\_ACEOF
4594 #define HAVE_OPENBSD_OS 1
4601 HAVE_OPENBSD_OS_TRUE=
4602 HAVE_OPENBSD_OS_FALSE='#'
4604 HAVE_OPENBSD_OS_TRUE='#'
4605 HAVE_OPENBSD_OS_FALSE=
4609 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4615 HAVE_BSDI_OS_FALSE='#'
4617 HAVE_BSDI_OS_TRUE='#'
4620 cat >>confdefs.h <<\_ACEOF
4621 #define HAVE_BSDI_OS 1
4629 HAVE_BSDI_OS_FALSE='#'
4631 HAVE_BSDI_OS_TRUE='#'
4636 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4642 HAVE_SGI_OS_FALSE='#'
4644 HAVE_SGI_OS_TRUE='#'
4647 cat >>confdefs.h <<\_ACEOF
4648 #define HAVE_SGI_OS 1
4656 HAVE_SGI_OS_FALSE='#'
4658 HAVE_SGI_OS_TRUE='#'
4663 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4669 HAVE_IRIX_OS_FALSE='#'
4671 HAVE_IRIX_OS_TRUE='#'
4674 cat >>confdefs.h <<\_ACEOF
4675 #define HAVE_IRIX_OS 1
4683 HAVE_IRIX_OS_FALSE='#'
4685 HAVE_IRIX_OS_TRUE='#'
4690 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4695 HAVE_DARWIN_OS_TRUE=
4696 HAVE_DARWIN_OS_FALSE='#'
4698 HAVE_DARWIN_OS_TRUE='#'
4699 HAVE_DARWIN_OS_FALSE=
4701 cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_DARWIN_OS 1
4709 HAVE_DARWIN_OS_TRUE=
4710 HAVE_DARWIN_OS_FALSE='#'
4712 HAVE_DARWIN_OS_TRUE='#'
4713 HAVE_DARWIN_OS_FALSE=
4718 # -----------------------------------------------------------
4719 # ----------------------------------------------------------
4720 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4721 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4722 if test "x$DISTNAME" != "x"
4724 echo "distname set to $DISTNAME"
4725 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4731 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4734 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4737 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4740 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4743 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4746 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4749 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4752 elif test -f /etc/SuSE-release
4755 elif test -d /etc/SuSEconfig
4758 elif test -f /etc/mandrake-release
4761 elif test -f /etc/whitebox-release
4764 elif test -f /etc/redhat-release
4767 elif test -f /etc/gentoo-release
4770 elif test -f /etc/debian_version
4773 elif test -f /etc/slackware-version
4776 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4779 elif test -f /etc/engarde-version
4782 elif test "$CYGWIN" = yes
4785 cat >>confdefs.h <<\_ACEOF
4786 #define HAVE_CYGWIN 1
4792 echo "$as_me:$LINENO: result: done" >&5
4793 echo "${ECHO_T}done" >&6
4796 # --------------------------------------------------
4797 # Suppport for gettext (translations)
4798 # By default, $datadir is ${prefix}/share
4799 # --------------------------------------------------
4800 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4801 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4802 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4803 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 cat >conftest.make <<\_ACEOF
4808 @echo 'ac_maketemp="$(MAKE)"'
4810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4811 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4812 if test -n "$ac_maketemp"; then
4813 eval ac_cv_prog_make_${ac_make}_set=yes
4815 eval ac_cv_prog_make_${ac_make}_set=no
4819 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4820 echo "$as_me:$LINENO: result: yes" >&5
4821 echo "${ECHO_T}yes" >&6
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826 SET_MAKE="MAKE=${MAKE-make}"
4832 if test -n "$ac_aux_dir"; then
4833 case "$ac_aux_dir" in
4834 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4835 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4838 if test -z "$MKINSTALLDIRS"; then
4839 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4844 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4845 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4846 # Check whether --enable-nls or --disable-nls was given.
4847 if test "${enable_nls+set}" = set; then
4848 enableval="$enable_nls"
4853 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4854 echo "${ECHO_T}$USE_NLS" >&6
4861 # Prepare PATH_SEPARATOR.
4862 # The user is always right.
4863 if test "${PATH_SEPARATOR+set}" != set; then
4864 echo "#! /bin/sh" >conf$$.sh
4865 echo "exit 0" >>conf$$.sh
4867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4875 # Find out how to test for executable files. Don't use a zero-byte file,
4876 # as systems may use methods other than mode bits to determine executability.
4877 cat >conf$$.file <<_ASEOF
4881 chmod +x conf$$.file
4882 if test -x conf$$.file >/dev/null 2>&1; then
4883 ac_executable_p="test -x"
4885 ac_executable_p="test -f"
4889 # Extract the first word of "msgfmt", so it can be a program name with args.
4890 set dummy msgfmt; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_MSGFMT+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4902 for ac_dir in $PATH; do
4904 test -z "$ac_dir" && ac_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4907 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4908 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4909 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4910 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4917 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4921 MSGFMT="$ac_cv_path_MSGFMT"
4922 if test "$MSGFMT" != ":"; then
4923 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4924 echo "${ECHO_T}$MSGFMT" >&6
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4931 set dummy gmsgfmt; ac_word=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4960 GMSGFMT=$ac_cv_path_GMSGFMT
4962 if test -n "$GMSGFMT"; then
4963 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4964 echo "${ECHO_T}$GMSGFMT" >&6
4966 echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4972 # Prepare PATH_SEPARATOR.
4973 # The user is always right.
4974 if test "${PATH_SEPARATOR+set}" != set; then
4975 echo "#! /bin/sh" >conf$$.sh
4976 echo "exit 0" >>conf$$.sh
4978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4986 # Find out how to test for executable files. Don't use a zero-byte file,
4987 # as systems may use methods other than mode bits to determine executability.
4988 cat >conf$$.file <<_ASEOF
4992 chmod +x conf$$.file
4993 if test -x conf$$.file >/dev/null 2>&1; then
4994 ac_executable_p="test -x"
4996 ac_executable_p="test -f"
5000 # Extract the first word of "xgettext", so it can be a program name with args.
5001 set dummy xgettext; ac_word=$2
5002 echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5004 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5013 for ac_dir in $PATH; do
5015 test -z "$ac_dir" && ac_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5018 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5019 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5020 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5021 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5028 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5032 XGETTEXT="$ac_cv_path_XGETTEXT"
5033 if test "$XGETTEXT" != ":"; then
5034 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5035 echo "${ECHO_T}$XGETTEXT" >&6
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5044 # Prepare PATH_SEPARATOR.
5045 # The user is always right.
5046 if test "${PATH_SEPARATOR+set}" != set; then
5047 echo "#! /bin/sh" >conf$$.sh
5048 echo "exit 0" >>conf$$.sh
5050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5058 # Find out how to test for executable files. Don't use a zero-byte file,
5059 # as systems may use methods other than mode bits to determine executability.
5060 cat >conf$$.file <<_ASEOF
5064 chmod +x conf$$.file
5065 if test -x conf$$.file >/dev/null 2>&1; then
5066 ac_executable_p="test -x"
5068 ac_executable_p="test -f"
5072 # Extract the first word of "msgmerge", so it can be a program name with args.
5073 set dummy msgmerge; ac_word=$2
5074 echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5076 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5084 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5085 for ac_dir in $PATH; do
5087 test -z "$ac_dir" && ac_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5090 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5091 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5092 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5099 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5103 MSGMERGE="$ac_cv_path_MSGMERGE"
5104 if test "$MSGMERGE" != ":"; then
5105 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5106 echo "${ECHO_T}$MSGMERGE" >&6
5108 echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5113 if test "$GMSGFMT" != ":"; then
5114 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5115 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5118 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5119 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5120 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5125 if test "$XGETTEXT" != ":"; then
5126 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5127 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5130 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5131 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5137 ac_config_commands="$ac_config_commands default-1"
5141 if test "X$prefix" = "XNONE"; then
5142 acl_final_prefix="$ac_default_prefix"
5144 acl_final_prefix="$prefix"
5146 if test "X$exec_prefix" = "XNONE"; then
5147 acl_final_exec_prefix='${prefix}'
5149 acl_final_exec_prefix="$exec_prefix"
5151 acl_save_prefix="$prefix"
5152 prefix="$acl_final_prefix"
5153 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5154 prefix="$acl_save_prefix"
5157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5158 if test "${with_gnu_ld+set}" = set; then
5159 withval="$with_gnu_ld"
5160 test "$withval" = no || with_gnu_ld=yes
5164 # Prepare PATH_SEPARATOR.
5165 # The user is always right.
5166 if test "${PATH_SEPARATOR+set}" != set; then
5167 echo "#! /bin/sh" >conf$$.sh
5168 echo "exit 0" >>conf$$.sh
5170 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5178 if test "$GCC" = yes; then
5179 # Check if gcc -print-prog-name=ld gives a path.
5180 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5181 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5184 # gcc leaves a trailing carriage return which upsets mingw
5185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5190 # Accept absolute paths.
5191 [\\/]* | [A-Za-z]:[\\/]*)
5192 re_direlt='/[^/][^/]*/\.\./'
5193 # Canonicalize the path of ld
5194 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5195 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5196 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5198 test -z "$LD" && LD="$ac_prog"
5201 # If it fails, then pretend we aren't using GCC.
5205 # If it is relative, then search for the first ld in PATH.
5209 elif test "$with_gnu_ld" = yes; then
5210 echo "$as_me:$LINENO: checking for GNU ld" >&5
5211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5213 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5216 if test "${acl_cv_path_LD+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 if test -z "$LD"; then
5220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5221 for ac_dir in $PATH; do
5222 test -z "$ac_dir" && ac_dir=.
5223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5224 acl_cv_path_LD="$ac_dir/$ac_prog"
5225 # Check to see if the program is GNU ld. I'd rather use --version,
5226 # but apparently some GNU ld's only accept -v.
5227 # Break only if it was the GNU/non-GNU ld that we prefer.
5228 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5229 *GNU* | *'with BFD'*)
5230 test "$with_gnu_ld" != no && break ;;
5232 test "$with_gnu_ld" != yes && break ;;
5238 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5242 LD="$acl_cv_path_LD"
5243 if test -n "$LD"; then
5244 echo "$as_me:$LINENO: result: $LD" >&5
5245 echo "${ECHO_T}$LD" >&6
5247 echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6
5250 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5251 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5252 { (exit 1); exit 1; }; }
5253 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5254 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5255 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5259 case `$LD -v 2>&1 </dev/null` in
5260 *GNU* | *'with BFD'*)
5261 acl_cv_prog_gnu_ld=yes ;;
5263 acl_cv_prog_gnu_ld=no ;;
5266 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5267 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5268 with_gnu_ld=$acl_cv_prog_gnu_ld
5273 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5274 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5275 if test "${acl_cv_rpath+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5280 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5286 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5287 echo "${ECHO_T}$acl_cv_rpath" >&6
5289 libext="$acl_cv_libext"
5290 shlibext="$acl_cv_shlibext"
5291 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5292 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5293 hardcode_direct="$acl_cv_hardcode_direct"
5294 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5295 # Check whether --enable-rpath or --disable-rpath was given.
5296 if test "${enable_rpath+set}" = set; then
5297 enableval="$enable_rpath"
5311 acl_save_prefix="$prefix"
5312 prefix="$acl_final_prefix"
5313 acl_save_exec_prefix="$exec_prefix"
5314 exec_prefix="$acl_final_exec_prefix"
5316 eval additional_includedir=\"$includedir\"
5317 eval additional_libdir=\"$libdir\"
5319 exec_prefix="$acl_save_exec_prefix"
5320 prefix="$acl_save_prefix"
5323 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5324 if test "${with_libiconv_prefix+set}" = set; then
5325 withval="$with_libiconv_prefix"
5327 if test "X$withval" = "Xno"; then
5330 if test "X$withval" = "X"; then
5332 acl_save_prefix="$prefix"
5333 prefix="$acl_final_prefix"
5334 acl_save_exec_prefix="$exec_prefix"
5335 exec_prefix="$acl_final_exec_prefix"
5337 eval additional_includedir=\"$includedir\"
5338 eval additional_libdir=\"$libdir\"
5340 exec_prefix="$acl_save_exec_prefix"
5341 prefix="$acl_save_prefix"
5344 additional_includedir="$withval/include"
5345 additional_libdir="$withval/lib"
5355 names_already_handled=
5356 names_next_round='iconv '
5357 while test -n "$names_next_round"; do
5358 names_this_round="$names_next_round"
5360 for name in $names_this_round; do
5362 for n in $names_already_handled; do
5363 if test "$n" = "$name"; then
5368 if test -z "$already_handled"; then
5369 names_already_handled="$names_already_handled $name"
5370 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5371 eval value=\"\$HAVE_LIB$uppername\"
5372 if test -n "$value"; then
5373 if test "$value" = yes; then
5374 eval value=\"\$LIB$uppername\"
5375 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5376 eval value=\"\$LTLIB$uppername\"
5377 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5386 if test $use_additional = yes; then
5387 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5388 found_dir="$additional_libdir"
5389 found_so="$additional_libdir/lib$name.$shlibext"
5390 if test -f "$additional_libdir/lib$name.la"; then
5391 found_la="$additional_libdir/lib$name.la"
5394 if test -f "$additional_libdir/lib$name.$libext"; then
5395 found_dir="$additional_libdir"
5396 found_a="$additional_libdir/lib$name.$libext"
5397 if test -f "$additional_libdir/lib$name.la"; then
5398 found_la="$additional_libdir/lib$name.la"
5403 if test "X$found_dir" = "X"; then
5404 for x in $LDFLAGS $LTLIBICONV; do
5406 acl_save_prefix="$prefix"
5407 prefix="$acl_final_prefix"
5408 acl_save_exec_prefix="$exec_prefix"
5409 exec_prefix="$acl_final_exec_prefix"
5411 exec_prefix="$acl_save_exec_prefix"
5412 prefix="$acl_save_prefix"
5416 dir=`echo "X$x" | sed -e 's/^X-L//'`
5417 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5419 found_so="$dir/lib$name.$shlibext"
5420 if test -f "$dir/lib$name.la"; then
5421 found_la="$dir/lib$name.la"
5424 if test -f "$dir/lib$name.$libext"; then
5426 found_a="$dir/lib$name.$libext"
5427 if test -f "$dir/lib$name.la"; then
5428 found_la="$dir/lib$name.la"
5434 if test "X$found_dir" != "X"; then
5439 if test "X$found_dir" != "X"; then
5440 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5441 if test "X$found_so" != "X"; then
5442 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5446 for x in $ltrpathdirs; do
5447 if test "X$x" = "X$found_dir"; then
5452 if test -z "$haveit"; then
5453 ltrpathdirs="$ltrpathdirs $found_dir"
5455 if test "$hardcode_direct" = yes; then
5456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5458 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5459 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5461 for x in $rpathdirs; do
5462 if test "X$x" = "X$found_dir"; then
5467 if test -z "$haveit"; then
5468 rpathdirs="$rpathdirs $found_dir"
5472 for x in $LDFLAGS $LIBICONV; do
5474 acl_save_prefix="$prefix"
5475 prefix="$acl_final_prefix"
5476 acl_save_exec_prefix="$exec_prefix"
5477 exec_prefix="$acl_final_exec_prefix"
5479 exec_prefix="$acl_save_exec_prefix"
5480 prefix="$acl_save_prefix"
5482 if test "X$x" = "X-L$found_dir"; then
5487 if test -z "$haveit"; then
5488 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5490 if test "$hardcode_minus_L" != no; then
5491 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5493 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5499 if test "X$found_a" != "X"; then
5500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5505 additional_includedir=
5506 case "$found_dir" in
5508 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5509 additional_includedir="$basedir/include"
5512 if test "X$additional_includedir" != "X"; then
5513 if test "X$additional_includedir" != "X/usr/include"; then
5515 if test "X$additional_includedir" = "X/usr/local/include"; then
5516 if test -n "$GCC"; then
5518 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5522 if test -z "$haveit"; then
5523 for x in $CPPFLAGS $INCICONV; do
5525 acl_save_prefix="$prefix"
5526 prefix="$acl_final_prefix"
5527 acl_save_exec_prefix="$exec_prefix"
5528 exec_prefix="$acl_final_exec_prefix"
5530 exec_prefix="$acl_save_exec_prefix"
5531 prefix="$acl_save_prefix"
5533 if test "X$x" = "X-I$additional_includedir"; then
5538 if test -z "$haveit"; then
5539 if test -d "$additional_includedir"; then
5540 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5546 if test -n "$found_la"; then
5547 save_libdir="$libdir"
5549 */* | *\\*) . "$found_la" ;;
5550 *) . "./$found_la" ;;
5552 libdir="$save_libdir"
5553 for dep in $dependency_libs; do
5556 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5557 if test "X$additional_libdir" != "X/usr/lib"; then
5559 if test "X$additional_libdir" = "X/usr/local/lib"; then
5560 if test -n "$GCC"; then
5562 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5566 if test -z "$haveit"; then
5568 for x in $LDFLAGS $LIBICONV; do
5570 acl_save_prefix="$prefix"
5571 prefix="$acl_final_prefix"
5572 acl_save_exec_prefix="$exec_prefix"
5573 exec_prefix="$acl_final_exec_prefix"
5575 exec_prefix="$acl_save_exec_prefix"
5576 prefix="$acl_save_prefix"
5578 if test "X$x" = "X-L$additional_libdir"; then
5583 if test -z "$haveit"; then
5584 if test -d "$additional_libdir"; then
5585 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5589 for x in $LDFLAGS $LTLIBICONV; do
5591 acl_save_prefix="$prefix"
5592 prefix="$acl_final_prefix"
5593 acl_save_exec_prefix="$exec_prefix"
5594 exec_prefix="$acl_final_exec_prefix"
5596 exec_prefix="$acl_save_exec_prefix"
5597 prefix="$acl_save_prefix"
5599 if test "X$x" = "X-L$additional_libdir"; then
5604 if test -z "$haveit"; then
5605 if test -d "$additional_libdir"; then
5606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5613 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5614 if test "$enable_rpath" != no; then
5616 for x in $rpathdirs; do
5617 if test "X$x" = "X$dir"; then
5622 if test -z "$haveit"; then
5623 rpathdirs="$rpathdirs $dir"
5626 for x in $ltrpathdirs; do
5627 if test "X$x" = "X$dir"; then
5632 if test -z "$haveit"; then
5633 ltrpathdirs="$ltrpathdirs $dir"
5638 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5641 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5644 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5645 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5651 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5658 if test "X$rpathdirs" != "X"; then
5659 if test -n "$hardcode_libdir_separator"; then
5661 for found_dir in $rpathdirs; do
5662 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5664 acl_save_libdir="$libdir"
5666 eval flag=\"$hardcode_libdir_flag_spec\"
5667 libdir="$acl_save_libdir"
5668 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5670 for found_dir in $rpathdirs; do
5671 acl_save_libdir="$libdir"
5673 eval flag=\"$hardcode_libdir_flag_spec\"
5674 libdir="$acl_save_libdir"
5675 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5679 if test "X$ltrpathdirs" != "X"; then
5680 for found_dir in $ltrpathdirs; do
5681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5702 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5703 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5704 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 gt_save_CPPFLAGS="$CPPFLAGS"
5708 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5709 gt_save_LIBS="$LIBS"
5710 LIBS="$LIBS -framework CoreFoundation"
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <CFPreferences.h>
5721 CFPreferencesCopyAppValue(NULL, NULL)
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_c_werror_flag"
5736 || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 gt_cv_func_CFPreferencesCopyAppValue=yes
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 gt_cv_func_CFPreferencesCopyAppValue=no
5755 rm -f conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
5757 CPPFLAGS="$gt_save_CPPFLAGS"
5758 LIBS="$gt_save_LIBS"
5760 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5761 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5762 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5764 cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5769 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5770 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5771 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 gt_save_CPPFLAGS="$CPPFLAGS"
5775 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5776 gt_save_LIBS="$LIBS"
5777 LIBS="$LIBS -framework CoreFoundation"
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <CFLocale.h>
5788 CFLocaleCopyCurrent();
5793 rm -f conftest.$ac_objext conftest$ac_exeext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5795 (eval $ac_link) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 gt_cv_func_CFLocaleCopyCurrent=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 gt_cv_func_CFLocaleCopyCurrent=no
5822 rm -f conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext conftest.$ac_ext
5824 CPPFLAGS="$gt_save_CPPFLAGS"
5825 LIBS="$gt_save_LIBS"
5827 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5828 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5829 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5831 cat >>confdefs.h <<\_ACEOF
5832 #define HAVE_CFLOCALECOPYCURRENT 1
5837 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5838 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5844 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5845 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5846 # Check whether --enable-nls or --disable-nls was given.
5847 if test "${enable_nls+set}" = set; then
5848 enableval="$enable_nls"
5853 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5854 echo "${ECHO_T}$USE_NLS" >&6
5863 if test "$USE_NLS" = "yes"; then
5864 gt_use_preinstalled_gnugettext=no
5871 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5872 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5873 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <libintl.h>
5883 extern int _nl_msg_cat_cntr;
5884 extern int *_nl_domain_bindings;
5888 bindtextdomain ("", "");
5889 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896 (eval $ac_link) 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag"
5904 || test ! -s conftest.err'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest$ac_exeext'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 gt_cv_func_gnugettext1_libc=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 gt_cv_func_gnugettext1_libc=no
5923 rm -f conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5927 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5929 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5935 am_save_CPPFLAGS="$CPPFLAGS"
5937 for element in $INCICONV; do
5939 for x in $CPPFLAGS; do
5941 acl_save_prefix="$prefix"
5942 prefix="$acl_final_prefix"
5943 acl_save_exec_prefix="$exec_prefix"
5944 exec_prefix="$acl_final_exec_prefix"
5946 exec_prefix="$acl_save_exec_prefix"
5947 prefix="$acl_save_prefix"
5949 if test "X$x" = "X$element"; then
5954 if test -z "$haveit"; then
5955 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5960 echo "$as_me:$LINENO: checking for iconv" >&5
5961 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5962 if test "${am_cv_func_iconv+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 am_cv_func_iconv="no, consider installing GNU libiconv"
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5979 iconv_t cd = iconv_open("","");
5980 iconv(cd,NULL,NULL,NULL,NULL);
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988 (eval $ac_link) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest$ac_exeext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 am_cv_func_iconv=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6016 if test "$am_cv_func_iconv" != yes; then
6017 am_save_LIBS="$LIBS"
6018 LIBS="$LIBS $LIBICONV"
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6030 iconv_t cd = iconv_open("","");
6031 iconv(cd,NULL,NULL,NULL,NULL);
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>conftest.er1
6041 grep -v '^ *+' conftest.er1 >conftest.err
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -z "$ac_c_werror_flag"
6047 || test ! -s conftest.err'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; } &&
6053 { ac_try='test -s conftest$ac_exeext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6060 am_cv_func_iconv=yes
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6066 rm -f conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 LIBS="$am_save_LIBS"
6072 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6073 echo "${ECHO_T}$am_cv_func_iconv" >&6
6074 if test "$am_cv_func_iconv" = yes; then
6076 cat >>confdefs.h <<\_ACEOF
6077 #define HAVE_ICONV 1
6081 if test "$am_cv_lib_iconv" = yes; then
6082 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6083 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6084 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6085 echo "${ECHO_T}$LIBICONV" >&6
6087 CPPFLAGS="$am_save_CPPFLAGS"
6099 acl_save_prefix="$prefix"
6100 prefix="$acl_final_prefix"
6101 acl_save_exec_prefix="$exec_prefix"
6102 exec_prefix="$acl_final_exec_prefix"
6104 eval additional_includedir=\"$includedir\"
6105 eval additional_libdir=\"$libdir\"
6107 exec_prefix="$acl_save_exec_prefix"
6108 prefix="$acl_save_prefix"
6111 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6112 if test "${with_libintl_prefix+set}" = set; then
6113 withval="$with_libintl_prefix"
6115 if test "X$withval" = "Xno"; then
6118 if test "X$withval" = "X"; then
6120 acl_save_prefix="$prefix"
6121 prefix="$acl_final_prefix"
6122 acl_save_exec_prefix="$exec_prefix"
6123 exec_prefix="$acl_final_exec_prefix"
6125 eval additional_includedir=\"$includedir\"
6126 eval additional_libdir=\"$libdir\"
6128 exec_prefix="$acl_save_exec_prefix"
6129 prefix="$acl_save_prefix"
6132 additional_includedir="$withval/include"
6133 additional_libdir="$withval/lib"
6143 names_already_handled=
6144 names_next_round='intl '
6145 while test -n "$names_next_round"; do
6146 names_this_round="$names_next_round"
6148 for name in $names_this_round; do
6150 for n in $names_already_handled; do
6151 if test "$n" = "$name"; then
6156 if test -z "$already_handled"; then
6157 names_already_handled="$names_already_handled $name"
6158 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6159 eval value=\"\$HAVE_LIB$uppername\"
6160 if test -n "$value"; then
6161 if test "$value" = yes; then
6162 eval value=\"\$LIB$uppername\"
6163 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6164 eval value=\"\$LTLIB$uppername\"
6165 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6174 if test $use_additional = yes; then
6175 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6176 found_dir="$additional_libdir"
6177 found_so="$additional_libdir/lib$name.$shlibext"
6178 if test -f "$additional_libdir/lib$name.la"; then
6179 found_la="$additional_libdir/lib$name.la"
6182 if test -f "$additional_libdir/lib$name.$libext"; then
6183 found_dir="$additional_libdir"
6184 found_a="$additional_libdir/lib$name.$libext"
6185 if test -f "$additional_libdir/lib$name.la"; then
6186 found_la="$additional_libdir/lib$name.la"
6191 if test "X$found_dir" = "X"; then
6192 for x in $LDFLAGS $LTLIBINTL; do
6194 acl_save_prefix="$prefix"
6195 prefix="$acl_final_prefix"
6196 acl_save_exec_prefix="$exec_prefix"
6197 exec_prefix="$acl_final_exec_prefix"
6199 exec_prefix="$acl_save_exec_prefix"
6200 prefix="$acl_save_prefix"
6204 dir=`echo "X$x" | sed -e 's/^X-L//'`
6205 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6207 found_so="$dir/lib$name.$shlibext"
6208 if test -f "$dir/lib$name.la"; then
6209 found_la="$dir/lib$name.la"
6212 if test -f "$dir/lib$name.$libext"; then
6214 found_a="$dir/lib$name.$libext"
6215 if test -f "$dir/lib$name.la"; then
6216 found_la="$dir/lib$name.la"
6222 if test "X$found_dir" != "X"; then
6227 if test "X$found_dir" != "X"; then
6228 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6229 if test "X$found_so" != "X"; then
6230 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6231 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6234 for x in $ltrpathdirs; do
6235 if test "X$x" = "X$found_dir"; then
6240 if test -z "$haveit"; then
6241 ltrpathdirs="$ltrpathdirs $found_dir"
6243 if test "$hardcode_direct" = yes; then
6244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6246 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6249 for x in $rpathdirs; do
6250 if test "X$x" = "X$found_dir"; then
6255 if test -z "$haveit"; then
6256 rpathdirs="$rpathdirs $found_dir"
6260 for x in $LDFLAGS $LIBINTL; do
6262 acl_save_prefix="$prefix"
6263 prefix="$acl_final_prefix"
6264 acl_save_exec_prefix="$exec_prefix"
6265 exec_prefix="$acl_final_exec_prefix"
6267 exec_prefix="$acl_save_exec_prefix"
6268 prefix="$acl_save_prefix"
6270 if test "X$x" = "X-L$found_dir"; then
6275 if test -z "$haveit"; then
6276 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6278 if test "$hardcode_minus_L" != no; then
6279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6281 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6287 if test "X$found_a" != "X"; then
6288 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6290 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6293 additional_includedir=
6294 case "$found_dir" in
6296 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6297 additional_includedir="$basedir/include"
6300 if test "X$additional_includedir" != "X"; then
6301 if test "X$additional_includedir" != "X/usr/include"; then
6303 if test "X$additional_includedir" = "X/usr/local/include"; then
6304 if test -n "$GCC"; then
6306 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6310 if test -z "$haveit"; then
6311 for x in $CPPFLAGS $INCINTL; do
6313 acl_save_prefix="$prefix"
6314 prefix="$acl_final_prefix"
6315 acl_save_exec_prefix="$exec_prefix"
6316 exec_prefix="$acl_final_exec_prefix"
6318 exec_prefix="$acl_save_exec_prefix"
6319 prefix="$acl_save_prefix"
6321 if test "X$x" = "X-I$additional_includedir"; then
6326 if test -z "$haveit"; then
6327 if test -d "$additional_includedir"; then
6328 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6334 if test -n "$found_la"; then
6335 save_libdir="$libdir"
6337 */* | *\\*) . "$found_la" ;;
6338 *) . "./$found_la" ;;
6340 libdir="$save_libdir"
6341 for dep in $dependency_libs; do
6344 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6345 if test "X$additional_libdir" != "X/usr/lib"; then
6347 if test "X$additional_libdir" = "X/usr/local/lib"; then
6348 if test -n "$GCC"; then
6350 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6354 if test -z "$haveit"; then
6356 for x in $LDFLAGS $LIBINTL; do
6358 acl_save_prefix="$prefix"
6359 prefix="$acl_final_prefix"
6360 acl_save_exec_prefix="$exec_prefix"
6361 exec_prefix="$acl_final_exec_prefix"
6363 exec_prefix="$acl_save_exec_prefix"
6364 prefix="$acl_save_prefix"
6366 if test "X$x" = "X-L$additional_libdir"; then
6371 if test -z "$haveit"; then
6372 if test -d "$additional_libdir"; then
6373 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6377 for x in $LDFLAGS $LTLIBINTL; do
6379 acl_save_prefix="$prefix"
6380 prefix="$acl_final_prefix"
6381 acl_save_exec_prefix="$exec_prefix"
6382 exec_prefix="$acl_final_exec_prefix"
6384 exec_prefix="$acl_save_exec_prefix"
6385 prefix="$acl_save_prefix"
6387 if test "X$x" = "X-L$additional_libdir"; then
6392 if test -z "$haveit"; then
6393 if test -d "$additional_libdir"; then
6394 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6401 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6402 if test "$enable_rpath" != no; then
6404 for x in $rpathdirs; do
6405 if test "X$x" = "X$dir"; then
6410 if test -z "$haveit"; then
6411 rpathdirs="$rpathdirs $dir"
6414 for x in $ltrpathdirs; do
6415 if test "X$x" = "X$dir"; then
6420 if test -z "$haveit"; then
6421 ltrpathdirs="$ltrpathdirs $dir"
6426 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6429 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6432 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6433 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6439 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6440 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6446 if test "X$rpathdirs" != "X"; then
6447 if test -n "$hardcode_libdir_separator"; then
6449 for found_dir in $rpathdirs; do
6450 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6452 acl_save_libdir="$libdir"
6454 eval flag=\"$hardcode_libdir_flag_spec\"
6455 libdir="$acl_save_libdir"
6456 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6458 for found_dir in $rpathdirs; do
6459 acl_save_libdir="$libdir"
6461 eval flag=\"$hardcode_libdir_flag_spec\"
6462 libdir="$acl_save_libdir"
6463 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6467 if test "X$ltrpathdirs" != "X"; then
6468 for found_dir in $ltrpathdirs; do
6469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6473 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6474 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6475 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 gt_save_CPPFLAGS="$CPPFLAGS"
6479 CPPFLAGS="$CPPFLAGS $INCINTL"
6480 gt_save_LIBS="$LIBS"
6481 LIBS="$LIBS $LIBINTL"
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <libintl.h>
6489 extern int _nl_msg_cat_cntr;
6494 const char *_nl_expand_alias (const char *);
6498 bindtextdomain ("", "");
6499 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506 (eval $ac_link) 2>conftest.er1
6508 grep -v '^ *+' conftest.er1 >conftest.err
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
6513 { ac_try='test -z "$ac_c_werror_flag"
6514 || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest$ac_exeext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 gt_cv_func_gnugettext1_libintl=yes
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 gt_cv_func_gnugettext1_libintl=no
6533 rm -f conftest.err conftest.$ac_objext \
6534 conftest$ac_exeext conftest.$ac_ext
6535 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6536 LIBS="$LIBS $LIBICONV"
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <libintl.h>
6544 extern int _nl_msg_cat_cntr;
6549 const char *_nl_expand_alias (const char *);
6553 bindtextdomain ("", "");
6554 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 LIBINTL="$LIBINTL $LIBICONV"
6582 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6583 gt_cv_func_gnugettext1_libintl=yes
6586 echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6590 rm -f conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6593 CPPFLAGS="$gt_save_CPPFLAGS"
6594 LIBS="$gt_save_LIBS"
6596 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6597 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6600 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6601 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6602 && test "$PACKAGE" != gettext-runtime \
6603 && test "$PACKAGE" != gettext-tools; }; then
6604 gt_use_preinstalled_gnugettext=yes
6613 if test -n "$INTL_MACOSX_LIBS"; then
6614 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6615 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6616 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6617 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6621 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6622 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6624 cat >>confdefs.h <<\_ACEOF
6625 #define ENABLE_NLS 1
6633 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6634 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6635 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6636 echo "${ECHO_T}$USE_NLS" >&6
6637 if test "$USE_NLS" = "yes"; then
6638 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6639 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6640 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6641 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6642 gt_source="external libintl"
6647 gt_source="included intl directory"
6649 echo "$as_me:$LINENO: result: $gt_source" >&5
6650 echo "${ECHO_T}$gt_source" >&6
6653 if test "$USE_NLS" = "yes"; then
6655 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6656 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6657 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6658 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6659 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6660 echo "${ECHO_T}$LIBINTL" >&6
6662 for element in $INCINTL; do
6664 for x in $CPPFLAGS; do
6666 acl_save_prefix="$prefix"
6667 prefix="$acl_final_prefix"
6668 acl_save_exec_prefix="$exec_prefix"
6669 exec_prefix="$acl_final_exec_prefix"
6671 exec_prefix="$acl_save_exec_prefix"
6672 prefix="$acl_save_prefix"
6674 if test "X$x" = "X$element"; then
6679 if test -z "$haveit"; then
6680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_GETTEXT 1
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_DCGETTEXT 1
6710 if test x${prefix} = xNONE ; then
6711 if test `eval echo ${datadir}` = NONE/share ; then
6716 # ------------------------------------------------------------------
6717 # If the user has not set --prefix, we set our default to nothing.
6718 # In this case, if the user has not set --sysconfdir, we set it
6719 # to the package default of /etc/bacula. If either --prefix or
6720 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6721 # ------------------------------------------------------------------
6722 if test x${prefix} = xNONE ; then
6723 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6724 sysconfdir=/etc/bacula
6728 sysconfdir=`eval echo ${sysconfdir}`
6729 datadir=`eval echo ${datadir}`
6730 localedir=`eval echo ${datadir}/locale`
6731 cat >>confdefs.h <<_ACEOF
6732 #define LOCALEDIR "$localedir"
6736 # -------------------------------------------------------------------------
6737 # If the user has not set --exec-prefix, we default to ${prefix}
6738 # -------------------------------------------------------------------------
6739 if test x${exec_prefix} = xNONE ; then
6740 exec_prefix=${prefix}
6743 # ------------------------------------------------------------------
6744 # If the user has not set --sbindir, we set our default as /sbin
6745 # ------------------------------------------------------------------
6746 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6747 sbindir=${exec_prefix}/sbin
6749 sbindir=`eval echo ${sbindir}`
6751 # -------------------------------------------------------------------------
6752 # If the user has not set --mandir, we default to /usr/share/man
6753 # -------------------------------------------------------------------------
6754 if test x$mandir = x'${prefix}/man' ; then
6755 mandir=/usr/share/man
6759 # ------------------------------------------------------------------
6760 # All list of languages for which a translation exist. Each
6761 # language is separated by a space.
6762 # ------------------------------------------------------------------
6765 for ac_prog in msgfmt
6767 # Extract the first word of "$ac_prog", so it can be a program name with args.
6768 set dummy $ac_prog; ac_word=$2
6769 echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6771 if test "${ac_cv_path_MSGFMT+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 MSGFMT=$ac_cv_path_MSGFMT
6798 if test -n "$MSGFMT"; then
6799 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6800 echo "${ECHO_T}$MSGFMT" >&6
6802 echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6806 test -n "$MSGFMT" && break
6808 test -n "$MSGFMT" || MSGFMT="no"
6810 if test "$MSGFMT" = "no"
6812 echo 'msgfmt program not found, disabling NLS !'
6814 USE_INCLUDED_LIBINTL=no
6817 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6818 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6819 if test "${ac_cv_gnu_library_2+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 cat >conftest.$ac_ext <<_ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6829 #include <features.h>
6830 #ifdef __GNU_LIBRARY__
6831 #if (__GLIBC__ >= 2)
6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6839 ac_cv_gnu_library_2=yes
6841 ac_cv_gnu_library_2=no
6848 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6849 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6851 GLIBC2="$ac_cv_gnu_library_2"
6854 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6855 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6856 if test "${ac_cv_search_strerror+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_func_search_save_LIBS=$LIBS
6860 ac_cv_search_strerror=no
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6868 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>conftest.er1
6887 grep -v '^ *+' conftest.er1 >conftest.err
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_search_strerror="none required"
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6911 rm -f conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913 if test "$ac_cv_search_strerror" = no; then
6914 for ac_lib in cposix; do
6915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6923 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_search_strerror="-l$ac_lib"
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6967 rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6971 LIBS=$ac_func_search_save_LIBS
6973 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6974 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6975 if test "$ac_cv_search_strerror" != no; then
6976 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6982 if test "${ac_cv_header_stdc+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest.$ac_objext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_header_stdc=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7031 ac_cv_header_stdc=no
7033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035 if test $ac_cv_header_stdc = yes; then
7036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 $EGREP "memchr" >/dev/null 2>&1; then
7050 ac_cv_header_stdc=no
7056 if test $ac_cv_header_stdc = yes; then
7057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068 $EGREP "free" >/dev/null 2>&1; then
7071 ac_cv_header_stdc=no
7077 if test $ac_cv_header_stdc = yes; then
7078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7079 if test "$cross_compiling" = yes; then
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 #if ((' ' & 0x0FF) == 0x020)
7090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7093 # define ISLOWER(c) \
7094 (('a' <= (c) && (c) <= 'i') \
7095 || ('j' <= (c) && (c) <= 'r') \
7096 || ('s' <= (c) && (c) <= 'z'))
7097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7105 for (i = 0; i < 256; i++)
7106 if (XOR (islower (i), ISLOWER (i))
7107 || toupper (i) != TOUPPER (i))
7112 rm -f conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7125 echo "$as_me: program exited with status $ac_status" >&5
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_header_stdc=no
7132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7138 if test $ac_cv_header_stdc = yes; then
7140 cat >>confdefs.h <<\_ACEOF
7141 #define STDC_HEADERS 1
7146 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7147 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7148 if test "${ac_cv_c_const+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 cat >conftest.$ac_ext <<_ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7161 /* FIXME: Include the comments suggested by Paul. */
7163 /* Ultrix mips cc rejects this. */
7164 typedef int charset[2];
7166 /* SunOS 4.1.1 cc rejects this. */
7167 char const *const *ccp;
7169 /* NEC SVR4.0.2 mips cc rejects this. */
7170 struct point {int x, y;};
7171 static struct point const zero = {0,0};
7172 /* AIX XL C 1.02.0.0 rejects this.
7173 It does not let you subtract one const X* pointer from another in
7174 an arm of an if-expression whose if-part is not a constant
7176 const char *g = "string";
7177 ccp = &g + (g ? g-g : 0);
7178 /* HPUX 7.0 cc rejects these. */
7181 ccp = (char const *const *) p;
7182 { /* SCO 3.2v4 cc rejects this. */
7184 char const *s = 0 ? (char *) 0 : (char const *) 0;
7188 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7190 const int *foo = &x[0];
7193 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7194 typedef const int *iptr;
7198 { /* AIX XL C 1.02.0.0 rejects this saying
7199 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7200 struct s { int j; const int *ap[3]; };
7201 struct s *b; b->j = 5;
7203 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_c_werror_flag"
7222 || test ! -s conftest.err'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); }; } &&
7228 { ac_try='test -s conftest.$ac_objext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7244 echo "${ECHO_T}$ac_cv_c_const" >&6
7245 if test $ac_cv_c_const = no; then
7247 cat >>confdefs.h <<\_ACEOF
7254 echo "$as_me:$LINENO: checking for signed" >&5
7255 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7256 if test "${bh_cv_c_signed+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7274 rm -f conftest.$ac_objext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7276 (eval $ac_compile) 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_c_werror_flag"
7284 || test ! -s conftest.err'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } &&
7290 { ac_try='test -s conftest.$ac_objext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7305 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7306 echo "${ECHO_T}$bh_cv_c_signed" >&6
7307 if test $bh_cv_c_signed = no; then
7309 cat >>confdefs.h <<\_ACEOF
7315 echo "$as_me:$LINENO: checking for inline" >&5
7316 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7317 if test "${ac_cv_c_inline+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 for ac_kw in inline __inline__ __inline; do
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7330 static $ac_kw foo_t static_foo () {return 0; }
7331 $ac_kw foo_t foo () {return 0; }
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>conftest.er1
7339 grep -v '^ *+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag"
7345 || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest.$ac_objext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 ac_cv_c_inline=$ac_kw; break
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7368 echo "${ECHO_T}$ac_cv_c_inline" >&6
7371 case $ac_cv_c_inline in
7374 case $ac_cv_c_inline in
7376 *) ac_val=$ac_cv_c_inline;;
7378 cat >>confdefs.h <<_ACEOF
7380 #define inline $ac_val
7386 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7397 inttypes.h stdint.h unistd.h
7399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7400 echo "$as_me:$LINENO: checking for $ac_header" >&5
7401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7413 #include <$ac_header>
7415 rm -f conftest.$ac_objext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -z "$ac_c_werror_flag"
7425 || test ! -s conftest.err'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_Header=yes"
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 eval "$as_ac_Header=no"
7444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458 echo "$as_me:$LINENO: checking for off_t" >&5
7459 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7460 if test "${ac_cv_type_off_t+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 $ac_includes_default
7481 rm -f conftest.$ac_objext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>conftest.er1
7485 grep -v '^ *+' conftest.er1 >conftest.err
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_type_off_t=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7512 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7513 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7514 if test $ac_cv_type_off_t = yes; then
7518 cat >>confdefs.h <<_ACEOF
7524 echo "$as_me:$LINENO: checking for size_t" >&5
7525 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7526 if test "${ac_cv_type_size_t+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7541 if (sizeof (size_t))
7547 rm -f conftest.$ac_objext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7549 (eval $ac_compile) 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -z "$ac_c_werror_flag"
7557 || test ! -s conftest.err'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; } &&
7563 { ac_try='test -s conftest.$ac_objext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7569 ac_cv_type_size_t=yes
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_type_size_t=no
7576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7579 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7580 if test $ac_cv_type_size_t = yes; then
7584 cat >>confdefs.h <<_ACEOF
7585 #define size_t unsigned
7591 echo "$as_me:$LINENO: checking for long long" >&5
7592 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7593 if test "${ac_cv_type_long_long+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 long long ll = 1LL; int i = 63;
7606 long long llmax = (long long) -1;
7607 return ll << i | ll >> i | llmax / ll | llmax % ll;
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>conftest.er1
7616 grep -v '^ *+' conftest.er1 >conftest.err
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest$ac_exeext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_cv_type_long_long=yes
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 ac_cv_type_long_long=no
7641 rm -f conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7644 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7645 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7646 if test $ac_cv_type_long_long = yes; then
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_LONG_LONG 1
7655 echo "$as_me:$LINENO: checking for long double" >&5
7656 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7657 if test "${gt_cv_c_long_double+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 if test "$GCC" = yes; then
7661 gt_cv_c_long_double=yes
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7670 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7671 long double foo = 0.0;
7672 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7673 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7683 rm -f conftest.$ac_objext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685 (eval $ac_compile) 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_c_werror_flag"
7693 || test ! -s conftest.err'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try='test -s conftest.$ac_objext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 gt_cv_c_long_double=yes
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 gt_cv_c_long_double=no
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7716 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7717 if test $gt_cv_c_long_double = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_LONG_DOUBLE 1
7726 echo "$as_me:$LINENO: checking for wchar_t" >&5
7727 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7728 if test "${gt_cv_c_wchar_t+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7738 wchar_t foo = (wchar_t)'\0';
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7779 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7780 if test $gt_cv_c_wchar_t = yes; then
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_WCHAR_T 1
7789 echo "$as_me:$LINENO: checking for wint_t" >&5
7790 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7791 if test "${gt_cv_c_wint_t+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7801 wint_t foo = (wchar_t)'\0';
7810 rm -f conftest.$ac_objext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7812 (eval $ac_compile) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest.$ac_objext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7842 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7843 if test $gt_cv_c_wint_t = yes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_WINT_T 1
7852 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7853 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7854 if test "${gl_cv_header_inttypes_h+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 #include <sys/types.h>
7864 #include <inttypes.h>
7868 uintmax_t i = (uintmax_t) -1;
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875 (eval $ac_compile) 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 gl_cv_header_inttypes_h=yes
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 gl_cv_header_inttypes_h=no
7902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7905 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7906 if test $gl_cv_header_inttypes_h = yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7915 echo "$as_me:$LINENO: checking for stdint.h" >&5
7916 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7917 if test "${gl_cv_header_stdint_h+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <sys/types.h>
7931 uintmax_t i = (uintmax_t) -1;
7936 rm -f conftest.$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -z "$ac_c_werror_flag"
7946 || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 gl_cv_header_stdint_h=yes
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 gl_cv_header_stdint_h=no
7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7968 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7969 if test $gl_cv_header_stdint_h = yes; then
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_STDINT_H_WITH_UINTMAX 1
7980 echo "$as_me:$LINENO: checking for intmax_t" >&5
7981 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7982 if test "${gt_cv_c_intmax_t+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7994 #if HAVE_STDINT_H_WITH_UINTMAX
7997 #if HAVE_INTTYPES_H_WITH_UINTMAX
7998 #include <inttypes.h>
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest.$ac_objext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 gt_cv_c_intmax_t=yes
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8041 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8042 if test $gt_cv_c_intmax_t = yes; then
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_INTMAX_T 1
8052 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8053 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8054 if test "${gt_cv_func_printf_posix+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 if test "$cross_compiling" = yes; then
8060 cat >conftest.$ac_ext <<_ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8067 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8073 $EGREP "notposix" >/dev/null 2>&1; then
8074 gt_cv_func_printf_posix="guessing no"
8076 gt_cv_func_printf_posix="guessing yes"
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8091 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8092 dollar expansion (possibly an autoconf bug). */
8093 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8094 static char buf[100];
8097 sprintf (buf, format, 33, 55);
8098 return (strcmp (buf, "55 33") != 0);
8101 rm -f conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 gt_cv_func_printf_posix=yes
8114 echo "$as_me: program exited with status $ac_status" >&5
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8119 gt_cv_func_printf_posix=no
8121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8125 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8126 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8127 case $gt_cv_func_printf_posix in
8130 cat >>confdefs.h <<\_ACEOF
8131 #define HAVE_POSIX_PRINTF 1
8137 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8138 # for constant arguments. Useless!
8139 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8140 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8141 if test "${ac_cv_working_alloca_h+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8154 char *p = (char *) alloca (2 * sizeof (int));
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161 (eval $ac_link) 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag"
8169 || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_cv_working_alloca_h=yes
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_cv_working_alloca_h=no
8188 rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8191 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8192 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8193 if test $ac_cv_working_alloca_h = yes; then
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_ALLOCA_H 1
8201 echo "$as_me:$LINENO: checking for alloca" >&5
8202 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8203 if test "${ac_cv_func_alloca_works+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8213 # define alloca __builtin_alloca
8216 # include <malloc.h>
8217 # define alloca _alloca
8220 # include <alloca.h>
8225 # ifndef alloca /* predefined by HP cc +Olibcalls */
8236 char *p = (char *) alloca (1);
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>conftest.er1
8245 grep -v '^ *+' conftest.er1 >conftest.err
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_func_alloca_works=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 ac_cv_func_alloca_works=no
8270 rm -f conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8273 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8274 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8276 if test $ac_cv_func_alloca_works = yes; then
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_ALLOCA 1
8283 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8284 # that cause trouble. Some versions do not even contain alloca or
8285 # contain a buggy version. If you still want to use their alloca,
8286 # use ar to extract alloca.o from them instead of compiling alloca.c.
8288 ALLOCA=alloca.$ac_objext
8290 cat >>confdefs.h <<\_ACEOF
8295 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8296 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8297 if test "${ac_cv_os_cray+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 #if defined(CRAY) && ! defined(CRAY2)
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314 $EGREP "webecray" >/dev/null 2>&1; then
8322 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8323 echo "${ECHO_T}$ac_cv_os_cray" >&6
8324 if test $ac_cv_os_cray = yes; then
8325 for ac_func in _getb67 GETB67 getb67; do
8326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8327 echo "$as_me:$LINENO: checking for $ac_func" >&5
8328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8329 if eval "test \"\${$as_ac_var+set}\" = set"; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8340 #define $ac_func innocuous_$ac_func
8342 /* System header to define __stub macros and hopefully few prototypes,
8343 which can conflict with char $ac_func (); below.
8344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8345 <limits.h> exists even on freestanding compilers. */
8348 # include <limits.h>
8350 # include <assert.h>
8355 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8363 /* The GNU C library defines this for functions which it implements
8364 to always fail with ENOSYS. Some functions are actually named
8365 something starting with __ and the normal name is an alias. */
8366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8369 char (*f) () = $ac_func;
8378 return f != $ac_func;
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
8392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 eval "$as_ac_var=yes"
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 eval "$as_ac_var=no"
8412 rm -f conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8417 if test `eval echo '${'$as_ac_var'}'` = yes; then
8419 cat >>confdefs.h <<_ACEOF
8420 #define CRAY_STACKSEG_END $ac_func
8429 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8430 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8431 if test "${ac_cv_c_stack_direction+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 if test "$cross_compiling" = yes; then
8435 ac_cv_c_stack_direction=0
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8444 find_stack_direction ()
8446 static char *addr = 0;
8451 return find_stack_direction ();
8454 return (&dummy > addr) ? 1 : -1;
8460 exit (find_stack_direction () < 0);
8463 rm -f conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_c_stack_direction=1
8476 echo "$as_me: program exited with status $ac_status" >&5
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_c_stack_direction=-1
8483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8486 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8487 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8489 cat >>confdefs.h <<_ACEOF
8490 #define STACK_DIRECTION $ac_cv_c_stack_direction
8498 for ac_header in stdlib.h unistd.h
8500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8510 # Is the header compilable?
8511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #include <$ac_header>
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest.$ac_objext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 ac_header_compiler=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_header_compiler=no
8551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8553 echo "${ECHO_T}$ac_header_compiler" >&6
8555 # Is the header present?
8556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #include <$ac_header>
8566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8569 grep -v '^ *+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } >/dev/null; then
8574 if test -s conftest.err; then
8575 ac_cpp_err=$ac_c_preproc_warn_flag
8576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8583 if test -z "$ac_cpp_err"; then
8584 ac_header_preproc=yes
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_header_preproc=no
8591 rm -f conftest.err conftest.$ac_ext
8592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8593 echo "${ECHO_T}$ac_header_preproc" >&6
8595 # So? What about this header?
8596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8602 ac_header_preproc=yes
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8619 ## ------------------------------------------ ##
8620 ## Report this to the AC_PACKAGE_NAME lists. ##
8621 ## ------------------------------------------ ##
8624 sed "s/^/$as_me: WARNING: /" >&2
8627 echo "$as_me:$LINENO: checking for $ac_header" >&5
8628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 eval "$as_ac_Header=\$ac_header_preproc"
8634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8648 for ac_func in getpagesize
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8664 #define $ac_func innocuous_$ac_func
8666 /* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char $ac_func (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8672 # include <limits.h>
8674 # include <assert.h>
8679 /* Override any gcc2 internal prototype to avoid an error. */
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8693 char (*f) () = $ac_func;
8702 return f != $ac_func;
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag"
8717 || test ! -s conftest.err'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_var=yes"
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 eval "$as_ac_var=no"
8736 rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8741 if test `eval echo '${'$as_ac_var'}'` = yes; then
8742 cat >>confdefs.h <<_ACEOF
8743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 echo "$as_me:$LINENO: checking for working mmap" >&5
8750 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8751 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 if test "$cross_compiling" = yes; then
8755 ac_cv_func_mmap_fixed_mapped=no
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8763 $ac_includes_default
8764 /* malloc might have been renamed as rpl_malloc. */
8767 /* Thanks to Mike Haertel and Jim Avera for this test.
8768 Here is a matrix of mmap possibilities:
8769 mmap private not fixed
8770 mmap private fixed at somewhere currently unmapped
8771 mmap private fixed at somewhere already mapped
8772 mmap shared not fixed
8773 mmap shared fixed at somewhere currently unmapped
8774 mmap shared fixed at somewhere already mapped
8775 For private mappings, we should verify that changes cannot be read()
8776 back from the file, nor mmap's back from the file at a different
8777 address. (There have been systems where private was not correctly
8778 implemented like the infamous i386 svr4.0, and systems where the
8779 VM page cache was not coherent with the file system buffer cache
8780 like early versions of FreeBSD and possibly contemporary NetBSD.)
8781 For shared mappings, we should conversely verify that changes get
8782 propagated back to all the places they're supposed to be.
8784 Grep wants private fixed already mapped.
8785 The main things grep needs to know about mmap are:
8786 * does it exist and is it safe to write into the mmap'd area
8787 * how to use it (BSD variants) */
8790 #include <sys/mman.h>
8792 #if !STDC_HEADERS && !HAVE_STDLIB_H
8796 /* This mess was copied from the GNU getpagesize.h. */
8797 #if !HAVE_GETPAGESIZE
8798 /* Assume that all systems that can run configure have sys/param.h. */
8799 # if !HAVE_SYS_PARAM_H
8800 # define HAVE_SYS_PARAM_H 1
8803 # ifdef _SC_PAGESIZE
8804 # define getpagesize() sysconf(_SC_PAGESIZE)
8805 # else /* no _SC_PAGESIZE */
8806 # if HAVE_SYS_PARAM_H
8807 # include <sys/param.h>
8808 # ifdef EXEC_PAGESIZE
8809 # define getpagesize() EXEC_PAGESIZE
8810 # else /* no EXEC_PAGESIZE */
8812 # define getpagesize() NBPG * CLSIZE
8815 # endif /* no CLSIZE */
8816 # else /* no NBPG */
8818 # define getpagesize() NBPC
8819 # else /* no NBPC */
8821 # define getpagesize() PAGESIZE
8822 # endif /* PAGESIZE */
8823 # endif /* no NBPC */
8824 # endif /* no NBPG */
8825 # endif /* no EXEC_PAGESIZE */
8826 # else /* no HAVE_SYS_PARAM_H */
8827 # define getpagesize() 8192 /* punt totally */
8828 # endif /* no HAVE_SYS_PARAM_H */
8829 # endif /* no _SC_PAGESIZE */
8831 #endif /* no HAVE_GETPAGESIZE */
8836 char *data, *data2, *data3;
8840 pagesize = getpagesize ();
8842 /* First, make a file with some known garbage in it. */
8843 data = (char *) malloc (pagesize);
8846 for (i = 0; i < pagesize; ++i)
8847 *(data + i) = rand ();
8849 fd = creat ("conftest.mmap", 0600);
8852 if (write (fd, data, pagesize) != pagesize)
8856 /* Next, try to mmap the file at a fixed address which already has
8857 something else allocated at it. If we can, also make sure that
8858 we see the same garbage. */
8859 fd = open ("conftest.mmap", O_RDWR);
8862 data2 = (char *) malloc (2 * pagesize);
8865 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8866 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8867 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8869 for (i = 0; i < pagesize; ++i)
8870 if (*(data + i) != *(data2 + i))
8873 /* Finally, make sure that changes to the mapped area do not
8874 percolate back to the file as seen by read(). (This is a bug on
8875 some variants of i386 svr4.0.) */
8876 for (i = 0; i < pagesize; ++i)
8877 *(data2 + i) = *(data2 + i) + 1;
8878 data3 = (char *) malloc (pagesize);
8881 if (read (fd, data3, pagesize) != pagesize)
8883 for (i = 0; i < pagesize; ++i)
8884 if (*(data + i) != *(data3 + i))
8890 rm -f conftest$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_func_mmap_fixed_mapped=yes
8903 echo "$as_me: program exited with status $ac_status" >&5
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_cv_func_mmap_fixed_mapped=no
8910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8914 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8915 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8917 cat >>confdefs.h <<\_ACEOF
8925 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8926 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8927 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 #include <features.h>
8938 #ifdef __GNU_LIBRARY__
8939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8947 ac_cv_gnu_library_2_1=yes
8949 ac_cv_gnu_library_2_1=no
8956 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8957 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8959 GLIBC21="$ac_cv_gnu_library_2_1"
8964 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8965 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8966 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 if test "$cross_compiling" = yes; then
8972 # Guess based on the CPU.
8974 alpha* | i3456786 | m68k | s390*)
8975 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8977 gt_cv_int_divbyzero_sigfpe="guessing no";;
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8993 sigfpe_handler (int sig)
8995 sigfpe_handler (sig) int sig;
8998 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8999 exit (sig != SIGFPE);
9009 signal (SIGFPE, sigfpe_handler);
9010 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9011 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9012 signal (SIGTRAP, sigfpe_handler);
9014 /* Linux/SPARC yields signal SIGILL. */
9015 #if defined (__sparc__) && defined (__linux__)
9016 signal (SIGILL, sigfpe_handler);
9025 rm -f conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027 (eval $ac_link) 2>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; }; then
9036 gt_cv_int_divbyzero_sigfpe=yes
9038 echo "$as_me: program exited with status $ac_status" >&5
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9043 gt_cv_int_divbyzero_sigfpe=no
9045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9049 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9050 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9051 case "$gt_cv_int_divbyzero_sigfpe" in
9056 cat >>confdefs.h <<_ACEOF
9057 #define INTDIV0_RAISES_SIGFPE $value
9062 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9063 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9064 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9073 unsigned long long ull = 1ULL; int i = 63;
9077 unsigned long long ullmax = (unsigned long long) -1;
9078 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>conftest.er1
9087 grep -v '^ *+' conftest.er1 >conftest.err
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_c_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_cv_type_unsigned_long_long=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_cv_type_unsigned_long_long=no
9112 rm -f conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext conftest.$ac_ext
9115 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9116 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9117 if test $ac_cv_type_unsigned_long_long = yes; then
9119 cat >>confdefs.h <<\_ACEOF
9120 #define HAVE_UNSIGNED_LONG_LONG 1
9128 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9130 test $ac_cv_type_unsigned_long_long = yes \
9131 && ac_type='unsigned long long' \
9132 || ac_type='unsigned long'
9134 cat >>confdefs.h <<_ACEOF
9135 #define uintmax_t $ac_type
9140 cat >>confdefs.h <<\_ACEOF
9141 #define HAVE_UINTMAX_T 1
9147 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9148 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9149 if test "${gt_cv_header_inttypes_h+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <sys/types.h>
9160 #include <inttypes.h>
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag"
9179 || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 gt_cv_header_inttypes_h=yes
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 gt_cv_header_inttypes_h=no
9198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9201 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9202 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9203 if test $gt_cv_header_inttypes_h = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_INTTYPES_H 1
9213 if test $gt_cv_header_inttypes_h = yes; then
9214 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9215 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9216 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226 #include <inttypes.h>
9239 rm -f conftest.$ac_objext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9241 (eval $ac_compile) 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest.$ac_objext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 gt_cv_inttypes_pri_broken=no
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 gt_cv_inttypes_pri_broken=yes
9268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9271 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9272 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9274 if test "$gt_cv_inttypes_pri_broken" = yes; then
9276 cat >>confdefs.h <<_ACEOF
9277 #define PRI_MACROS_BROKEN 1
9284 for ac_header in stdint.h
9286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9288 echo "$as_me:$LINENO: checking for $ac_header" >&5
9289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9296 # Is the header compilable?
9297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 $ac_includes_default
9306 #include <$ac_header>
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_header_compiler=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_compiler=no
9337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9339 echo "${ECHO_T}$ac_header_compiler" >&6
9341 # Is the header present?
9342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 #include <$ac_header>
9352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } >/dev/null; then
9360 if test -s conftest.err; then
9361 ac_cpp_err=$ac_c_preproc_warn_flag
9362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9369 if test -z "$ac_cpp_err"; then
9370 ac_header_preproc=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_preproc=no
9377 rm -f conftest.err conftest.$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9379 echo "${ECHO_T}$ac_header_preproc" >&6
9381 # So? What about this header?
9382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9388 ac_header_preproc=yes
9391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9405 ## ------------------------------------------ ##
9406 ## Report this to the AC_PACKAGE_NAME lists. ##
9407 ## ------------------------------------------ ##
9410 sed "s/^/$as_me: WARNING: /" >&2
9413 echo "$as_me:$LINENO: checking for $ac_header" >&5
9414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 eval "$as_ac_Header=\$ac_header_preproc"
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9425 cat >>confdefs.h <<_ACEOF
9426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9433 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9434 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9436 cat >conftest.$ac_ext <<_ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9453 $EGREP "Found it" >/dev/null 2>&1; then
9458 if test -z "$result"; then
9459 if test "$cross_compiling" = yes; then
9460 # Depending upon the size, compute the lo and hi bounds.
9461 cat >conftest.$ac_ext <<_ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9471 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_c_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9512 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9519 rm -f conftest.$ac_objext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9521 (eval $ac_compile) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_hi=$ac_mid; break
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9546 ac_lo=`expr $ac_mid + 1`
9547 if test $ac_lo -le $ac_mid; then
9551 ac_mid=`expr 2 '*' $ac_mid + 1`
9553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9569 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9576 rm -f conftest.$ac_objext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>conftest.er1
9580 grep -v '^ *+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag"
9586 || test ! -s conftest.err'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9600 cat >conftest.$ac_ext <<_ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9610 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9617 rm -f conftest.$ac_objext
9618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9619 (eval $ac_compile) 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); } &&
9626 { ac_try='test -z "$ac_c_werror_flag"
9627 || test ! -s conftest.err'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; } &&
9633 { ac_try='test -s conftest.$ac_objext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_lo=$ac_mid; break
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_hi=`expr '(' $ac_mid ')' - 1`
9645 if test $ac_mid -le $ac_hi; then
9649 ac_mid=`expr 2 '*' $ac_mid`
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 # Binary search between lo and hi bounds.
9663 while test "x$ac_lo" != "x$ac_hi"; do
9664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9665 cat >conftest.$ac_ext <<_ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h. */
9675 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9682 rm -f conftest.$ac_objext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684 (eval $ac_compile) 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag"
9692 || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest.$ac_objext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 ac_lo=`expr '(' $ac_mid ')' + 1`
9711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9718 if test "$cross_compiling" = yes; then
9719 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9720 See \`config.log' for more details." >&5
9721 echo "$as_me: error: cannot run test program while cross compiling
9722 See \`config.log' for more details." >&2;}
9723 { (exit 1); exit 1; }; }
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9732 long longval () { return ~(size_t)0 / 10; }
9733 unsigned long ulongval () { return ~(size_t)0 / 10; }
9740 FILE *f = fopen ("conftest.val", "w");
9743 if ((~(size_t)0 / 10) < 0)
9745 long i = longval ();
9746 if (i != (~(size_t)0 / 10))
9748 fprintf (f, "%ld\n", i);
9752 unsigned long i = ulongval ();
9753 if (i != (~(size_t)0 / 10))
9755 fprintf (f, "%lu\n", i);
9757 exit (ferror (f) || fclose (f) != 0);
9763 rm -f conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 res_hi=`cat conftest.val`
9776 echo "$as_me: program exited with status $ac_status" >&5
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9787 if test "$cross_compiling" = yes; then
9788 # Depending upon the size, compute the lo and hi bounds.
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9799 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag"
9816 || test ! -s conftest.err'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
9822 { ac_try='test -s conftest.$ac_objext'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9840 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849 (eval $ac_compile) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_hi=$ac_mid; break
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_lo=`expr $ac_mid + 1`
9875 if test $ac_lo -le $ac_mid; then
9879 ac_mid=`expr 2 '*' $ac_mid + 1`
9881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9897 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9908 grep -v '^ *+' conftest.er1 >conftest.err
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9938 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947 (eval $ac_compile) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest.$ac_objext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_lo=$ac_mid; break
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_hi=`expr '(' $ac_mid ')' - 1`
9973 if test $ac_mid -le $ac_hi; then
9977 ac_mid=`expr 2 '*' $ac_mid`
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 # Binary search between lo and hi bounds.
9991 while test "x$ac_lo" != "x$ac_hi"; do
9992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
10003 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10010 rm -f conftest.$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012 (eval $ac_compile) 2>conftest.er1
10014 grep -v '^ *+' conftest.er1 >conftest.err
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest.$ac_objext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 ac_lo=`expr '(' $ac_mid ')' + 1`
10039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10042 ?*) res_lo=$ac_lo;;
10046 if test "$cross_compiling" = yes; then
10047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10048 See \`config.log' for more details." >&5
10049 echo "$as_me: error: cannot run test program while cross compiling
10050 See \`config.log' for more details." >&2;}
10051 { (exit 1); exit 1; }; }
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 #include <stddef.h>
10060 long longval () { return ~(size_t)0 % 10; }
10061 unsigned long ulongval () { return ~(size_t)0 % 10; }
10063 #include <stdlib.h>
10068 FILE *f = fopen ("conftest.val", "w");
10071 if ((~(size_t)0 % 10) < 0)
10073 long i = longval ();
10074 if (i != (~(size_t)0 % 10))
10076 fprintf (f, "%ld\n", i);
10080 unsigned long i = ulongval ();
10081 if (i != (~(size_t)0 % 10))
10083 fprintf (f, "%lu\n", i);
10085 exit (ferror (f) || fclose (f) != 0);
10091 rm -f conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093 (eval $ac_link) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } && { ac_try='./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 res_lo=`cat conftest.val`
10104 echo "$as_me: program exited with status $ac_status" >&5
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ( exit $ac_status )
10111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10115 if test "$cross_compiling" = yes; then
10116 # Depending upon the size, compute the lo and hi bounds.
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <stddef.h>
10127 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10134 rm -f conftest.$ac_objext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136 (eval $ac_compile) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag"
10144 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest.$ac_objext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 #include <stddef.h>
10168 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest.$ac_objext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_hi=$ac_mid; break
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_lo=`expr $ac_mid + 1`
10203 if test $ac_lo -le $ac_mid; then
10207 ac_mid=`expr 2 '*' $ac_mid + 1`
10209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 #include <stddef.h>
10225 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -z "$ac_c_werror_flag"
10242 || test ! -s conftest.err'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <stddef.h>
10266 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10273 rm -f conftest.$ac_objext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag"
10283 || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 ac_lo=$ac_mid; break
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 ac_hi=`expr '(' $ac_mid ')' - 1`
10301 if test $ac_mid -le $ac_hi; then
10305 ac_mid=`expr 2 '*' $ac_mid`
10307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 # Binary search between lo and hi bounds.
10319 while test "x$ac_lo" != "x$ac_hi"; do
10320 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 #include <stddef.h>
10331 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10338 rm -f conftest.$ac_objext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340 (eval $ac_compile) 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try='test -z "$ac_c_werror_flag"
10348 || test ! -s conftest.err'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try='test -s conftest.$ac_objext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_lo=`expr '(' $ac_mid ')' + 1`
10367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10370 ?*) fits_in_uint=$ac_lo;;
10374 if test "$cross_compiling" = yes; then
10375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10376 See \`config.log' for more details." >&5
10377 echo "$as_me: error: cannot run test program while cross compiling
10378 See \`config.log' for more details." >&2;}
10379 { (exit 1); exit 1; }; }
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 #include <stddef.h>
10388 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10389 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10391 #include <stdlib.h>
10396 FILE *f = fopen ("conftest.val", "w");
10399 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10401 long i = longval ();
10402 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10404 fprintf (f, "%ld\n", i);
10408 unsigned long i = ulongval ();
10409 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10411 fprintf (f, "%lu\n", i);
10413 exit (ferror (f) || fclose (f) != 0);
10419 rm -f conftest$ac_exeext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 fits_in_uint=`cat conftest.val`
10432 echo "$as_me: program exited with status $ac_status" >&5
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ( exit $ac_status )
10439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10443 if test "$fits_in_uint" = 1; then
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 #include <stddef.h>
10452 extern unsigned long foo;
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest.$ac_objext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10492 if test -z "$result"; then
10493 if test "$fits_in_uint" = 1; then
10494 result="$res_hi$res_lo"U
10496 result="$res_hi$res_lo"UL
10499 result='~(size_t)0'
10502 echo "$as_me:$LINENO: result: $result" >&5
10503 echo "${ECHO_T}$result" >&6
10504 if test "$result" != yes; then
10506 cat >>confdefs.h <<_ACEOF
10507 #define SIZE_MAX $result
10516 for ac_header in stdint.h
10518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10520 echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10528 # Is the header compilable?
10529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10538 #include <$ac_header>
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10542 (eval $ac_compile) 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag"
10550 || test ! -s conftest.err'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_header_compiler=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_header_compiler=no
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571 echo "${ECHO_T}$ac_header_compiler" >&6
10573 # Is the header present?
10574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <$ac_header>
10584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } >/dev/null; then
10592 if test -s conftest.err; then
10593 ac_cpp_err=$ac_c_preproc_warn_flag
10594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10601 if test -z "$ac_cpp_err"; then
10602 ac_header_preproc=yes
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 ac_header_preproc=no
10609 rm -f conftest.err conftest.$ac_ext
10610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10611 echo "${ECHO_T}$ac_header_preproc" >&6
10613 # So? What about this header?
10614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10620 ac_header_preproc=yes
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10637 ## ------------------------------------------ ##
10638 ## Report this to the AC_PACKAGE_NAME lists. ##
10639 ## ------------------------------------------ ##
10642 sed "s/^/$as_me: WARNING: /" >&2
10645 echo "$as_me:$LINENO: checking for $ac_header" >&5
10646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 eval "$as_ac_Header=\$ac_header_preproc"
10652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10657 cat >>confdefs.h <<_ACEOF
10658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10672 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10673 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10674 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 $ac_includes_default
10687 if ((ptrdiff_t *) 0)
10689 if (sizeof (ptrdiff_t))
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag"
10705 || test ! -s conftest.err'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest.$ac_objext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_type_ptrdiff_t=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_cv_type_ptrdiff_t=no
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10727 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10728 if test $ac_cv_type_ptrdiff_t = yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define ptrdiff_t long
10749 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10750 stdlib.h string.h unistd.h sys/param.h
10752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10754 echo "$as_me:$LINENO: checking for $ac_header" >&5
10755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10762 # Is the header compilable?
10763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 $ac_includes_default
10772 #include <$ac_header>
10774 rm -f conftest.$ac_objext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776 (eval $ac_compile) 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest.$ac_objext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 ac_header_compiler=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_compiler=no
10803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10805 echo "${ECHO_T}$ac_header_compiler" >&6
10807 # Is the header present?
10808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10816 #include <$ac_header>
10818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10821 grep -v '^ *+' conftest.er1 >conftest.err
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } >/dev/null; then
10826 if test -s conftest.err; then
10827 ac_cpp_err=$ac_c_preproc_warn_flag
10828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10835 if test -z "$ac_cpp_err"; then
10836 ac_header_preproc=yes
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_header_preproc=no
10843 rm -f conftest.err conftest.$ac_ext
10844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10845 echo "${ECHO_T}$ac_header_preproc" >&6
10847 # So? What about this header?
10848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10854 ac_header_preproc=yes
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10871 ## ------------------------------------------ ##
10872 ## Report this to the AC_PACKAGE_NAME lists. ##
10873 ## ------------------------------------------ ##
10876 sed "s/^/$as_me: WARNING: /" >&2
10879 echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 eval "$as_ac_Header=\$ac_header_preproc"
10886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10922 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10923 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10924 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 echo "$as_me:$LINENO: checking for $ac_func" >&5
10929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10930 if eval "test \"\${$as_ac_var+set}\" = set"; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 cat >conftest.$ac_ext <<_ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10941 #define $ac_func innocuous_$ac_func
10943 /* System header to define __stub macros and hopefully few prototypes,
10944 which can conflict with char $ac_func (); below.
10945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10946 <limits.h> exists even on freestanding compilers. */
10949 # include <limits.h>
10951 # include <assert.h>
10956 /* Override any gcc2 internal prototype to avoid an error. */
10961 /* We use char because int might match the return type of a gcc2
10962 builtin and then its argument prototype would still apply. */
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10970 char (*f) () = $ac_func;
10979 return f != $ac_func;
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest$ac_exeext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 eval "$as_ac_var=yes"
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 eval "$as_ac_var=no"
11013 rm -f conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11018 if test `eval echo '${'$as_ac_var'}'` = yes; then
11019 cat >>confdefs.h <<_ACEOF
11020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11028 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11029 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11030 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11045 char *p = (char *) _snprintf;
11052 rm -f conftest.$ac_objext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054 (eval $ac_compile) 2>conftest.er1
11056 grep -v '^ *+' conftest.er1 >conftest.err
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag"
11062 || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest.$ac_objext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_have_decl__snprintf=yes
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_cv_have_decl__snprintf=no
11081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11084 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11085 if test $ac_cv_have_decl__snprintf = yes; then
11091 cat >>confdefs.h <<_ACEOF
11092 #define HAVE_DECL__SNPRINTF $gt_value
11097 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11098 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11099 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.$ac_ext <<_ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11114 char *p = (char *) _snwprintf;
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag"
11131 || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_have_decl__snwprintf=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_cv_have_decl__snwprintf=no
11150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11152 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11153 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11154 if test $ac_cv_have_decl__snwprintf = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define HAVE_DECL__SNWPRINTF $gt_value
11167 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11168 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11169 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11183 #ifndef feof_unlocked
11184 char *p = (char *) feof_unlocked;
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193 (eval $ac_compile) 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -z "$ac_c_werror_flag"
11201 || test ! -s conftest.err'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; } &&
11207 { ac_try='test -s conftest.$ac_objext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_cv_have_decl_feof_unlocked=yes
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_cv_have_decl_feof_unlocked=no
11220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11223 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11224 if test $ac_cv_have_decl_feof_unlocked = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11236 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11237 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11238 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11252 #ifndef fgets_unlocked
11253 char *p = (char *) fgets_unlocked;
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262 (eval $ac_compile) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_have_decl_fgets_unlocked=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_have_decl_fgets_unlocked=no
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11292 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11293 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11305 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11306 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11307 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11321 #ifndef getc_unlocked
11322 char *p = (char *) getc_unlocked;
11329 rm -f conftest.$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_have_decl_getc_unlocked=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_cv_have_decl_getc_unlocked=no
11358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11361 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11362 if test $ac_cv_have_decl_getc_unlocked = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11374 case $gt_cv_func_printf_posix in
11375 *yes) HAVE_POSIX_PRINTF=1 ;;
11376 *) HAVE_POSIX_PRINTF=0 ;;
11379 if test "$ac_cv_func_asprintf" = yes; then
11385 if test "$ac_cv_func_snprintf" = yes; then
11391 if test "$ac_cv_func_wprintf" = yes; then
11403 am_save_CPPFLAGS="$CPPFLAGS"
11405 for element in $INCICONV; do
11407 for x in $CPPFLAGS; do
11409 acl_save_prefix="$prefix"
11410 prefix="$acl_final_prefix"
11411 acl_save_exec_prefix="$exec_prefix"
11412 exec_prefix="$acl_final_exec_prefix"
11414 exec_prefix="$acl_save_exec_prefix"
11415 prefix="$acl_save_prefix"
11417 if test "X$x" = "X$element"; then
11422 if test -z "$haveit"; then
11423 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11428 echo "$as_me:$LINENO: checking for iconv" >&5
11429 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11430 if test "${am_cv_func_iconv+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 am_cv_func_iconv="no, consider installing GNU libiconv"
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <stdlib.h>
11447 iconv_t cd = iconv_open("","");
11448 iconv(cd,NULL,NULL,NULL,NULL);
11454 rm -f conftest.$ac_objext conftest$ac_exeext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456 (eval $ac_link) 2>conftest.er1
11458 grep -v '^ *+' conftest.er1 >conftest.err
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag"
11464 || test ! -s conftest.err'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest$ac_exeext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 am_cv_func_iconv=yes
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11482 rm -f conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 if test "$am_cv_func_iconv" != yes; then
11485 am_save_LIBS="$LIBS"
11486 LIBS="$LIBS $LIBICONV"
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 #include <stdlib.h>
11498 iconv_t cd = iconv_open("","");
11499 iconv(cd,NULL,NULL,NULL,NULL);
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>conftest.er1
11509 grep -v '^ *+' conftest.er1 >conftest.err
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag"
11515 || test ! -s conftest.err'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; } &&
11521 { ac_try='test -s conftest$ac_exeext'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 am_cv_lib_iconv=yes
11528 am_cv_func_iconv=yes
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11534 rm -f conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS="$am_save_LIBS"
11540 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11541 echo "${ECHO_T}$am_cv_func_iconv" >&6
11542 if test "$am_cv_func_iconv" = yes; then
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_ICONV 1
11549 if test "$am_cv_lib_iconv" = yes; then
11550 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11551 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11552 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11553 echo "${ECHO_T}$LIBICONV" >&6
11555 CPPFLAGS="$am_save_CPPFLAGS"
11562 if test "$am_cv_func_iconv" = yes; then
11563 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11564 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11565 if test "${am_cv_proto_iconv+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 #include <stdlib.h>
11582 #if defined(__STDC__) || defined(__cplusplus)
11583 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>conftest.er1
11600 grep -v '^ *+' conftest.er1 >conftest.err
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag"
11606 || test ! -s conftest.err'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest.$ac_objext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 am_cv_proto_iconv_arg1=""
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11623 am_cv_proto_iconv_arg1="const"
11625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11629 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11630 echo "$as_me:$LINENO: result: ${ac_t:-
11631 }$am_cv_proto_iconv" >&5
11632 echo "${ECHO_T}${ac_t:-
11633 }$am_cv_proto_iconv" >&6
11635 cat >>confdefs.h <<_ACEOF
11636 #define ICONV_CONST $am_cv_proto_iconv_arg1
11642 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11643 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11644 if test "${am_cv_langinfo_codeset+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <langinfo.h>
11657 char* cs = nl_langinfo(CODESET);
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest$ac_exeext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 am_cv_langinfo_codeset=yes
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11689 am_cv_langinfo_codeset=no
11691 rm -f conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11695 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11696 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11697 if test $am_cv_langinfo_codeset = yes; then
11699 cat >>confdefs.h <<\_ACEOF
11700 #define HAVE_LANGINFO_CODESET 1
11705 if test $ac_cv_header_locale_h = yes; then
11707 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11708 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11709 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 cat >conftest.$ac_ext <<_ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 #include <locale.h>
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag"
11737 || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest$ac_exeext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 gt_cv_val_LC_MESSAGES=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 gt_cv_val_LC_MESSAGES=no
11756 rm -f conftest.err conftest.$ac_objext \
11757 conftest$ac_exeext conftest.$ac_ext
11759 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11760 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11761 if test $gt_cv_val_LC_MESSAGES = yes; then
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_LC_MESSAGES 1
11771 if test -n "$INTL_MACOSX_LIBS"; then
11772 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11775 for ac_prog in bison
11777 # Extract the first word of "$ac_prog", so it can be a program name with args.
11778 set dummy $ac_prog; ac_word=$2
11779 echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11781 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 if test -n "$INTLBISON"; then
11785 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_INTLBISON="$ac_prog"
11795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 INTLBISON=$ac_cv_prog_INTLBISON
11804 if test -n "$INTLBISON"; then
11805 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11806 echo "${ECHO_T}$INTLBISON" >&6
11808 echo "$as_me:$LINENO: result: no" >&5
11809 echo "${ECHO_T}no" >&6
11812 test -n "$INTLBISON" && break
11815 if test -z "$INTLBISON"; then
11818 echo "$as_me:$LINENO: checking version of bison" >&5
11819 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11820 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11821 case $ac_prog_version in
11822 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11823 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11824 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11825 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11827 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11828 echo "${ECHO_T}$ac_prog_version" >&6
11830 if test $ac_verc_fail = yes; then
11849 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11850 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11851 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 gt_save_CPPFLAGS="$CPPFLAGS"
11855 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11856 gt_save_LIBS="$LIBS"
11857 LIBS="$LIBS -framework CoreFoundation"
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 #include <CFPreferences.h>
11868 CFPreferencesCopyAppValue(NULL, NULL)
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875 (eval $ac_link) 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 gt_cv_func_CFPreferencesCopyAppValue=yes
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 gt_cv_func_CFPreferencesCopyAppValue=no
11902 rm -f conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904 CPPFLAGS="$gt_save_CPPFLAGS"
11905 LIBS="$gt_save_LIBS"
11907 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11908 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11909 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11911 cat >>confdefs.h <<\_ACEOF
11912 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11916 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11917 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11918 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 gt_save_CPPFLAGS="$CPPFLAGS"
11922 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11923 gt_save_LIBS="$LIBS"
11924 LIBS="$LIBS -framework CoreFoundation"
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #include <CFLocale.h>
11935 CFLocaleCopyCurrent();
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>conftest.er1
11944 grep -v '^ *+' conftest.er1 >conftest.err
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -z "$ac_c_werror_flag"
11950 || test ! -s conftest.err'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 gt_cv_func_CFLocaleCopyCurrent=yes
11964 echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11967 gt_cv_func_CFLocaleCopyCurrent=no
11969 rm -f conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 CPPFLAGS="$gt_save_CPPFLAGS"
11972 LIBS="$gt_save_LIBS"
11974 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11975 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11976 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11978 cat >>confdefs.h <<\_ACEOF
11979 #define HAVE_CFLOCALECOPYCURRENT 1
11984 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11985 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11991 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11992 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11993 # Check whether --enable-nls or --disable-nls was given.
11994 if test "${enable_nls+set}" = set; then
11995 enableval="$enable_nls"
12000 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12001 echo "${ECHO_T}$USE_NLS" >&6
12006 BUILD_INCLUDED_LIBINTL=no
12007 USE_INCLUDED_LIBINTL=no
12013 if test "$USE_NLS" = "yes"; then
12014 gt_use_preinstalled_gnugettext=no
12016 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12017 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12019 # Check whether --with-included-gettext or --without-included-gettext was given.
12020 if test "${with_included_gettext+set}" = set; then
12021 withval="$with_included_gettext"
12022 nls_cv_force_use_gnu_gettext=$withval
12024 nls_cv_force_use_gnu_gettext=no
12026 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12027 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12029 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12030 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12037 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12038 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12039 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <libintl.h>
12049 extern int _nl_msg_cat_cntr;
12050 extern int *_nl_domain_bindings;
12054 bindtextdomain ("", "");
12055 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 gt_cv_func_gnugettext1_libc=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 gt_cv_func_gnugettext1_libc=no
12089 rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12092 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12093 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12095 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12101 acl_save_prefix="$prefix"
12102 prefix="$acl_final_prefix"
12103 acl_save_exec_prefix="$exec_prefix"
12104 exec_prefix="$acl_final_exec_prefix"
12106 eval additional_includedir=\"$includedir\"
12107 eval additional_libdir=\"$libdir\"
12109 exec_prefix="$acl_save_exec_prefix"
12110 prefix="$acl_save_prefix"
12113 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12114 if test "${with_libintl_prefix+set}" = set; then
12115 withval="$with_libintl_prefix"
12117 if test "X$withval" = "Xno"; then
12120 if test "X$withval" = "X"; then
12122 acl_save_prefix="$prefix"
12123 prefix="$acl_final_prefix"
12124 acl_save_exec_prefix="$exec_prefix"
12125 exec_prefix="$acl_final_exec_prefix"
12127 eval additional_includedir=\"$includedir\"
12128 eval additional_libdir=\"$libdir\"
12130 exec_prefix="$acl_save_exec_prefix"
12131 prefix="$acl_save_prefix"
12134 additional_includedir="$withval/include"
12135 additional_libdir="$withval/lib"
12145 names_already_handled=
12146 names_next_round='intl '
12147 while test -n "$names_next_round"; do
12148 names_this_round="$names_next_round"
12150 for name in $names_this_round; do
12152 for n in $names_already_handled; do
12153 if test "$n" = "$name"; then
12154 already_handled=yes
12158 if test -z "$already_handled"; then
12159 names_already_handled="$names_already_handled $name"
12160 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12161 eval value=\"\$HAVE_LIB$uppername\"
12162 if test -n "$value"; then
12163 if test "$value" = yes; then
12164 eval value=\"\$LIB$uppername\"
12165 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12166 eval value=\"\$LTLIB$uppername\"
12167 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12176 if test $use_additional = yes; then
12177 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12178 found_dir="$additional_libdir"
12179 found_so="$additional_libdir/lib$name.$shlibext"
12180 if test -f "$additional_libdir/lib$name.la"; then
12181 found_la="$additional_libdir/lib$name.la"
12184 if test -f "$additional_libdir/lib$name.$libext"; then
12185 found_dir="$additional_libdir"
12186 found_a="$additional_libdir/lib$name.$libext"
12187 if test -f "$additional_libdir/lib$name.la"; then
12188 found_la="$additional_libdir/lib$name.la"
12193 if test "X$found_dir" = "X"; then
12194 for x in $LDFLAGS $LTLIBINTL; do
12196 acl_save_prefix="$prefix"
12197 prefix="$acl_final_prefix"
12198 acl_save_exec_prefix="$exec_prefix"
12199 exec_prefix="$acl_final_exec_prefix"
12201 exec_prefix="$acl_save_exec_prefix"
12202 prefix="$acl_save_prefix"
12206 dir=`echo "X$x" | sed -e 's/^X-L//'`
12207 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12209 found_so="$dir/lib$name.$shlibext"
12210 if test -f "$dir/lib$name.la"; then
12211 found_la="$dir/lib$name.la"
12214 if test -f "$dir/lib$name.$libext"; then
12216 found_a="$dir/lib$name.$libext"
12217 if test -f "$dir/lib$name.la"; then
12218 found_la="$dir/lib$name.la"
12224 if test "X$found_dir" != "X"; then
12229 if test "X$found_dir" != "X"; then
12230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12231 if test "X$found_so" != "X"; then
12232 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12233 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12236 for x in $ltrpathdirs; do
12237 if test "X$x" = "X$found_dir"; then
12242 if test -z "$haveit"; then
12243 ltrpathdirs="$ltrpathdirs $found_dir"
12245 if test "$hardcode_direct" = yes; then
12246 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12248 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12249 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12251 for x in $rpathdirs; do
12252 if test "X$x" = "X$found_dir"; then
12257 if test -z "$haveit"; then
12258 rpathdirs="$rpathdirs $found_dir"
12262 for x in $LDFLAGS $LIBINTL; do
12264 acl_save_prefix="$prefix"
12265 prefix="$acl_final_prefix"
12266 acl_save_exec_prefix="$exec_prefix"
12267 exec_prefix="$acl_final_exec_prefix"
12269 exec_prefix="$acl_save_exec_prefix"
12270 prefix="$acl_save_prefix"
12272 if test "X$x" = "X-L$found_dir"; then
12277 if test -z "$haveit"; then
12278 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12280 if test "$hardcode_minus_L" != no; then
12281 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12283 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12289 if test "X$found_a" != "X"; then
12290 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12292 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12295 additional_includedir=
12296 case "$found_dir" in
12298 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12299 additional_includedir="$basedir/include"
12302 if test "X$additional_includedir" != "X"; then
12303 if test "X$additional_includedir" != "X/usr/include"; then
12305 if test "X$additional_includedir" = "X/usr/local/include"; then
12306 if test -n "$GCC"; then
12308 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12312 if test -z "$haveit"; then
12313 for x in $CPPFLAGS $INCINTL; do
12315 acl_save_prefix="$prefix"
12316 prefix="$acl_final_prefix"
12317 acl_save_exec_prefix="$exec_prefix"
12318 exec_prefix="$acl_final_exec_prefix"
12320 exec_prefix="$acl_save_exec_prefix"
12321 prefix="$acl_save_prefix"
12323 if test "X$x" = "X-I$additional_includedir"; then
12328 if test -z "$haveit"; then
12329 if test -d "$additional_includedir"; then
12330 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12336 if test -n "$found_la"; then
12337 save_libdir="$libdir"
12338 case "$found_la" in
12339 */* | *\\*) . "$found_la" ;;
12340 *) . "./$found_la" ;;
12342 libdir="$save_libdir"
12343 for dep in $dependency_libs; do
12346 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12347 if test "X$additional_libdir" != "X/usr/lib"; then
12349 if test "X$additional_libdir" = "X/usr/local/lib"; then
12350 if test -n "$GCC"; then
12352 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12356 if test -z "$haveit"; then
12358 for x in $LDFLAGS $LIBINTL; do
12360 acl_save_prefix="$prefix"
12361 prefix="$acl_final_prefix"
12362 acl_save_exec_prefix="$exec_prefix"
12363 exec_prefix="$acl_final_exec_prefix"
12365 exec_prefix="$acl_save_exec_prefix"
12366 prefix="$acl_save_prefix"
12368 if test "X$x" = "X-L$additional_libdir"; then
12373 if test -z "$haveit"; then
12374 if test -d "$additional_libdir"; then
12375 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12379 for x in $LDFLAGS $LTLIBINTL; do
12381 acl_save_prefix="$prefix"
12382 prefix="$acl_final_prefix"
12383 acl_save_exec_prefix="$exec_prefix"
12384 exec_prefix="$acl_final_exec_prefix"
12386 exec_prefix="$acl_save_exec_prefix"
12387 prefix="$acl_save_prefix"
12389 if test "X$x" = "X-L$additional_libdir"; then
12394 if test -z "$haveit"; then
12395 if test -d "$additional_libdir"; then
12396 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12403 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12404 if test "$enable_rpath" != no; then
12406 for x in $rpathdirs; do
12407 if test "X$x" = "X$dir"; then
12412 if test -z "$haveit"; then
12413 rpathdirs="$rpathdirs $dir"
12416 for x in $ltrpathdirs; do
12417 if test "X$x" = "X$dir"; then
12422 if test -z "$haveit"; then
12423 ltrpathdirs="$ltrpathdirs $dir"
12428 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12431 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12434 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12435 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12441 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12448 if test "X$rpathdirs" != "X"; then
12449 if test -n "$hardcode_libdir_separator"; then
12451 for found_dir in $rpathdirs; do
12452 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12454 acl_save_libdir="$libdir"
12456 eval flag=\"$hardcode_libdir_flag_spec\"
12457 libdir="$acl_save_libdir"
12458 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12460 for found_dir in $rpathdirs; do
12461 acl_save_libdir="$libdir"
12462 libdir="$found_dir"
12463 eval flag=\"$hardcode_libdir_flag_spec\"
12464 libdir="$acl_save_libdir"
12465 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12469 if test "X$ltrpathdirs" != "X"; then
12470 for found_dir in $ltrpathdirs; do
12471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12475 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12476 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12477 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 gt_save_CPPFLAGS="$CPPFLAGS"
12481 CPPFLAGS="$CPPFLAGS $INCINTL"
12482 gt_save_LIBS="$LIBS"
12483 LIBS="$LIBS $LIBINTL"
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #include <libintl.h>
12491 extern int _nl_msg_cat_cntr;
12496 const char *_nl_expand_alias (const char *);
12500 bindtextdomain ("", "");
12501 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12508 (eval $ac_link) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag"
12516 || test ! -s conftest.err'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest$ac_exeext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 gt_cv_func_gnugettext1_libintl=yes
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 gt_cv_func_gnugettext1_libintl=no
12535 rm -f conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12538 LIBS="$LIBS $LIBICONV"
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 #include <libintl.h>
12546 extern int _nl_msg_cat_cntr;
12551 const char *_nl_expand_alias (const char *);
12555 bindtextdomain ("", "");
12556 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12561 rm -f conftest.$ac_objext conftest$ac_exeext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12563 (eval $ac_link) 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag"
12571 || test ! -s conftest.err'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 LIBINTL="$LIBINTL $LIBICONV"
12584 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12585 gt_cv_func_gnugettext1_libintl=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12592 rm -f conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12595 CPPFLAGS="$gt_save_CPPFLAGS"
12596 LIBS="$gt_save_LIBS"
12598 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12599 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12602 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12603 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12604 && test "$PACKAGE" != gettext-runtime \
12605 && test "$PACKAGE" != gettext-tools; }; then
12606 gt_use_preinstalled_gnugettext=yes
12614 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12615 nls_cv_use_gnu_gettext=yes
12619 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12620 BUILD_INCLUDED_LIBINTL=yes
12621 USE_INCLUDED_LIBINTL=yes
12622 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12623 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12624 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12628 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12629 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12634 if test -n "$INTL_MACOSX_LIBS"; then
12635 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12636 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12637 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12638 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12642 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12643 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define ENABLE_NLS 1
12654 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12655 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12656 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12657 echo "${ECHO_T}$USE_NLS" >&6
12658 if test "$USE_NLS" = "yes"; then
12659 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12660 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12661 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12662 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12663 gt_source="external libintl"
12668 gt_source="included intl directory"
12670 echo "$as_me:$LINENO: result: $gt_source" >&5
12671 echo "${ECHO_T}$gt_source" >&6
12674 if test "$USE_NLS" = "yes"; then
12676 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12677 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12678 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12679 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12680 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12681 echo "${ECHO_T}$LIBINTL" >&6
12683 for element in $INCINTL; do
12685 for x in $CPPFLAGS; do
12687 acl_save_prefix="$prefix"
12688 prefix="$acl_final_prefix"
12689 acl_save_exec_prefix="$exec_prefix"
12690 exec_prefix="$acl_final_exec_prefix"
12692 exec_prefix="$acl_save_exec_prefix"
12693 prefix="$acl_save_prefix"
12695 if test "X$x" = "X$element"; then
12700 if test -z "$haveit"; then
12701 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12708 cat >>confdefs.h <<\_ACEOF
12709 #define HAVE_GETTEXT 1
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_DCGETTEXT 1
12723 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12724 BUILD_INCLUDED_LIBINTL=yes
12731 nls_cv_header_intl=
12732 nls_cv_header_libgt=
12744 if test "$USE_INCLUDED_LIBINTL" = yes; then
12745 INTLOBJS="\$(GETTOBJS)"
12749 INTL_LIBTOOL_SUFFIX_PREFIX=
12753 INTLLIBS="$LIBINTL"
12766 support_postgresql=no
12767 support_smartalloc=yes
12768 support_readline=yes
12771 support_wx_console=no
12776 support_static_tools=no
12777 support_static_fd=no
12778 support_static_sd=no
12779 support_static_dir=no
12780 support_static_cons=no
12782 build_client_only=no
12790 # -------------------------------------------
12791 # gnome (default off)
12792 # -------------------------------------------
12793 # Check whether --enable-gnome or --disable-gnome was given.
12794 if test "${enable_gnome+set}" = set; then
12795 enableval="$enable_gnome"
12796 if test x$enableval = xyes; then
12802 if test x$support_gnome = xyes; then
12803 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12805 if test $pkg = 0; then
12806 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12807 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12808 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12809 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12814 GNOME_DIR=src/gnome2-console
12815 gnome_version="Version 2.x"
12817 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12818 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12819 { (exit 1); exit 1; }; }
12825 # -------------------------------------------
12826 # wx-console (default off)
12827 # -------------------------------------------
12828 # Check whether --enable-wx-console or --disable-wx-console was given.
12829 if test "${enable_wx_console+set}" = set; then
12830 enableval="$enable_wx_console"
12831 if test x$enableval = xyes; then
12832 support_wx_console=yes
12837 if test x$support_wx_console = xyes; then
12838 abc=`$WXCONFIG $WXFLAGS --cppflags`
12840 if test $pkg = 0; then
12841 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12842 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12843 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12847 WX_DIR=src/wx-console
12850 echo "wx-config program not found. wx-console disabled."
12852 support_wx_console=no
12858 # -------------------------------------------
12859 # tray-monitor (default off)
12860 # -------------------------------------------
12861 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12862 if test "${enable_tray_monitor+set}" = set; then
12863 enableval="$enable_tray_monitor"
12864 if test x$enableval = xyes; then
12865 support_tray_monitor=yes
12870 if test x$support_tray_monitor = xyes; then
12871 abc=`$PKGCONFIG --exists gtk+-2.0`
12873 if test $pkg = 0; then
12874 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12875 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12878 TRAY_MONITOR_DIR=src/tray-monitor
12879 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12881 if test $pkg = 0; then
12882 cat >>confdefs.h <<\_ACEOF
12883 #define HAVE_GTK_2_4 1
12891 # -------------------------------------------
12892 # smartalloc (default off)
12893 # -------------------------------------------
12894 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12895 if test "${enable_smartalloc+set}" = set; then
12896 enableval="$enable_smartalloc"
12897 if test x$enableval = xno; then
12898 support_smartalloc=no
12902 if test x$support_smartalloc = xyes; then
12903 cat >>confdefs.h <<\_ACEOF
12904 #define SMARTALLOC 1
12909 # -------------------------------------------
12910 # static-tools (default off)
12911 # -------------------------------------------
12912 # Check whether --enable-static-tools or --disable-static-tools was given.
12913 if test "${enable_static_tools+set}" = set; then
12914 enableval="$enable_static_tools"
12915 if test x$enableval = xyes; then
12916 support_static_tools=yes
12921 if test x$support_static_tools = xyes; then
12922 TTOOL_LDFLAGS="-static"
12926 # -------------------------------------------
12927 # static-fd (default off)
12928 # -------------------------------------------
12929 # Check whether --enable-static-fd or --disable-static-fd was given.
12930 if test "${enable_static_fd+set}" = set; then
12931 enableval="$enable_static_fd"
12932 if test x$enableval = xyes; then
12933 support_static_fd=yes
12938 if test x$support_static_fd = xyes; then
12939 STATIC_FD="static-bacula-fd"
12943 # -------------------------------------------
12944 # static-sd (default off)
12945 # -------------------------------------------
12946 # Check whether --enable-static-sd or --disable-static-sd was given.
12947 if test "${enable_static_sd+set}" = set; then
12948 enableval="$enable_static_sd"
12949 if test x$enableval = xyes; then
12950 support_static_sd=yes
12955 if test x$support_static_sd = xyes; then
12956 STATIC_SD="static-bacula-sd"
12960 # -------------------------------------------
12961 # static-dir (default off)
12962 # -------------------------------------------
12963 # Check whether --enable-static-dir or --disable-static-dir was given.
12964 if test "${enable_static_dir+set}" = set; then
12965 enableval="$enable_static_dir"
12966 if test x$enableval = xyes; then
12967 support_static_dir=yes
12972 if test x$support_static_dir = xyes; then
12973 STATIC_DIR="static-bacula-dir"
12977 # -------------------------------------------
12978 # static-cons (default off)
12979 # -------------------------------------------
12980 # Check whether --enable-static-cons or --disable-static-cons was given.
12981 if test "${enable_static_cons+set}" = set; then
12982 enableval="$enable_static_cons"
12983 if test x$enableval = xyes; then
12984 support_static_cons=yes
12991 if test x$support_static_cons = xyes; then
12992 STATIC_CONS="static-bconsole"
12993 STATIC_GNOME_CONS="static-gnome-console"
12994 STATIC_WX_CONS="static-wx-console"
13000 # -------------------------------------------
13001 # client_only (default off)
13002 # -------------------------------------------
13003 # Check whether --enable-client-only or --disable-client-only was given.
13004 if test "${enable_client_only+set}" = set; then
13005 enableval="$enable_client_only"
13006 if test x$enableval = xyes; then
13007 build_client_only=yes
13012 if test x$build_client_only = xno; then
13019 # -------------------------------------------
13020 # director (default on)
13021 # -------------------------------------------
13022 # Check whether --enable-build-dird or --disable-build-dird was given.
13023 if test "${enable_build_dird+set}" = set; then
13024 enableval="$enable_build_dird"
13025 if test x$enableval = xno; then
13029 if test x$build_dird = xyes; then
13030 DIRD_DIR="src/dird"
13031 DIR_TOOLS="DIRTOOLS"
13034 DIR_TOOLS="NODIRTOOLS"
13039 # -------------------------------------------
13040 # stored (default on)
13041 # -------------------------------------------
13042 # Check whether --enable-build-stored or --disable-build-stored was given.
13043 if test "${enable_build_stored+set}" = set; then
13044 enableval="$enable_build_stored"
13045 if test x$enableval = xno; then
13049 if test x$build_stored = xyes; then
13050 STORED_DIR="src/stored"
13056 # ---------------------------------------------------
13057 # Check for conio (Bacula readline substitute)(
13058 # ---------------------------------------------------
13059 # this allows you to turn it completely off
13060 # Check whether --enable-conio or --disable-conio was given.
13061 if test "${enable_conio+set}" = set; then
13062 enableval="$enable_conio"
13063 if test x$enableval = xno; then
13069 if test x$support_conio = xyes; then
13070 if test "${ac_cv_header_termcap_h+set}" = set; then
13071 echo "$as_me:$LINENO: checking for termcap.h" >&5
13072 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13073 if test "${ac_cv_header_termcap_h+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13077 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13079 # Is the header compilable?
13080 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13081 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 $ac_includes_default
13089 #include <termcap.h>
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_header_compiler=yes
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_header_compiler=no
13120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13122 echo "${ECHO_T}$ac_header_compiler" >&6
13124 # Is the header present?
13125 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13126 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 #include <termcap.h>
13135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13138 grep -v '^ *+' conftest.er1 >conftest.err
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } >/dev/null; then
13143 if test -s conftest.err; then
13144 ac_cpp_err=$ac_c_preproc_warn_flag
13145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13152 if test -z "$ac_cpp_err"; then
13153 ac_header_preproc=yes
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ac_header_preproc=no
13160 rm -f conftest.err conftest.$ac_ext
13161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13162 echo "${ECHO_T}$ac_header_preproc" >&6
13164 # So? What about this header?
13165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13167 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13168 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13170 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13171 ac_header_preproc=yes
13174 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13175 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13177 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13179 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13181 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13183 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13185 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13188 ## ------------------------------------------ ##
13189 ## Report this to the AC_PACKAGE_NAME lists. ##
13190 ## ------------------------------------------ ##
13193 sed "s/^/$as_me: WARNING: /" >&2
13196 echo "$as_me:$LINENO: checking for termcap.h" >&5
13197 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13198 if test "${ac_cv_header_termcap_h+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 ac_cv_header_termcap_h=$ac_header_preproc
13203 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13204 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13207 if test $ac_cv_header_termcap_h = yes; then
13208 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13209 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13210 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-ltermcap $LIBS"
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13222 /* Override any gcc2 internal prototype to avoid an error. */
13226 /* We use char because int might match the return type of a gcc2
13227 builtin and then its argument prototype would still apply. */
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_lib_termcap_tgetent=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_lib_termcap_tgetent=no
13266 rm -f conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13271 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13272 if test $ac_cv_lib_termcap_tgetent = yes; then
13273 CONS_LIBS="-ltermcap"
13277 support_readline=no
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_CONIO 1
13285 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13286 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13287 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 ac_check_lib_save_LIBS=$LIBS
13291 LIBS="-lncurses $LIBS"
13292 cat >conftest.$ac_ext <<_ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 /* Override any gcc2 internal prototype to avoid an error. */
13303 /* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag"
13324 || test ! -s conftest.err'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest$ac_exeext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_lib_ncurses_tgetent=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_cv_lib_ncurses_tgetent=no
13343 rm -f conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13347 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13348 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13349 if test $ac_cv_lib_ncurses_tgetent = yes; then
13350 CONS_LIBS="-lncurses"
13354 support_readline=no
13356 cat >>confdefs.h <<\_ACEOF
13357 #define HAVE_CONIO 1
13370 for ac_header in curses.h
13372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374 echo "$as_me:$LINENO: checking for $ac_header" >&5
13375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13382 # Is the header compilable?
13383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13385 cat >conftest.$ac_ext <<_ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 $ac_includes_default
13392 #include <$ac_header>
13394 rm -f conftest.$ac_objext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13396 (eval $ac_compile) 2>conftest.er1
13398 grep -v '^ *+' conftest.er1 >conftest.err
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag"
13404 || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest.$ac_objext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_header_compiler=yes
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ac_header_compiler=no
13423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13425 echo "${ECHO_T}$ac_header_compiler" >&6
13427 # Is the header present?
13428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436 #include <$ac_header>
13438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13441 grep -v '^ *+' conftest.er1 >conftest.err
13443 cat conftest.err >&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } >/dev/null; then
13446 if test -s conftest.err; then
13447 ac_cpp_err=$ac_c_preproc_warn_flag
13448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13455 if test -z "$ac_cpp_err"; then
13456 ac_header_preproc=yes
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13461 ac_header_preproc=no
13463 rm -f conftest.err conftest.$ac_ext
13464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13465 echo "${ECHO_T}$ac_header_preproc" >&6
13467 # So? What about this header?
13468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13474 ac_header_preproc=yes
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13491 ## ------------------------------------------ ##
13492 ## Report this to the AC_PACKAGE_NAME lists. ##
13493 ## ------------------------------------------ ##
13496 sed "s/^/$as_me: WARNING: /" >&2
13499 echo "$as_me:$LINENO: checking for $ac_header" >&5
13500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 eval "$as_ac_Header=\$ac_header_preproc"
13506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13511 cat >>confdefs.h <<_ACEOF
13512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13519 echo "$as_me:$LINENO: checking for term.h" >&5
13520 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13521 if test "${ac_cv_header_term_h+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13531 #include <curses.h>
13537 rm -f conftest.$ac_objext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>conftest.er1
13541 grep -v '^ *+' conftest.er1 >conftest.err
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -z "$ac_c_werror_flag"
13547 || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_header_term_h=yes
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_header_term_h=no
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13569 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13570 if test $ac_cv_header_term_h = yes; then
13571 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13572 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13573 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 ac_check_lib_save_LIBS=$LIBS
13577 LIBS="-lcurses $LIBS"
13578 cat >conftest.$ac_ext <<_ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13585 /* Override any gcc2 internal prototype to avoid an error. */
13589 /* We use char because int might match the return type of a gcc2
13590 builtin and then its argument prototype would still apply. */
13600 rm -f conftest.$ac_objext conftest$ac_exeext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602 (eval $ac_link) 2>conftest.er1
13604 grep -v '^ *+' conftest.er1 >conftest.err
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
13609 { ac_try='test -z "$ac_c_werror_flag"
13610 || test ! -s conftest.err'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest$ac_exeext'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13622 ac_cv_lib_curses_tgetent=yes
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13627 ac_cv_lib_curses_tgetent=no
13629 rm -f conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13631 LIBS=$ac_check_lib_save_LIBS
13633 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13634 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13635 if test $ac_cv_lib_curses_tgetent = yes; then
13636 CONS_LIBS="-lcurses"
13640 support_readline=no
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_CONIO 1
13651 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13662 # ---------------------------------------------------
13663 # Check for readline support/directory (default off)
13664 # ---------------------------------------------------
13665 # this allows you to turn it completely off
13666 # Check whether --enable-readline or --disable-readline was given.
13667 if test "${enable_readline+set}" = set; then
13668 enableval="$enable_readline"
13669 if test x$enableval = xno; then
13670 support_readline=no
13676 if test x$support_readline = xyes; then
13678 # Check whether --with-readline or --without-readline was given.
13679 if test "${with_readline+set}" = set; then
13680 withval="$with_readline"
13682 case "$with_readline" in
13685 if test -f ${with_readline}/readline.h; then
13686 CONS_INC="-I${with_readline}"
13687 CONS_LDFLAGS="-L$with_readline"
13688 elif test -f ${with_readline}/include/readline/readline.h; then
13689 CONS_INC="-I${with_readline}/include/readline"
13690 CONS_LDFLAGS="-L${with_readline}/lib"
13691 with_readline="${with_readline}/include/readline"
13693 with_readline="/usr/include/readline"
13695 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13697 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13698 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13705 # Is the header compilable?
13706 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13707 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 $ac_includes_default
13715 #include <${with_readline}/readline.h>
13717 rm -f conftest.$ac_objext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719 (eval $ac_compile) 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_header_compiler=yes
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_header_compiler=no
13746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13748 echo "${ECHO_T}$ac_header_compiler" >&6
13750 # Is the header present?
13751 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13752 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <${with_readline}/readline.h>
13761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13764 grep -v '^ *+' conftest.er1 >conftest.err
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } >/dev/null; then
13769 if test -s conftest.err; then
13770 ac_cpp_err=$ac_c_preproc_warn_flag
13771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13778 if test -z "$ac_cpp_err"; then
13779 ac_header_preproc=yes
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13784 ac_header_preproc=no
13786 rm -f conftest.err conftest.$ac_ext
13787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13788 echo "${ECHO_T}$ac_header_preproc" >&6
13790 # So? What about this header?
13791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13793 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13794 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13796 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13797 ac_header_preproc=yes
13800 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13801 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13803 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13805 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13807 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13814 ## ------------------------------------------ ##
13815 ## Report this to the AC_PACKAGE_NAME lists. ##
13816 ## ------------------------------------------ ##
13819 sed "s/^/$as_me: WARNING: /" >&2
13822 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13823 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 eval "$as_ac_Header=\$ac_header_preproc"
13829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13834 cat >>confdefs.h <<\_ACEOF
13835 #define HAVE_READLINE 1
13838 CONS_LIBS="-lreadline -lhistory -ltermcap"
13843 echo "readline.h not found. readline turned off ..."
13855 # check for standard readline library
13856 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13857 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13858 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13859 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13863 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13865 # Is the header compilable?
13866 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13867 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13875 #include </usr/include/readline/readline.h>
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879 (eval $ac_compile) 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_header_compiler=yes
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_header_compiler=no
13906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13908 echo "${ECHO_T}$ac_header_compiler" >&6
13910 # Is the header present?
13911 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13912 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 #include </usr/include/readline/readline.h>
13921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } >/dev/null; then
13929 if test -s conftest.err; then
13930 ac_cpp_err=$ac_c_preproc_warn_flag
13931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13938 if test -z "$ac_cpp_err"; then
13939 ac_header_preproc=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_header_preproc=no
13946 rm -f conftest.err conftest.$ac_ext
13947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13948 echo "${ECHO_T}$ac_header_preproc" >&6
13950 # So? What about this header?
13951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13953 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13954 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13956 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13957 ac_header_preproc=yes
13960 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13961 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13963 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13965 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13967 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13974 ## ------------------------------------------ ##
13975 ## Report this to the AC_PACKAGE_NAME lists. ##
13976 ## ------------------------------------------ ##
13979 sed "s/^/$as_me: WARNING: /" >&2
13982 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13983 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13984 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13989 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13990 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13993 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_READLINE 1
13999 CONS_INC="-I/usr/include/readline"
14000 CONS_LIBS="-lreadline -ltermcap"
14004 # Did not find standard library, so try Bacula's default
14005 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14008 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 # Is the header compilable?
14016 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14017 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 $ac_includes_default
14025 #include <${TOP_DIR}/depkgs/readline/readline.h>
14027 rm -f conftest.$ac_objext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029 (eval $ac_compile) 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag"
14037 || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_header_compiler=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_header_compiler=no
14056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14062 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 #include <${TOP_DIR}/depkgs/readline/readline.h>
14071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } >/dev/null; then
14079 if test -s conftest.err; then
14080 ac_cpp_err=$ac_c_preproc_warn_flag
14081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14088 if test -z "$ac_cpp_err"; then
14089 ac_header_preproc=yes
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_header_preproc=no
14096 rm -f conftest.err conftest.$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14103 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14106 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14107 ac_header_preproc=yes
14110 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14124 ## ------------------------------------------ ##
14125 ## Report this to the AC_PACKAGE_NAME lists. ##
14126 ## ------------------------------------------ ##
14129 sed "s/^/$as_me: WARNING: /" >&2
14132 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14133 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 eval "$as_ac_Header=\$ac_header_preproc"
14139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14144 cat >>confdefs.h <<\_ACEOF
14145 #define HAVE_READLINE 1
14149 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14150 CONS_LIBS="-lreadline -lhistory -ltermcap"
14151 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14152 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14156 echo "readline.h not found. readline turned off ..."
14182 # Minimal stuff for readline Makefile configuration
14185 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14186 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14187 if test "${ac_cv_header_stat_broken+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14197 #include <sys/stat.h>
14199 #if defined(S_ISBLK) && defined(S_IFDIR)
14200 # if S_ISBLK (S_IFDIR)
14205 #if defined(S_ISBLK) && defined(S_IFCHR)
14206 # if S_ISBLK (S_IFCHR)
14211 #if defined(S_ISLNK) && defined(S_IFREG)
14212 # if S_ISLNK (S_IFREG)
14217 #if defined(S_ISSOCK) && defined(S_IFREG)
14218 # if S_ISSOCK (S_IFREG)
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "You lose" >/dev/null 2>&1; then
14226 ac_cv_header_stat_broken=yes
14228 ac_cv_header_stat_broken=no
14233 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14234 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14235 if test $ac_cv_header_stat_broken = yes; then
14237 cat >>confdefs.h <<\_ACEOF
14238 #define STAT_MACROS_BROKEN 1
14248 ac_header_dirent=no
14249 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14250 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14251 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14252 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 cat >conftest.$ac_ext <<_ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 #include <sys/types.h>
14274 rm -f conftest.$ac_objext
14275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14276 (eval $ac_compile) 2>conftest.er1
14278 grep -v '^ *+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -z "$ac_c_werror_flag"
14284 || test ! -s conftest.err'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try='test -s conftest.$ac_objext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 eval "$as_ac_Header=yes"
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 eval "$as_ac_Header=no"
14303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308 cat >>confdefs.h <<_ACEOF
14309 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14312 ac_header_dirent=$ac_hdr; break
14316 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14317 if test $ac_header_dirent = dirent.h; then
14318 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14319 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14320 if test "${ac_cv_search_opendir+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 ac_func_search_save_LIBS=$LIBS
14324 ac_cv_search_opendir=no
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14332 /* Override any gcc2 internal prototype to avoid an error. */
14336 /* We use char because int might match the return type of a gcc2
14337 builtin and then its argument prototype would still apply. */
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_search_opendir="none required"
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14375 rm -f conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
14377 if test "$ac_cv_search_opendir" = no; then
14378 for ac_lib in dir; do
14379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any gcc2 internal prototype to avoid an error. */
14391 /* We use char because int might match the return type of a gcc2
14392 builtin and then its argument prototype would still apply. */
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -z "$ac_c_werror_flag"
14412 || test ! -s conftest.err'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; } &&
14418 { ac_try='test -s conftest$ac_exeext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_cv_search_opendir="-l$ac_lib"
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14431 rm -f conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext conftest.$ac_ext
14435 LIBS=$ac_func_search_save_LIBS
14437 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14438 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14439 if test "$ac_cv_search_opendir" != no; then
14440 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14445 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14447 if test "${ac_cv_search_opendir+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 ac_func_search_save_LIBS=$LIBS
14451 ac_cv_search_opendir=no
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14459 /* Override any gcc2 internal prototype to avoid an error. */
14463 /* We use char because int might match the return type of a gcc2
14464 builtin and then its argument prototype would still apply. */
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>conftest.er1
14478 grep -v '^ *+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest$ac_exeext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 ac_cv_search_opendir="none required"
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14502 rm -f conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 if test "$ac_cv_search_opendir" = no; then
14505 for ac_lib in x; do
14506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14507 cat >conftest.$ac_ext <<_ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h. */
14514 /* Override any gcc2 internal prototype to avoid an error. */
14518 /* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531 (eval $ac_link) 2>conftest.er1
14533 grep -v '^ *+' conftest.er1 >conftest.err
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try='test -z "$ac_c_werror_flag"
14539 || test ! -s conftest.err'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } &&
14545 { ac_try='test -s conftest$ac_exeext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_search_opendir="-l$ac_lib"
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14558 rm -f conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14562 LIBS=$ac_func_search_save_LIBS
14564 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14565 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14566 if test "$ac_cv_search_opendir" != no; then
14567 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14580 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14583 echo "$as_me:$LINENO: checking for $ac_func" >&5
14584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14585 if eval "test \"\${$as_ac_var+set}\" = set"; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14596 #define $ac_func innocuous_$ac_func
14598 /* System header to define __stub macros and hopefully few prototypes,
14599 which can conflict with char $ac_func (); below.
14600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14601 <limits.h> exists even on freestanding compilers. */
14604 # include <limits.h>
14606 # include <assert.h>
14611 /* Override any gcc2 internal prototype to avoid an error. */
14616 /* We use char because int might match the return type of a gcc2
14617 builtin and then its argument prototype would still apply. */
14619 /* The GNU C library defines this for functions which it implements
14620 to always fail with ENOSYS. Some functions are actually named
14621 something starting with __ and the normal name is an alias. */
14622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14625 char (*f) () = $ac_func;
14634 return f != $ac_func;
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641 (eval $ac_link) 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
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); }; } &&
14655 { ac_try='test -s conftest$ac_exeext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 eval "$as_ac_var=yes"
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 eval "$as_ac_var=no"
14668 rm -f conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14673 if test `eval echo '${'$as_ac_var'}'` = yes; then
14674 cat >>confdefs.h <<_ACEOF
14675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14683 for ac_func in nanosleep nl_langinfo
14685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14686 echo "$as_me:$LINENO: checking for $ac_func" >&5
14687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14688 if eval "test \"\${$as_ac_var+set}\" = set"; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14699 #define $ac_func innocuous_$ac_func
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char $ac_func (); below.
14703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14704 <limits.h> exists even on freestanding compilers. */
14707 # include <limits.h>
14709 # include <assert.h>
14714 /* Override any gcc2 internal prototype to avoid an error. */
14719 /* We use char because int might match the return type of a gcc2
14720 builtin and then its argument prototype would still apply. */
14722 /* The GNU C library defines this for functions which it implements
14723 to always fail with ENOSYS. Some functions are actually named
14724 something starting with __ and the normal name is an alias. */
14725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14728 char (*f) () = $ac_func;
14737 return f != $ac_func;
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 eval "$as_ac_var=yes"
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 eval "$as_ac_var=no"
14771 rm -f conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14785 for ac_header in varargs.h
14787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14789 echo "$as_me:$LINENO: checking for $ac_header" >&5
14790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14797 # Is the header compilable?
14798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14807 #include <$ac_header>
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811 (eval $ac_compile) 2>conftest.er1
14813 grep -v '^ *+' conftest.er1 >conftest.err
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_header_compiler=yes
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_header_compiler=no
14838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840 echo "${ECHO_T}$ac_header_compiler" >&6
14842 # Is the header present?
14843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14845 cat >conftest.$ac_ext <<_ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 #include <$ac_header>
14853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } >/dev/null; then
14861 if test -s conftest.err; then
14862 ac_cpp_err=$ac_c_preproc_warn_flag
14863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14870 if test -z "$ac_cpp_err"; then
14871 ac_header_preproc=yes
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14876 ac_header_preproc=no
14878 rm -f conftest.err conftest.$ac_ext
14879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880 echo "${ECHO_T}$ac_header_preproc" >&6
14882 # So? What about this header?
14883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14906 ## ------------------------------------------ ##
14907 ## Report this to the AC_PACKAGE_NAME lists. ##
14908 ## ------------------------------------------ ##
14911 sed "s/^/$as_me: WARNING: /" >&2
14914 echo "$as_me:$LINENO: checking for $ac_header" >&5
14915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 eval "$as_ac_Header=\$ac_header_preproc"
14921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926 cat >>confdefs.h <<_ACEOF
14927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14935 # End of readline/conio stuff
14936 # -----------------------------------------------------------------------
14938 # -----------------------------------------------------------------------
14939 # Check for Python support
14941 echo "$as_me:$LINENO: checking for Python support" >&5
14942 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14944 # Check whether --with-python or --without-python was given.
14945 if test "${with_python+set}" = set; then
14946 withval="$with_python"
14950 if test "$withval" != "no"; then
14951 if test "$withval" = "yes"; then
14952 for python_root in /usr /usr/local /usr/sfw; do
14953 if test -f $python_root/include/python2.2/Python.h; then
14954 PYTHON_INCDIR=-I$python_root/include/python2.2
14955 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14957 elif test -f $python_root/include/python2.3/Python.h; then
14958 PYTHON_INCDIR=-I$python_root/include/python2.3
14959 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14961 elif test -f $python_root/include/python2.4/Python.h; then
14962 PYTHON_INCDIR=-I$python_root/include/python2.4
14963 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14967 if test x$PYTHON_INCDIR = x; then
14968 if test -f $prefix/include/Python.h; then
14969 PYTHON_INCDIR=-I$prefix/include
14970 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14972 echo "$as_me:$LINENO: result: no" >&5
14973 echo "${ECHO_T}no" >&6
14974 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14975 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14976 { (exit 1); exit 1; }; }
14980 if test -f $withval/Python.h; then
14981 PYTHON_INCDIR=-I$withval
14982 PYTHON_LIBS="-L$withval/config -lpython"
14983 elif test -f $withval/include/Python.h; then
14984 PYTHON_INCDIR=-I$withval/include
14985 PYTHON_LIBS="-L$withval/lib/config -lpython"
14986 elif test -f $withval/include/python/Python.h; then
14987 PYTHON_INCDIR=-I$withval/include/python
14988 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14990 echo "$as_me:$LINENO: result: no" >&5
14991 echo "${ECHO_T}no" >&6
14992 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14993 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14994 { (exit 1); exit 1; }; }
14997 cat >>confdefs.h <<\_ACEOF
14998 #define HAVE_PYTHON 1
15001 echo "$as_me:$LINENO: result: yes" >&5
15002 echo "${ECHO_T}yes" >&6
15004 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15005 echo "$as_me: checking for more Python libs" >&6;}
15006 saved_LIBS="$LIBS"; LIBS=
15007 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15008 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15009 if test "${ac_cv_search_shm_open+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 ac_func_search_save_LIBS=$LIBS
15013 ac_cv_search_shm_open=no
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any gcc2 internal prototype to avoid an error. */
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag"
15046 || test ! -s conftest.err'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; } &&
15052 { ac_try='test -s conftest$ac_exeext'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_cv_search_shm_open="none required"
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15064 rm -f conftest.err conftest.$ac_objext \
15065 conftest$ac_exeext conftest.$ac_ext
15066 if test "$ac_cv_search_shm_open" = no; then
15067 for ac_lib in rt; do
15068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15076 /* Override any gcc2 internal prototype to avoid an error. */
15080 /* We use char because int might match the return type of a gcc2
15081 builtin and then its argument prototype would still apply. */
15091 rm -f conftest.$ac_objext conftest$ac_exeext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15093 (eval $ac_link) 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag"
15101 || test ! -s conftest.err'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; } &&
15107 { ac_try='test -s conftest$ac_exeext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_cv_search_shm_open="-l$ac_lib"
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15120 rm -f conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15124 LIBS=$ac_func_search_save_LIBS
15126 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15127 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15128 if test "$ac_cv_search_shm_open" != no; then
15129 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15134 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15135 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15136 if test "${ac_cv_lib_util_openpty+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 ac_check_lib_save_LIBS=$LIBS
15140 LIBS="-lutil $LIBS"
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15148 /* Override any gcc2 internal prototype to avoid an error. */
15152 /* We use char because int might match the return type of a gcc2
15153 builtin and then its argument prototype would still apply. */
15163 rm -f conftest.$ac_objext conftest$ac_exeext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15165 (eval $ac_link) 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try='test -z "$ac_c_werror_flag"
15173 || test ! -s conftest.err'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest$ac_exeext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 ac_cv_lib_util_openpty=yes
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 ac_cv_lib_util_openpty=no
15192 rm -f conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15194 LIBS=$ac_check_lib_save_LIBS
15196 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15197 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15198 if test $ac_cv_lib_util_openpty = yes; then
15199 cat >>confdefs.h <<_ACEOF
15200 #define HAVE_LIBUTIL 1
15203 LIBS="-lutil $LIBS"
15207 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15210 echo "$as_me:$LINENO: result: no" >&5
15211 echo "${ECHO_T}no" >&6
15216 echo "$as_me:$LINENO: result: no" >&5
15217 echo "${ECHO_T}no" >&6
15225 # Find where sockets are (especially for Solaris)
15226 # Do this before the TCP Wrappers test since tcp wrappers
15227 # uses the socket library and some linkers are stupid.
15229 echo "$as_me:$LINENO: checking for socket" >&5
15230 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15231 if test "${ac_cv_func_socket+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15242 #define socket innocuous_socket
15244 /* System header to define __stub macros and hopefully few prototypes,
15245 which can conflict with char socket (); below.
15246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15247 <limits.h> exists even on freestanding compilers. */
15250 # include <limits.h>
15252 # include <assert.h>
15257 /* Override any gcc2 internal prototype to avoid an error. */
15262 /* We use char because int might match the return type of a gcc2
15263 builtin and then its argument prototype would still apply. */
15265 /* The GNU C library defines this for functions which it implements
15266 to always fail with ENOSYS. Some functions are actually named
15267 something starting with __ and the normal name is an alias. */
15268 #if defined (__stub_socket) || defined (__stub___socket)
15271 char (*f) () = socket;
15280 return f != socket;
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287 (eval $ac_link) 2>conftest.er1
15289 grep -v '^ *+' conftest.er1 >conftest.err
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest$ac_exeext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_func_socket=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_cv_func_socket=no
15314 rm -f conftest.err conftest.$ac_objext \
15315 conftest$ac_exeext conftest.$ac_ext
15317 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15318 echo "${ECHO_T}$ac_cv_func_socket" >&6
15319 if test $ac_cv_func_socket = yes; then
15320 echo "$as_me:$LINENO: result: using libc's socket" >&5
15321 echo "${ECHO_T}using libc's socket" >&6
15324 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15325 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15326 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 ac_check_lib_save_LIBS=$LIBS
15330 LIBS="-lxnet $LIBS"
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15338 /* Override any gcc2 internal prototype to avoid an error. */
15342 /* We use char because int might match the return type of a gcc2
15343 builtin and then its argument prototype would still apply. */
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 (eval $ac_link) 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -z "$ac_c_werror_flag"
15363 || test ! -s conftest.err'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest$ac_exeext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 ac_cv_lib_xnet_socket=yes
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ac_cv_lib_xnet_socket=no
15382 rm -f conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 LIBS=$ac_check_lib_save_LIBS
15386 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15387 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15388 if test $ac_cv_lib_xnet_socket = yes; then
15389 cat >>confdefs.h <<_ACEOF
15390 #define HAVE_LIBXNET 1
15393 LIBS="-lxnet $LIBS"
15398 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15399 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15400 if test "${ac_cv_lib_socket_socket+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 ac_check_lib_save_LIBS=$LIBS
15404 LIBS="-lsocket $LIBS"
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15412 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15431 grep -v '^ *+' conftest.er1 >conftest.err
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -z "$ac_c_werror_flag"
15437 || test ! -s conftest.err'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest$ac_exeext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_lib_socket_socket=yes
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_cv_lib_socket_socket=no
15456 rm -f conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS
15460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15461 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15462 if test $ac_cv_lib_socket_socket = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_LIBSOCKET 1
15467 LIBS="-lsocket $LIBS"
15472 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15473 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15474 if test "${ac_cv_lib_inet_socket+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 ac_check_lib_save_LIBS=$LIBS
15478 LIBS="-linet $LIBS"
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15486 /* Override any gcc2 internal prototype to avoid an error. */
15490 /* We use char because int might match the return type of a gcc2
15491 builtin and then its argument prototype would still apply. */
15501 rm -f conftest.$ac_objext conftest$ac_exeext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15503 (eval $ac_link) 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest$ac_exeext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_lib_inet_socket=yes
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ac_cv_lib_inet_socket=no
15530 rm -f conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15534 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15535 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15536 if test $ac_cv_lib_inet_socket = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_LIBINET 1
15541 LIBS="-linet $LIBS"
15549 # -----------------------------------------------------------
15550 # Check whether user wants TCP wrappers support (default off)
15551 # -----------------------------------------------------------
15555 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15556 if test "${with_tcp_wrappers+set}" = set; then
15557 withval="$with_tcp_wrappers"
15559 if test "x$withval" != "xno" ; then
15561 LIBS="$saved_LIBS -lwrap"
15562 echo "$as_me:$LINENO: checking for libwrap" >&5
15563 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15564 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15565 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15566 if test "${ac_cv_search_nanosleep+set}" = set; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 ac_func_search_save_LIBS=$LIBS
15570 ac_cv_search_nanosleep=no
15571 cat >conftest.$ac_ext <<_ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15578 /* Override any gcc2 internal prototype to avoid an error. */
15582 /* We use char because int might match the return type of a gcc2
15583 builtin and then its argument prototype would still apply. */
15593 rm -f conftest.$ac_objext conftest$ac_exeext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15595 (eval $ac_link) 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag"
15603 || test ! -s conftest.err'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest$ac_exeext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_cv_search_nanosleep="none required"
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15621 rm -f conftest.err conftest.$ac_objext \
15622 conftest$ac_exeext conftest.$ac_ext
15623 if test "$ac_cv_search_nanosleep" = no; then
15624 for ac_lib in rt; do
15625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 /* Override any gcc2 internal prototype to avoid an error. */
15637 /* We use char because int might match the return type of a gcc2
15638 builtin and then its argument prototype would still apply. */
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_search_nanosleep="-l$ac_lib"
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15677 rm -f conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15681 LIBS=$ac_func_search_save_LIBS
15683 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15684 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15685 if test "$ac_cv_search_nanosleep" != no; then
15686 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 #include <sys/types.h>
15698 int deny_severity = 0;
15699 int allow_severity = 0;
15700 struct request_info *req;
15709 rm -f conftest.$ac_objext conftest$ac_exeext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15711 (eval $ac_link) 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag"
15719 || test ! -s conftest.err'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest$ac_exeext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15732 echo "$as_me:$LINENO: result: yes" >&5
15733 echo "${ECHO_T}yes" >&6
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_LIBWRAP 1
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15747 LIBS="$saved_LIBS -lwrap -lnsl"
15748 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 #include <sys/types.h>
15757 int deny_severity = 0;
15758 int allow_severity = 0;
15759 struct request_info *req;
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15770 (eval $ac_link) 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
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); }; } &&
15784 { ac_try='test -s conftest$ac_exeext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15791 echo "$as_me:$LINENO: result: yes" >&5
15792 echo "${ECHO_T}yes" >&6
15793 cat >>confdefs.h <<\_ACEOF
15794 #define HAVE_LIBWRAP 1
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15806 echo "$as_me: error: *** libwrap missing" >&2;}
15807 { (exit 1); exit 1; }; }
15810 rm -f conftest.err conftest.$ac_objext \
15811 conftest$ac_exeext conftest.$ac_ext
15814 rm -f conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15821 # -----------------------------------------------------------
15822 # Check whether OpenSSL is available
15823 # -----------------------------------------------------------
15824 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15825 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15827 # Check whether --with-openssl or --without-openssl was given.
15828 if test "${with_openssl+set}" = set; then
15829 withval="$with_openssl"
15830 with_openssl_directory=${withval}
15833 if test "x$with_openssl_directory" != "x"; then
15834 OPENSSL_LIBS="-lssl -lcrypto"
15837 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15838 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15839 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15843 saved_CFLAGS="$CFLAGS"
15844 LIBS="$saved_LIBS $OPENSSL_LIBS"
15845 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <openssl/ssl.h>
15857 CRYPTO_set_id_callback(NULL);
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>conftest.er1
15866 grep -v '^ *+' conftest.er1 >conftest.err
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest$ac_exeext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15886 support_crypto="yes"
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15895 rm -f conftest.err conftest.$ac_objext \
15896 conftest$ac_exeext conftest.$ac_ext
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 #include <openssl/evp.h>
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 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_openssl_sha2="yes"
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_cv_openssl_sha2="no"
15943 rm -f conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15947 CFLAGS="$saved_CFLAGS"
15949 if test "$support_tls" = "yes"; then
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_OPENSSL 1
15956 cat >>confdefs.h <<\_ACEOF
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_CRYPTO 1
15967 if test "$ac_cv_openssl_sha2" = "yes"; then
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_SHA2 1
15976 support_crypto="no"
15981 echo "$as_me:$LINENO: result: $support_tls" >&5
15982 echo "${ECHO_T}$support_tls" >&6
15987 # -----------------------------------------------------------
15988 # Python and OpenSSL are using dlopen
15989 # -----------------------------------------------------------
15991 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15992 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15993 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15994 if test "${ac_cv_search_dlopen+set}" = set; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 ac_func_search_save_LIBS=$LIBS
15998 ac_cv_search_dlopen=no
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16006 /* Override any gcc2 internal prototype to avoid an error. */
16010 /* We use char because int might match the return type of a gcc2
16011 builtin and then its argument prototype would still apply. */
16021 rm -f conftest.$ac_objext conftest$ac_exeext
16022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16023 (eval $ac_link) 2>conftest.er1
16025 grep -v '^ *+' conftest.er1 >conftest.err
16027 cat conftest.err >&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
16030 { ac_try='test -z "$ac_c_werror_flag"
16031 || test ! -s conftest.err'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest$ac_exeext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_search_dlopen="none required"
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16049 rm -f conftest.err conftest.$ac_objext \
16050 conftest$ac_exeext conftest.$ac_ext
16051 if test "$ac_cv_search_dlopen" = no; then
16052 for ac_lib in dl; do
16053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16061 /* Override any gcc2 internal prototype to avoid an error. */
16065 /* We use char because int might match the return type of a gcc2
16066 builtin and then its argument prototype would still apply. */
16076 rm -f conftest.$ac_objext conftest$ac_exeext
16077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16078 (eval $ac_link) 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
16085 { ac_try='test -z "$ac_c_werror_flag"
16086 || test ! -s conftest.err'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest$ac_exeext'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_search_dlopen="-l$ac_lib"
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16105 rm -f conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16109 LIBS=$ac_func_search_save_LIBS
16111 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16112 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16113 if test "$ac_cv_search_dlopen" != no; then
16114 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16120 # ------------------------------------------
16121 # Where to place working dir
16122 # ------------------------------------------
16123 working_dir=`eval echo ${prefix}/var/bacula/working`
16125 # Check whether --with-working-dir or --without-working-dir was given.
16126 if test "${with_working_dir+set}" = set; then
16127 withval="$with_working_dir"
16129 if test "x$withval" != "xno" ; then
16130 working_dir=$withval
16139 # ------------------------------------------
16140 # Where to place scriptdir (script files)
16141 # ------------------------------------------
16142 scriptdir=`eval echo ${sysconfdir}`
16144 # Check whether --with-scriptdir or --without-scriptdir was given.
16145 if test "${with_scriptdir+set}" = set; then
16146 withval="$with_scriptdir"
16148 if test "x$withval" != "xno" ; then
16158 # ------------------------------------------
16159 # Where to send dump email
16160 # ------------------------------------------
16161 dump_email=root@localhost
16163 # Check whether --with-dump-email or --without-dump-email was given.
16164 if test "${with_dump_email+set}" = set; then
16165 withval="$with_dump_email"
16167 if test "x$withval" != "xno" ; then
16168 dump_email=$withval
16176 # ------------------------------------------
16177 # Where to send job email
16178 # ------------------------------------------
16179 job_email=root@localhost
16181 # Check whether --with-job-email or --without-job-email was given.
16182 if test "${with_job_email+set}" = set; then
16183 withval="$with_job_email"
16185 if test "x$withval" != "xno" ; then
16194 # ------------------------------------------
16195 # Where to find smtp host
16196 # ------------------------------------------
16197 smtp_host=localhost
16199 # Check whether --with-smtp_host or --without-smtp_host was given.
16200 if test "${with_smtp_host+set}" = set; then
16201 withval="$with_smtp_host"
16203 if test "x$withval" != "xno" ; then
16213 # ------------------------------------
16214 # Where to place pid files
16215 # ------------------------------------
16218 # Check whether --with-pid-dir or --without-pid-dir was given.
16219 if test "${with_pid_dir+set}" = set; then
16220 withval="$with_pid_dir"
16222 if test "x$withval" != "xno" ; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define _PATH_BACULA_PIDDIR "$piddir"
16236 # ------------------------------------
16237 # Where to place subsys "lock file"
16238 # ------------------------------------
16239 subsysdir=/var/run/subsys
16241 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16242 if test "${with_subsys_dir+set}" = set; then
16243 withval="$with_subsys_dir"
16245 if test "x$withval" != "xno" ; then
16256 # ------------------------------------
16257 # Where to start assigning ports
16258 # ------------------------------------
16261 # Check whether --with-baseport or --without-baseport was given.
16262 if test "${with_baseport+set}" = set; then
16263 withval="$with_baseport"
16265 if test "x$withval" != "xno" ; then
16273 dir_port=`expr $baseport`
16274 fd_port=`expr $baseport + 1`
16275 sd_port=`expr $fd_port + 1`
16282 # ------------------------------------------
16283 # Generate passwords
16284 # ------------------------------------------
16287 # Check whether --with-dir-password or --without-dir-password was given.
16288 if test "${with_dir_password+set}" = set; then
16289 withval="$with_dir_password"
16291 if test "x$withval" != "xno" ; then
16292 dir_password=$withval
16298 if test "x$dir_password" = "x" ; then
16299 if test "x$OPENSSL" = "xnone" ; then
16300 key=`autoconf/randpass 33`
16302 key=`openssl rand -base64 33`
16309 # Check whether --with-fd-password or --without-fd-password was given.
16310 if test "${with_fd_password+set}" = set; then
16311 withval="$with_fd_password"
16313 if test "x$withval" != "xno" ; then
16314 fd_password=$withval
16320 if test "x$fd_password" = "x" ; then
16321 if test "x$OPENSSL" = "xnone" ; then
16322 key=`autoconf/randpass 37`
16324 key=`openssl rand -base64 33`
16331 # Check whether --with-sd-password or --without-sd-password was given.
16332 if test "${with_sd_password+set}" = set; then
16333 withval="$with_sd_password"
16335 if test "x$withval" != "xno" ; then
16336 sd_password=$withval
16342 if test "x$sd_password" = "x" ; then
16343 if test "x$OPENSSL" = "xnone" ; then
16344 key=`autoconf/randpass 41`
16346 key=`openssl rand -base64 33`
16353 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16354 if test "${with_mon_dir_password+set}" = set; then
16355 withval="$with_mon_dir_password"
16357 if test "x$withval" != "xno" ; then
16358 mon_dir_password=$withval
16364 if test "x$mon_dir_password" = "x" ; then
16365 if test "x$OPENSSL" = "xnone" ; then
16366 key=`autoconf/randpass 33`
16368 key=`openssl rand -base64 33`
16370 mon_dir_password=$key
16375 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16376 if test "${with_mon_fd_password+set}" = set; then
16377 withval="$with_mon_fd_password"
16379 if test "x$withval" != "xno" ; then
16380 mon_fd_password=$withval
16386 if test "x$mon_fd_password" = "x" ; then
16387 if test "x$OPENSSL" = "xnone" ; then
16388 key=`autoconf/randpass 37`
16390 key=`openssl rand -base64 33`
16392 mon_fd_password=$key
16397 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16398 if test "${with_mon_sd_password+set}" = set; then
16399 withval="$with_mon_sd_password"
16401 if test "x$withval" != "xno" ; then
16402 mon_sd_password=$withval
16408 if test "x$mon_sd_password" = "x" ; then
16409 if test "x$OPENSSL" = "xnone" ; then
16410 key=`autoconf/randpass 41`
16412 key=`openssl rand -base64 33`
16414 mon_sd_password=$key
16426 # Handle users and groups for each daemon
16430 # Check whether --with-dir_user or --without-dir_user was given.
16431 if test "${with_dir_user+set}" = set; then
16432 withval="$with_dir_user"
16434 if test "x$withval" != "x" ; then
16443 # Check whether --with-dir_group or --without-dir_group was given.
16444 if test "${with_dir_group+set}" = set; then
16445 withval="$with_dir_group"
16447 if test "x$withval" != "x" ; then
16456 # Check whether --with-sd_user or --without-sd_user was given.
16457 if test "${with_sd_user+set}" = set; then
16458 withval="$with_sd_user"
16460 if test "x$withval" != "x" ; then
16469 # Check whether --with-sd_group or --without-sd_group was given.
16470 if test "${with_sd_group+set}" = set; then
16471 withval="$with_sd_group"
16473 if test "x$withval" != "x" ; then
16482 # Check whether --with-fd_user or --without-fd_user was given.
16483 if test "${with_fd_user+set}" = set; then
16484 withval="$with_fd_user"
16486 if test "x$withval" != "x" ; then
16495 # Check whether --with-fd_group or --without-fd_group was given.
16496 if test "${with_fd_group+set}" = set; then
16497 withval="$with_fd_group"
16499 if test "x$withval" != "x" ; then
16517 # allow setting default executable permissions
16521 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16522 if test "${with_sbin_perm+set}" = set; then
16523 withval="$with_sbin_perm"
16525 if test "x$withval" != "x" ; then
16534 # ------------------------------------------------
16535 # Bacula check for various SQL database engines
16536 # ------------------------------------------------
16539 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16540 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16542 # Check whether --with-postgresql or --without-postgresql was given.
16543 if test "${with_postgresql+set}" = set; then
16544 withval="$with_postgresql"
16546 if test "$withval" != "no"; then
16547 if test "$db_found" = "yes"; then
16548 echo "$as_me:$LINENO: result: error" >&5
16549 echo "${ECHO_T}error" >&6
16550 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16551 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16552 { (exit 1); exit 1; }; };
16554 if test "$withval" = "yes"; then
16555 if test -f /usr/local/include/libpq-fe.h; then
16556 POSTGRESQL_INCDIR=/usr/local/include
16557 POSTGRESQL_LIBDIR=/usr/local/lib
16558 POSTGRESQL_BINDIR=/usr/local/bin
16559 elif test -f /usr/include/libpq-fe.h; then
16560 POSTGRESQL_INCDIR=/usr/include
16561 POSTGRESQL_LIBDIR=/usr/lib
16562 POSTGRESQL_BINDIR=/usr/bin
16563 elif test -f /usr/include/pgsql/libpq-fe.h; then
16564 POSTGRESQL_INCDIR=/usr/include/pgsql
16565 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16566 POSTGRESQL_BINDIR=/usr/bin
16567 elif test -f /usr/include/postgresql/libpq-fe.h; then
16568 POSTGRESQL_INCDIR=/usr/include/postgresql
16569 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16570 POSTGRESQL_BINDIR=/usr/bin
16572 echo "$as_me:$LINENO: result: no" >&5
16573 echo "${ECHO_T}no" >&6
16574 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16575 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16576 { (exit 1); exit 1; }; }
16578 elif test -f $withval/include/libpq-fe.h; then
16579 POSTGRESQL_INCDIR=$withval/include
16580 POSTGRESQL_LIBDIR=$withval/lib
16581 POSTGRESQL_BINDIR=$withval/bin
16582 elif test -f $withval/include/postgresql/libpq-fe.h; then
16583 POSTGRESQL_INCDIR=$withval/include/postgresql
16584 POSTGRESQL_LIBDIR=$withval/lib
16585 POSTGRESQL_BINDIR=$withval/bin
16587 echo "$as_me:$LINENO: result: no" >&5
16588 echo "${ECHO_T}no" >&6
16589 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16590 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16591 { (exit 1); exit 1; }; }
16593 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16594 echo "$as_me:$LINENO: checking for crypt" >&5
16595 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16596 if test "${ac_cv_func_crypt+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16607 #define crypt innocuous_crypt
16609 /* System header to define __stub macros and hopefully few prototypes,
16610 which can conflict with char crypt (); below.
16611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16612 <limits.h> exists even on freestanding compilers. */
16615 # include <limits.h>
16617 # include <assert.h>
16622 /* Override any gcc2 internal prototype to avoid an error. */
16627 /* We use char because int might match the return type of a gcc2
16628 builtin and then its argument prototype would still apply. */
16630 /* The GNU C library defines this for functions which it implements
16631 to always fail with ENOSYS. Some functions are actually named
16632 something starting with __ and the normal name is an alias. */
16633 #if defined (__stub_crypt) || defined (__stub___crypt)
16636 char (*f) () = crypt;
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag"
16660 || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_func_crypt=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_func_crypt=no
16679 rm -f conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16682 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16683 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16684 if test $ac_cv_func_crypt = yes; then
16687 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16688 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16689 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 ac_check_lib_save_LIBS=$LIBS
16693 LIBS="-lcrypt $LIBS"
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16701 /* Override any gcc2 internal prototype to avoid an error. */
16705 /* We use char because int might match the return type of a gcc2
16706 builtin and then its argument prototype would still apply. */
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16718 (eval $ac_link) 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag"
16726 || test ! -s conftest.err'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_cv_lib_crypt_crypt=yes
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 ac_cv_lib_crypt_crypt=no
16745 rm -f conftest.err conftest.$ac_objext \
16746 conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16749 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16750 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16751 if test $ac_cv_lib_crypt_crypt = yes; then
16752 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16757 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16758 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16759 SQL_BINDIR=$POSTGRESQL_BINDIR
16760 cat >>confdefs.h <<\_ACEOF
16761 #define HAVE_POSTGRESQL 1
16764 echo "$as_me:$LINENO: result: yes" >&5
16765 echo "${ECHO_T}yes" >&6
16767 support_postgresql=yes
16771 echo "$as_me:$LINENO: result: no" >&5
16772 echo "${ECHO_T}no" >&6
16777 echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6
16789 echo "$as_me:$LINENO: checking for MySQL support" >&5
16790 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16792 # Check whether --with-mysql or --without-mysql was given.
16793 if test "${with_mysql+set}" = set; then
16794 withval="$with_mysql"
16796 if test "$withval" != "no"; then
16797 if test "$withval" = "yes"; then
16798 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16799 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16800 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16801 MYSQL_BINDIR=/usr/local/mysql/bin
16802 elif test -f /usr/include/mysql/mysql.h; then
16803 MYSQL_INCDIR=/usr/include/mysql
16804 MYSQL_LIBDIR=/usr/lib/mysql
16805 MYSQL_BINDIR=/usr/bin
16806 elif test -f /usr/include/mysql.h; then
16807 MYSQL_INCDIR=/usr/include
16808 MYSQL_LIBDIR=/usr/lib
16809 MYSQL_BINDIR=/usr/bin
16810 elif test -f /usr/local/include/mysql/mysql.h; then
16811 MYSQL_INCDIR=/usr/local/include/mysql
16812 MYSQL_LIBDIR=/usr/local/lib/mysql
16813 MYSQL_BINDIR=/usr/local/bin
16814 elif test -f /usr/local/include/mysql.h; then
16815 MYSQL_INCDIR=/usr/local/include
16816 MYSQL_LIBDIR=/usr/local/lib
16817 MYSQL_BINDIR=/usr/local/bin
16819 echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6
16821 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16822 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16823 { (exit 1); exit 1; }; }
16826 if test -f $withval/include/mysql/mysql.h; then
16827 MYSQL_INCDIR=$withval/include/mysql
16828 MYSQL_LIBDIR=$withval/lib/mysql
16829 MYSQL_BINDIR=$withval/bin
16830 elif test -f $withval/include/mysql.h; then
16831 MYSQL_INCDIR=$withval/include
16832 MYSQL_LIBDIR=$withval/lib
16833 MYSQL_BINDIR=$withval/bin
16835 echo "$as_me:$LINENO: result: no" >&5
16836 echo "${ECHO_T}no" >&6
16837 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16838 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16839 { (exit 1); exit 1; }; }
16842 SQL_INCLUDE=-I$MYSQL_INCDIR
16843 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16844 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16845 cat >>confdefs.h <<\_ACEOF
16846 #define HAVE_THREAD_SAFE_MYSQL 1
16850 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16852 SQL_BINDIR=$MYSQL_BINDIR
16854 cat >>confdefs.h <<\_ACEOF
16855 #define HAVE_MYSQL 1
16858 echo "$as_me:$LINENO: result: yes" >&5
16859 echo "${ECHO_T}yes" >&6
16866 echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6
16874 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16875 if test "${with_embedded_mysql+set}" = set; then
16876 withval="$with_embedded_mysql"
16878 if test "$withval" != "no"; then
16879 if test "$withval" = "yes"; then
16880 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16881 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16882 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16883 MYSQL_BINDIR=/usr/local/mysql/bin
16884 elif test -f /usr/include/mysql/mysql.h; then
16885 MYSQL_INCDIR=/usr/include/mysql
16886 MYSQL_LIBDIR=/usr/lib/mysql
16887 MYSQL_BINDIR=/usr/bin
16888 elif test -f /usr/include/mysql.h; then
16889 MYSQL_INCDIR=/usr/include
16890 MYSQL_LIBDIR=/usr/lib
16891 MYSQL_BINDIR=/usr/bin
16892 elif test -f /usr/local/include/mysql/mysql.h; then
16893 MYSQL_INCDIR=/usr/local/include/mysql
16894 MYSQL_LIBDIR=/usr/local/lib/mysql
16895 MYSQL_BINDIR=/usr/local/bin
16896 elif test -f /usr/local/include/mysql.h; then
16897 MYSQL_INCDIR=/usr/local/include
16898 MYSQL_LIBDIR=/usr/local/lib
16899 MYSQL_BINDIR=/usr/local/bin
16901 echo "$as_me:$LINENO: result: no" >&5
16902 echo "${ECHO_T}no" >&6
16903 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16904 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16905 { (exit 1); exit 1; }; }
16908 if test -f $withval/include/mysql/mysql.h; then
16909 MYSQL_INCDIR=$withval/include/mysql
16910 MYSQL_LIBDIR=$withval/lib/mysql
16911 MYSQL_BINDIR=$withval/bin
16912 elif test -f $withval/include/mysql.h; then
16913 MYSQL_INCDIR=$withval/include
16914 MYSQL_LIBDIR=$withval/lib
16915 MYSQL_BINDIR=$withval/bin
16917 echo "$as_me:$LINENO: result: no" >&5
16918 echo "${ECHO_T}no" >&6
16919 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16920 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16921 { (exit 1); exit 1; }; }
16924 SQL_INCLUDE=-I$MYSQL_INCDIR
16925 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16926 SQL_BINDIR=$MYSQL_BINDIR
16928 cat >>confdefs.h <<\_ACEOF
16929 #define HAVE_MYSQL 1
16932 cat >>confdefs.h <<\_ACEOF
16933 #define HAVE_EMBEDDED_MYSQL 1
16936 echo "$as_me:$LINENO: result: yes" >&5
16937 echo "${ECHO_T}yes" >&6
16944 echo "$as_me:$LINENO: result: no" >&5
16945 echo "${ECHO_T}no" >&6
16960 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16961 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16963 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16964 if test "${with_sqlite3+set}" = set; then
16965 withval="$with_sqlite3"
16967 if test "$withval" != "no"; then
16968 if test "$withval" = "yes"; then
16969 if test -f /usr/local/include/sqlite3.h; then
16970 SQLITE_INCDIR=/usr/local/include
16971 SQLITE_LIBDIR=/usr/local/lib
16972 SQLITE_BINDIR=/usr/local/bin
16973 elif test -f /usr/include/sqlite3.h; then
16974 SQLITE_INCDIR=/usr/include
16975 SQLITE_LIBDIR=/usr/lib
16976 SQLITE_BINDIR=/usr/bin
16977 elif test -f $prefix/include/sqlite3.h; then
16978 SQLITE_INCDIR=$prefix/include
16979 SQLITE_LIBDIR=$prefix/lib
16980 SQLITE_BINDIR=$prefix/bin
16982 echo "$as_me:$LINENO: result: no" >&5
16983 echo "${ECHO_T}no" >&6
16984 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16985 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16986 { (exit 1); exit 1; }; }
16989 if test -f $withval/sqlite3.h; then
16990 SQLITE_INCDIR=$withval
16991 SQLITE_LIBDIR=$withval
16992 SQLITE_BINDIR=$withval
16993 elif test -f $withval/include/sqlite3.h; then
16994 SQLITE_INCDIR=$withval/include
16995 SQLITE_LIBDIR=$withval/lib
16996 SQLITE_BINDIR=$withval/bin
16998 echo "$as_me:$LINENO: result: no" >&5
16999 echo "${ECHO_T}no" >&6
17000 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17001 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17002 { (exit 1); exit 1; }; }
17005 SQL_INCLUDE=-I$SQLITE_INCDIR
17006 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17007 SQL_BINDIR=$SQLITE_BINDIR
17009 cat >>confdefs.h <<\_ACEOF
17010 #define HAVE_SQLITE3 1
17013 echo "$as_me:$LINENO: result: yes" >&5
17014 echo "${ECHO_T}yes" >&6
17016 support_sqlite3=yes
17021 echo "$as_me:$LINENO: result: no" >&5
17022 echo "${ECHO_T}no" >&6
17027 echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17039 echo "$as_me:$LINENO: checking for SQLite support" >&5
17040 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17042 # Check whether --with-sqlite or --without-sqlite was given.
17043 if test "${with_sqlite+set}" = set; then
17044 withval="$with_sqlite"
17046 if test "$withval" != "no"; then
17047 if test "$withval" = "yes"; then
17048 if test -f /usr/local/include/sqlite.h; then
17049 SQLITE_INCDIR=/usr/local/include
17050 SQLITE_LIBDIR=/usr/local/lib
17051 SQLITE_BINDIR=/usr/local/bin
17052 elif test -f /usr/include/sqlite.h; then
17053 SQLITE_INCDIR=/usr/include
17054 SQLITE_LIBDIR=/usr/lib
17055 SQLITE_BINDIR=/usr/bin
17056 elif test -f $prefix/include/sqlite.h; then
17057 SQLITE_INCDIR=$prefix/include
17058 SQLITE_LIBDIR=$prefix/lib
17059 SQLITE_BINDIR=$prefix/bin
17061 echo "$as_me:$LINENO: result: no" >&5
17062 echo "${ECHO_T}no" >&6
17063 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17064 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17065 { (exit 1); exit 1; }; }
17068 if test -f $withval/sqlite.h; then
17069 SQLITE_INCDIR=$withval
17070 SQLITE_LIBDIR=$withval
17071 SQLITE_BINDIR=$withval
17072 elif test -f $withval/include/sqlite.h; then
17073 SQLITE_INCDIR=$withval/include
17074 SQLITE_LIBDIR=$withval/lib
17075 SQLITE_BINDIR=$withval/bin
17077 echo "$as_me:$LINENO: result: no" >&5
17078 echo "${ECHO_T}no" >&6
17079 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17080 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17081 { (exit 1); exit 1; }; }
17084 SQL_INCLUDE=-I$SQLITE_INCDIR
17085 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17086 SQL_BINDIR=$SQLITE_BINDIR
17088 cat >>confdefs.h <<\_ACEOF
17089 #define HAVE_SQLITE 1
17092 echo "$as_me:$LINENO: result: yes" >&5
17093 echo "${ECHO_T}yes" >&6
17100 echo "$as_me:$LINENO: result: no" >&5
17101 echo "${ECHO_T}no" >&6
17106 echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17119 cat >>confdefs.h <<\_ACEOF
17120 #define PROTOTYPES 1
17124 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17125 if test -z "$CCOPTS"; then
17126 CCOPTS='-g -O2 -Wall'
17134 largefile_support="no"
17136 # Check whether --enable-largefile or --disable-largefile was given.
17137 if test "${enable_largefile+set}" = set; then
17138 enableval="$enable_largefile"
17141 if test "$enable_largefile" != no; then
17142 if test -n "$ac_tool_prefix"; then
17143 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17144 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17145 echo "$as_me:$LINENO: checking for $ac_word" >&5
17146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17147 if test "${ac_cv_prog_GETCONF+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 if test -n "$GETCONF"; then
17151 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17154 for as_dir in $PATH
17157 test -z "$as_dir" && as_dir=.
17158 for ac_exec_ext in '' $ac_executable_extensions; do
17159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17160 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17169 GETCONF=$ac_cv_prog_GETCONF
17170 if test -n "$GETCONF"; then
17171 echo "$as_me:$LINENO: result: $GETCONF" >&5
17172 echo "${ECHO_T}$GETCONF" >&6
17174 echo "$as_me:$LINENO: result: no" >&5
17175 echo "${ECHO_T}no" >&6
17179 if test -z "$ac_cv_prog_GETCONF"; then
17180 ac_ct_GETCONF=$GETCONF
17181 # Extract the first word of "getconf", so it can be a program name with args.
17182 set dummy getconf; ac_word=$2
17183 echo "$as_me:$LINENO: checking for $ac_word" >&5
17184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17185 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 if test -n "$ac_ct_GETCONF"; then
17189 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17192 for as_dir in $PATH
17195 test -z "$as_dir" && as_dir=.
17196 for ac_exec_ext in '' $ac_executable_extensions; do
17197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17198 ac_cv_prog_ac_ct_GETCONF="getconf"
17199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17207 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17208 if test -n "$ac_ct_GETCONF"; then
17209 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17210 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17212 echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6
17216 GETCONF=$ac_ct_GETCONF
17218 GETCONF="$ac_cv_prog_GETCONF"
17221 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17222 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17223 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17227 ac_cv_sys_largefile_CFLAGS=no
17229 # IRIX 6.2 and later require cc -n32.
17230 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17231 if test "$GCC" != yes; then
17232 ac_cv_sys_largefile_CFLAGS=-n32
17235 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_sys_largefile_CFLAGS=no
17280 rm -f conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17286 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17287 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17288 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17289 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17290 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17294 ac_cv_sys_largefile_LDFLAGS=no
17298 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17299 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17300 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17301 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17302 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17306 ac_cv_sys_largefile_LIBS=no
17310 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17311 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17313 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17316 -D_FILE_OFFSET_BITS=*) ;;
17317 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17318 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17323 case "$CPPFLAGS" in
17324 '') CPPFLAGS="$ac_flag" ;;
17325 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17333 '') CFLAGS="$ac_flag" ;;
17334 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17339 case "$ac_cv_sys_largefile_LDFLAGS" in
17343 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17344 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17347 case "$ac_cv_sys_largefile_LIBS" in
17351 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17352 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17355 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17356 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17357 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 ac_cv_sys_file_offset_bits=no
17361 ac_cv_sys_file_offset_bits=64
17362 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17364 -D_FILE_OFFSET_BITS)
17365 ac_cv_sys_file_offset_bits=1 ;;
17366 -D_FILE_OFFSET_BITS=*)
17367 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17372 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17373 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17374 if test "$ac_cv_sys_file_offset_bits" != no; then
17376 cat >>confdefs.h <<_ACEOF
17377 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17381 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17382 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17383 if test "${ac_cv_sys_largefile_source+set}" = set; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 ac_cv_sys_largefile_source=no
17387 ac_cv_sys_largefile_source=1
17388 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17390 -D_LARGEFILE_SOURCE)
17391 ac_cv_sys_largefile_source=1 ;;
17392 -D_LARGEFILE_SOURCE=*)
17393 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17398 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17399 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17400 if test "$ac_cv_sys_largefile_source" != no; then
17402 cat >>confdefs.h <<_ACEOF
17403 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17407 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17408 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17409 if test "${ac_cv_sys_large_files+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 ac_cv_sys_large_files=no
17413 ac_cv_sys_large_files=1
17414 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17417 ac_cv_sys_large_files=1 ;;
17419 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17424 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17425 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17426 if test "$ac_cv_sys_large_files" != no; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define _LARGE_FILES $ac_cv_sys_large_files
17437 echo "$as_me:$LINENO: checking for X" >&5
17438 echo $ECHO_N "checking for X... $ECHO_C" >&6
17441 # Check whether --with-x or --without-x was given.
17442 if test "${with_x+set}" = set; then
17446 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17447 if test "x$with_x" = xno; then
17448 # The user explicitly disabled X.
17451 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17452 # Both variables are already set.
17455 if test "${ac_cv_have_x+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 # One or both of the vars are not set, and there is no cached value.
17459 ac_x_includes=no ac_x_libraries=no
17460 rm -fr conftest.dir
17461 if mkdir conftest.dir; then
17463 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17464 cat >Imakefile <<'_ACEOF'
17466 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17468 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17469 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17470 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17471 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17472 for ac_extension in a so sl; do
17473 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17474 test -f $ac_im_libdir/libX11.$ac_extension; then
17475 ac_im_usrlibdir=$ac_im_libdir; break
17478 # Screen out bogus values from the imake configuration. They are
17479 # bogus both because they are the default anyway, and because
17480 # using them would break gcc on systems where it needs fixed includes.
17481 case $ac_im_incroot in
17483 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17485 case $ac_im_usrlibdir in
17486 /usr/lib | /lib) ;;
17487 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17491 rm -fr conftest.dir
17494 # Standard set of common directories for X headers.
17495 # Check X11 before X11Rn because it is often a symlink to the current release.
17507 /usr/local/X11/include
17508 /usr/local/X11R6/include
17509 /usr/local/X11R5/include
17510 /usr/local/X11R4/include
17512 /usr/local/include/X11
17513 /usr/local/include/X11R6
17514 /usr/local/include/X11R5
17515 /usr/local/include/X11R4
17519 /usr/XFree86/include/X11
17523 /usr/unsupported/include
17524 /usr/athena/include
17525 /usr/local/x11r5/include
17526 /usr/lpp/Xamples/include
17528 /usr/openwin/include
17529 /usr/openwin/share/include'
17531 if test "$ac_x_includes" = no; then
17532 # Guess where to find include files, by looking for Intrinsic.h.
17533 # First, try using that file with no special directory specified.
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 #include <X11/Intrinsic.h>
17542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } >/dev/null; then
17550 if test -s conftest.err; then
17551 ac_cpp_err=$ac_c_preproc_warn_flag
17552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17559 if test -z "$ac_cpp_err"; then
17560 # We can compile using X headers with no special include directory.
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 for ac_dir in $ac_x_header_dirs; do
17567 if test -r "$ac_dir/X11/Intrinsic.h"; then
17568 ac_x_includes=$ac_dir
17573 rm -f conftest.err conftest.$ac_ext
17574 fi # $ac_x_includes = no
17576 if test "$ac_x_libraries" = no; then
17577 # Check for the libraries.
17578 # See if we find them without any special options.
17579 # Don't add to $LIBS permanently.
17582 cat >conftest.$ac_ext <<_ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h. */
17588 #include <X11/Intrinsic.h>
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599 (eval $ac_link) 2>conftest.er1
17601 grep -v '^ *+' conftest.er1 >conftest.err
17603 cat conftest.err >&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -z "$ac_c_werror_flag"
17607 || test ! -s conftest.err'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17620 # We can link X programs with no special library path.
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17627 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17629 # Don't even attempt the hair of trying to link an X program!
17630 for ac_extension in a so sl; do
17631 if test -r $ac_dir/libXt.$ac_extension; then
17632 ac_x_libraries=$ac_dir
17638 rm -f conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 fi # $ac_x_libraries = no
17642 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17643 # Didn't find X anywhere. Cache the known absence of X.
17644 ac_cv_have_x="have_x=no"
17646 # Record where we found X for the cache.
17647 ac_cv_have_x="have_x=yes \
17648 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17653 eval "$ac_cv_have_x"
17656 if test "$have_x" != yes; then
17657 echo "$as_me:$LINENO: result: $have_x" >&5
17658 echo "${ECHO_T}$have_x" >&6
17661 # If each of the values was on the command line, it overrides each guess.
17662 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17663 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17664 # Update the cache value to reflect the command line values.
17665 ac_cv_have_x="have_x=yes \
17666 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17667 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17668 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17671 if test "$no_x" = yes; then
17672 # Not all programs may use this symbol, but it does not hurt to define it.
17674 cat >>confdefs.h <<\_ACEOF
17675 #define X_DISPLAY_MISSING 1
17678 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17680 if test -n "$x_includes"; then
17681 X_CFLAGS="$X_CFLAGS -I$x_includes"
17684 # It would also be nice to do this for all -L options, not just this one.
17685 if test -n "$x_libraries"; then
17686 X_LIBS="$X_LIBS -L$x_libraries"
17687 # For Solaris; some versions of Sun CC require a space after -R and
17688 # others require no space. Words are not sufficient . . . .
17689 case `(uname -sr) 2>/dev/null` in
17691 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17692 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17693 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17694 cat >conftest.$ac_ext <<_ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17711 (eval $ac_link) 2>conftest.er1
17713 grep -v '^ *+' conftest.er1 >conftest.err
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag"
17719 || test ! -s conftest.err'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest$ac_exeext'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17738 rm -f conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
17740 if test $ac_R_nospace = yes; then
17741 echo "$as_me:$LINENO: result: no" >&5
17742 echo "${ECHO_T}no" >&6
17743 X_LIBS="$X_LIBS -R$x_libraries"
17745 LIBS="$ac_xsave_LIBS -R $x_libraries"
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17761 rm -f conftest.$ac_objext conftest$ac_exeext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17763 (eval $ac_link) 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest$ac_exeext'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17785 echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17790 rm -f conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
17792 if test $ac_R_space = yes; then
17793 echo "$as_me:$LINENO: result: yes" >&5
17794 echo "${ECHO_T}yes" >&6
17795 X_LIBS="$X_LIBS -R $x_libraries"
17797 echo "$as_me:$LINENO: result: neither works" >&5
17798 echo "${ECHO_T}neither works" >&6
17801 LIBS=$ac_xsave_LIBS
17805 # Check for system-dependent libraries X programs must link with.
17806 # Do this before checking for the system-independent R6 libraries
17807 # (-lICE), since we may need -lsocket or whatever for X linking.
17809 if test "$ISC" = yes; then
17810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17812 # Martyn Johnson says this is needed for Ultrix, if the X
17813 # libraries were built with DECnet support. And Karl Berry says
17814 # the Alpha needs dnet_stub (dnet does not exist).
17815 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17823 /* Override any gcc2 internal prototype to avoid an error. */
17827 /* We use char because int might match the return type of a gcc2
17828 builtin and then its argument prototype would still apply. */
17829 char XOpenDisplay ();
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17840 (eval $ac_link) 2>conftest.er1
17842 grep -v '^ *+' conftest.er1 >conftest.err
17844 cat conftest.err >&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -z "$ac_c_werror_flag"
17848 || test ! -s conftest.err'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; }; then
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17866 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17867 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-ldnet $LIBS"
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17879 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>conftest.er1
17898 grep -v '^ *+' conftest.er1 >conftest.err
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
17903 { ac_try='test -z "$ac_c_werror_flag"
17904 || test ! -s conftest.err'
17905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906 (eval $ac_try) 2>&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; }; then
17916 ac_cv_lib_dnet_dnet_ntoa=yes
17918 echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_cv_lib_dnet_dnet_ntoa=no
17923 rm -f conftest.err conftest.$ac_objext \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17927 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17928 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17929 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17930 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17933 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17934 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17935 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17936 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-ldnet_stub $LIBS"
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17948 /* Override any gcc2 internal prototype to avoid an error. */
17952 /* We use char because int might match the return type of a gcc2
17953 builtin and then its argument prototype would still apply. */
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965 (eval $ac_link) 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_lib_dnet_stub_dnet_ntoa=no
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17996 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17997 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17998 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
17999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18004 rm -f conftest.err conftest.$ac_objext \
18005 conftest$ac_exeext conftest.$ac_ext
18006 LIBS="$ac_xsave_LIBS"
18008 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18009 # to get the SysV transport functions.
18010 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18012 # The nsl library prevents programs from opening the X display
18013 # on Irix 5.2, according to T.E. Dickey.
18014 # The functions gethostbyname, getservbyname, and inet_addr are
18015 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18016 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18017 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18018 if test "${ac_cv_func_gethostbyname+set}" = set; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18029 #define gethostbyname innocuous_gethostbyname
18031 /* System header to define __stub macros and hopefully few prototypes,
18032 which can conflict with char gethostbyname (); below.
18033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18034 <limits.h> exists even on freestanding compilers. */
18037 # include <limits.h>
18039 # include <assert.h>
18042 #undef gethostbyname
18044 /* Override any gcc2 internal prototype to avoid an error. */
18049 /* We use char because int might match the return type of a gcc2
18050 builtin and then its argument prototype would still apply. */
18051 char gethostbyname ();
18052 /* The GNU C library defines this for functions which it implements
18053 to always fail with ENOSYS. Some functions are actually named
18054 something starting with __ and the normal name is an alias. */
18055 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18058 char (*f) () = gethostbyname;
18067 return f != gethostbyname;
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074 (eval $ac_link) 2>conftest.er1
18076 grep -v '^ *+' conftest.er1 >conftest.err
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
18081 { ac_try='test -z "$ac_c_werror_flag"
18082 || test ! -s conftest.err'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest$ac_exeext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_func_gethostbyname=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_func_gethostbyname=no
18101 rm -f conftest.err conftest.$ac_objext \
18102 conftest$ac_exeext conftest.$ac_ext
18104 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18105 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18107 if test $ac_cv_func_gethostbyname = no; then
18108 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18109 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18110 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 ac_check_lib_save_LIBS=$LIBS
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18122 /* Override any gcc2 internal prototype to avoid an error. */
18126 /* We use char because int might match the return type of a gcc2
18127 builtin and then its argument prototype would still apply. */
18128 char gethostbyname ();
18137 rm -f conftest.$ac_objext conftest$ac_exeext
18138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18139 (eval $ac_link) 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_c_werror_flag"
18147 || test ! -s conftest.err'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; } &&
18153 { ac_try='test -s conftest$ac_exeext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 ac_cv_lib_nsl_gethostbyname=yes
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_cv_lib_nsl_gethostbyname=no
18166 rm -f conftest.err conftest.$ac_objext \
18167 conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18170 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18171 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18172 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18176 if test $ac_cv_lib_nsl_gethostbyname = no; then
18177 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18178 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18179 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 ac_check_lib_save_LIBS=$LIBS
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18191 /* Override any gcc2 internal prototype to avoid an error. */
18195 /* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18197 char gethostbyname ();
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208 (eval $ac_link) 2>conftest.er1
18210 grep -v '^ *+' conftest.er1 >conftest.err
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
18215 { ac_try='test -z "$ac_c_werror_flag"
18216 || test ! -s conftest.err'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 ac_cv_lib_bsd_gethostbyname=yes
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18233 ac_cv_lib_bsd_gethostbyname=no
18235 rm -f conftest.err conftest.$ac_objext \
18236 conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18239 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18240 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18241 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18248 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18249 # socket/setsockopt and other routines are undefined under SCO ODT
18250 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18251 # on later versions), says Simon Leinen: it contains gethostby*
18252 # variants that don't use the name server (or something). -lsocket
18253 # must be given before -lnsl if both are needed. We assume that
18254 # if connect needs -lnsl, so does gethostbyname.
18255 echo "$as_me:$LINENO: checking for connect" >&5
18256 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18257 if test "${ac_cv_func_connect+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define connect innocuous_connect
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char connect (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18276 # include <limits.h>
18278 # include <assert.h>
18283 /* Override any gcc2 internal prototype to avoid an error. */
18288 /* We use char because int might match the return type of a gcc2
18289 builtin and then its argument prototype would still apply. */
18291 /* The GNU C library defines this for functions which it implements
18292 to always fail with ENOSYS. Some functions are actually named
18293 something starting with __ and the normal name is an alias. */
18294 #if defined (__stub_connect) || defined (__stub___connect)
18297 char (*f) () = connect;
18306 return f != connect;
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18313 (eval $ac_link) 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest$ac_exeext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_func_connect=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_cv_func_connect=no
18340 rm -f conftest.err conftest.$ac_objext \
18341 conftest$ac_exeext conftest.$ac_ext
18343 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18344 echo "${ECHO_T}$ac_cv_func_connect" >&6
18346 if test $ac_cv_func_connect = no; then
18347 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18348 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18349 if test "${ac_cv_lib_socket_connect+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 ac_check_lib_save_LIBS=$LIBS
18353 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18361 /* Override any gcc2 internal prototype to avoid an error. */
18365 /* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18376 rm -f conftest.$ac_objext conftest$ac_exeext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378 (eval $ac_link) 2>conftest.er1
18380 grep -v '^ *+' conftest.er1 >conftest.err
18382 cat conftest.err >&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest$ac_exeext'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_lib_socket_connect=yes
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18403 ac_cv_lib_socket_connect=no
18405 rm -f conftest.err conftest.$ac_objext \
18406 conftest$ac_exeext conftest.$ac_ext
18407 LIBS=$ac_check_lib_save_LIBS
18409 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18410 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18411 if test $ac_cv_lib_socket_connect = yes; then
18412 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18417 # Guillermo Gomez says -lposix is necessary on A/UX.
18418 echo "$as_me:$LINENO: checking for remove" >&5
18419 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18420 if test "${ac_cv_func_remove+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18431 #define remove innocuous_remove
18433 /* System header to define __stub macros and hopefully few prototypes,
18434 which can conflict with char remove (); below.
18435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436 <limits.h> exists even on freestanding compilers. */
18439 # include <limits.h>
18441 # include <assert.h>
18446 /* Override any gcc2 internal prototype to avoid an error. */
18451 /* We use char because int might match the return type of a gcc2
18452 builtin and then its argument prototype would still apply. */
18454 /* The GNU C library defines this for functions which it implements
18455 to always fail with ENOSYS. Some functions are actually named
18456 something starting with __ and the normal name is an alias. */
18457 #if defined (__stub_remove) || defined (__stub___remove)
18460 char (*f) () = remove;
18469 return f != remove;
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476 (eval $ac_link) 2>conftest.er1
18478 grep -v '^ *+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -z "$ac_c_werror_flag"
18484 || test ! -s conftest.err'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; } &&
18490 { ac_try='test -s conftest$ac_exeext'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_cv_func_remove=yes
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18501 ac_cv_func_remove=no
18503 rm -f conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18506 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18507 echo "${ECHO_T}$ac_cv_func_remove" >&6
18509 if test $ac_cv_func_remove = no; then
18510 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18511 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18512 if test "${ac_cv_lib_posix_remove+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lposix $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 /* Override any gcc2 internal prototype to avoid an error. */
18528 /* We use char because int might match the return type of a gcc2
18529 builtin and then its argument prototype would still apply. */
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541 (eval $ac_link) 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_lib_posix_remove=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_cv_lib_posix_remove=no
18568 rm -f conftest.err conftest.$ac_objext \
18569 conftest$ac_exeext conftest.$ac_ext
18570 LIBS=$ac_check_lib_save_LIBS
18572 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18573 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18574 if test $ac_cv_lib_posix_remove = yes; then
18575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18580 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18581 echo "$as_me:$LINENO: checking for shmat" >&5
18582 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18583 if test "${ac_cv_func_shmat+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18594 #define shmat innocuous_shmat
18596 /* System header to define __stub macros and hopefully few prototypes,
18597 which can conflict with char shmat (); below.
18598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18599 <limits.h> exists even on freestanding compilers. */
18602 # include <limits.h>
18604 # include <assert.h>
18609 /* Override any gcc2 internal prototype to avoid an error. */
18614 /* We use char because int might match the return type of a gcc2
18615 builtin and then its argument prototype would still apply. */
18617 /* The GNU C library defines this for functions which it implements
18618 to always fail with ENOSYS. Some functions are actually named
18619 something starting with __ and the normal name is an alias. */
18620 #if defined (__stub_shmat) || defined (__stub___shmat)
18623 char (*f) () = shmat;
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18639 (eval $ac_link) 2>conftest.er1
18641 grep -v '^ *+' conftest.er1 >conftest.err
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } &&
18646 { ac_try='test -z "$ac_c_werror_flag"
18647 || test ! -s conftest.err'
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; } &&
18653 { ac_try='test -s conftest$ac_exeext'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_cv_func_shmat=yes
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_cv_func_shmat=no
18666 rm -f conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18669 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18670 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18672 if test $ac_cv_func_shmat = no; then
18673 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18674 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18675 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 ac_check_lib_save_LIBS=$LIBS
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18687 /* Override any gcc2 internal prototype to avoid an error. */
18691 /* We use char because int might match the return type of a gcc2
18692 builtin and then its argument prototype would still apply. */
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18704 (eval $ac_link) 2>conftest.er1
18706 grep -v '^ *+' conftest.er1 >conftest.err
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -z "$ac_c_werror_flag"
18712 || test ! -s conftest.err'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest$ac_exeext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_cv_lib_ipc_shmat=yes
18726 echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18729 ac_cv_lib_ipc_shmat=no
18731 rm -f conftest.err conftest.$ac_objext \
18732 conftest$ac_exeext conftest.$ac_ext
18733 LIBS=$ac_check_lib_save_LIBS
18735 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18736 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18737 if test $ac_cv_lib_ipc_shmat = yes; then
18738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18744 # Check for libraries that X11R6 Xt/Xaw programs need.
18745 ac_save_LDFLAGS=$LDFLAGS
18746 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18747 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18748 # check for ICE first), but we must link in the order -lSM -lICE or
18749 # we get undefined symbols. So assume we have SM if we have ICE.
18750 # These have to be linked with before -lX11, unlike the other
18751 # libraries we check for below, so use a different variable.
18752 # John Interrante, Karl Berry
18753 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18754 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18755 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18760 cat >conftest.$ac_ext <<_ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18767 /* Override any gcc2 internal prototype to avoid an error. */
18771 /* We use char because int might match the return type of a gcc2
18772 builtin and then its argument prototype would still apply. */
18773 char IceConnectionNumber ();
18777 IceConnectionNumber ();
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18784 (eval $ac_link) 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag"
18792 || test ! -s conftest.err'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest$ac_exeext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_cv_lib_ICE_IceConnectionNumber=yes
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_cv_lib_ICE_IceConnectionNumber=no
18811 rm -f conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18813 LIBS=$ac_check_lib_save_LIBS
18815 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18816 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18817 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18818 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18821 LDFLAGS=$ac_save_LDFLAGS
18883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18885 echo "$as_me:$LINENO: checking for $ac_header" >&5
18886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18893 # Is the header compilable?
18894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 $ac_includes_default
18903 #include <$ac_header>
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18907 (eval $ac_compile) 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag"
18915 || test ! -s conftest.err'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; }; then
18927 ac_header_compiler=yes
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_header_compiler=no
18934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18936 echo "${ECHO_T}$ac_header_compiler" >&6
18938 # Is the header present?
18939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <$ac_header>
18949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } >/dev/null; then
18957 if test -s conftest.err; then
18958 ac_cpp_err=$ac_c_preproc_warn_flag
18959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18966 if test -z "$ac_cpp_err"; then
18967 ac_header_preproc=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_header_preproc=no
18974 rm -f conftest.err conftest.$ac_ext
18975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18976 echo "${ECHO_T}$ac_header_preproc" >&6
18978 # So? What about this header?
18979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18985 ac_header_preproc=yes
18988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19002 ## ------------------------------------------ ##
19003 ## Report this to the AC_PACKAGE_NAME lists. ##
19004 ## ------------------------------------------ ##
19007 sed "s/^/$as_me: WARNING: /" >&2
19010 echo "$as_me:$LINENO: checking for $ac_header" >&5
19011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19015 eval "$as_ac_Header=\$ac_header_preproc"
19017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19022 cat >>confdefs.h <<_ACEOF
19023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19032 if test "${ac_cv_header_stdc+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 #include <stdlib.h>
19042 #include <stdarg.h>
19043 #include <string.h>
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_cv_header_stdc=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_header_stdc=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 if test $ac_cv_header_stdc = yes; then
19086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19087 cat >conftest.$ac_ext <<_ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19093 #include <string.h>
19096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19097 $EGREP "memchr" >/dev/null 2>&1; then
19100 ac_cv_header_stdc=no
19106 if test $ac_cv_header_stdc = yes; then
19107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 #include <stdlib.h>
19117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19118 $EGREP "free" >/dev/null 2>&1; then
19121 ac_cv_header_stdc=no
19127 if test $ac_cv_header_stdc = yes; then
19128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19129 if test "$cross_compiling" = yes; then
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19139 #if ((' ' & 0x0FF) == 0x020)
19140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19143 # define ISLOWER(c) \
19144 (('a' <= (c) && (c) <= 'i') \
19145 || ('j' <= (c) && (c) <= 'r') \
19146 || ('s' <= (c) && (c) <= 'z'))
19147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19155 for (i = 0; i < 256; i++)
19156 if (XOR (islower (i), ISLOWER (i))
19157 || toupper (i) != TOUPPER (i))
19162 rm -f conftest$ac_exeext
19163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19164 (eval $ac_link) 2>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19175 echo "$as_me: program exited with status $ac_status" >&5
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ( exit $ac_status )
19180 ac_cv_header_stdc=no
19182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19188 if test $ac_cv_header_stdc = yes; then
19190 cat >>confdefs.h <<\_ACEOF
19191 #define STDC_HEADERS 1
19196 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19197 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19198 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19207 #include <sys/types.h>
19211 return makedev(0, 0);
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19218 (eval $ac_link) 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_header_sys_types_h_makedev=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_cv_header_sys_types_h_makedev=no
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19249 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19250 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19252 if test $ac_cv_header_sys_types_h_makedev = no; then
19253 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19254 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19255 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19256 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19260 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19262 # Is the header compilable?
19263 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19264 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 $ac_includes_default
19272 #include <sys/mkdev.h>
19274 rm -f conftest.$ac_objext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag"
19284 || test ! -s conftest.err'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_header_compiler=yes
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_header_compiler=no
19303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19305 echo "${ECHO_T}$ac_header_compiler" >&6
19307 # Is the header present?
19308 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19309 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19310 cat >conftest.$ac_ext <<_ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 #include <sys/mkdev.h>
19318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } >/dev/null; then
19326 if test -s conftest.err; then
19327 ac_cpp_err=$ac_c_preproc_warn_flag
19328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19335 if test -z "$ac_cpp_err"; then
19336 ac_header_preproc=yes
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 ac_header_preproc=no
19343 rm -f conftest.err conftest.$ac_ext
19344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19345 echo "${ECHO_T}$ac_header_preproc" >&6
19347 # So? What about this header?
19348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19350 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19351 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19352 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19353 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19354 ac_header_preproc=yes
19357 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19358 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19360 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19362 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19364 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19366 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19367 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19368 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19371 ## ------------------------------------------ ##
19372 ## Report this to the AC_PACKAGE_NAME lists. ##
19373 ## ------------------------------------------ ##
19376 sed "s/^/$as_me: WARNING: /" >&2
19379 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19380 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19381 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19386 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19387 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19390 if test $ac_cv_header_sys_mkdev_h = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define MAJOR_IN_MKDEV 1
19400 if test $ac_cv_header_sys_mkdev_h = no; then
19401 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19402 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19403 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19404 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19408 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19410 # Is the header compilable?
19411 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19412 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 $ac_includes_default
19420 #include <sys/sysmacros.h>
19422 rm -f conftest.$ac_objext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag"
19432 || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_header_compiler=yes
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_header_compiler=no
19451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19453 echo "${ECHO_T}$ac_header_compiler" >&6
19455 # Is the header present?
19456 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19457 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 #include <sys/sysmacros.h>
19466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } >/dev/null; then
19474 if test -s conftest.err; then
19475 ac_cpp_err=$ac_c_preproc_warn_flag
19476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19483 if test -z "$ac_cpp_err"; then
19484 ac_header_preproc=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_header_preproc=no
19491 rm -f conftest.err conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19493 echo "${ECHO_T}$ac_header_preproc" >&6
19495 # So? What about this header?
19496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19498 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19499 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19501 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19502 ac_header_preproc=yes
19505 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19506 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19508 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19509 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19510 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19511 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19512 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19513 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19514 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19516 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19519 ## ------------------------------------------ ##
19520 ## Report this to the AC_PACKAGE_NAME lists. ##
19521 ## ------------------------------------------ ##
19524 sed "s/^/$as_me: WARNING: /" >&2
19527 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19528 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19529 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19534 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19535 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19538 if test $ac_cv_header_sys_sysmacros_h = yes; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define MAJOR_IN_SYSMACROS 1
19555 ac_header_dirent=no
19556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19557 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19558 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19559 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 cat >conftest.$ac_ext <<_ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569 #include <sys/types.h>
19581 rm -f conftest.$ac_objext
19582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19583 (eval $ac_compile) 2>conftest.er1
19585 grep -v '^ *+' conftest.er1 >conftest.err
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } &&
19590 { ac_try='test -z "$ac_c_werror_flag"
19591 || test ! -s conftest.err'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 eval "$as_ac_Header=yes"
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 eval "$as_ac_Header=no"
19610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19615 cat >>confdefs.h <<_ACEOF
19616 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19619 ac_header_dirent=$ac_hdr; break
19623 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19624 if test $ac_header_dirent = dirent.h; then
19625 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19627 if test "${ac_cv_search_opendir+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 ac_func_search_save_LIBS=$LIBS
19631 ac_cv_search_opendir=no
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19639 /* Override any gcc2 internal prototype to avoid an error. */
19643 /* We use char because int might match the return type of a gcc2
19644 builtin and then its argument prototype would still apply. */
19654 rm -f conftest.$ac_objext conftest$ac_exeext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19656 (eval $ac_link) 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } &&
19663 { ac_try='test -z "$ac_c_werror_flag"
19664 || test ! -s conftest.err'
19665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666 (eval $ac_try) 2>&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); }; } &&
19670 { ac_try='test -s conftest$ac_exeext'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; }; then
19676 ac_cv_search_opendir="none required"
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19682 rm -f conftest.err conftest.$ac_objext \
19683 conftest$ac_exeext conftest.$ac_ext
19684 if test "$ac_cv_search_opendir" = no; then
19685 for ac_lib in dir; do
19686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 /* Override any gcc2 internal prototype to avoid an error. */
19698 /* We use char because int might match the return type of a gcc2
19699 builtin and then its argument prototype would still apply. */
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711 (eval $ac_link) 2>conftest.er1
19713 grep -v '^ *+' conftest.er1 >conftest.err
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_c_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_cv_search_opendir="-l$ac_lib"
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19738 rm -f conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19742 LIBS=$ac_func_search_save_LIBS
19744 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19745 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19746 if test "$ac_cv_search_opendir" != no; then
19747 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19752 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19753 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19754 if test "${ac_cv_search_opendir+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 ac_func_search_save_LIBS=$LIBS
19758 ac_cv_search_opendir=no
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any gcc2 internal prototype to avoid an error. */
19770 /* We use char because int might match the return type of a gcc2
19771 builtin and then its argument prototype would still apply. */
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783 (eval $ac_link) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest$ac_exeext'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_cv_search_opendir="none required"
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19809 rm -f conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811 if test "$ac_cv_search_opendir" = no; then
19812 for ac_lib in x; do
19813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19821 /* Override any gcc2 internal prototype to avoid an error. */
19825 /* We use char because int might match the return type of a gcc2
19826 builtin and then its argument prototype would still apply. */
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19838 (eval $ac_link) 2>conftest.er1
19840 grep -v '^ *+' conftest.er1 >conftest.err
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
19845 { ac_try='test -z "$ac_c_werror_flag"
19846 || test ! -s conftest.err'
19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; } &&
19852 { ac_try='test -s conftest$ac_exeext'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 ac_cv_search_opendir="-l$ac_lib"
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19865 rm -f conftest.err conftest.$ac_objext \
19866 conftest$ac_exeext conftest.$ac_ext
19869 LIBS=$ac_func_search_save_LIBS
19871 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19872 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19873 if test "$ac_cv_search_opendir" != no; then
19874 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19880 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19881 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19882 if test "${ac_cv_header_stat_broken+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #include <sys/types.h>
19892 #include <sys/stat.h>
19894 #if defined(S_ISBLK) && defined(S_IFDIR)
19895 # if S_ISBLK (S_IFDIR)
19900 #if defined(S_ISBLK) && defined(S_IFCHR)
19901 # if S_ISBLK (S_IFCHR)
19906 #if defined(S_ISLNK) && defined(S_IFREG)
19907 # if S_ISLNK (S_IFREG)
19912 #if defined(S_ISSOCK) && defined(S_IFREG)
19913 # if S_ISSOCK (S_IFREG)
19919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19920 $EGREP "You lose" >/dev/null 2>&1; then
19921 ac_cv_header_stat_broken=yes
19923 ac_cv_header_stat_broken=no
19928 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19929 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19930 if test $ac_cv_header_stat_broken = yes; then
19932 cat >>confdefs.h <<\_ACEOF
19933 #define STAT_MACROS_BROKEN 1
19938 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19939 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19940 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 #include <sys/types.h>
19950 #include <sys/wait.h>
19951 #ifndef WEXITSTATUS
19952 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19955 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19963 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19968 rm -f conftest.$ac_objext
19969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19970 (eval $ac_compile) 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag"
19978 || test ! -s conftest.err'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_cv_header_sys_wait_h=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_cv_header_sys_wait_h=no
19997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20000 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20001 if test $ac_cv_header_sys_wait_h = yes; then
20003 cat >>confdefs.h <<\_ACEOF
20004 #define HAVE_SYS_WAIT_H 1
20009 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20010 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20011 if test "${ac_cv_header_time+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 #include <sys/types.h>
20021 #include <sys/time.h>
20027 if ((struct tm *) 0)
20033 rm -f conftest.$ac_objext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20035 (eval $ac_compile) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag"
20043 || test ! -s conftest.err'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest.$ac_objext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_header_time=yes
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ac_cv_header_time=no
20062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20064 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20065 echo "${ECHO_T}$ac_cv_header_time" >&6
20066 if test $ac_cv_header_time = yes; then
20068 cat >>confdefs.h <<\_ACEOF
20069 #define TIME_WITH_SYS_TIME 1
20075 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20076 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20077 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 $ac_includes_default
20090 static struct stat ac_aggr;
20091 if (ac_aggr.st_blksize)
20097 rm -f conftest.$ac_objext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20099 (eval $ac_compile) 2>conftest.er1
20101 grep -v '^ *+' conftest.er1 >conftest.err
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
20106 { ac_try='test -z "$ac_c_werror_flag"
20107 || test ! -s conftest.err'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_cv_member_struct_stat_st_blksize=yes
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 $ac_includes_default
20134 static struct stat ac_aggr;
20135 if (sizeof ac_aggr.st_blksize)
20141 rm -f conftest.$ac_objext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20143 (eval $ac_compile) 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -z "$ac_c_werror_flag"
20151 || test ! -s conftest.err'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest.$ac_objext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_member_struct_stat_st_blksize=yes
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_cv_member_struct_stat_st_blksize=no
20170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20175 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20176 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20178 cat >>confdefs.h <<_ACEOF
20179 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_ST_BLKSIZE 1
20190 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20191 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20192 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 $ac_includes_default
20205 static struct stat ac_aggr;
20206 if (ac_aggr.st_blocks)
20212 rm -f conftest.$ac_objext
20213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20214 (eval $ac_compile) 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -z "$ac_c_werror_flag"
20222 || test ! -s conftest.err'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_member_struct_stat_st_blocks=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 $ac_includes_default
20249 static struct stat ac_aggr;
20250 if (sizeof ac_aggr.st_blocks)
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -z "$ac_c_werror_flag"
20266 || test ! -s conftest.err'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20278 ac_cv_member_struct_stat_st_blocks=yes
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_cv_member_struct_stat_st_blocks=no
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20289 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20290 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20291 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20298 cat >>confdefs.h <<\_ACEOF
20299 #define HAVE_ST_BLOCKS 1
20304 "fileblocks.$ac_objext" | \
20305 *" fileblocks.$ac_objext" | \
20306 "fileblocks.$ac_objext "* | \
20307 *" fileblocks.$ac_objext "* ) ;;
20308 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20314 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20315 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20316 if test "${ac_cv_struct_tm+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 #include <sys/types.h>
20331 struct tm *tp; tp->tm_sec;
20336 rm -f conftest.$ac_objext
20337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20338 (eval $ac_compile) 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); } &&
20345 { ac_try='test -z "$ac_c_werror_flag"
20346 || test ! -s conftest.err'
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 ac_cv_struct_tm=time.h
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ac_cv_struct_tm=sys/time.h
20365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20367 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20368 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20369 if test $ac_cv_struct_tm = sys/time.h; then
20371 cat >>confdefs.h <<\_ACEOF
20372 #define TM_IN_SYS_TIME 1
20377 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20378 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20379 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 cat >conftest.$ac_ext <<_ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 #include <sys/types.h>
20389 #include <$ac_cv_struct_tm>
20395 static struct tm ac_aggr;
20396 if (ac_aggr.tm_zone)
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404 (eval $ac_compile) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_member_struct_tm_tm_zone=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 #include <sys/types.h>
20436 #include <$ac_cv_struct_tm>
20442 static struct tm ac_aggr;
20443 if (sizeof ac_aggr.tm_zone)
20449 rm -f conftest.$ac_objext
20450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
20458 { ac_try='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest.$ac_objext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_member_struct_tm_tm_zone=yes
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_cv_member_struct_tm_tm_zone=no
20478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20483 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20484 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define HAVE_STRUCT_TM_TM_ZONE 1
20493 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20495 cat >>confdefs.h <<\_ACEOF
20496 #define HAVE_TM_ZONE 1
20500 echo "$as_me:$LINENO: checking for tzname" >&5
20501 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20502 if test "${ac_cv_var_tzname+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 cat >conftest.$ac_ext <<_ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20512 #ifndef tzname /* For SGI. */
20513 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20526 (eval $ac_link) 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
20533 { ac_try='test -z "$ac_c_werror_flag"
20534 || test ! -s conftest.err'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; } &&
20540 { ac_try='test -s conftest$ac_exeext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_cv_var_tzname=yes
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ac_cv_var_tzname=no
20553 rm -f conftest.err conftest.$ac_objext \
20554 conftest$ac_exeext conftest.$ac_ext
20556 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20557 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20558 if test $ac_cv_var_tzname = yes; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define HAVE_TZNAME 1
20568 echo "$as_me:$LINENO: checking for utime.h" >&5
20569 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20570 if test "${ba_cv_header_utime_h+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20580 #include <sys/types.h>
20590 rm -f conftest.$ac_objext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20592 (eval $ac_compile) 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } &&
20599 { ac_try='test -z "$ac_c_werror_flag"
20600 || test ! -s conftest.err'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest.$ac_objext'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 ba_cv_header_utime_h=yes
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ba_cv_header_utime_h=no
20619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20621 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20622 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20623 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20624 #define HAVE_UTIME_H 1
20628 echo "$as_me:$LINENO: checking for socklen_t" >&5
20629 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20630 if test "${ba_cv_header_socklen_t+set}" = set; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20640 #include <sys/types.h>
20641 #include <sys/socket.h>
20650 rm -f conftest.$ac_objext
20651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
20659 { ac_try='test -z "$ac_c_werror_flag"
20660 || test ! -s conftest.err'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; } &&
20666 { ac_try='test -s conftest.$ac_objext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ba_cv_header_socklen_t=yes
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20677 ba_cv_header_socklen_t=no
20679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20681 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20682 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20683 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20684 #define HAVE_SOCKLEN_T 1
20688 echo "$as_me:$LINENO: checking for bigendian" >&5
20689 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20690 if test "${ba_cv_bigendian+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 if test "$cross_compiling" = yes; then
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20704 rm -f conftest$ac_exeext
20705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706 (eval $ac_link) 2>&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ba_cv_bigendian=yes
20717 echo "$as_me: program exited with status $ac_status" >&5
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ( exit $ac_status )
20724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20727 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20728 echo "${ECHO_T}$ba_cv_bigendian" >&6
20729 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20730 #define HAVE_BIGENDIAN 1
20735 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20736 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20737 if test "${ac_cv_c_const+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20750 /* FIXME: Include the comments suggested by Paul. */
20751 #ifndef __cplusplus
20752 /* Ultrix mips cc rejects this. */
20753 typedef int charset[2];
20755 /* SunOS 4.1.1 cc rejects this. */
20756 char const *const *ccp;
20758 /* NEC SVR4.0.2 mips cc rejects this. */
20759 struct point {int x, y;};
20760 static struct point const zero = {0,0};
20761 /* AIX XL C 1.02.0.0 rejects this.
20762 It does not let you subtract one const X* pointer from another in
20763 an arm of an if-expression whose if-part is not a constant
20765 const char *g = "string";
20766 ccp = &g + (g ? g-g : 0);
20767 /* HPUX 7.0 cc rejects these. */
20770 ccp = (char const *const *) p;
20771 { /* SCO 3.2v4 cc rejects this. */
20773 char const *s = 0 ? (char *) 0 : (char const *) 0;
20777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20778 int x[] = {25, 17};
20779 const int *foo = &x[0];
20782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20783 typedef const int *iptr;
20787 { /* AIX XL C 1.02.0.0 rejects this saying
20788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20789 struct s { int j; const int *ap[3]; };
20790 struct s *b; b->j = 5;
20792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20793 const int foo = 10;
20801 rm -f conftest.$ac_objext
20802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20803 (eval $ac_compile) 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_c_werror_flag"
20811 || test ! -s conftest.err'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; } &&
20817 { ac_try='test -s conftest.$ac_objext'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20832 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20833 echo "${ECHO_T}$ac_cv_c_const" >&6
20834 if test $ac_cv_c_const = no; then
20836 cat >>confdefs.h <<\_ACEOF
20844 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20845 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20847 # The order of these tests is important.
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 #include <sys/statvfs.h>
20855 #include <sys/fstyp.h>
20857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } >/dev/null; then
20865 if test -s conftest.err; then
20866 ac_cpp_err=$ac_c_preproc_warn_flag
20867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20874 if test -z "$ac_cpp_err"; then
20875 cat >>confdefs.h <<\_ACEOF
20876 #define FSTYPE_STATVFS 1
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20885 rm -f conftest.err conftest.$ac_ext
20886 if test $fstype = no; then
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 #include <sys/statfs.h>
20894 #include <sys/fstyp.h>
20896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20899 grep -v '^ *+' conftest.er1 >conftest.err
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } >/dev/null; then
20904 if test -s conftest.err; then
20905 ac_cpp_err=$ac_c_preproc_warn_flag
20906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20913 if test -z "$ac_cpp_err"; then
20914 cat >>confdefs.h <<\_ACEOF
20915 #define FSTYPE_USG_STATFS 1
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20924 rm -f conftest.err conftest.$ac_ext
20926 if test $fstype = no; then
20927 cat >conftest.$ac_ext <<_ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20933 #include <sys/statfs.h>
20934 #include <sys/vmount.h>
20936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20939 grep -v '^ *+' conftest.er1 >conftest.err
20941 cat conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } >/dev/null; then
20944 if test -s conftest.err; then
20945 ac_cpp_err=$ac_c_preproc_warn_flag
20946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20953 if test -z "$ac_cpp_err"; then
20954 cat >>confdefs.h <<\_ACEOF
20955 #define FSTYPE_AIX_STATFS 1
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20964 rm -f conftest.err conftest.$ac_ext
20966 if test $fstype = no; then
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <mntent.h>
20975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20978 grep -v '^ *+' conftest.er1 >conftest.err
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } >/dev/null; then
20983 if test -s conftest.err; then
20984 ac_cpp_err=$ac_c_preproc_warn_flag
20985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20992 if test -z "$ac_cpp_err"; then
20993 cat >>confdefs.h <<\_ACEOF
20994 #define FSTYPE_MNTENT 1
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21003 rm -f conftest.err conftest.$ac_ext
21005 if test $fstype = no; then
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 #include <sys/mount.h>
21015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21016 $EGREP "f_type;" >/dev/null 2>&1; then
21017 cat >>confdefs.h <<\_ACEOF
21018 #define FSTYPE_STATFS 1
21025 if test $fstype = no; then
21026 cat >conftest.$ac_ext <<_ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 #include <sys/mount.h>
21033 #include <sys/fs_types.h>
21035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21038 grep -v '^ *+' conftest.er1 >conftest.err
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } >/dev/null; then
21043 if test -s conftest.err; then
21044 ac_cpp_err=$ac_c_preproc_warn_flag
21045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21052 if test -z "$ac_cpp_err"; then
21053 cat >>confdefs.h <<\_ACEOF
21054 #define FSTYPE_GETMNT 1
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21063 rm -f conftest.err conftest.$ac_ext
21065 echo "$as_me:$LINENO: result: $fstype" >&5
21066 echo "${ECHO_T}$fstype" >&6
21068 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21069 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21070 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21071 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21075 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21077 # Is the header compilable?
21078 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21079 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 $ac_includes_default
21087 #include <sys/statvfs.h>
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_c_werror_flag"
21099 || test ! -s conftest.err'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 ac_header_compiler=yes
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_header_compiler=no
21118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21120 echo "${ECHO_T}$ac_header_compiler" >&6
21122 # Is the header present?
21123 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21124 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21125 cat >conftest.$ac_ext <<_ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 #include <sys/statvfs.h>
21133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); } >/dev/null; then
21141 if test -s conftest.err; then
21142 ac_cpp_err=$ac_c_preproc_warn_flag
21143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21150 if test -z "$ac_cpp_err"; then
21151 ac_header_preproc=yes
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ac_header_preproc=no
21158 rm -f conftest.err conftest.$ac_ext
21159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160 echo "${ECHO_T}$ac_header_preproc" >&6
21162 # So? What about this header?
21163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21165 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21166 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21168 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21169 ac_header_preproc=yes
21172 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21173 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21175 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21177 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21179 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21181 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21183 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21186 ## ------------------------------------------ ##
21187 ## Report this to the AC_PACKAGE_NAME lists. ##
21188 ## ------------------------------------------ ##
21191 sed "s/^/$as_me: WARNING: /" >&2
21194 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21195 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21196 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21199 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21201 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21202 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21205 if test $ac_cv_header_sys_statvfs_h = yes; then
21207 cat >>confdefs.h <<\_ACEOF
21208 #define HAVE_SYS_STATVFS_H 1
21215 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21216 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21217 if test "${ac_cv_type_signal+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 #include <sys/types.h>
21227 #include <signal.h>
21232 extern "C" void (*signal (int, void (*)(int)))(int);
21234 void (*signal ()) ();
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_cv_type_signal=void
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_cv_type_signal=int
21274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21277 echo "${ECHO_T}$ac_cv_type_signal" >&6
21279 cat >>confdefs.h <<_ACEOF
21280 #define RETSIGTYPE $ac_cv_type_signal
21285 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21286 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21287 if test "${bash_cv_signal_vintage+set}" = set; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 #include <signal.h>
21303 struct sigaction sa;
21304 sigemptyset(&ss); sigsuspend(&ss);
21305 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21306 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21314 (eval $ac_link) 2>conftest.er1
21316 grep -v '^ *+' conftest.er1 >conftest.err
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
21321 { ac_try='test -z "$ac_c_werror_flag"
21322 || test ! -s conftest.err'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest$ac_exeext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 bash_cv_signal_vintage=posix
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21340 cat >conftest.$ac_ext <<_ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 #include <signal.h>
21351 int mask = sigmask(SIGINT);
21352 sigsetmask(mask); sigblock(mask); sigpause(mask);
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360 (eval $ac_link) 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest$ac_exeext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 bash_cv_signal_vintage=4.2bsd
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21386 cat >conftest.$ac_ext <<_ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21393 #include <signal.h>
21394 RETSIGTYPE foo() { }
21399 int mask = sigmask(SIGINT);
21400 sigset(SIGINT, foo); sigrelse(SIGINT);
21401 sighold(SIGINT); sigpause(SIGINT);
21407 rm -f conftest.$ac_objext conftest$ac_exeext
21408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21409 (eval $ac_link) 2>conftest.er1
21411 grep -v '^ *+' conftest.er1 >conftest.err
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } &&
21416 { ac_try='test -z "$ac_c_werror_flag"
21417 || test ! -s conftest.err'
21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; } &&
21423 { ac_try='test -s conftest$ac_exeext'
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; }; then
21429 bash_cv_signal_vintage=svr3
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 bash_cv_signal_vintage=v7
21437 rm -f conftest.err conftest.$ac_objext \
21438 conftest$ac_exeext conftest.$ac_ext
21441 rm -f conftest.err conftest.$ac_objext \
21442 conftest$ac_exeext conftest.$ac_ext
21445 rm -f conftest.err conftest.$ac_objext \
21446 conftest$ac_exeext conftest.$ac_ext
21450 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21451 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21452 if test "$bash_cv_signal_vintage" = posix; then
21453 cat >>confdefs.h <<\_ACEOF
21454 #define HAVE_POSIX_SIGNALS 1
21457 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_BSD_SIGNALS 1
21462 elif test "$bash_cv_signal_vintage" = svr3; then
21463 cat >>confdefs.h <<\_ACEOF
21464 #define HAVE_USG_SIGHOLD 1
21469 echo "$as_me:$LINENO: checking for mode_t" >&5
21470 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21471 if test "${ac_cv_type_mode_t+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 $ac_includes_default
21486 if (sizeof (mode_t))
21492 rm -f conftest.$ac_objext
21493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21494 (eval $ac_compile) 2>conftest.er1
21496 grep -v '^ *+' conftest.er1 >conftest.err
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } &&
21501 { ac_try='test -z "$ac_c_werror_flag"
21502 || test ! -s conftest.err'
21503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504 (eval $ac_try) 2>&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); }; } &&
21508 { ac_try='test -s conftest.$ac_objext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_type_mode_t=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_cv_type_mode_t=no
21521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21523 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21524 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21525 if test $ac_cv_type_mode_t = yes; then
21529 cat >>confdefs.h <<_ACEOF
21535 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21536 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21537 if test "${ac_cv_type_uid_t+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <sys/types.h>
21549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21550 $EGREP "uid_t" >/dev/null 2>&1; then
21551 ac_cv_type_uid_t=yes
21553 ac_cv_type_uid_t=no
21558 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21559 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21560 if test $ac_cv_type_uid_t = no; then
21562 cat >>confdefs.h <<\_ACEOF
21567 cat >>confdefs.h <<\_ACEOF
21573 echo "$as_me:$LINENO: checking for size_t" >&5
21574 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21575 if test "${ac_cv_type_size_t+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 $ac_includes_default
21590 if (sizeof (size_t))
21596 rm -f conftest.$ac_objext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598 (eval $ac_compile) 2>conftest.er1
21600 grep -v '^ *+' conftest.er1 >conftest.err
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -z "$ac_c_werror_flag"
21606 || test ! -s conftest.err'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest.$ac_objext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_cv_type_size_t=yes
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_cv_type_size_t=no
21625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21627 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21628 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21629 if test $ac_cv_type_size_t = yes; then
21633 cat >>confdefs.h <<_ACEOF
21634 #define size_t unsigned
21639 echo "$as_me:$LINENO: checking for pid_t" >&5
21640 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21641 if test "${ac_cv_type_pid_t+set}" = set; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 cat >conftest.$ac_ext <<_ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 $ac_includes_default
21656 if (sizeof (pid_t))
21662 rm -f conftest.$ac_objext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21664 (eval $ac_compile) 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } &&
21671 { ac_try='test -z "$ac_c_werror_flag"
21672 || test ! -s conftest.err'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; } &&
21678 { ac_try='test -s conftest.$ac_objext'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684 ac_cv_type_pid_t=yes
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21689 ac_cv_type_pid_t=no
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21693 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21694 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21695 if test $ac_cv_type_pid_t = yes; then
21699 cat >>confdefs.h <<_ACEOF
21705 echo "$as_me:$LINENO: checking for off_t" >&5
21706 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21707 if test "${ac_cv_type_off_t+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21722 if (sizeof (off_t))
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
21737 { ac_try='test -z "$ac_c_werror_flag"
21738 || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_type_off_t=yes
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_type_off_t=no
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21760 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21761 if test $ac_cv_type_off_t = yes; then
21765 cat >>confdefs.h <<_ACEOF
21771 echo "$as_me:$LINENO: checking for ino_t" >&5
21772 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21773 if test "${ac_cv_type_ino_t+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 $ac_includes_default
21788 if (sizeof (ino_t))
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796 (eval $ac_compile) 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } &&
21803 { ac_try='test -z "$ac_c_werror_flag"
21804 || test ! -s conftest.err'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; } &&
21810 { ac_try='test -s conftest.$ac_objext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_type_ino_t=yes
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_cv_type_ino_t=no
21823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21825 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21826 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21827 if test $ac_cv_type_ino_t = yes; then
21831 cat >>confdefs.h <<_ACEOF
21832 #define ino_t unsigned long
21837 echo "$as_me:$LINENO: checking for dev_t" >&5
21838 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21839 if test "${ac_cv_type_dev_t+set}" = set; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21848 $ac_includes_default
21854 if (sizeof (dev_t))
21860 rm -f conftest.$ac_objext
21861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21862 (eval $ac_compile) 2>conftest.er1
21864 grep -v '^ *+' conftest.er1 >conftest.err
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } &&
21869 { ac_try='test -z "$ac_c_werror_flag"
21870 || test ! -s conftest.err'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; } &&
21876 { ac_try='test -s conftest.$ac_objext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ac_cv_type_dev_t=yes
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ac_cv_type_dev_t=no
21889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21891 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21892 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21893 if test $ac_cv_type_dev_t = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define dev_t unsigned long
21903 echo "$as_me:$LINENO: checking for daddr_t" >&5
21904 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21905 if test "${ac_cv_type_daddr_t+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21914 $ac_includes_default
21920 if (sizeof (daddr_t))
21926 rm -f conftest.$ac_objext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928 (eval $ac_compile) 2>conftest.er1
21930 grep -v '^ *+' conftest.er1 >conftest.err
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
21935 { ac_try='test -z "$ac_c_werror_flag"
21936 || test ! -s conftest.err'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest.$ac_objext'
21943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21944 (eval $ac_try) 2>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; }; then
21948 ac_cv_type_daddr_t=yes
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_type_daddr_t=no
21955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21957 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
21958 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
21959 if test $ac_cv_type_daddr_t = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define daddr_t long
21969 echo "$as_me:$LINENO: checking for major_t" >&5
21970 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
21971 if test "${ac_cv_type_major_t+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 cat >conftest.$ac_ext <<_ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 $ac_includes_default
21986 if (sizeof (major_t))
21992 rm -f conftest.$ac_objext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21994 (eval $ac_compile) 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag"
22002 || test ! -s conftest.err'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest.$ac_objext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_type_major_t=yes
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ac_cv_type_major_t=no
22021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22023 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22024 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22025 if test $ac_cv_type_major_t = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define major_t int
22035 echo "$as_me:$LINENO: checking for minor_t" >&5
22036 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22037 if test "${ac_cv_type_minor_t+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 $ac_includes_default
22052 if (sizeof (minor_t))
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_type_minor_t=yes
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 ac_cv_type_minor_t=no
22087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22089 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22090 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22091 if test $ac_cv_type_minor_t = yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define minor_t int
22101 echo "$as_me:$LINENO: checking for ssize_t" >&5
22102 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22103 if test "${ac_cv_type_ssize_t+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 $ac_includes_default
22118 if (sizeof (ssize_t))
22124 rm -f conftest.$ac_objext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22126 (eval $ac_compile) 2>conftest.er1
22128 grep -v '^ *+' conftest.er1 >conftest.err
22130 cat conftest.err >&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } &&
22133 { ac_try='test -z "$ac_c_werror_flag"
22134 || test ! -s conftest.err'
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; } &&
22140 { ac_try='test -s conftest.$ac_objext'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; }; then
22146 ac_cv_type_ssize_t=yes
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ac_cv_type_ssize_t=no
22153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22155 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22156 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22157 if test $ac_cv_type_ssize_t = yes; then
22161 cat >>confdefs.h <<_ACEOF
22162 #define ssize_t int
22167 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22168 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22169 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 $ac_includes_default
22182 static struct stat ac_aggr;
22183 if (ac_aggr.st_blocks)
22189 rm -f conftest.$ac_objext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191 (eval $ac_compile) 2>conftest.er1
22193 grep -v '^ *+' conftest.er1 >conftest.err
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
22198 { ac_try='test -z "$ac_c_werror_flag"
22199 || test ! -s conftest.err'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; } &&
22205 { ac_try='test -s conftest.$ac_objext'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ac_cv_member_struct_stat_st_blocks=yes
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 cat >conftest.$ac_ext <<_ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 $ac_includes_default
22226 static struct stat ac_aggr;
22227 if (sizeof ac_aggr.st_blocks)
22233 rm -f conftest.$ac_objext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22235 (eval $ac_compile) 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } &&
22242 { ac_try='test -z "$ac_c_werror_flag"
22243 || test ! -s conftest.err'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; } &&
22249 { ac_try='test -s conftest.$ac_objext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ac_cv_member_struct_stat_st_blocks=yes
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_cv_member_struct_stat_st_blocks=no
22262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22268 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22275 cat >>confdefs.h <<\_ACEOF
22276 #define HAVE_ST_BLOCKS 1
22281 "fileblocks.$ac_objext" | \
22282 *" fileblocks.$ac_objext" | \
22283 "fileblocks.$ac_objext "* | \
22284 *" fileblocks.$ac_objext "* ) ;;
22285 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22292 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22293 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22294 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22297 cat >conftest.$ac_ext <<_ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22303 $ac_includes_default
22307 static struct stat ac_aggr;
22308 if (ac_aggr.st_rdev)
22314 rm -f conftest.$ac_objext
22315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316 (eval $ac_compile) 2>conftest.er1
22318 grep -v '^ *+' conftest.er1 >conftest.err
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } &&
22323 { ac_try='test -z "$ac_c_werror_flag"
22324 || test ! -s conftest.err'
22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326 (eval $ac_try) 2>&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; } &&
22330 { ac_try='test -s conftest.$ac_objext'
22331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332 (eval $ac_try) 2>&5
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); }; }; then
22336 ac_cv_member_struct_stat_st_rdev=yes
22338 echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 $ac_includes_default
22351 static struct stat ac_aggr;
22352 if (sizeof ac_aggr.st_rdev)
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360 (eval $ac_compile) 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
22367 { ac_try='test -z "$ac_c_werror_flag"
22368 || test ! -s conftest.err'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest.$ac_objext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_member_struct_stat_st_rdev=yes
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22385 ac_cv_member_struct_stat_st_rdev=no
22387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22391 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22392 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22393 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22395 cat >>confdefs.h <<_ACEOF
22396 #define HAVE_STRUCT_STAT_ST_RDEV 1
22400 cat >>confdefs.h <<\_ACEOF
22401 #define HAVE_ST_RDEV 1
22407 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22408 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22409 if test "${ac_cv_struct_tm+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 cat >conftest.$ac_ext <<_ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 #include <sys/types.h>
22424 struct tm *tp; tp->tm_sec;
22429 rm -f conftest.$ac_objext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22431 (eval $ac_compile) 2>conftest.er1
22433 grep -v '^ *+' conftest.er1 >conftest.err
22435 cat conftest.err >&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } &&
22438 { ac_try='test -z "$ac_c_werror_flag"
22439 || test ! -s conftest.err'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; } &&
22445 { ac_try='test -s conftest.$ac_objext'
22446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22447 (eval $ac_try) 2>&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); }; }; then
22451 ac_cv_struct_tm=time.h
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_cv_struct_tm=sys/time.h
22458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22460 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22461 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22462 if test $ac_cv_struct_tm = sys/time.h; then
22464 cat >>confdefs.h <<\_ACEOF
22465 #define TM_IN_SYS_TIME 1
22470 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22471 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22472 if test "${ac_cv_c_const+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22475 cat >conftest.$ac_ext <<_ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h. */
22485 /* FIXME: Include the comments suggested by Paul. */
22486 #ifndef __cplusplus
22487 /* Ultrix mips cc rejects this. */
22488 typedef int charset[2];
22490 /* SunOS 4.1.1 cc rejects this. */
22491 char const *const *ccp;
22493 /* NEC SVR4.0.2 mips cc rejects this. */
22494 struct point {int x, y;};
22495 static struct point const zero = {0,0};
22496 /* AIX XL C 1.02.0.0 rejects this.
22497 It does not let you subtract one const X* pointer from another in
22498 an arm of an if-expression whose if-part is not a constant
22500 const char *g = "string";
22501 ccp = &g + (g ? g-g : 0);
22502 /* HPUX 7.0 cc rejects these. */
22505 ccp = (char const *const *) p;
22506 { /* SCO 3.2v4 cc rejects this. */
22508 char const *s = 0 ? (char *) 0 : (char const *) 0;
22512 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22513 int x[] = {25, 17};
22514 const int *foo = &x[0];
22517 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22518 typedef const int *iptr;
22522 { /* AIX XL C 1.02.0.0 rejects this saying
22523 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22524 struct s { int j; const int *ap[3]; };
22525 struct s *b; b->j = 5;
22527 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22528 const int foo = 10;
22536 rm -f conftest.$ac_objext
22537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22538 (eval $ac_compile) 2>conftest.er1
22540 grep -v '^ *+' conftest.er1 >conftest.err
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } &&
22545 { ac_try='test -z "$ac_c_werror_flag"
22546 || test ! -s conftest.err'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; } &&
22552 { ac_try='test -s conftest.$ac_objext'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22567 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22568 echo "${ECHO_T}$ac_cv_c_const" >&6
22569 if test $ac_cv_c_const = no; then
22571 cat >>confdefs.h <<\_ACEOF
22579 echo "$as_me:$LINENO: checking for char" >&5
22580 echo $ECHO_N "checking for char... $ECHO_C" >&6
22581 if test "${ac_cv_type_char+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 $ac_includes_default
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604 (eval $ac_compile) 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -z "$ac_c_werror_flag"
22612 || test ! -s conftest.err'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; } &&
22618 { ac_try='test -s conftest.$ac_objext'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 ac_cv_type_char=yes
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22633 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22634 echo "${ECHO_T}$ac_cv_type_char" >&6
22636 echo "$as_me:$LINENO: checking size of char" >&5
22637 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22638 if test "${ac_cv_sizeof_char+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 if test "$ac_cv_type_char" = yes; then
22642 # The cast to unsigned long works around a bug in the HP C Compiler
22643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22645 # This bug is HP SR number 8606223364.
22646 if test "$cross_compiling" = yes; then
22647 # Depending upon the size, compute the lo and hi bounds.
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 $ac_includes_default
22658 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>conftest.er1
22669 grep -v '^ *+' conftest.er1 >conftest.err
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22699 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22706 rm -f conftest.$ac_objext
22707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22708 (eval $ac_compile) 2>conftest.er1
22710 grep -v '^ *+' conftest.er1 >conftest.err
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } &&
22715 { ac_try='test -z "$ac_c_werror_flag"
22716 || test ! -s conftest.err'
22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; } &&
22722 { ac_try='test -s conftest.$ac_objext'
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; }; then
22728 ac_hi=$ac_mid; break
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_lo=`expr $ac_mid + 1`
22734 if test $ac_lo -le $ac_mid; then
22738 ac_mid=`expr 2 '*' $ac_mid + 1`
22740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 $ac_includes_default
22756 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22763 rm -f conftest.$ac_objext
22764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22765 (eval $ac_compile) 2>conftest.er1
22767 grep -v '^ *+' conftest.er1 >conftest.err
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } &&
22772 { ac_try='test -z "$ac_c_werror_flag"
22773 || test ! -s conftest.err'
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; } &&
22779 { ac_try='test -s conftest.$ac_objext'
22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 $ac_includes_default
22797 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806 (eval $ac_compile) 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
22813 { ac_try='test -z "$ac_c_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_lo=$ac_mid; break
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22831 ac_hi=`expr '(' $ac_mid ')' - 1`
22832 if test $ac_mid -le $ac_hi; then
22836 ac_mid=`expr 2 '*' $ac_mid`
22838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22849 # Binary search between lo and hi bounds.
22850 while test "x$ac_lo" != "x$ac_hi"; do
22851 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22862 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22869 rm -f conftest.$ac_objext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22871 (eval $ac_compile) 2>conftest.er1
22873 grep -v '^ *+' conftest.er1 >conftest.err
22875 cat conftest.err >&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } &&
22878 { ac_try='test -z "$ac_c_werror_flag"
22879 || test ! -s conftest.err'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; } &&
22885 { ac_try='test -s conftest.$ac_objext'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_lo=`expr '(' $ac_mid ')' + 1`
22898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901 ?*) ac_cv_sizeof_char=$ac_lo;;
22902 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22903 See \`config.log' for more details." >&5
22904 echo "$as_me: error: cannot compute sizeof (char), 77
22905 See \`config.log' for more details." >&2;}
22906 { (exit 1); exit 1; }; } ;;
22909 if test "$cross_compiling" = yes; then
22910 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22911 See \`config.log' for more details." >&5
22912 echo "$as_me: error: cannot run test program while cross compiling
22913 See \`config.log' for more details." >&2;}
22914 { (exit 1); exit 1; }; }
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 $ac_includes_default
22923 long longval () { return (long) (sizeof (char)); }
22924 unsigned long ulongval () { return (long) (sizeof (char)); }
22926 #include <stdlib.h>
22931 FILE *f = fopen ("conftest.val", "w");
22934 if (((long) (sizeof (char))) < 0)
22936 long i = longval ();
22937 if (i != ((long) (sizeof (char))))
22939 fprintf (f, "%ld\n", i);
22943 unsigned long i = ulongval ();
22944 if (i != ((long) (sizeof (char))))
22946 fprintf (f, "%lu\n", i);
22948 exit (ferror (f) || fclose (f) != 0);
22954 rm -f conftest$ac_exeext
22955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22956 (eval $ac_link) 2>&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961 (eval $ac_try) 2>&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; }; then
22965 ac_cv_sizeof_char=`cat conftest.val`
22967 echo "$as_me: program exited with status $ac_status" >&5
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 ( exit $ac_status )
22972 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22973 See \`config.log' for more details." >&5
22974 echo "$as_me: error: cannot compute sizeof (char), 77
22975 See \`config.log' for more details." >&2;}
22976 { (exit 1); exit 1; }; }
22978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22983 ac_cv_sizeof_char=0
22986 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22987 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22988 cat >>confdefs.h <<_ACEOF
22989 #define SIZEOF_CHAR $ac_cv_sizeof_char
22993 echo "$as_me:$LINENO: checking for short int" >&5
22994 echo $ECHO_N "checking for short int... $ECHO_C" >&6
22995 if test "${ac_cv_type_short_int+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22998 cat >conftest.$ac_ext <<_ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23004 $ac_includes_default
23008 if ((short int *) 0)
23010 if (sizeof (short int))
23016 rm -f conftest.$ac_objext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23018 (eval $ac_compile) 2>conftest.er1
23020 grep -v '^ *+' conftest.er1 >conftest.err
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
23025 { ac_try='test -z "$ac_c_werror_flag"
23026 || test ! -s conftest.err'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; } &&
23032 { ac_try='test -s conftest.$ac_objext'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; }; then
23038 ac_cv_type_short_int=yes
23040 echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23043 ac_cv_type_short_int=no
23045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23047 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23048 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23050 echo "$as_me:$LINENO: checking size of short int" >&5
23051 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23052 if test "${ac_cv_sizeof_short_int+set}" = set; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23055 if test "$ac_cv_type_short_int" = yes; then
23056 # The cast to unsigned long works around a bug in the HP C Compiler
23057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23059 # This bug is HP SR number 8606223364.
23060 if test "$cross_compiling" = yes; then
23061 # Depending upon the size, compute the lo and hi bounds.
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 $ac_includes_default
23072 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23079 rm -f conftest.$ac_objext
23080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23081 (eval $ac_compile) 2>conftest.er1
23083 grep -v '^ *+' conftest.er1 >conftest.err
23085 cat conftest.err >&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } &&
23088 { ac_try='test -z "$ac_c_werror_flag"
23089 || test ! -s conftest.err'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; } &&
23095 { ac_try='test -s conftest.$ac_objext'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; }; then
23103 cat >conftest.$ac_ext <<_ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23109 $ac_includes_default
23113 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23120 rm -f conftest.$ac_objext
23121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23122 (eval $ac_compile) 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } &&
23129 { ac_try='test -z "$ac_c_werror_flag"
23130 || test ! -s conftest.err'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest.$ac_objext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ac_hi=$ac_mid; break
23144 echo "$as_me: failed program was:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 ac_lo=`expr $ac_mid + 1`
23148 if test $ac_lo -le $ac_mid; then
23152 ac_mid=`expr 2 '*' $ac_mid + 1`
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 $ac_includes_default
23170 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23177 rm -f conftest.$ac_objext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179 (eval $ac_compile) 2>conftest.er1
23181 grep -v '^ *+' conftest.er1 >conftest.err
23183 cat conftest.err >&5
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
23186 { ac_try='test -z "$ac_c_werror_flag"
23187 || test ! -s conftest.err'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; } &&
23193 { ac_try='test -s conftest.$ac_objext'
23194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195 (eval $ac_try) 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23211 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23218 rm -f conftest.$ac_objext
23219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23220 (eval $ac_compile) 2>conftest.er1
23222 grep -v '^ *+' conftest.er1 >conftest.err
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } &&
23227 { ac_try='test -z "$ac_c_werror_flag"
23228 || test ! -s conftest.err'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; } &&
23234 { ac_try='test -s conftest.$ac_objext'
23235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; }; then
23240 ac_lo=$ac_mid; break
23242 echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_hi=`expr '(' $ac_mid ')' - 1`
23246 if test $ac_mid -le $ac_hi; then
23250 ac_mid=`expr 2 '*' $ac_mid`
23252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263 # Binary search between lo and hi bounds.
23264 while test "x$ac_lo" != "x$ac_hi"; do
23265 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23276 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285 (eval $ac_compile) 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
23292 { ac_try='test -z "$ac_c_werror_flag"
23293 || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_lo=`expr '(' $ac_mid ')' + 1`
23312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23315 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23316 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23317 See \`config.log' for more details." >&5
23318 echo "$as_me: error: cannot compute sizeof (short int), 77
23319 See \`config.log' for more details." >&2;}
23320 { (exit 1); exit 1; }; } ;;
23323 if test "$cross_compiling" = yes; then
23324 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23325 See \`config.log' for more details." >&5
23326 echo "$as_me: error: cannot run test program while cross compiling
23327 See \`config.log' for more details." >&2;}
23328 { (exit 1); exit 1; }; }
23330 cat >conftest.$ac_ext <<_ACEOF
23333 cat confdefs.h >>conftest.$ac_ext
23334 cat >>conftest.$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 $ac_includes_default
23337 long longval () { return (long) (sizeof (short int)); }
23338 unsigned long ulongval () { return (long) (sizeof (short int)); }
23340 #include <stdlib.h>
23345 FILE *f = fopen ("conftest.val", "w");
23348 if (((long) (sizeof (short int))) < 0)
23350 long i = longval ();
23351 if (i != ((long) (sizeof (short int))))
23353 fprintf (f, "%ld\n", i);
23357 unsigned long i = ulongval ();
23358 if (i != ((long) (sizeof (short int))))
23360 fprintf (f, "%lu\n", i);
23362 exit (ferror (f) || fclose (f) != 0);
23368 rm -f conftest$ac_exeext
23369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23370 (eval $ac_link) 2>&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; }; then
23379 ac_cv_sizeof_short_int=`cat conftest.val`
23381 echo "$as_me: program exited with status $ac_status" >&5
23382 echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23385 ( exit $ac_status )
23386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23387 See \`config.log' for more details." >&5
23388 echo "$as_me: error: cannot compute sizeof (short int), 77
23389 See \`config.log' for more details." >&2;}
23390 { (exit 1); exit 1; }; }
23392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23397 ac_cv_sizeof_short_int=0
23400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23401 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23402 cat >>confdefs.h <<_ACEOF
23403 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23407 echo "$as_me:$LINENO: checking for int" >&5
23408 echo $ECHO_N "checking for int... $ECHO_C" >&6
23409 if test "${ac_cv_type_int+set}" = set; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23418 $ac_includes_default
23430 rm -f conftest.$ac_objext
23431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23432 (eval $ac_compile) 2>conftest.er1
23434 grep -v '^ *+' conftest.er1 >conftest.err
23436 cat conftest.err >&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } &&
23439 { ac_try='test -z "$ac_c_werror_flag"
23440 || test ! -s conftest.err'
23441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23442 (eval $ac_try) 2>&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; } &&
23446 { ac_try='test -s conftest.$ac_objext'
23447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448 (eval $ac_try) 2>&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; }; then
23454 echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23461 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23462 echo "${ECHO_T}$ac_cv_type_int" >&6
23464 echo "$as_me:$LINENO: checking size of int" >&5
23465 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23466 if test "${ac_cv_sizeof_int+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23469 if test "$ac_cv_type_int" = yes; then
23470 # The cast to unsigned long works around a bug in the HP C Compiler
23471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23473 # This bug is HP SR number 8606223364.
23474 if test "$cross_compiling" = yes; then
23475 # Depending upon the size, compute the lo and hi bounds.
23476 cat >conftest.$ac_ext <<_ACEOF
23479 cat confdefs.h >>conftest.$ac_ext
23480 cat >>conftest.$ac_ext <<_ACEOF
23481 /* end confdefs.h. */
23482 $ac_includes_default
23486 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23493 rm -f conftest.$ac_objext
23494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23495 (eval $ac_compile) 2>conftest.er1
23497 grep -v '^ *+' conftest.er1 >conftest.err
23499 cat conftest.err >&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } &&
23502 { ac_try='test -z "$ac_c_werror_flag"
23503 || test ! -s conftest.err'
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; } &&
23509 { ac_try='test -s conftest.$ac_objext'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23517 cat >conftest.$ac_ext <<_ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23523 $ac_includes_default
23527 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23534 rm -f conftest.$ac_objext
23535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23536 (eval $ac_compile) 2>conftest.er1
23538 grep -v '^ *+' conftest.er1 >conftest.err
23540 cat conftest.err >&5
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); } &&
23543 { ac_try='test -z "$ac_c_werror_flag"
23544 || test ! -s conftest.err'
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest.$ac_objext'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_hi=$ac_mid; break
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ac_lo=`expr $ac_mid + 1`
23562 if test $ac_lo -le $ac_mid; then
23566 ac_mid=`expr 2 '*' $ac_mid + 1`
23568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 $ac_includes_default
23584 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23591 rm -f conftest.$ac_objext
23592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23593 (eval $ac_compile) 2>conftest.er1
23595 grep -v '^ *+' conftest.er1 >conftest.err
23597 cat conftest.err >&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
23600 { ac_try='test -z "$ac_c_werror_flag"
23601 || test ! -s conftest.err'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest.$ac_objext'
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23625 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23632 rm -f conftest.$ac_objext
23633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23634 (eval $ac_compile) 2>conftest.er1
23636 grep -v '^ *+' conftest.er1 >conftest.err
23638 cat conftest.err >&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } &&
23641 { ac_try='test -z "$ac_c_werror_flag"
23642 || test ! -s conftest.err'
23643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644 (eval $ac_try) 2>&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; } &&
23648 { ac_try='test -s conftest.$ac_objext'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; }; then
23654 ac_lo=$ac_mid; break
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 ac_hi=`expr '(' $ac_mid ')' - 1`
23660 if test $ac_mid -le $ac_hi; then
23664 ac_mid=`expr 2 '*' $ac_mid`
23666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23677 # Binary search between lo and hi bounds.
23678 while test "x$ac_lo" != "x$ac_hi"; do
23679 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 $ac_includes_default
23690 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23697 rm -f conftest.$ac_objext
23698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23699 (eval $ac_compile) 2>conftest.er1
23701 grep -v '^ *+' conftest.er1 >conftest.err
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } &&
23706 { ac_try='test -z "$ac_c_werror_flag"
23707 || test ! -s conftest.err'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; } &&
23713 { ac_try='test -s conftest.$ac_objext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23721 echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23724 ac_lo=`expr '(' $ac_mid ')' + 1`
23726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23729 ?*) ac_cv_sizeof_int=$ac_lo;;
23730 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23731 See \`config.log' for more details." >&5
23732 echo "$as_me: error: cannot compute sizeof (int), 77
23733 See \`config.log' for more details." >&2;}
23734 { (exit 1); exit 1; }; } ;;
23737 if test "$cross_compiling" = yes; then
23738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23739 See \`config.log' for more details." >&5
23740 echo "$as_me: error: cannot run test program while cross compiling
23741 See \`config.log' for more details." >&2;}
23742 { (exit 1); exit 1; }; }
23744 cat >conftest.$ac_ext <<_ACEOF
23747 cat confdefs.h >>conftest.$ac_ext
23748 cat >>conftest.$ac_ext <<_ACEOF
23749 /* end confdefs.h. */
23750 $ac_includes_default
23751 long longval () { return (long) (sizeof (int)); }
23752 unsigned long ulongval () { return (long) (sizeof (int)); }
23754 #include <stdlib.h>
23759 FILE *f = fopen ("conftest.val", "w");
23762 if (((long) (sizeof (int))) < 0)
23764 long i = longval ();
23765 if (i != ((long) (sizeof (int))))
23767 fprintf (f, "%ld\n", i);
23771 unsigned long i = ulongval ();
23772 if (i != ((long) (sizeof (int))))
23774 fprintf (f, "%lu\n", i);
23776 exit (ferror (f) || fclose (f) != 0);
23782 rm -f conftest$ac_exeext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23784 (eval $ac_link) 2>&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793 ac_cv_sizeof_int=`cat conftest.val`
23795 echo "$as_me: program exited with status $ac_status" >&5
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23799 ( exit $ac_status )
23800 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23801 See \`config.log' for more details." >&5
23802 echo "$as_me: error: cannot compute sizeof (int), 77
23803 See \`config.log' for more details." >&2;}
23804 { (exit 1); exit 1; }; }
23806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23814 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23815 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23816 cat >>confdefs.h <<_ACEOF
23817 #define SIZEOF_INT $ac_cv_sizeof_int
23821 echo "$as_me:$LINENO: checking for long int" >&5
23822 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23823 if test "${ac_cv_type_long_int+set}" = set; then
23824 echo $ECHO_N "(cached) $ECHO_C" >&6
23826 cat >conftest.$ac_ext <<_ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 $ac_includes_default
23836 if ((long int *) 0)
23838 if (sizeof (long int))
23844 rm -f conftest.$ac_objext
23845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23846 (eval $ac_compile) 2>conftest.er1
23848 grep -v '^ *+' conftest.er1 >conftest.err
23850 cat conftest.err >&5
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } &&
23853 { ac_try='test -z "$ac_c_werror_flag"
23854 || test ! -s conftest.err'
23855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856 (eval $ac_try) 2>&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); }; } &&
23860 { ac_try='test -s conftest.$ac_objext'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; }; then
23866 ac_cv_type_long_int=yes
23868 echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.$ac_ext >&5
23871 ac_cv_type_long_int=no
23873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23875 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23876 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23878 echo "$as_me:$LINENO: checking size of long int" >&5
23879 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23880 if test "${ac_cv_sizeof_long_int+set}" = set; then
23881 echo $ECHO_N "(cached) $ECHO_C" >&6
23883 if test "$ac_cv_type_long_int" = yes; then
23884 # The cast to unsigned long works around a bug in the HP C Compiler
23885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23887 # This bug is HP SR number 8606223364.
23888 if test "$cross_compiling" = yes; then
23889 # Depending upon the size, compute the lo and hi bounds.
23890 cat >conftest.$ac_ext <<_ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h. */
23896 $ac_includes_default
23900 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23907 rm -f conftest.$ac_objext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23909 (eval $ac_compile) 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } &&
23916 { ac_try='test -z "$ac_c_werror_flag"
23917 || test ! -s conftest.err'
23918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; } &&
23923 { ac_try='test -s conftest.$ac_objext'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; }; then
23931 cat >conftest.$ac_ext <<_ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23937 $ac_includes_default
23941 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23948 rm -f conftest.$ac_objext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23950 (eval $ac_compile) 2>conftest.er1
23952 grep -v '^ *+' conftest.er1 >conftest.err
23954 cat conftest.err >&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } &&
23957 { ac_try='test -z "$ac_c_werror_flag"
23958 || test ! -s conftest.err'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; } &&
23964 { ac_try='test -s conftest.$ac_objext'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; }; then
23970 ac_hi=$ac_mid; break
23972 echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23975 ac_lo=`expr $ac_mid + 1`
23976 if test $ac_lo -le $ac_mid; then
23980 ac_mid=`expr 2 '*' $ac_mid + 1`
23982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23988 cat >conftest.$ac_ext <<_ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
23994 $ac_includes_default
23998 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24005 rm -f conftest.$ac_objext
24006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24007 (eval $ac_compile) 2>conftest.er1
24009 grep -v '^ *+' conftest.er1 >conftest.err
24011 cat conftest.err >&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } &&
24014 { ac_try='test -z "$ac_c_werror_flag"
24015 || test ! -s conftest.err'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; } &&
24021 { ac_try='test -s conftest.$ac_objext'
24022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 $ac_includes_default
24039 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24046 rm -f conftest.$ac_objext
24047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24048 (eval $ac_compile) 2>conftest.er1
24050 grep -v '^ *+' conftest.er1 >conftest.err
24052 cat conftest.err >&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } &&
24055 { ac_try='test -z "$ac_c_werror_flag"
24056 || test ! -s conftest.err'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } &&
24062 { ac_try='test -s conftest.$ac_objext'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; }; then
24068 ac_lo=$ac_mid; break
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_hi=`expr '(' $ac_mid ')' - 1`
24074 if test $ac_mid -le $ac_hi; then
24078 ac_mid=`expr 2 '*' $ac_mid`
24080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24083 echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24091 # Binary search between lo and hi bounds.
24092 while test "x$ac_lo" != "x$ac_hi"; do
24093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24094 cat >conftest.$ac_ext <<_ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h. */
24100 $ac_includes_default
24104 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24111 rm -f conftest.$ac_objext
24112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24113 (eval $ac_compile) 2>conftest.er1
24115 grep -v '^ *+' conftest.er1 >conftest.err
24117 cat conftest.err >&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); } &&
24120 { ac_try='test -z "$ac_c_werror_flag"
24121 || test ! -s conftest.err'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; } &&
24127 { ac_try='test -s conftest.$ac_objext'
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; }; then
24135 echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24138 ac_lo=`expr '(' $ac_mid ')' + 1`
24140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24143 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24144 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24145 See \`config.log' for more details." >&5
24146 echo "$as_me: error: cannot compute sizeof (long int), 77
24147 See \`config.log' for more details." >&2;}
24148 { (exit 1); exit 1; }; } ;;
24151 if test "$cross_compiling" = yes; then
24152 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24153 See \`config.log' for more details." >&5
24154 echo "$as_me: error: cannot run test program while cross compiling
24155 See \`config.log' for more details." >&2;}
24156 { (exit 1); exit 1; }; }
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 $ac_includes_default
24165 long longval () { return (long) (sizeof (long int)); }
24166 unsigned long ulongval () { return (long) (sizeof (long int)); }
24168 #include <stdlib.h>
24173 FILE *f = fopen ("conftest.val", "w");
24176 if (((long) (sizeof (long int))) < 0)
24178 long i = longval ();
24179 if (i != ((long) (sizeof (long int))))
24181 fprintf (f, "%ld\n", i);
24185 unsigned long i = ulongval ();
24186 if (i != ((long) (sizeof (long int))))
24188 fprintf (f, "%lu\n", i);
24190 exit (ferror (f) || fclose (f) != 0);
24196 rm -f conftest$ac_exeext
24197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24198 (eval $ac_link) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 ac_cv_sizeof_long_int=`cat conftest.val`
24209 echo "$as_me: program exited with status $ac_status" >&5
24210 echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24213 ( exit $ac_status )
24214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24215 See \`config.log' for more details." >&5
24216 echo "$as_me: error: cannot compute sizeof (long int), 77
24217 See \`config.log' for more details." >&2;}
24218 { (exit 1); exit 1; }; }
24220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24225 ac_cv_sizeof_long_int=0
24228 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24229 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24230 cat >>confdefs.h <<_ACEOF
24231 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24235 echo "$as_me:$LINENO: checking for long long int" >&5
24236 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24237 if test "${ac_cv_type_long_long_int+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24240 cat >conftest.$ac_ext <<_ACEOF
24243 cat confdefs.h >>conftest.$ac_ext
24244 cat >>conftest.$ac_ext <<_ACEOF
24245 /* end confdefs.h. */
24246 $ac_includes_default
24250 if ((long long int *) 0)
24252 if (sizeof (long long int))
24258 rm -f conftest.$ac_objext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24260 (eval $ac_compile) 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } &&
24267 { ac_try='test -z "$ac_c_werror_flag"
24268 || test ! -s conftest.err'
24269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; } &&
24274 { ac_try='test -s conftest.$ac_objext'
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24280 ac_cv_type_long_long_int=yes
24282 echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24285 ac_cv_type_long_long_int=no
24287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24289 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24290 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24292 echo "$as_me:$LINENO: checking size of long long int" >&5
24293 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24294 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 if test "$ac_cv_type_long_long_int" = yes; then
24298 # The cast to unsigned long works around a bug in the HP C Compiler
24299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24301 # This bug is HP SR number 8606223364.
24302 if test "$cross_compiling" = yes; then
24303 # Depending upon the size, compute the lo and hi bounds.
24304 cat >conftest.$ac_ext <<_ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 $ac_includes_default
24314 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24321 rm -f conftest.$ac_objext
24322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24323 (eval $ac_compile) 2>conftest.er1
24325 grep -v '^ *+' conftest.er1 >conftest.err
24327 cat conftest.err >&5
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } &&
24330 { ac_try='test -z "$ac_c_werror_flag"
24331 || test ! -s conftest.err'
24332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333 (eval $ac_try) 2>&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); }; } &&
24337 { ac_try='test -s conftest.$ac_objext'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; }; then
24345 cat >conftest.$ac_ext <<_ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h. */
24351 $ac_includes_default
24355 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24362 rm -f conftest.$ac_objext
24363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24364 (eval $ac_compile) 2>conftest.er1
24366 grep -v '^ *+' conftest.er1 >conftest.err
24368 cat conftest.err >&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } &&
24371 { ac_try='test -z "$ac_c_werror_flag"
24372 || test ! -s conftest.err'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; } &&
24378 { ac_try='test -s conftest.$ac_objext'
24379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380 (eval $ac_try) 2>&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); }; }; then
24384 ac_hi=$ac_mid; break
24386 echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24389 ac_lo=`expr $ac_mid + 1`
24390 if test $ac_lo -le $ac_mid; then
24394 ac_mid=`expr 2 '*' $ac_mid + 1`
24396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24399 echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24402 cat >conftest.$ac_ext <<_ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24408 $ac_includes_default
24412 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24419 rm -f conftest.$ac_objext
24420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24421 (eval $ac_compile) 2>conftest.er1
24423 grep -v '^ *+' conftest.er1 >conftest.err
24425 cat conftest.err >&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } &&
24428 { ac_try='test -z "$ac_c_werror_flag"
24429 || test ! -s conftest.err'
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; } &&
24435 { ac_try='test -s conftest.$ac_objext'
24436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437 (eval $ac_try) 2>&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); }; }; then
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 $ac_includes_default
24453 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24460 rm -f conftest.$ac_objext
24461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24462 (eval $ac_compile) 2>conftest.er1
24464 grep -v '^ *+' conftest.er1 >conftest.err
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } &&
24469 { ac_try='test -z "$ac_c_werror_flag"
24470 || test ! -s conftest.err'
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; } &&
24476 { ac_try='test -s conftest.$ac_objext'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; }; then
24482 ac_lo=$ac_mid; break
24484 echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24487 ac_hi=`expr '(' $ac_mid ')' - 1`
24488 if test $ac_mid -le $ac_hi; then
24492 ac_mid=`expr 2 '*' $ac_mid`
24494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24497 echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24505 # Binary search between lo and hi bounds.
24506 while test "x$ac_lo" != "x$ac_hi"; do
24507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24508 cat >conftest.$ac_ext <<_ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 $ac_includes_default
24518 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24525 rm -f conftest.$ac_objext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24527 (eval $ac_compile) 2>conftest.er1
24529 grep -v '^ *+' conftest.er1 >conftest.err
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
24534 { ac_try='test -z "$ac_c_werror_flag"
24535 || test ! -s conftest.err'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest.$ac_objext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ac_lo=`expr '(' $ac_mid ')' + 1`
24554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24557 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24558 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24559 See \`config.log' for more details." >&5
24560 echo "$as_me: error: cannot compute sizeof (long long int), 77
24561 See \`config.log' for more details." >&2;}
24562 { (exit 1); exit 1; }; } ;;
24565 if test "$cross_compiling" = yes; then
24566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24567 See \`config.log' for more details." >&5
24568 echo "$as_me: error: cannot run test program while cross compiling
24569 See \`config.log' for more details." >&2;}
24570 { (exit 1); exit 1; }; }
24572 cat >conftest.$ac_ext <<_ACEOF
24575 cat confdefs.h >>conftest.$ac_ext
24576 cat >>conftest.$ac_ext <<_ACEOF
24577 /* end confdefs.h. */
24578 $ac_includes_default
24579 long longval () { return (long) (sizeof (long long int)); }
24580 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24582 #include <stdlib.h>
24587 FILE *f = fopen ("conftest.val", "w");
24590 if (((long) (sizeof (long long int))) < 0)
24592 long i = longval ();
24593 if (i != ((long) (sizeof (long long int))))
24595 fprintf (f, "%ld\n", i);
24599 unsigned long i = ulongval ();
24600 if (i != ((long) (sizeof (long long int))))
24602 fprintf (f, "%lu\n", i);
24604 exit (ferror (f) || fclose (f) != 0);
24610 rm -f conftest$ac_exeext
24611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24612 (eval $ac_link) 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 ac_cv_sizeof_long_long_int=`cat conftest.val`
24623 echo "$as_me: program exited with status $ac_status" >&5
24624 echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24627 ( exit $ac_status )
24628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24629 See \`config.log' for more details." >&5
24630 echo "$as_me: error: cannot compute sizeof (long long int), 77
24631 See \`config.log' for more details." >&2;}
24632 { (exit 1); exit 1; }; }
24634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24639 ac_cv_sizeof_long_long_int=0
24642 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24643 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24644 cat >>confdefs.h <<_ACEOF
24645 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24649 echo "$as_me:$LINENO: checking for int *" >&5
24650 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24651 if test "${ac_cv_type_int_p+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 $ac_includes_default
24666 if (sizeof (int *))
24672 rm -f conftest.$ac_objext
24673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24674 (eval $ac_compile) 2>conftest.er1
24676 grep -v '^ *+' conftest.er1 >conftest.err
24678 cat conftest.err >&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } &&
24681 { ac_try='test -z "$ac_c_werror_flag"
24682 || test ! -s conftest.err'
24683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24684 (eval $ac_try) 2>&5
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; } &&
24688 { ac_try='test -s conftest.$ac_objext'
24689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24690 (eval $ac_try) 2>&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; }; then
24694 ac_cv_type_int_p=yes
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24699 ac_cv_type_int_p=no
24701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24703 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24704 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24706 echo "$as_me:$LINENO: checking size of int *" >&5
24707 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24708 if test "${ac_cv_sizeof_int_p+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 if test "$ac_cv_type_int_p" = yes; then
24712 # The cast to unsigned long works around a bug in the HP C Compiler
24713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24715 # This bug is HP SR number 8606223364.
24716 if test "$cross_compiling" = yes; then
24717 # Depending upon the size, compute the lo and hi bounds.
24718 cat >conftest.$ac_ext <<_ACEOF
24721 cat confdefs.h >>conftest.$ac_ext
24722 cat >>conftest.$ac_ext <<_ACEOF
24723 /* end confdefs.h. */
24724 $ac_includes_default
24728 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24735 rm -f conftest.$ac_objext
24736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24737 (eval $ac_compile) 2>conftest.er1
24739 grep -v '^ *+' conftest.er1 >conftest.err
24741 cat conftest.err >&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } &&
24744 { ac_try='test -z "$ac_c_werror_flag"
24745 || test ! -s conftest.err'
24746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24747 (eval $ac_try) 2>&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; } &&
24751 { ac_try='test -s conftest.$ac_objext'
24752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753 (eval $ac_try) 2>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; }; then
24759 cat >conftest.$ac_ext <<_ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h. */
24765 $ac_includes_default
24769 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24776 rm -f conftest.$ac_objext
24777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24778 (eval $ac_compile) 2>conftest.er1
24780 grep -v '^ *+' conftest.er1 >conftest.err
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -z "$ac_c_werror_flag"
24786 || test ! -s conftest.err'
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; } &&
24792 { ac_try='test -s conftest.$ac_objext'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_hi=$ac_mid; break
24800 echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24803 ac_lo=`expr $ac_mid + 1`
24804 if test $ac_lo -le $ac_mid; then
24808 ac_mid=`expr 2 '*' $ac_mid + 1`
24810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 cat >conftest.$ac_ext <<_ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h. */
24822 $ac_includes_default
24826 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24833 rm -f conftest.$ac_objext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24835 (eval $ac_compile) 2>conftest.er1
24837 grep -v '^ *+' conftest.er1 >conftest.err
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
24842 { ac_try='test -z "$ac_c_werror_flag"
24843 || test ! -s conftest.err'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest.$ac_objext'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 $ac_includes_default
24867 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24874 rm -f conftest.$ac_objext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24876 (eval $ac_compile) 2>conftest.er1
24878 grep -v '^ *+' conftest.er1 >conftest.err
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
24883 { ac_try='test -z "$ac_c_werror_flag"
24884 || test ! -s conftest.err'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest.$ac_objext'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 ac_lo=$ac_mid; break
24898 echo "$as_me: failed program was:" >&5
24899 sed 's/^/| /' conftest.$ac_ext >&5
24901 ac_hi=`expr '(' $ac_mid ')' - 1`
24902 if test $ac_mid -le $ac_hi; then
24906 ac_mid=`expr 2 '*' $ac_mid`
24908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24911 echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24919 # Binary search between lo and hi bounds.
24920 while test "x$ac_lo" != "x$ac_hi"; do
24921 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24922 cat >conftest.$ac_ext <<_ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 $ac_includes_default
24932 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24939 rm -f conftest.$ac_objext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941 (eval $ac_compile) 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
24948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest.$ac_objext'
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24963 echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24966 ac_lo=`expr '(' $ac_mid ')' + 1`
24968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24971 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24972 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24973 See \`config.log' for more details." >&5
24974 echo "$as_me: error: cannot compute sizeof (int *), 77
24975 See \`config.log' for more details." >&2;}
24976 { (exit 1); exit 1; }; } ;;
24979 if test "$cross_compiling" = yes; then
24980 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24981 See \`config.log' for more details." >&5
24982 echo "$as_me: error: cannot run test program while cross compiling
24983 See \`config.log' for more details." >&2;}
24984 { (exit 1); exit 1; }; }
24986 cat >conftest.$ac_ext <<_ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h. */
24992 $ac_includes_default
24993 long longval () { return (long) (sizeof (int *)); }
24994 unsigned long ulongval () { return (long) (sizeof (int *)); }
24996 #include <stdlib.h>
25001 FILE *f = fopen ("conftest.val", "w");
25004 if (((long) (sizeof (int *))) < 0)
25006 long i = longval ();
25007 if (i != ((long) (sizeof (int *))))
25009 fprintf (f, "%ld\n", i);
25013 unsigned long i = ulongval ();
25014 if (i != ((long) (sizeof (int *))))
25016 fprintf (f, "%lu\n", i);
25018 exit (ferror (f) || fclose (f) != 0);
25024 rm -f conftest$ac_exeext
25025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25026 (eval $ac_link) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_sizeof_int_p=`cat conftest.val`
25037 echo "$as_me: program exited with status $ac_status" >&5
25038 echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25041 ( exit $ac_status )
25042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25043 See \`config.log' for more details." >&5
25044 echo "$as_me: error: cannot compute sizeof (int *), 77
25045 See \`config.log' for more details." >&2;}
25046 { (exit 1); exit 1; }; }
25048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25053 ac_cv_sizeof_int_p=0
25056 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25057 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25058 cat >>confdefs.h <<_ACEOF
25059 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25064 # Check for sys/types.h types
25065 echo "$as_me:$LINENO: checking for u_int type" >&5
25066 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25067 if test "${ac_cv_have_u_int+set}" = set; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25071 cat >conftest.$ac_ext <<_ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h. */
25077 #include <sys/types.h>
25086 rm -f conftest.$ac_objext
25087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25088 (eval $ac_compile) 2>conftest.er1
25090 grep -v '^ *+' conftest.er1 >conftest.err
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } &&
25095 { ac_try='test -z "$ac_c_werror_flag"
25096 || test ! -s conftest.err'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest.$ac_objext'
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25108 ac_cv_have_u_int="yes"
25110 echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25113 ac_cv_have_u_int="no"
25116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25119 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25120 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25121 if test "x$ac_cv_have_u_int" = "xyes" ; then
25122 cat >>confdefs.h <<\_ACEOF
25123 #define HAVE_U_INT 1
25129 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25130 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25131 if test "${ac_cv_have_intmax_t+set}" = set; then
25132 echo $ECHO_N "(cached) $ECHO_C" >&6
25135 cat >conftest.$ac_ext <<_ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h. */
25141 #include <sys/types.h>
25150 rm -f conftest.$ac_objext
25151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25152 (eval $ac_compile) 2>conftest.er1
25154 grep -v '^ *+' conftest.er1 >conftest.err
25156 cat conftest.err >&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } &&
25159 { ac_try='test -z "$ac_c_werror_flag"
25160 || test ! -s conftest.err'
25161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; } &&
25166 { ac_try='test -s conftest.$ac_objext'
25167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25168 (eval $ac_try) 2>&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }; }; then
25172 ac_cv_have_intmax_t="yes"
25174 echo "$as_me: failed program was:" >&5
25175 sed 's/^/| /' conftest.$ac_ext >&5
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 #include <stdint.h>
25193 rm -f conftest.$ac_objext
25194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25195 (eval $ac_compile) 2>conftest.er1
25197 grep -v '^ *+' conftest.er1 >conftest.err
25199 cat conftest.err >&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); } &&
25202 { ac_try='test -z "$ac_c_werror_flag"
25203 || test ! -s conftest.err'
25204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205 (eval $ac_try) 2>&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }; } &&
25209 { ac_try='test -s conftest.$ac_objext'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; }; then
25215 ac_cv_have_intmax_t="yes"
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25220 ac_cv_have_intmax_t="no"
25223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25231 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25232 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25233 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25234 cat >>confdefs.h <<\_ACEOF
25235 #define HAVE_INTMAX_T 1
25242 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25243 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25244 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25248 cat >conftest.$ac_ext <<_ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25254 #include <sys/types.h>
25258 u_intmax_t a; a = 1;
25263 rm -f conftest.$ac_objext
25264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25265 (eval $ac_compile) 2>conftest.er1
25267 grep -v '^ *+' conftest.er1 >conftest.err
25269 cat conftest.err >&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } &&
25272 { ac_try='test -z "$ac_c_werror_flag"
25273 || test ! -s conftest.err'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; } &&
25279 { ac_try='test -s conftest.$ac_objext'
25280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281 (eval $ac_try) 2>&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); }; }; then
25285 ac_cv_have_u_intmax_t="yes"
25287 echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25291 cat >conftest.$ac_ext <<_ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25297 #include <stdint.h>
25301 u_intmax_t a; a = 1;
25306 rm -f conftest.$ac_objext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25308 (eval $ac_compile) 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } &&
25315 { ac_try='test -z "$ac_c_werror_flag"
25316 || test ! -s conftest.err'
25317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318 (eval $ac_try) 2>&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; } &&
25322 { ac_try='test -s conftest.$ac_objext'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 ac_cv_have_u_intmax_t="yes"
25330 echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25333 ac_cv_have_u_intmax_t="no"
25336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25343 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25344 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25345 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25346 cat >>confdefs.h <<\_ACEOF
25347 #define HAVE_U_INTMAX_T 1
25354 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25355 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25356 if test "${ac_cv_have_intxx_t+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25360 cat >conftest.$ac_ext <<_ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 #include <sys/types.h>
25370 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25375 rm -f conftest.$ac_objext
25376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25377 (eval $ac_compile) 2>conftest.er1
25379 grep -v '^ *+' conftest.er1 >conftest.err
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } &&
25384 { ac_try='test -z "$ac_c_werror_flag"
25385 || test ! -s conftest.err'
25386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387 (eval $ac_try) 2>&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); }; } &&
25391 { ac_try='test -s conftest.$ac_objext'
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; }; then
25397 ac_cv_have_intxx_t="yes"
25399 echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25402 ac_cv_have_intxx_t="no"
25405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25408 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25409 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25410 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25411 cat >>confdefs.h <<\_ACEOF
25412 #define HAVE_INTXX_T 1
25418 echo "$as_me:$LINENO: checking for int64_t type" >&5
25419 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25420 if test "${ac_cv_have_int64_t+set}" = set; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25424 cat >conftest.$ac_ext <<_ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25430 #include <sys/types.h>
25439 rm -f conftest.$ac_objext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25441 (eval $ac_compile) 2>conftest.er1
25443 grep -v '^ *+' conftest.er1 >conftest.err
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } &&
25448 { ac_try='test -z "$ac_c_werror_flag"
25449 || test ! -s conftest.err'
25450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451 (eval $ac_try) 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; } &&
25455 { ac_try='test -s conftest.$ac_objext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ac_cv_have_int64_t="yes"
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 ac_cv_have_int64_t="no"
25469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25472 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25473 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25474 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25475 cat >>confdefs.h <<\_ACEOF
25476 #define HAVE_INT64_T 1
25482 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25483 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25484 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25488 cat >conftest.$ac_ext <<_ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 #include <sys/types.h>
25498 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25503 rm -f conftest.$ac_objext
25504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25505 (eval $ac_compile) 2>conftest.er1
25507 grep -v '^ *+' conftest.er1 >conftest.err
25509 cat conftest.err >&5
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } &&
25512 { ac_try='test -z "$ac_c_werror_flag"
25513 || test ! -s conftest.err'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; } &&
25519 { ac_try='test -s conftest.$ac_objext'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; }; then
25525 ac_cv_have_u_intxx_t="yes"
25527 echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25530 ac_cv_have_u_intxx_t="no"
25533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25536 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25537 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25538 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25539 cat >>confdefs.h <<\_ACEOF
25540 #define HAVE_U_INTXX_T 1
25546 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25547 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25548 if test "${ac_cv_have_u_int64_t+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25552 cat >conftest.$ac_ext <<_ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25558 #include <sys/types.h>
25562 u_int64_t a; a = 1;
25567 rm -f conftest.$ac_objext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25569 (eval $ac_compile) 2>conftest.er1
25571 grep -v '^ *+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } &&
25576 { ac_try='test -z "$ac_c_werror_flag"
25577 || test ! -s conftest.err'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; } &&
25583 { ac_try='test -s conftest.$ac_objext'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 ac_cv_have_u_int64_t="yes"
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25594 ac_cv_have_u_int64_t="no"
25597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25601 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25602 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25603 cat >>confdefs.h <<\_ACEOF
25604 #define HAVE_U_INT64_T 1
25610 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25611 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25613 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25614 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25615 cat >conftest.$ac_ext <<_ACEOF
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h. */
25621 #include <sys/bitypes.h>
25625 int8_t a; int16_t b; int32_t c;
25626 u_int8_t e; u_int16_t f; u_int32_t g;
25627 a = b = c = e = f = g = 1;
25632 rm -f conftest.$ac_objext
25633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25634 (eval $ac_compile) 2>conftest.er1
25636 grep -v '^ *+' conftest.er1 >conftest.err
25638 cat conftest.err >&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } &&
25641 { ac_try='test -z "$ac_c_werror_flag"
25642 || test ! -s conftest.err'
25643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644 (eval $ac_try) 2>&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; } &&
25648 { ac_try='test -s conftest.$ac_objext'
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; }; then
25654 cat >>confdefs.h <<\_ACEOF
25655 #define HAVE_U_INTXX_T 1
25658 cat >>confdefs.h <<\_ACEOF
25659 #define HAVE_INTXX_T 1
25662 cat >>confdefs.h <<\_ACEOF
25663 #define HAVE_SYS_BITYPES_H 1
25666 echo "$as_me:$LINENO: result: yes" >&5
25667 echo "${ECHO_T}yes" >&6
25669 echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25672 echo "$as_me:$LINENO: result: no" >&5
25673 echo "${ECHO_T}no" >&6
25676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25679 if test -z "$have_u_intxx_t" ; then
25680 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25681 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25682 if test "${ac_cv_have_uintxx_t+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25686 cat >conftest.$ac_ext <<_ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h. */
25692 #include <sys/types.h>
25696 uint8_t a; uint16_t b;
25697 uint32_t c; a = b = c = 1;
25702 rm -f conftest.$ac_objext
25703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25704 (eval $ac_compile) 2>conftest.er1
25706 grep -v '^ *+' conftest.er1 >conftest.err
25708 cat conftest.err >&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); } &&
25711 { ac_try='test -z "$ac_c_werror_flag"
25712 || test ! -s conftest.err'
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; } &&
25718 { ac_try='test -s conftest.$ac_objext'
25719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720 (eval $ac_try) 2>&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; }; then
25724 ac_cv_have_uintxx_t="yes"
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ac_cv_have_uintxx_t="no"
25732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25735 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25736 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25737 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25738 cat >>confdefs.h <<\_ACEOF
25739 #define HAVE_UINTXX_T 1
25745 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25746 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25748 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25749 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 #include <sys/bitypes.h>
25760 int64_t a; u_int64_t b;
25766 rm -f conftest.$ac_objext
25767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25768 (eval $ac_compile) 2>conftest.er1
25770 grep -v '^ *+' conftest.er1 >conftest.err
25772 cat conftest.err >&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } &&
25775 { ac_try='test -z "$ac_c_werror_flag"
25776 || test ! -s conftest.err'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; } &&
25782 { ac_try='test -s conftest.$ac_objext'
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; }; then
25788 cat >>confdefs.h <<\_ACEOF
25789 #define HAVE_U_INT64_T 1
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_INT64_T 1
25796 echo "$as_me:$LINENO: result: yes" >&5
25797 echo "${ECHO_T}yes" >&6
25799 echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25802 echo "$as_me:$LINENO: result: no" >&5
25803 echo "${ECHO_T}no" >&6
25806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25809 if (test -z "$have_uintxx_t" && \
25810 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25812 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25813 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25814 cat >conftest.$ac_ext <<_ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h. */
25820 #include <sys/bitypes.h>
25824 uint8_t a; uint16_t b;
25825 uint32_t c; a = b = c = 1;
25830 rm -f conftest.$ac_objext
25831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25832 (eval $ac_compile) 2>conftest.er1
25834 grep -v '^ *+' conftest.er1 >conftest.err
25836 cat conftest.err >&5
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } &&
25839 { ac_try='test -z "$ac_c_werror_flag"
25840 || test ! -s conftest.err'
25841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25842 (eval $ac_try) 2>&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); }; } &&
25846 { ac_try='test -s conftest.$ac_objext'
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 cat >>confdefs.h <<\_ACEOF
25853 #define HAVE_UINTXX_T 1
25856 echo "$as_me:$LINENO: result: yes" >&5
25857 echo "${ECHO_T}yes" >&6
25859 echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25862 echo "$as_me:$LINENO: result: no" >&5
25863 echo "${ECHO_T}no" >&6
25866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25903 echo "$as_me:$LINENO: checking for $ac_func" >&5
25904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25905 if eval "test \"\${$as_ac_var+set}\" = set"; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
25908 cat >conftest.$ac_ext <<_ACEOF
25911 cat confdefs.h >>conftest.$ac_ext
25912 cat >>conftest.$ac_ext <<_ACEOF
25913 /* end confdefs.h. */
25914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25916 #define $ac_func innocuous_$ac_func
25918 /* System header to define __stub macros and hopefully few prototypes,
25919 which can conflict with char $ac_func (); below.
25920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25921 <limits.h> exists even on freestanding compilers. */
25924 # include <limits.h>
25926 # include <assert.h>
25931 /* Override any gcc2 internal prototype to avoid an error. */
25936 /* We use char because int might match the return type of a gcc2
25937 builtin and then its argument prototype would still apply. */
25939 /* The GNU C library defines this for functions which it implements
25940 to always fail with ENOSYS. Some functions are actually named
25941 something starting with __ and the normal name is an alias. */
25942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25945 char (*f) () = $ac_func;
25954 return f != $ac_func;
25959 rm -f conftest.$ac_objext conftest$ac_exeext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25961 (eval $ac_link) 2>conftest.er1
25963 grep -v '^ *+' conftest.er1 >conftest.err
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } &&
25968 { ac_try='test -z "$ac_c_werror_flag"
25969 || test ! -s conftest.err'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try='test -s conftest$ac_exeext'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; }; then
25981 eval "$as_ac_var=yes"
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 eval "$as_ac_var=no"
25988 rm -f conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
25991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25993 if test `eval echo '${'$as_ac_var'}'` = yes; then
25994 cat >>confdefs.h <<_ACEOF
25995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25999 echo 'configure: cannot find needed function.'; exit 1
26006 for ac_func in fchdir
26008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26009 echo "$as_me:$LINENO: checking for $ac_func" >&5
26010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26011 if eval "test \"\${$as_ac_var+set}\" = set"; then
26012 echo $ECHO_N "(cached) $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h. */
26020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26022 #define $ac_func innocuous_$ac_func
26024 /* System header to define __stub macros and hopefully few prototypes,
26025 which can conflict with char $ac_func (); below.
26026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26027 <limits.h> exists even on freestanding compilers. */
26030 # include <limits.h>
26032 # include <assert.h>
26037 /* Override any gcc2 internal prototype to avoid an error. */
26042 /* We use char because int might match the return type of a gcc2
26043 builtin and then its argument prototype would still apply. */
26045 /* The GNU C library defines this for functions which it implements
26046 to always fail with ENOSYS. Some functions are actually named
26047 something starting with __ and the normal name is an alias. */
26048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26051 char (*f) () = $ac_func;
26060 return f != $ac_func;
26065 rm -f conftest.$ac_objext conftest$ac_exeext
26066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26067 (eval $ac_link) 2>conftest.er1
26069 grep -v '^ *+' conftest.er1 >conftest.err
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
26074 { ac_try='test -z "$ac_c_werror_flag"
26075 || test ! -s conftest.err'
26076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077 (eval $ac_try) 2>&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); }; } &&
26081 { ac_try='test -s conftest$ac_exeext'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26087 eval "$as_ac_var=yes"
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 eval "$as_ac_var=no"
26094 rm -f conftest.err conftest.$ac_objext \
26095 conftest$ac_exeext conftest.$ac_ext
26097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26099 if test `eval echo '${'$as_ac_var'}'` = yes; then
26100 cat >>confdefs.h <<_ACEOF
26101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26103 cat >>confdefs.h <<\_ACEOF
26104 #define HAVE_FCHDIR 1
26111 for ac_func in strtoll
26113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26114 echo "$as_me:$LINENO: checking for $ac_func" >&5
26115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26116 if eval "test \"\${$as_ac_var+set}\" = set"; then
26117 echo $ECHO_N "(cached) $ECHO_C" >&6
26119 cat >conftest.$ac_ext <<_ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h. */
26125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26127 #define $ac_func innocuous_$ac_func
26129 /* System header to define __stub macros and hopefully few prototypes,
26130 which can conflict with char $ac_func (); below.
26131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26132 <limits.h> exists even on freestanding compilers. */
26135 # include <limits.h>
26137 # include <assert.h>
26142 /* Override any gcc2 internal prototype to avoid an error. */
26147 /* We use char because int might match the return type of a gcc2
26148 builtin and then its argument prototype would still apply. */
26150 /* The GNU C library defines this for functions which it implements
26151 to always fail with ENOSYS. Some functions are actually named
26152 something starting with __ and the normal name is an alias. */
26153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26156 char (*f) () = $ac_func;
26165 return f != $ac_func;
26170 rm -f conftest.$ac_objext conftest$ac_exeext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26172 (eval $ac_link) 2>conftest.er1
26174 grep -v '^ *+' conftest.er1 >conftest.err
26176 cat conftest.err >&5
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -z "$ac_c_werror_flag"
26180 || test ! -s conftest.err'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; } &&
26186 { ac_try='test -s conftest$ac_exeext'
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; }; then
26192 eval "$as_ac_var=yes"
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 eval "$as_ac_var=no"
26199 rm -f conftest.err conftest.$ac_objext \
26200 conftest$ac_exeext conftest.$ac_ext
26202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26204 if test `eval echo '${'$as_ac_var'}'` = yes; then
26205 cat >>confdefs.h <<_ACEOF
26206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26208 cat >>confdefs.h <<\_ACEOF
26209 #define HAVE_STRTOLL 1
26217 for ac_func in chflags
26219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26220 echo "$as_me:$LINENO: checking for $ac_func" >&5
26221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26222 if eval "test \"\${$as_ac_var+set}\" = set"; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26225 cat >conftest.$ac_ext <<_ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h. */
26231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26233 #define $ac_func innocuous_$ac_func
26235 /* System header to define __stub macros and hopefully few prototypes,
26236 which can conflict with char $ac_func (); below.
26237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26238 <limits.h> exists even on freestanding compilers. */
26241 # include <limits.h>
26243 # include <assert.h>
26248 /* Override any gcc2 internal prototype to avoid an error. */
26253 /* We use char because int might match the return type of a gcc2
26254 builtin and then its argument prototype would still apply. */
26256 /* The GNU C library defines this for functions which it implements
26257 to always fail with ENOSYS. Some functions are actually named
26258 something starting with __ and the normal name is an alias. */
26259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26262 char (*f) () = $ac_func;
26271 return f != $ac_func;
26276 rm -f conftest.$ac_objext conftest$ac_exeext
26277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26278 (eval $ac_link) 2>conftest.er1
26280 grep -v '^ *+' conftest.er1 >conftest.err
26282 cat conftest.err >&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } &&
26285 { ac_try='test -z "$ac_c_werror_flag"
26286 || test ! -s conftest.err'
26287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288 (eval $ac_try) 2>&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); }; } &&
26292 { ac_try='test -s conftest$ac_exeext'
26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294 (eval $ac_try) 2>&5
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); }; }; then
26298 eval "$as_ac_var=yes"
26300 echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26303 eval "$as_ac_var=no"
26305 rm -f conftest.err conftest.$ac_objext \
26306 conftest$ac_exeext conftest.$ac_ext
26308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26310 if test `eval echo '${'$as_ac_var'}'` = yes; then
26311 cat >>confdefs.h <<_ACEOF
26312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26323 for ac_func in snprintf vsnprintf gethostid fseeko
26325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26326 echo "$as_me:$LINENO: checking for $ac_func" >&5
26327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26328 if eval "test \"\${$as_ac_var+set}\" = set"; then
26329 echo $ECHO_N "(cached) $ECHO_C" >&6
26331 cat >conftest.$ac_ext <<_ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h. */
26337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26339 #define $ac_func innocuous_$ac_func
26341 /* System header to define __stub macros and hopefully few prototypes,
26342 which can conflict with char $ac_func (); below.
26343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26344 <limits.h> exists even on freestanding compilers. */
26347 # include <limits.h>
26349 # include <assert.h>
26354 /* Override any gcc2 internal prototype to avoid an error. */
26359 /* We use char because int might match the return type of a gcc2
26360 builtin and then its argument prototype would still apply. */
26362 /* The GNU C library defines this for functions which it implements
26363 to always fail with ENOSYS. Some functions are actually named
26364 something starting with __ and the normal name is an alias. */
26365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26368 char (*f) () = $ac_func;
26377 return f != $ac_func;
26382 rm -f conftest.$ac_objext conftest$ac_exeext
26383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26384 (eval $ac_link) 2>conftest.er1
26386 grep -v '^ *+' conftest.er1 >conftest.err
26388 cat conftest.err >&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } &&
26391 { ac_try='test -z "$ac_c_werror_flag"
26392 || test ! -s conftest.err'
26393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394 (eval $ac_try) 2>&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; } &&
26398 { ac_try='test -s conftest$ac_exeext'
26399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400 (eval $ac_try) 2>&5
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; }; then
26404 eval "$as_ac_var=yes"
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 eval "$as_ac_var=no"
26411 rm -f conftest.err conftest.$ac_objext \
26412 conftest$ac_exeext conftest.$ac_ext
26414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26416 if test `eval echo '${'$as_ac_var'}'` = yes; then
26417 cat >>confdefs.h <<_ACEOF
26418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26429 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26432 echo "$as_me:$LINENO: checking for $ac_func" >&5
26433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26434 if eval "test \"\${$as_ac_var+set}\" = set"; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h. */
26443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26445 #define $ac_func innocuous_$ac_func
26447 /* System header to define __stub macros and hopefully few prototypes,
26448 which can conflict with char $ac_func (); below.
26449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26450 <limits.h> exists even on freestanding compilers. */
26453 # include <limits.h>
26455 # include <assert.h>
26460 /* Override any gcc2 internal prototype to avoid an error. */
26465 /* We use char because int might match the return type of a gcc2
26466 builtin and then its argument prototype would still apply. */
26468 /* The GNU C library defines this for functions which it implements
26469 to always fail with ENOSYS. Some functions are actually named
26470 something starting with __ and the normal name is an alias. */
26471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26474 char (*f) () = $ac_func;
26483 return f != $ac_func;
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26490 (eval $ac_link) 2>conftest.er1
26492 grep -v '^ *+' conftest.er1 >conftest.err
26494 cat conftest.err >&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } &&
26497 { ac_try='test -z "$ac_c_werror_flag"
26498 || test ! -s conftest.err'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; } &&
26504 { ac_try='test -s conftest$ac_exeext'
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; }; then
26510 eval "$as_ac_var=yes"
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 eval "$as_ac_var=no"
26517 rm -f conftest.err conftest.$ac_objext \
26518 conftest$ac_exeext conftest.$ac_ext
26520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26522 if test `eval echo '${'$as_ac_var'}'` = yes; then
26523 cat >>confdefs.h <<_ACEOF
26524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26531 # If resolver functions are not in libc check for -lnsl or -lresolv.
26532 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26533 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26534 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26545 #define gethostbyname_r innocuous_gethostbyname_r
26547 /* System header to define __stub macros and hopefully few prototypes,
26548 which can conflict with char gethostbyname_r (); below.
26549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26550 <limits.h> exists even on freestanding compilers. */
26553 # include <limits.h>
26555 # include <assert.h>
26558 #undef gethostbyname_r
26560 /* Override any gcc2 internal prototype to avoid an error. */
26565 /* We use char because int might match the return type of a gcc2
26566 builtin and then its argument prototype would still apply. */
26567 char gethostbyname_r ();
26568 /* The GNU C library defines this for functions which it implements
26569 to always fail with ENOSYS. Some functions are actually named
26570 something starting with __ and the normal name is an alias. */
26571 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26574 char (*f) () = gethostbyname_r;
26583 return f != gethostbyname_r;
26588 rm -f conftest.$ac_objext conftest$ac_exeext
26589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26590 (eval $ac_link) 2>conftest.er1
26592 grep -v '^ *+' conftest.er1 >conftest.err
26594 cat conftest.err >&5
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } &&
26597 { ac_try='test -z "$ac_c_werror_flag"
26598 || test ! -s conftest.err'
26599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600 (eval $ac_try) 2>&5
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); }; } &&
26604 { ac_try='test -s conftest$ac_exeext'
26605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26606 (eval $ac_try) 2>&5
26608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609 (exit $ac_status); }; }; then
26610 ac_cv_func_gethostbyname_r=yes
26612 echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26615 ac_cv_func_gethostbyname_r=no
26617 rm -f conftest.err conftest.$ac_objext \
26618 conftest$ac_exeext conftest.$ac_ext
26620 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26621 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26622 if test $ac_cv_func_gethostbyname_r = yes; then
26623 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26624 echo "${ECHO_T}using libc's resolver" >&6
26627 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26628 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26629 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26630 echo $ECHO_N "(cached) $ECHO_C" >&6
26632 ac_check_lib_save_LIBS=$LIBS
26634 cat >conftest.$ac_ext <<_ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26641 /* Override any gcc2 internal prototype to avoid an error. */
26645 /* We use char because int might match the return type of a gcc2
26646 builtin and then its argument prototype would still apply. */
26647 char gethostbyname_r ();
26651 gethostbyname_r ();
26656 rm -f conftest.$ac_objext conftest$ac_exeext
26657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26658 (eval $ac_link) 2>conftest.er1
26660 grep -v '^ *+' conftest.er1 >conftest.err
26662 cat conftest.err >&5
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); } &&
26665 { ac_try='test -z "$ac_c_werror_flag"
26666 || test ! -s conftest.err'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; } &&
26672 { ac_try='test -s conftest$ac_exeext'
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 ac_cv_lib_nsl_gethostbyname_r=yes
26680 echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26683 ac_cv_lib_nsl_gethostbyname_r=no
26685 rm -f conftest.err conftest.$ac_objext \
26686 conftest$ac_exeext conftest.$ac_ext
26687 LIBS=$ac_check_lib_save_LIBS
26689 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26690 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26691 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26692 cat >>confdefs.h <<_ACEOF
26693 #define HAVE_LIBNSL 1
26701 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26702 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26703 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26706 ac_check_lib_save_LIBS=$LIBS
26707 LIBS="-lresolv $LIBS"
26708 cat >conftest.$ac_ext <<_ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h. */
26715 /* Override any gcc2 internal prototype to avoid an error. */
26719 /* We use char because int might match the return type of a gcc2
26720 builtin and then its argument prototype would still apply. */
26721 char gethostbyname_r ();
26725 gethostbyname_r ();
26730 rm -f conftest.$ac_objext conftest$ac_exeext
26731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26732 (eval $ac_link) 2>conftest.er1
26734 grep -v '^ *+' conftest.er1 >conftest.err
26736 cat conftest.err >&5
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } &&
26739 { ac_try='test -z "$ac_c_werror_flag"
26740 || test ! -s conftest.err'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; } &&
26746 { ac_try='test -s conftest$ac_exeext'
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; }; then
26752 ac_cv_lib_resolv_gethostbyname_r=yes
26754 echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26757 ac_cv_lib_resolv_gethostbyname_r=no
26759 rm -f conftest.err conftest.$ac_objext \
26760 conftest$ac_exeext conftest.$ac_ext
26761 LIBS=$ac_check_lib_save_LIBS
26763 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26764 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26765 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26766 cat >>confdefs.h <<_ACEOF
26767 #define HAVE_LIBRESOLV 1
26770 LIBS="-lresolv $LIBS"
26780 for ac_func in inet_pton
26782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26783 echo "$as_me:$LINENO: checking for $ac_func" >&5
26784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26785 if eval "test \"\${$as_ac_var+set}\" = set"; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26788 cat >conftest.$ac_ext <<_ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h. */
26794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26796 #define $ac_func innocuous_$ac_func
26798 /* System header to define __stub macros and hopefully few prototypes,
26799 which can conflict with char $ac_func (); below.
26800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26801 <limits.h> exists even on freestanding compilers. */
26804 # include <limits.h>
26806 # include <assert.h>
26811 /* Override any gcc2 internal prototype to avoid an error. */
26816 /* We use char because int might match the return type of a gcc2
26817 builtin and then its argument prototype would still apply. */
26819 /* The GNU C library defines this for functions which it implements
26820 to always fail with ENOSYS. Some functions are actually named
26821 something starting with __ and the normal name is an alias. */
26822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26825 char (*f) () = $ac_func;
26834 return f != $ac_func;
26839 rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26841 (eval $ac_link) 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
26848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest$ac_exeext'
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 eval "$as_ac_var=yes"
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 eval "$as_ac_var=no"
26868 rm -f conftest.err conftest.$ac_objext \
26869 conftest$ac_exeext conftest.$ac_ext
26871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26873 if test `eval echo '${'$as_ac_var'}'` = yes; then
26874 cat >>confdefs.h <<_ACEOF
26875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26877 cat >>confdefs.h <<\_ACEOF
26878 #define HAVE_INET_PTON 1
26885 for ac_func in inet_ntop
26887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26888 echo "$as_me:$LINENO: checking for $ac_func" >&5
26889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26890 if eval "test \"\${$as_ac_var+set}\" = set"; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26901 #define $ac_func innocuous_$ac_func
26903 /* System header to define __stub macros and hopefully few prototypes,
26904 which can conflict with char $ac_func (); below.
26905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26906 <limits.h> exists even on freestanding compilers. */
26909 # include <limits.h>
26911 # include <assert.h>
26916 /* Override any gcc2 internal prototype to avoid an error. */
26921 /* We use char because int might match the return type of a gcc2
26922 builtin and then its argument prototype would still apply. */
26924 /* The GNU C library defines this for functions which it implements
26925 to always fail with ENOSYS. Some functions are actually named
26926 something starting with __ and the normal name is an alias. */
26927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26930 char (*f) () = $ac_func;
26939 return f != $ac_func;
26944 rm -f conftest.$ac_objext conftest$ac_exeext
26945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26946 (eval $ac_link) 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } &&
26953 { ac_try='test -z "$ac_c_werror_flag"
26954 || test ! -s conftest.err'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; } &&
26960 { ac_try='test -s conftest$ac_exeext'
26961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26962 (eval $ac_try) 2>&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); }; }; then
26966 eval "$as_ac_var=yes"
26968 echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26971 eval "$as_ac_var=no"
26973 rm -f conftest.err conftest.$ac_objext \
26974 conftest$ac_exeext conftest.$ac_ext
26976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26978 if test `eval echo '${'$as_ac_var'}'` = yes; then
26979 cat >>confdefs.h <<_ACEOF
26980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26982 cat >>confdefs.h <<\_ACEOF
26983 #define HAVE_INET_NTOP 1
26990 for ac_func in gethostbyname2
26992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26993 echo "$as_me:$LINENO: checking for $ac_func" >&5
26994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26995 if eval "test \"\${$as_ac_var+set}\" = set"; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 cat >conftest.$ac_ext <<_ACEOF
27001 cat confdefs.h >>conftest.$ac_ext
27002 cat >>conftest.$ac_ext <<_ACEOF
27003 /* end confdefs.h. */
27004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27006 #define $ac_func innocuous_$ac_func
27008 /* System header to define __stub macros and hopefully few prototypes,
27009 which can conflict with char $ac_func (); below.
27010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27011 <limits.h> exists even on freestanding compilers. */
27014 # include <limits.h>
27016 # include <assert.h>
27021 /* Override any gcc2 internal prototype to avoid an error. */
27026 /* We use char because int might match the return type of a gcc2
27027 builtin and then its argument prototype would still apply. */
27029 /* The GNU C library defines this for functions which it implements
27030 to always fail with ENOSYS. Some functions are actually named
27031 something starting with __ and the normal name is an alias. */
27032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27035 char (*f) () = $ac_func;
27044 return f != $ac_func;
27049 rm -f conftest.$ac_objext conftest$ac_exeext
27050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27051 (eval $ac_link) 2>conftest.er1
27053 grep -v '^ *+' conftest.er1 >conftest.err
27055 cat conftest.err >&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } &&
27058 { ac_try='test -z "$ac_c_werror_flag"
27059 || test ! -s conftest.err'
27060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27061 (eval $ac_try) 2>&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); }; } &&
27065 { ac_try='test -s conftest$ac_exeext'
27066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067 (eval $ac_try) 2>&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; }; then
27071 eval "$as_ac_var=yes"
27073 echo "$as_me: failed program was:" >&5
27074 sed 's/^/| /' conftest.$ac_ext >&5
27076 eval "$as_ac_var=no"
27078 rm -f conftest.err conftest.$ac_objext \
27079 conftest$ac_exeext conftest.$ac_ext
27081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27083 if test `eval echo '${'$as_ac_var'}'` = yes; then
27084 cat >>confdefs.h <<_ACEOF
27085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27087 cat >>confdefs.h <<\_ACEOF
27088 #define HAVE_GETHOSTBYNAME2 1
27095 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27096 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27097 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27098 echo $ECHO_N "(cached) $ECHO_C" >&6
27100 cat >conftest.$ac_ext <<_ACEOF
27103 cat confdefs.h >>conftest.$ac_ext
27104 cat >>conftest.$ac_ext <<_ACEOF
27105 /* end confdefs.h. */
27106 #include <sys/socket.h>
27110 struct sockaddr s; s.sa_len;
27115 rm -f conftest.$ac_objext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27117 (eval $ac_compile) 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest.$ac_objext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_struct_sockaddr_sa_len=yes
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27142 ac_cv_struct_sockaddr_sa_len=no
27144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27146 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27147 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27149 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27151 cat >>confdefs.h <<\_ACEOF
27152 #define HAVE_SA_LEN 1
27158 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27159 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27160 if test "${ac_cv_ipv6_support+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27163 cat >conftest.$ac_ext <<_ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h. */
27169 #include <sys/types.h>
27170 #include <sys/socket.h>
27171 #include <netinet/in.h>
27175 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27181 rm -f conftest.$ac_objext conftest$ac_exeext
27182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27183 (eval $ac_link) 2>conftest.er1
27185 grep -v '^ *+' conftest.er1 >conftest.err
27187 cat conftest.err >&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
27190 { ac_try='test -z "$ac_c_werror_flag"
27191 || test ! -s conftest.err'
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; } &&
27197 { ac_try='test -s conftest$ac_exeext'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27203 ac_cv_ipv6_support=yes
27205 echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27208 ac_cv_ipv6_support=no
27210 rm -f conftest.err conftest.$ac_objext \
27211 conftest$ac_exeext conftest.$ac_ext
27213 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27214 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27216 if test "$ac_cv_ipv6_support" = yes; then
27218 cat >>confdefs.h <<\_ACEOF
27219 #define HAVE_IPV6 1
27227 for ac_func in strftime
27229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27230 echo "$as_me:$LINENO: checking for $ac_func" >&5
27231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27232 if eval "test \"\${$as_ac_var+set}\" = set"; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27235 cat >conftest.$ac_ext <<_ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27243 #define $ac_func innocuous_$ac_func
27245 /* System header to define __stub macros and hopefully few prototypes,
27246 which can conflict with char $ac_func (); below.
27247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27248 <limits.h> exists even on freestanding compilers. */
27251 # include <limits.h>
27253 # include <assert.h>
27258 /* Override any gcc2 internal prototype to avoid an error. */
27263 /* We use char because int might match the return type of a gcc2
27264 builtin and then its argument prototype would still apply. */
27266 /* The GNU C library defines this for functions which it implements
27267 to always fail with ENOSYS. Some functions are actually named
27268 something starting with __ and the normal name is an alias. */
27269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27272 char (*f) () = $ac_func;
27281 return f != $ac_func;
27286 rm -f conftest.$ac_objext conftest$ac_exeext
27287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27288 (eval $ac_link) 2>conftest.er1
27290 grep -v '^ *+' conftest.er1 >conftest.err
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } &&
27295 { ac_try='test -z "$ac_c_werror_flag"
27296 || test ! -s conftest.err'
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
27303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304 (eval $ac_try) 2>&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); }; }; then
27308 eval "$as_ac_var=yes"
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 eval "$as_ac_var=no"
27315 rm -f conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext conftest.$ac_ext
27318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27320 if test `eval echo '${'$as_ac_var'}'` = yes; then
27321 cat >>confdefs.h <<_ACEOF
27322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27326 # strftime is in -lintl on SCO UNIX.
27327 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27328 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27329 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27330 echo $ECHO_N "(cached) $ECHO_C" >&6
27332 ac_check_lib_save_LIBS=$LIBS
27333 LIBS="-lintl $LIBS"
27334 cat >conftest.$ac_ext <<_ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27341 /* Override any gcc2 internal prototype to avoid an error. */
27345 /* We use char because int might match the return type of a gcc2
27346 builtin and then its argument prototype would still apply. */
27356 rm -f conftest.$ac_objext conftest$ac_exeext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27358 (eval $ac_link) 2>conftest.er1
27360 grep -v '^ *+' conftest.er1 >conftest.err
27362 cat conftest.err >&5
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); } &&
27365 { ac_try='test -z "$ac_c_werror_flag"
27366 || test ! -s conftest.err'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; } &&
27372 { ac_try='test -s conftest$ac_exeext'
27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374 (eval $ac_try) 2>&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; }; then
27378 ac_cv_lib_intl_strftime=yes
27380 echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.$ac_ext >&5
27383 ac_cv_lib_intl_strftime=no
27385 rm -f conftest.err conftest.$ac_objext \
27386 conftest$ac_exeext conftest.$ac_ext
27387 LIBS=$ac_check_lib_save_LIBS
27389 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27390 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27391 if test $ac_cv_lib_intl_strftime = yes; then
27392 cat >>confdefs.h <<\_ACEOF
27393 #define HAVE_STRFTIME 1
27396 LIBS="-lintl $LIBS"
27403 for ac_func in vprintf
27405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27406 echo "$as_me:$LINENO: checking for $ac_func" >&5
27407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27408 if eval "test \"\${$as_ac_var+set}\" = set"; then
27409 echo $ECHO_N "(cached) $ECHO_C" >&6
27411 cat >conftest.$ac_ext <<_ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h. */
27417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27419 #define $ac_func innocuous_$ac_func
27421 /* System header to define __stub macros and hopefully few prototypes,
27422 which can conflict with char $ac_func (); below.
27423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27424 <limits.h> exists even on freestanding compilers. */
27427 # include <limits.h>
27429 # include <assert.h>
27434 /* Override any gcc2 internal prototype to avoid an error. */
27439 /* We use char because int might match the return type of a gcc2
27440 builtin and then its argument prototype would still apply. */
27442 /* The GNU C library defines this for functions which it implements
27443 to always fail with ENOSYS. Some functions are actually named
27444 something starting with __ and the normal name is an alias. */
27445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27448 char (*f) () = $ac_func;
27457 return f != $ac_func;
27462 rm -f conftest.$ac_objext conftest$ac_exeext
27463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27464 (eval $ac_link) 2>conftest.er1
27466 grep -v '^ *+' conftest.er1 >conftest.err
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag"
27472 || test ! -s conftest.err'
27473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27474 (eval $ac_try) 2>&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; } &&
27478 { ac_try='test -s conftest$ac_exeext'
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; }; then
27484 eval "$as_ac_var=yes"
27486 echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27489 eval "$as_ac_var=no"
27491 rm -f conftest.err conftest.$ac_objext \
27492 conftest$ac_exeext conftest.$ac_ext
27494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27496 if test `eval echo '${'$as_ac_var'}'` = yes; then
27497 cat >>confdefs.h <<_ACEOF
27498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27501 echo "$as_me:$LINENO: checking for _doprnt" >&5
27502 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27503 if test "${ac_cv_func__doprnt+set}" = set; then
27504 echo $ECHO_N "(cached) $ECHO_C" >&6
27506 cat >conftest.$ac_ext <<_ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27512 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27514 #define _doprnt innocuous__doprnt
27516 /* System header to define __stub macros and hopefully few prototypes,
27517 which can conflict with char _doprnt (); below.
27518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27519 <limits.h> exists even on freestanding compilers. */
27522 # include <limits.h>
27524 # include <assert.h>
27529 /* Override any gcc2 internal prototype to avoid an error. */
27534 /* We use char because int might match the return type of a gcc2
27535 builtin and then its argument prototype would still apply. */
27537 /* The GNU C library defines this for functions which it implements
27538 to always fail with ENOSYS. Some functions are actually named
27539 something starting with __ and the normal name is an alias. */
27540 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27543 char (*f) () = _doprnt;
27552 return f != _doprnt;
27557 rm -f conftest.$ac_objext conftest$ac_exeext
27558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27559 (eval $ac_link) 2>conftest.er1
27561 grep -v '^ *+' conftest.er1 >conftest.err
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag"
27567 || test ! -s conftest.err'
27568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; } &&
27573 { ac_try='test -s conftest$ac_exeext'
27574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575 (eval $ac_try) 2>&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; }; then
27579 ac_cv_func__doprnt=yes
27581 echo "$as_me: failed program was:" >&5
27582 sed 's/^/| /' conftest.$ac_ext >&5
27584 ac_cv_func__doprnt=no
27586 rm -f conftest.err conftest.$ac_objext \
27587 conftest$ac_exeext conftest.$ac_ext
27589 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27590 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27591 if test $ac_cv_func__doprnt = yes; then
27593 cat >>confdefs.h <<\_ACEOF
27594 #define HAVE_DOPRNT 1
27603 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27604 # for constant arguments. Useless!
27605 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27606 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27607 if test "${ac_cv_working_alloca_h+set}" = set; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27610 cat >conftest.$ac_ext <<_ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27616 #include <alloca.h>
27620 char *p = (char *) alloca (2 * sizeof (int));
27625 rm -f conftest.$ac_objext conftest$ac_exeext
27626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27627 (eval $ac_link) 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } &&
27634 { ac_try='test -z "$ac_c_werror_flag"
27635 || test ! -s conftest.err'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; } &&
27641 { ac_try='test -s conftest$ac_exeext'
27642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27643 (eval $ac_try) 2>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; }; then
27647 ac_cv_working_alloca_h=yes
27649 echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27652 ac_cv_working_alloca_h=no
27654 rm -f conftest.err conftest.$ac_objext \
27655 conftest$ac_exeext conftest.$ac_ext
27657 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27658 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27659 if test $ac_cv_working_alloca_h = yes; then
27661 cat >>confdefs.h <<\_ACEOF
27662 #define HAVE_ALLOCA_H 1
27667 echo "$as_me:$LINENO: checking for alloca" >&5
27668 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27669 if test "${ac_cv_func_alloca_works+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 cat >conftest.$ac_ext <<_ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h. */
27679 # define alloca __builtin_alloca
27682 # include <malloc.h>
27683 # define alloca _alloca
27686 # include <alloca.h>
27691 # ifndef alloca /* predefined by HP cc +Olibcalls */
27702 char *p = (char *) alloca (1);
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709 (eval $ac_link) 2>conftest.er1
27711 grep -v '^ *+' conftest.er1 >conftest.err
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag"
27717 || test ! -s conftest.err'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest$ac_exeext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 ac_cv_func_alloca_works=yes
27731 echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27734 ac_cv_func_alloca_works=no
27736 rm -f conftest.err conftest.$ac_objext \
27737 conftest$ac_exeext conftest.$ac_ext
27739 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27740 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27742 if test $ac_cv_func_alloca_works = yes; then
27744 cat >>confdefs.h <<\_ACEOF
27745 #define HAVE_ALLOCA 1
27749 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27750 # that cause trouble. Some versions do not even contain alloca or
27751 # contain a buggy version. If you still want to use their alloca,
27752 # use ar to extract alloca.o from them instead of compiling alloca.c.
27754 ALLOCA=alloca.$ac_objext
27756 cat >>confdefs.h <<\_ACEOF
27761 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27762 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27763 if test "${ac_cv_os_cray+set}" = set; then
27764 echo $ECHO_N "(cached) $ECHO_C" >&6
27766 cat >conftest.$ac_ext <<_ACEOF
27769 cat confdefs.h >>conftest.$ac_ext
27770 cat >>conftest.$ac_ext <<_ACEOF
27771 /* end confdefs.h. */
27772 #if defined(CRAY) && ! defined(CRAY2)
27779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27780 $EGREP "webecray" >/dev/null 2>&1; then
27788 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27789 echo "${ECHO_T}$ac_cv_os_cray" >&6
27790 if test $ac_cv_os_cray = yes; then
27791 for ac_func in _getb67 GETB67 getb67; do
27792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27793 echo "$as_me:$LINENO: checking for $ac_func" >&5
27794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27795 if eval "test \"\${$as_ac_var+set}\" = set"; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27806 #define $ac_func innocuous_$ac_func
27808 /* System header to define __stub macros and hopefully few prototypes,
27809 which can conflict with char $ac_func (); below.
27810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811 <limits.h> exists even on freestanding compilers. */
27814 # include <limits.h>
27816 # include <assert.h>
27821 /* Override any gcc2 internal prototype to avoid an error. */
27826 /* We use char because int might match the return type of a gcc2
27827 builtin and then its argument prototype would still apply. */
27829 /* The GNU C library defines this for functions which it implements
27830 to always fail with ENOSYS. Some functions are actually named
27831 something starting with __ and the normal name is an alias. */
27832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27835 char (*f) () = $ac_func;
27844 return f != $ac_func;
27849 rm -f conftest.$ac_objext conftest$ac_exeext
27850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27851 (eval $ac_link) 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } &&
27858 { ac_try='test -z "$ac_c_werror_flag"
27859 || test ! -s conftest.err'
27860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861 (eval $ac_try) 2>&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; } &&
27865 { ac_try='test -s conftest$ac_exeext'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; }; then
27871 eval "$as_ac_var=yes"
27873 echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27876 eval "$as_ac_var=no"
27878 rm -f conftest.err conftest.$ac_objext \
27879 conftest$ac_exeext conftest.$ac_ext
27881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27883 if test `eval echo '${'$as_ac_var'}'` = yes; then
27885 cat >>confdefs.h <<_ACEOF
27886 #define CRAY_STACKSEG_END $ac_func
27895 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27896 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27897 if test "${ac_cv_c_stack_direction+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27900 if test "$cross_compiling" = yes; then
27901 ac_cv_c_stack_direction=0
27903 cat >conftest.$ac_ext <<_ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27910 find_stack_direction ()
27912 static char *addr = 0;
27917 return find_stack_direction ();
27920 return (&dummy > addr) ? 1 : -1;
27926 exit (find_stack_direction () < 0);
27929 rm -f conftest$ac_exeext
27930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27931 (eval $ac_link) 2>&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936 (eval $ac_try) 2>&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); }; }; then
27940 ac_cv_c_stack_direction=1
27942 echo "$as_me: program exited with status $ac_status" >&5
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.$ac_ext >&5
27946 ( exit $ac_status )
27947 ac_cv_c_stack_direction=-1
27949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27952 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27953 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27955 cat >>confdefs.h <<_ACEOF
27956 #define STACK_DIRECTION $ac_cv_c_stack_direction
27962 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
27963 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
27964 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
27965 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27968 ac_check_lib_save_LIBS=$LIBS
27970 cat >conftest.$ac_ext <<_ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h. */
27977 /* Override any gcc2 internal prototype to avoid an error. */
27981 /* We use char because int might match the return type of a gcc2
27982 builtin and then its argument prototype would still apply. */
27992 rm -f conftest.$ac_objext conftest$ac_exeext
27993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27994 (eval $ac_link) 2>conftest.er1
27996 grep -v '^ *+' conftest.er1 >conftest.err
27998 cat conftest.err >&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); } &&
28001 { ac_try='test -z "$ac_c_werror_flag"
28002 || test ! -s conftest.err'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; } &&
28008 { ac_try='test -s conftest$ac_exeext'
28009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28010 (eval $ac_try) 2>&5
28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013 (exit $ac_status); }; }; then
28014 ac_cv_lib_sun_getmntent=yes
28016 echo "$as_me: failed program was:" >&5
28017 sed 's/^/| /' conftest.$ac_ext >&5
28019 ac_cv_lib_sun_getmntent=no
28021 rm -f conftest.err conftest.$ac_objext \
28022 conftest$ac_exeext conftest.$ac_ext
28023 LIBS=$ac_check_lib_save_LIBS
28025 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28026 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28027 if test $ac_cv_lib_sun_getmntent = yes; then
28030 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28031 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28032 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28033 echo $ECHO_N "(cached) $ECHO_C" >&6
28035 ac_check_lib_save_LIBS=$LIBS
28037 cat >conftest.$ac_ext <<_ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h. */
28044 /* Override any gcc2 internal prototype to avoid an error. */
28048 /* We use char because int might match the return type of a gcc2
28049 builtin and then its argument prototype would still apply. */
28059 rm -f conftest.$ac_objext conftest$ac_exeext
28060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28061 (eval $ac_link) 2>conftest.er1
28063 grep -v '^ *+' conftest.er1 >conftest.err
28065 cat conftest.err >&5
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } &&
28068 { ac_try='test -z "$ac_c_werror_flag"
28069 || test ! -s conftest.err'
28070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28071 (eval $ac_try) 2>&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; } &&
28075 { ac_try='test -s conftest$ac_exeext'
28076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077 (eval $ac_try) 2>&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 ac_cv_lib_seq_getmntent=yes
28083 echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28086 ac_cv_lib_seq_getmntent=no
28088 rm -f conftest.err conftest.$ac_objext \
28089 conftest$ac_exeext conftest.$ac_ext
28090 LIBS=$ac_check_lib_save_LIBS
28092 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28093 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28094 if test $ac_cv_lib_seq_getmntent = yes; then
28097 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28098 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28099 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28102 ac_check_lib_save_LIBS=$LIBS
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28111 /* Override any gcc2 internal prototype to avoid an error. */
28115 /* We use char because int might match the return type of a gcc2
28116 builtin and then its argument prototype would still apply. */
28126 rm -f conftest.$ac_objext conftest$ac_exeext
28127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28128 (eval $ac_link) 2>conftest.er1
28130 grep -v '^ *+' conftest.er1 >conftest.err
28132 cat conftest.err >&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } &&
28135 { ac_try='test -z "$ac_c_werror_flag"
28136 || test ! -s conftest.err'
28137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; } &&
28142 { ac_try='test -s conftest$ac_exeext'
28143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144 (eval $ac_try) 2>&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_lib_gen_getmntent=yes
28150 echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28153 ac_cv_lib_gen_getmntent=no
28155 rm -f conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
28157 LIBS=$ac_check_lib_save_LIBS
28159 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28160 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28161 if test $ac_cv_lib_gen_getmntent = yes; then
28170 for ac_func in getmntent
28172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28173 echo "$as_me:$LINENO: checking for $ac_func" >&5
28174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28175 if eval "test \"\${$as_ac_var+set}\" = set"; then
28176 echo $ECHO_N "(cached) $ECHO_C" >&6
28178 cat >conftest.$ac_ext <<_ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28186 #define $ac_func innocuous_$ac_func
28188 /* System header to define __stub macros and hopefully few prototypes,
28189 which can conflict with char $ac_func (); below.
28190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28191 <limits.h> exists even on freestanding compilers. */
28194 # include <limits.h>
28196 # include <assert.h>
28201 /* Override any gcc2 internal prototype to avoid an error. */
28206 /* We use char because int might match the return type of a gcc2
28207 builtin and then its argument prototype would still apply. */
28209 /* The GNU C library defines this for functions which it implements
28210 to always fail with ENOSYS. Some functions are actually named
28211 something starting with __ and the normal name is an alias. */
28212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28215 char (*f) () = $ac_func;
28224 return f != $ac_func;
28229 rm -f conftest.$ac_objext conftest$ac_exeext
28230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28231 (eval $ac_link) 2>conftest.er1
28233 grep -v '^ *+' conftest.er1 >conftest.err
28235 cat conftest.err >&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } &&
28238 { ac_try='test -z "$ac_c_werror_flag"
28239 || test ! -s conftest.err'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; } &&
28245 { ac_try='test -s conftest$ac_exeext'
28246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247 (eval $ac_try) 2>&5
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; }; then
28251 eval "$as_ac_var=yes"
28253 echo "$as_me: failed program was:" >&5
28254 sed 's/^/| /' conftest.$ac_ext >&5
28256 eval "$as_ac_var=no"
28258 rm -f conftest.err conftest.$ac_objext \
28259 conftest$ac_exeext conftest.$ac_ext
28261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28263 if test `eval echo '${'$as_ac_var'}'` = yes; then
28264 cat >>confdefs.h <<_ACEOF
28265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28272 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28273 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28274 if test "${ac_cv_func_closedir_void+set}" = set; then
28275 echo $ECHO_N "(cached) $ECHO_C" >&6
28277 if test "$cross_compiling" = yes; then
28278 ac_cv_func_closedir_void=yes
28280 cat >conftest.$ac_ext <<_ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h. */
28286 $ac_includes_default
28287 #include <$ac_header_dirent>
28288 #ifndef __cplusplus
28295 exit (closedir (opendir (".")) != 0);
28300 rm -f conftest$ac_exeext
28301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28302 (eval $ac_link) 2>&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 ac_cv_func_closedir_void=no
28313 echo "$as_me: program exited with status $ac_status" >&5
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ( exit $ac_status )
28318 ac_cv_func_closedir_void=yes
28320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28323 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28324 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28325 if test $ac_cv_func_closedir_void = yes; then
28327 cat >>confdefs.h <<\_ACEOF
28328 #define CLOSEDIR_VOID 1
28333 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28334 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28335 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28336 echo $ECHO_N "(cached) $ECHO_C" >&6
28338 if test "$cross_compiling" = yes; then
28339 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28340 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28341 { (exit 1); exit 1; }; }
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28350 # include <unistd.h>
28356 /* If this system has a BSD-style setpgrp which takes arguments,
28357 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28358 exit successfully. */
28359 exit (setpgrp (1,1) == -1 ? 0 : 1);
28364 rm -f conftest$ac_exeext
28365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28366 (eval $ac_link) 2>&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; }; then
28375 ac_cv_func_setpgrp_void=no
28377 echo "$as_me: program exited with status $ac_status" >&5
28378 echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28381 ( exit $ac_status )
28382 ac_cv_func_setpgrp_void=yes
28384 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28387 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28388 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28389 if test $ac_cv_func_setpgrp_void = yes; then
28391 cat >>confdefs.h <<\_ACEOF
28392 #define SETPGRP_VOID 1
28396 # AC_FUNC_FNMATCH dnl use local version
28399 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
28400 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
28401 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
28402 echo $ECHO_N "(cached) $ECHO_C" >&6
28404 ac_check_lib_save_LIBS=$LIBS
28405 LIBS="-lxpg4 $LIBS"
28406 cat >conftest.$ac_ext <<_ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28413 /* Override any gcc2 internal prototype to avoid an error. */
28417 /* We use char because int might match the return type of a gcc2
28418 builtin and then its argument prototype would still apply. */
28428 rm -f conftest.$ac_objext conftest$ac_exeext
28429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28430 (eval $ac_link) 2>conftest.er1
28432 grep -v '^ *+' conftest.er1 >conftest.err
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_c_werror_flag"
28438 || test ! -s conftest.err'
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; } &&
28444 { ac_try='test -s conftest$ac_exeext'
28445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446 (eval $ac_try) 2>&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; }; then
28450 ac_cv_lib_xpg4_setlocale=yes
28452 echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28455 ac_cv_lib_xpg4_setlocale=no
28457 rm -f conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
28459 LIBS=$ac_check_lib_save_LIBS
28461 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
28462 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
28463 if test $ac_cv_lib_xpg4_setlocale = yes; then
28464 LIBS="$LIBS -lxpg4"
28467 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28468 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28469 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28472 ac_check_lib_save_LIBS=$LIBS
28473 LIBS="-lintl $LIBS"
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28481 /* Override any gcc2 internal prototype to avoid an error. */
28485 /* We use char because int might match the return type of a gcc2
28486 builtin and then its argument prototype would still apply. */
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498 (eval $ac_link) 2>conftest.er1
28500 grep -v '^ *+' conftest.er1 >conftest.err
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest$ac_exeext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_cv_lib_intl_gettext=yes
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_cv_lib_intl_gettext=no
28525 rm -f conftest.err conftest.$ac_objext \
28526 conftest$ac_exeext conftest.$ac_ext
28527 LIBS=$ac_check_lib_save_LIBS
28529 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28530 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28531 if test $ac_cv_lib_intl_gettext = yes; then
28532 LIBS="$LIBS -lintl"
28538 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28539 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28540 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28543 ac_check_lib_save_LIBS=$LIBS
28545 cat >conftest.$ac_ext <<_ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h. */
28552 /* Override any gcc2 internal prototype to avoid an error. */
28556 /* We use char because int might match the return type of a gcc2
28557 builtin and then its argument prototype would still apply. */
28567 rm -f conftest.$ac_objext conftest$ac_exeext
28568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28569 (eval $ac_link) 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag"
28577 || test ! -s conftest.err'
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28589 ac_cv_lib_sun_getpwnam=yes
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 ac_cv_lib_sun_getpwnam=no
28596 rm -f conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
28598 LIBS=$ac_check_lib_save_LIBS
28600 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28601 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28602 if test $ac_cv_lib_sun_getpwnam = yes; then
28603 cat >>confdefs.h <<_ACEOF
28604 #define HAVE_LIBSUN 1
28613 for ac_header in zlib.h
28615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28617 echo "$as_me:$LINENO: checking for $ac_header" >&5
28618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28625 # Is the header compilable?
28626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 $ac_includes_default
28635 #include <$ac_header>
28637 rm -f conftest.$ac_objext
28638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28639 (eval $ac_compile) 2>conftest.er1
28641 grep -v '^ *+' conftest.er1 >conftest.err
28643 cat conftest.err >&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } &&
28646 { ac_try='test -z "$ac_c_werror_flag"
28647 || test ! -s conftest.err'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; } &&
28653 { ac_try='test -s conftest.$ac_objext'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; }; then
28659 ac_header_compiler=yes
28661 echo "$as_me: failed program was:" >&5
28662 sed 's/^/| /' conftest.$ac_ext >&5
28664 ac_header_compiler=no
28666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28668 echo "${ECHO_T}$ac_header_compiler" >&6
28670 # Is the header present?
28671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28679 #include <$ac_header>
28681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } >/dev/null; then
28689 if test -s conftest.err; then
28690 ac_cpp_err=$ac_c_preproc_warn_flag
28691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28698 if test -z "$ac_cpp_err"; then
28699 ac_header_preproc=yes
28701 echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.$ac_ext >&5
28704 ac_header_preproc=no
28706 rm -f conftest.err conftest.$ac_ext
28707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28708 echo "${ECHO_T}$ac_header_preproc" >&6
28710 # So? What about this header?
28711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28717 ac_header_preproc=yes
28720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28734 ## ------------------------------------------ ##
28735 ## Report this to the AC_PACKAGE_NAME lists. ##
28736 ## ------------------------------------------ ##
28739 sed "s/^/$as_me: WARNING: /" >&2
28742 echo "$as_me:$LINENO: checking for $ac_header" >&5
28743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28747 eval "$as_ac_Header=\$ac_header_preproc"
28749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28754 cat >>confdefs.h <<_ACEOF
28755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28762 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28763 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28764 if test "${ac_cv_lib_z_deflate+set}" = set; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 ac_check_lib_save_LIBS=$LIBS
28769 cat >conftest.$ac_ext <<_ACEOF
28772 cat confdefs.h >>conftest.$ac_ext
28773 cat >>conftest.$ac_ext <<_ACEOF
28774 /* end confdefs.h. */
28776 /* Override any gcc2 internal prototype to avoid an error. */
28780 /* We use char because int might match the return type of a gcc2
28781 builtin and then its argument prototype would still apply. */
28791 rm -f conftest.$ac_objext conftest$ac_exeext
28792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793 (eval $ac_link) 2>conftest.er1
28795 grep -v '^ *+' conftest.er1 >conftest.err
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } &&
28800 { ac_try='test -z "$ac_c_werror_flag"
28801 || test ! -s conftest.err'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; } &&
28807 { ac_try='test -s conftest$ac_exeext'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; }; then
28813 ac_cv_lib_z_deflate=yes
28815 echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28818 ac_cv_lib_z_deflate=no
28820 rm -f conftest.err conftest.$ac_objext \
28821 conftest$ac_exeext conftest.$ac_ext
28822 LIBS=$ac_check_lib_save_LIBS
28824 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28825 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28826 if test $ac_cv_lib_z_deflate = yes; then
28831 if test x$FDLIBS = x-lz; then
28832 cat >>confdefs.h <<\_ACEOF
28833 #define HAVE_LIBZ 1
28840 # Check for ACL libraries
28843 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28844 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28845 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28846 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28850 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28852 # Is the header compilable?
28853 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28854 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28855 cat >conftest.$ac_ext <<_ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h. */
28861 $ac_includes_default
28862 #include <sys/acl.h>
28864 rm -f conftest.$ac_objext
28865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28866 (eval $ac_compile) 2>conftest.er1
28868 grep -v '^ *+' conftest.er1 >conftest.err
28870 cat conftest.err >&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } &&
28873 { ac_try='test -z "$ac_c_werror_flag"
28874 || test ! -s conftest.err'
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest.$ac_objext'
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_header_compiler=yes
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28891 ac_header_compiler=no
28893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28895 echo "${ECHO_T}$ac_header_compiler" >&6
28897 # Is the header present?
28898 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28899 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28900 cat >conftest.$ac_ext <<_ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h. */
28906 #include <sys/acl.h>
28908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28911 grep -v '^ *+' conftest.er1 >conftest.err
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } >/dev/null; then
28916 if test -s conftest.err; then
28917 ac_cpp_err=$ac_c_preproc_warn_flag
28918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28925 if test -z "$ac_cpp_err"; then
28926 ac_header_preproc=yes
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 ac_header_preproc=no
28933 rm -f conftest.err conftest.$ac_ext
28934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28935 echo "${ECHO_T}$ac_header_preproc" >&6
28937 # So? What about this header?
28938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28940 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28941 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28943 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28944 ac_header_preproc=yes
28947 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28948 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
28950 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28952 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
28954 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28956 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28957 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28958 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28961 ## ------------------------------------------ ##
28962 ## Report this to the AC_PACKAGE_NAME lists. ##
28963 ## ------------------------------------------ ##
28966 sed "s/^/$as_me: WARNING: /" >&2
28969 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28970 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28971 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28974 ac_cv_header_sys_acl_h=$ac_header_preproc
28976 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28977 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28982 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28983 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28984 if test "${ac_cv_func_acl_get_file+set}" = set; then
28985 echo $ECHO_N "(cached) $ECHO_C" >&6
28987 cat >conftest.$ac_ext <<_ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28993 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28995 #define acl_get_file innocuous_acl_get_file
28997 /* System header to define __stub macros and hopefully few prototypes,
28998 which can conflict with char acl_get_file (); below.
28999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29000 <limits.h> exists even on freestanding compilers. */
29003 # include <limits.h>
29005 # include <assert.h>
29008 #undef acl_get_file
29010 /* Override any gcc2 internal prototype to avoid an error. */
29015 /* We use char because int might match the return type of a gcc2
29016 builtin and then its argument prototype would still apply. */
29017 char acl_get_file ();
29018 /* The GNU C library defines this for functions which it implements
29019 to always fail with ENOSYS. Some functions are actually named
29020 something starting with __ and the normal name is an alias. */
29021 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29024 char (*f) () = acl_get_file;
29033 return f != acl_get_file;
29038 rm -f conftest.$ac_objext conftest$ac_exeext
29039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29040 (eval $ac_link) 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag"
29048 || test ! -s conftest.err'
29049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29050 (eval $ac_try) 2>&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; } &&
29054 { ac_try='test -s conftest$ac_exeext'
29055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29056 (eval $ac_try) 2>&5
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); }; }; then
29060 ac_cv_func_acl_get_file=yes
29062 echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29065 ac_cv_func_acl_get_file=no
29067 rm -f conftest.err conftest.$ac_objext \
29068 conftest$ac_exeext conftest.$ac_ext
29070 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29071 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29072 if test $ac_cv_func_acl_get_file = yes; then
29075 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29076 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29077 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29078 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 ac_check_lib_save_LIBS=$LIBS
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29089 /* Override any gcc2 internal prototype to avoid an error. */
29093 /* We use char because int might match the return type of a gcc2
29094 builtin and then its argument prototype would still apply. */
29095 char acl_get_file ();
29104 rm -f conftest.$ac_objext conftest$ac_exeext
29105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29106 (eval $ac_link) 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag"
29114 || test ! -s conftest.err'
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; } &&
29120 { ac_try='test -s conftest$ac_exeext'
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 ac_cv_lib_acl_acl_get_file=yes
29128 echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29131 ac_cv_lib_acl_acl_get_file=no
29133 rm -f conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
29135 LIBS=$ac_check_lib_save_LIBS
29137 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29138 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29139 if test $ac_cv_lib_acl_acl_get_file = yes; then
29140 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29142 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29143 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29144 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 ac_check_lib_save_LIBS=$LIBS
29149 cat >conftest.$ac_ext <<_ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h. */
29156 /* Override any gcc2 internal prototype to avoid an error. */
29160 /* We use char because int might match the return type of a gcc2
29161 builtin and then its argument prototype would still apply. */
29171 rm -f conftest.$ac_objext conftest$ac_exeext
29172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29173 (eval $ac_link) 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } &&
29180 { ac_try='test -z "$ac_c_werror_flag"
29181 || test ! -s conftest.err'
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; } &&
29187 { ac_try='test -s conftest$ac_exeext'
29188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189 (eval $ac_try) 2>&5
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; }; then
29193 ac_cv_lib_sec_acltotext=yes
29195 echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29198 ac_cv_lib_sec_acltotext=no
29200 rm -f conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
29202 LIBS=$ac_check_lib_save_LIBS
29204 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29205 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29206 if test $ac_cv_lib_sec_acltotext = yes; then
29207 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29216 if test $have_acl = yes; then
29217 cat >>confdefs.h <<\_ACEOF
29224 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29225 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29226 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29229 ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lpthread $LIBS"
29231 cat >conftest.$ac_ext <<_ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h. */
29238 /* Override any gcc2 internal prototype to avoid an error. */
29242 /* We use char because int might match the return type of a gcc2
29243 builtin and then its argument prototype would still apply. */
29244 char pthread_create ();
29253 rm -f conftest.$ac_objext conftest$ac_exeext
29254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29255 (eval $ac_link) 2>conftest.er1
29257 grep -v '^ *+' conftest.er1 >conftest.err
29259 cat conftest.err >&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
29262 { ac_try='test -z "$ac_c_werror_flag"
29263 || test ! -s conftest.err'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } &&
29269 { ac_try='test -s conftest$ac_exeext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_lib_pthread_pthread_create=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_cv_lib_pthread_pthread_create=no
29282 rm -f conftest.err conftest.$ac_objext \
29283 conftest$ac_exeext conftest.$ac_ext
29284 LIBS=$ac_check_lib_save_LIBS
29286 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29287 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29288 if test $ac_cv_lib_pthread_pthread_create = yes; then
29289 PTHREAD_LIB="-lpthread"
29291 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29292 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29293 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 ac_check_lib_save_LIBS=$LIBS
29297 LIBS="-lpthreads $LIBS"
29298 cat >conftest.$ac_ext <<_ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h. */
29305 /* Override any gcc2 internal prototype to avoid an error. */
29309 /* We use char because int might match the return type of a gcc2
29310 builtin and then its argument prototype would still apply. */
29311 char pthread_create ();
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29322 (eval $ac_link) 2>conftest.er1
29324 grep -v '^ *+' conftest.er1 >conftest.err
29326 cat conftest.err >&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); } &&
29329 { ac_try='test -z "$ac_c_werror_flag"
29330 || test ! -s conftest.err'
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; } &&
29336 { ac_try='test -s conftest$ac_exeext'
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; }; then
29342 ac_cv_lib_pthreads_pthread_create=yes
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29347 ac_cv_lib_pthreads_pthread_create=no
29349 rm -f conftest.err conftest.$ac_objext \
29350 conftest$ac_exeext conftest.$ac_ext
29351 LIBS=$ac_check_lib_save_LIBS
29353 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29354 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29355 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29356 PTHREAD_LIB="-lpthreads"
29358 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29359 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29360 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29363 ac_check_lib_save_LIBS=$LIBS
29365 cat >conftest.$ac_ext <<_ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h. */
29372 /* Override any gcc2 internal prototype to avoid an error. */
29376 /* We use char because int might match the return type of a gcc2
29377 builtin and then its argument prototype would still apply. */
29378 char pthread_create ();
29387 rm -f conftest.$ac_objext conftest$ac_exeext
29388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29389 (eval $ac_link) 2>conftest.er1
29391 grep -v '^ *+' conftest.er1 >conftest.err
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } &&
29396 { ac_try='test -z "$ac_c_werror_flag"
29397 || test ! -s conftest.err'
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; } &&
29403 { ac_try='test -s conftest$ac_exeext'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
29409 ac_cv_lib_c_r_pthread_create=yes
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_cv_lib_c_r_pthread_create=no
29416 rm -f conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
29418 LIBS=$ac_check_lib_save_LIBS
29420 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29421 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29422 if test $ac_cv_lib_c_r_pthread_create = yes; then
29423 PTHREAD_LIB="-lc_r"
29425 echo "$as_me:$LINENO: checking for pthread_create" >&5
29426 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29427 if test "${ac_cv_func_pthread_create+set}" = set; then
29428 echo $ECHO_N "(cached) $ECHO_C" >&6
29430 cat >conftest.$ac_ext <<_ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h. */
29436 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29438 #define pthread_create innocuous_pthread_create
29440 /* System header to define __stub macros and hopefully few prototypes,
29441 which can conflict with char pthread_create (); below.
29442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29443 <limits.h> exists even on freestanding compilers. */
29446 # include <limits.h>
29448 # include <assert.h>
29451 #undef pthread_create
29453 /* Override any gcc2 internal prototype to avoid an error. */
29458 /* We use char because int might match the return type of a gcc2
29459 builtin and then its argument prototype would still apply. */
29460 char pthread_create ();
29461 /* The GNU C library defines this for functions which it implements
29462 to always fail with ENOSYS. Some functions are actually named
29463 something starting with __ and the normal name is an alias. */
29464 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29467 char (*f) () = pthread_create;
29476 return f != pthread_create;
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29483 (eval $ac_link) 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
29490 { ac_try='test -z "$ac_c_werror_flag"
29491 || test ! -s conftest.err'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest$ac_exeext'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; }; then
29503 ac_cv_func_pthread_create=yes
29505 echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29508 ac_cv_func_pthread_create=no
29510 rm -f conftest.err conftest.$ac_objext \
29511 conftest$ac_exeext conftest.$ac_ext
29513 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29514 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29527 cat >>confdefs.h <<\_ACEOF
29533 CFLAGS=${CFLAGS--O}
29534 LDFLAGS=${LDFLAGS--O}
29535 DB_LIBS="${SQL_LFLAGS}"
29537 CPPFLAGS="$CPPFLAGS"
29564 # Finally we set appropriate distribution specific
29565 # variables and defaults
29567 # PFILES are platform specific files
29568 PFILES="platforms/Makefile"
29572 hostname=`uname -n | cut -d '.' -f 1`
29573 if x${hostname} = x ; then
29574 hostname="localhost"
29576 case "$DISTNAME" in
29579 PSCMD="ps -e -o pid,comm"
29580 PFILES="${PFILES} \
29581 platforms/aix/Makefile"
29582 TAPEDRIVE="/dev/rmt0.1"
29586 PTHREAD_LIB="-lpthread -lexc"
29587 if test "${CC}" = "gcc" ; then
29594 TAPEDRIVE="/dev/nrmt0"
29597 DISTVER=`uname -a |awk '{print $3}'`
29598 TAPEDRIVE="/dev/nrmt0"
29599 PTHREAD_LIB="-pthread"
29600 CFLAGS="${CFLAGS} -pthread"
29601 PSCMD="ps -ax -o pid,command"
29604 PFILES="${PFILES} \
29605 platforms/bsdi/Makefile \
29606 platforms/bsdi/bacula-fd \
29607 platforms/bsdi/bacula-sd \
29608 platforms/bsdi/bacula-dir"
29609 largefile_support="yes"
29612 DISTVER=`uname -a |awk '{print $3}'`
29613 TAPEDRIVE="/dev/nrst0"
29615 WCFLAGS="-mwindows"
29616 WLDFLAGS="-mwindows"
29620 TAPEDRIVE="/dev/nst0"
29621 PSCMD="ps -e -o pid,command"
29623 PFILES="${PFILES} \
29624 platforms/darwin/Makefile"
29627 DISTVER=`cat /etc/debian_version`
29628 TAPEDRIVE="/dev/nrst0"
29629 PSCMD="ps -e -o pid,command"
29632 DISTVER=`uname -a |awk '{print $3}'`
29633 VER=`echo $DISTVER | cut -c 1`
29634 if test x$VER = x4 ; then
29635 PTHREAD_LIB="-pthread"
29636 CFLAGS="${CFLAGS} -pthread"
29640 TAPEDRIVE="/dev/nrsa0"
29641 PSCMD="ps -ax -o pid,command"
29642 PFILES="${PFILES} \
29643 platforms/freebsd/Makefile \
29644 platforms/freebsd/bacula-fd \
29645 platforms/freebsd/bacula-sd \
29646 platforms/freebsd/bacula-dir"
29647 largefile_support="yes"
29650 PSCMD="UNIX95=1 ps -e -o pid,comm"
29651 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29653 TAPEDRIVE="/dev/rmt/0hnb"
29654 PTHREAD_LIB="-lpthread"
29655 cat >>confdefs.h <<\_ACEOF
29656 #define _INCLUDE_LONGLONG 1
29662 TAPEDRIVE="/dev/rmt/0cbn"
29663 PSCMD="ps -e -o pid,comm"
29664 PFILES="${PFILES} \
29665 platforms/irix/Makefile \
29666 platforms/irix/bacula-fd \
29667 platforms/irix/bacula-sd \
29668 platforms/irix/bacula-dir"
29671 DISTVER=`uname -a |awk '{print $3}'`
29674 TAPEDRIVE="/dev/nrst0"
29675 PSCMD="ps -ax -o pid,command"
29676 PTHREAD_LIB="-pthread"
29677 CFLAGS="${CFLAGS} -pthread"
29680 DISTVER=`uname -a |awk '{print $3}'`
29683 TAPEDRIVE="/dev/nrst0"
29684 PSCMD="ps -ax -o pid,command"
29685 PTHREAD_LIB="-pthread"
29686 CFLAGS="${CFLAGS} -pthread"
29687 PFILES="${PFILES} \
29688 platforms/openbsd/Makefile \
29689 platforms/openbsd/bacula-fd \
29690 platforms/openbsd/bacula-sd \
29691 platforms/openbsd/bacula-dir"
29694 if test -f /etc/whitebox-release ; then
29695 f=/etc/whitebox-release
29697 f=/etc/redhat-release
29699 if test `cat $f | grep release |\
29700 cut -f 3 -d ' '`x = "Enterprise"x ; then
29701 DISTVER="Enterprise "`cat $f | grep release |\
29704 DISTVER=`cat /etc/redhat-release | grep release |\
29707 TAPEDRIVE="/dev/nst0"
29708 PSCMD="ps -e -o pid,command"
29709 PFILES="${PFILES} \
29710 platforms/redhat/Makefile \
29711 platforms/redhat/bacula-fd \
29712 platforms/redhat/bacula-sd \
29713 platforms/redhat/bacula-dir \
29714 platforms/redhat/bacula.spec \
29718 DISTVER=`cat /etc/mandrake-release | grep release |\
29720 TAPEDRIVE="/dev/nst0"
29721 PSCMD="ps -e -o pid,command"
29722 PFILES="${PFILES} \
29723 platforms/mandrake/Makefile \
29724 platforms/mandrake/bacula-fd \
29725 platforms/mandrake/bacula-sd \
29726 platforms/mandrake/bacula-dir \
29727 platforms/mandrake/bacula.spec \
29731 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29732 TAPEDRIVE="/dev/nst0"
29733 PSCMD="ps -e -o pid,command"
29734 PFILES="${PFILES} \
29735 platforms/gentoo/Makefile \
29736 platforms/gentoo/bacula-init \
29737 platforms/gentoo/bacula-fd \
29738 platforms/gentoo/bacula-sd \
29739 platforms/gentoo/bacula-dir"
29742 DISTVER=`cat /etc/slackware-version`
29743 TAPEDRIVE="/dev/nst0"
29744 PSCMD="ps -e -o pid,command"
29745 PFILES="${PFILES} \
29746 platforms/slackware/Makefile \
29747 platforms/slackware/rc.bacula-fd \
29748 platforms/slackware/rc.bacula-sd \
29749 platforms/slackware/rc.bacula-dir\
29750 platforms/slackware/functions.bacula"
29754 TAPEDRIVE="/dev/rmt/0cbn"
29755 PSCMD="ps -e -o pid,comm"
29756 PFILES="${PFILES} \
29757 platforms/solaris/Makefile \
29758 platforms/solaris/bacula-fd \
29759 platforms/solaris/bacula-sd \
29760 platforms/solaris/bacula-dir"
29761 if test x$DISTVER = x5.6 ; then
29762 cat >>confdefs.h <<\_ACEOF
29763 #define HAVE_OLD_SOCKOPT 1
29767 LIBS="$LIBS -lresolv"
29770 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29772 TAPEDRIVE="/dev/nst0"
29773 PSCMD="ps -e -o pid,command"
29774 PFILES="${PFILES} \
29775 platforms/suse/Makefile \
29776 platforms/suse/bacula-fd \
29777 platforms/suse/bacula-sd \
29778 platforms/suse/bacula-dir \
29779 platforms/suse/bacula \
29780 platforms/suse/bacula.spec"
29785 TAPEDRIVE="/dev/nst0"
29786 PSCMD="ps -e -o pid,command"
29787 PFILES="${PFILES} \
29788 platforms/suse/Makefile \
29789 platforms/suse/bacula-fd \
29790 platforms/suse/bacula-sd \
29791 platforms/suse/bacula-dir"
29795 TAPEDRIVE="/dev/nst0"
29798 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29804 LIBS="$PTHREAD_LIB $LIBS"
29806 cat >>confdefs.h <<_ACEOF
29810 cat >>confdefs.h <<_ACEOF
29821 MCOMMON=./autoconf/Make.common
29824 if test "x${subsysdir}" = "x${sbindir}" ; then
29827 echo "You have set both --sbindir and --with-subsys-dir"
29828 echo " equal to: ${subsysdir} "
29829 echo "This is not permitted. Please reconfigure."
29831 echo "Aborting configuration ..."
29837 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29838 ac_config_commands="$ac_config_commands default"
29839 cat >confcache <<\_ACEOF
29840 # This file is a shell script that caches the results of configure
29841 # tests run on this system so they can be shared between configure
29842 # scripts and configure runs, see configure's option --config-cache.
29843 # It is not useful on other systems. If it contains results you don't
29844 # want to keep, you may remove or edit it.
29846 # config.status only pays attention to the cache file if you give it
29847 # the --recheck option to rerun configure.
29849 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29850 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29851 # following values.
29855 # The following way of writing the cache mishandles newlines in values,
29856 # but we know of no workaround that is simple, portable, and efficient.
29857 # So, don't put newlines in cache variables' values.
29858 # Ultrix sh set writes to stderr and can't be redirected directly,
29859 # and sets the high bit in the cache file unless we assign to the vars.
29862 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29864 # `set' does not quote correctly, so add quotes (double-quote
29865 # substitution turns \\\\ into \\, and sed turns \\ into \).
29868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29871 # `set' quotes correctly as required by POSIX, so do not add quotes.
29873 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29882 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29884 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29885 if test -w $cache_file; then
29886 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29887 cat confcache >$cache_file
29889 echo "not updating unwritable cache $cache_file"
29894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29895 # Let make expand exec_prefix.
29896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29898 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29899 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29900 # trailing colons and then remove the whole line if VPATH becomes empty
29901 # (actually we leave an empty line to preserve line numbers).
29902 if test "x$srcdir" = x.; then
29903 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29904 s/:*\$(srcdir):*/:/;
29905 s/:*\${srcdir}:*/:/;
29907 s/^\([^=]*=[ ]*\):*/\1/;
29913 DEFS=-DHAVE_CONFIG_H
29917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29918 # 1. Remove the extension, and $U if already installed.
29919 ac_i=`echo "$ac_i" |
29920 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29922 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29923 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29925 LIBOBJS=$ac_libobjs
29927 LTLIBOBJS=$ac_ltlibobjs
29931 : ${CONFIG_STATUS=./config.status}
29932 ac_clean_files_save=$ac_clean_files
29933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29934 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29935 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29936 cat >$CONFIG_STATUS <<_ACEOF
29938 # Generated by $as_me.
29939 # Run this file to recreate the current configuration.
29940 # Compiler output produced by configure, useful for debugging
29941 # configure, is in config.log if it exists.
29944 ac_cs_recheck=false
29946 SHELL=\${CONFIG_SHELL-$SHELL}
29949 cat >>$CONFIG_STATUS <<\_ACEOF
29950 ## --------------------- ##
29951 ## M4sh Initialization. ##
29952 ## --------------------- ##
29954 # Be Bourne compatible
29955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29958 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29959 # is contrary to our usage. Disable this feature.
29960 alias -g '${1+"$@"}'='"$@"'
29961 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29964 DUALCASE=1; export DUALCASE # for MKS sh
29966 # Support unset when possible.
29967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29974 # Work around bugs in pre-3.0 UWIN ksh.
29975 $as_unset ENV MAIL MAILPATH
29982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29984 LC_TELEPHONE LC_TIME
29986 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29987 eval $as_var=C; export $as_var
29993 # Required to use basename.
29994 if expr a : '\(a\)' >/dev/null 2>&1; then
30000 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30001 as_basename=basename
30007 # Name of the executable.
30008 as_me=`$as_basename "$0" ||
30009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30010 X"$0" : 'X\(//\)$' \| \
30011 X"$0" : 'X\(/\)$' \| \
30012 . : '\(.\)' 2>/dev/null ||
30014 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30015 /^X\/\(\/\/\)$/{ s//\1/; q; }
30016 /^X\/\(\/\).*/{ s//\1/; q; }
30020 # PATH needs CR, and LINENO needs CR and PATH.
30021 # Avoid depending upon Character Ranges.
30022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30025 as_cr_digits='0123456789'
30026 as_cr_alnum=$as_cr_Letters$as_cr_digits
30028 # The user is always right.
30029 if test "${PATH_SEPARATOR+set}" != set; then
30030 echo "#! /bin/sh" >conf$$.sh
30031 echo "exit 0" >>conf$$.sh
30033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30042 as_lineno_1=$LINENO
30043 as_lineno_2=$LINENO
30044 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30045 test "x$as_lineno_1" != "x$as_lineno_2" &&
30046 test "x$as_lineno_3" = "x$as_lineno_2" || {
30047 # Find who we are. Look in the path if we contain no path at all
30050 *[\\/]* ) as_myself=$0 ;;
30051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30052 for as_dir in $PATH
30055 test -z "$as_dir" && as_dir=.
30056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30061 # We did not find ourselves, most probably we were run as `sh COMMAND'
30062 # in which case we are not to be found in the path.
30063 if test "x$as_myself" = x; then
30066 if test ! -f "$as_myself"; then
30067 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30068 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30069 { (exit 1); exit 1; }; }
30071 case $CONFIG_SHELL in
30073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30074 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30077 test -z "$as_dir" && as_dir=.
30078 for as_base in sh bash ksh sh5; do
30081 if ("$as_dir/$as_base" -c '
30082 as_lineno_1=$LINENO
30083 as_lineno_2=$LINENO
30084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30085 test "x$as_lineno_1" != "x$as_lineno_2" &&
30086 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30087 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30088 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30089 CONFIG_SHELL=$as_dir/$as_base
30090 export CONFIG_SHELL
30091 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30099 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30100 # uniformly replaced by the line number. The first 'sed' inserts a
30101 # line-number line before each line; the second 'sed' does the real
30102 # work. The second script uses 'N' to pair each line-number line
30103 # with the numbered line, and appends trailing '-' during
30104 # substitution so that $LINENO is not a special case at line end.
30105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30106 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30107 sed '=' <$as_myself |
30112 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30115 s,^['$as_cr_digits']*\n,,
30116 ' >$as_me.lineno &&
30117 chmod +x $as_me.lineno ||
30118 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30119 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30120 { (exit 1); exit 1; }; }
30122 # Don't try to exec as it changes $[0], causing all sort of problems
30123 # (the dirname of $[0] is not the place where we might find the
30124 # original and so on. Autoconf is especially sensible to this).
30126 # Exit status is that of the last command.
30131 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30132 *c*,-n*) ECHO_N= ECHO_C='
30134 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30135 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30138 if expr a : '\(a\)' >/dev/null 2>&1; then
30144 rm -f conf$$ conf$$.exe conf$$.file
30146 if ln -s conf$$.file conf$$ 2>/dev/null; then
30147 # We could just check for DJGPP; but this test a) works b) is more generic
30148 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30149 if test -f conf$$.exe; then
30150 # Don't use ln at all; we don't have any links
30155 elif ln conf$$.file conf$$ 2>/dev/null; then
30160 rm -f conf$$ conf$$.exe conf$$.file
30162 if mkdir -p . 2>/dev/null; then
30165 test -d ./-p && rmdir ./-p
30169 as_executable_p="test -f"
30171 # Sed expression to map a string onto a valid CPP name.
30172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30174 # Sed expression to map a string onto a valid variable name.
30175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30179 # We need space, tab and new line, in precisely that order.
30189 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30190 # report actual input values of CONFIG_FILES etc. instead of their
30191 # values after options handling. Logging --version etc. is OK.
30195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30196 ## Running $as_me. ##
30201 This file was extended by $as_me, which was
30202 generated by GNU Autoconf 2.59. Invocation command line was
30204 CONFIG_FILES = $CONFIG_FILES
30205 CONFIG_HEADERS = $CONFIG_HEADERS
30206 CONFIG_LINKS = $CONFIG_LINKS
30207 CONFIG_COMMANDS = $CONFIG_COMMANDS
30211 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30215 # Files that config.status was made for.
30216 if test -n "$ac_config_files"; then
30217 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30220 if test -n "$ac_config_headers"; then
30221 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30224 if test -n "$ac_config_links"; then
30225 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30228 if test -n "$ac_config_commands"; then
30229 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30232 cat >>$CONFIG_STATUS <<\_ACEOF
30235 \`$as_me' instantiates files from templates according to the
30236 current configuration.
30238 Usage: $0 [OPTIONS] [FILE]...
30240 -h, --help print this help, then exit
30241 -V, --version print version number, then exit
30242 -q, --quiet do not print progress messages
30243 -d, --debug don't remove temporary files
30244 --recheck update $as_me by reconfiguring in the same conditions
30245 --file=FILE[:TEMPLATE]
30246 instantiate the configuration file FILE
30247 --header=FILE[:TEMPLATE]
30248 instantiate the configuration header FILE
30250 Configuration files:
30253 Configuration headers:
30256 Configuration commands:
30259 Report bugs to <bug-autoconf@gnu.org>."
30262 cat >>$CONFIG_STATUS <<_ACEOF
30265 configured by $0, generated by GNU Autoconf 2.59,
30266 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30268 Copyright (C) 2003 Free Software Foundation, Inc.
30269 This config.status script is free software; the Free Software Foundation
30270 gives unlimited permission to copy, distribute and modify it."
30275 cat >>$CONFIG_STATUS <<\_ACEOF
30276 # If no file are specified by the user, then we need to provide default
30277 # value. By we need to know if files were specified by the user.
30283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30292 *) # This is not an option, so the user has probably given explicit
30295 ac_need_defaults=false;;
30299 # Handling of the options.
30301 cat >>$CONFIG_STATUS <<\_ACEOF
30302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30304 --version | --vers* | -V )
30305 echo "$ac_cs_version"; exit 0 ;;
30307 # Conflict between --help and --header
30308 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30309 Try \`$0 --help' for more information." >&5
30310 echo "$as_me: error: ambiguous option: $1
30311 Try \`$0 --help' for more information." >&2;}
30312 { (exit 1); exit 1; }; };;
30313 --help | --hel | -h )
30314 echo "$ac_cs_usage"; exit 0 ;;
30315 --debug | --d* | -d )
30317 --file | --fil | --fi | --f )
30319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30320 ac_need_defaults=false;;
30321 --header | --heade | --head | --hea )
30323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30324 ac_need_defaults=false;;
30325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30329 # This is an error.
30330 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30331 Try \`$0 --help' for more information." >&5
30332 echo "$as_me: error: unrecognized option: $1
30333 Try \`$0 --help' for more information." >&2;}
30334 { (exit 1); exit 1; }; } ;;
30336 *) ac_config_targets="$ac_config_targets $1" ;;
30342 ac_configure_extra_args=
30344 if $ac_cs_silent; then
30346 ac_configure_extra_args="$ac_configure_extra_args --silent"
30350 cat >>$CONFIG_STATUS <<_ACEOF
30351 if \$ac_cs_recheck; then
30352 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30353 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30358 cat >>$CONFIG_STATUS <<_ACEOF
30360 # INIT-COMMANDS section.
30363 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30364 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30366 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30367 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30368 LINGUAS="${LINGUAS-%UNSET%}"
30375 cat >>$CONFIG_STATUS <<\_ACEOF
30376 for ac_config_target in $ac_config_targets
30378 case "$ac_config_target" in
30379 # Handling of arguments.
30380 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30381 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30382 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30383 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30384 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30385 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30386 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30387 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30388 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30389 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30390 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30391 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30392 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30393 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30394 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30395 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30396 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30397 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30398 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30399 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30400 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30401 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30402 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30403 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30404 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30405 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30406 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30407 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30408 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30409 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30410 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30411 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30412 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30413 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30414 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30415 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30416 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30417 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30418 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30419 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30420 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30421 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30422 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30423 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30424 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30425 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30426 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30427 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30428 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30429 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30430 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30431 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30432 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30433 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30434 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30435 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30436 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30437 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30438 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30439 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30440 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30441 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30442 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30443 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30444 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30445 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30446 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30447 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30448 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30449 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30450 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30451 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30452 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30453 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30454 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30455 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30456 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30457 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30458 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30459 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30460 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30461 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30462 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30463 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30464 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30465 "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30466 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30467 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30468 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30469 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30470 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30471 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30472 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30473 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30474 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30475 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30476 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30477 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30478 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30479 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30480 { (exit 1); exit 1; }; };;
30484 # If the user did not use the arguments to specify the items to instantiate,
30485 # then the envvar interface is used. Set only those that are not.
30486 # We use the long form for the default assignment because of an extremely
30487 # bizarre bug on SunOS 4.1.3.
30488 if $ac_need_defaults; then
30489 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30490 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30494 # Have a temporary directory for convenience. Make it in the build tree
30495 # simply because there is no reason to put it here, and in addition,
30496 # creating and moving files from /tmp can sometimes cause problems.
30497 # Create a temporary directory, and hook for its removal unless debugging.
30500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30501 trap '{ (exit 1); exit 1; }' 1 2 13 15
30504 # Create a (secure) tmp directory for tmp files.
30507 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30508 test -n "$tmp" && test -d "$tmp"
30511 tmp=./confstat$$-$RANDOM
30512 (umask 077 && mkdir $tmp)
30515 echo "$me: cannot create a temporary directory in ." >&2
30516 { (exit 1); exit 1; }
30521 cat >>$CONFIG_STATUS <<_ACEOF
30524 # CONFIG_FILES section.
30527 # No need to generate the scripts if there are no CONFIG_FILES.
30528 # This happens for instance when ./config.status config.h
30529 if test -n "\$CONFIG_FILES"; then
30530 # Protect against being on the right side of a sed subst in config.status.
30531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30533 s,@SHELL@,$SHELL,;t t
30534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30540 s,@exec_prefix@,$exec_prefix,;t t
30541 s,@prefix@,$prefix,;t t
30542 s,@program_transform_name@,$program_transform_name,;t t
30543 s,@bindir@,$bindir,;t t
30544 s,@sbindir@,$sbindir,;t t
30545 s,@libexecdir@,$libexecdir,;t t
30546 s,@datadir@,$datadir,;t t
30547 s,@sysconfdir@,$sysconfdir,;t t
30548 s,@sharedstatedir@,$sharedstatedir,;t t
30549 s,@localstatedir@,$localstatedir,;t t
30550 s,@libdir@,$libdir,;t t
30551 s,@includedir@,$includedir,;t t
30552 s,@oldincludedir@,$oldincludedir,;t t
30553 s,@infodir@,$infodir,;t t
30554 s,@mandir@,$mandir,;t t
30555 s,@build_alias@,$build_alias,;t t
30556 s,@host_alias@,$host_alias,;t t
30557 s,@target_alias@,$target_alias,;t t
30558 s,@DEFS@,$DEFS,;t t
30559 s,@ECHO_C@,$ECHO_C,;t t
30560 s,@ECHO_N@,$ECHO_N,;t t
30561 s,@ECHO_T@,$ECHO_T,;t t
30562 s,@LIBS@,$LIBS,;t t
30563 s,@BUILD_DIR@,$BUILD_DIR,;t t
30564 s,@TRUEPRG@,$TRUEPRG,;t t
30565 s,@FALSEPRG@,$FALSEPRG,;t t
30566 s,@VERSION@,$VERSION,;t t
30567 s,@DATE@,$DATE,;t t
30568 s,@LSMDATE@,$LSMDATE,;t t
30570 s,@CFLAGS@,$CFLAGS,;t t
30571 s,@LDFLAGS@,$LDFLAGS,;t t
30572 s,@CPPFLAGS@,$CPPFLAGS,;t t
30573 s,@ac_ct_CC@,$ac_ct_CC,;t t
30574 s,@EXEEXT@,$EXEEXT,;t t
30575 s,@OBJEXT@,$OBJEXT,;t t
30577 s,@CXXFLAGS@,$CXXFLAGS,;t t
30578 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30580 s,@EGREP@,$EGREP,;t t
30581 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30582 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30583 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30584 s,@RANLIB@,$RANLIB,;t t
30585 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30590 s,@ECHO@,$ECHO,;t t
30594 s,@OPENSSL@,$OPENSSL,;t t
30597 s,@MKISOFS@,$MKISOFS,;t t
30598 s,@PYTHON@,$PYTHON,;t t
30599 s,@GROWISOFS@,$GROWISOFS,;t t
30600 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30601 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30602 s,@PKGCONFIG@,$PKGCONFIG,;t t
30603 s,@WXCONFIG@,$WXCONFIG,;t t
30604 s,@WXFLAGS@,$WXFLAGS,;t t
30605 s,@CDRECORD@,$CDRECORD,;t t
30606 s,@PIDOF@,$PIDOF,;t t
30608 s,@ARFLAGS@,$ARFLAGS,;t t
30609 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30610 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30611 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30612 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30613 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30614 s,@build@,$build,;t t
30615 s,@build_cpu@,$build_cpu,;t t
30616 s,@build_vendor@,$build_vendor,;t t
30617 s,@build_os@,$build_os,;t t
30618 s,@host@,$host,;t t
30619 s,@host_cpu@,$host_cpu,;t t
30620 s,@host_vendor@,$host_vendor,;t t
30621 s,@host_os@,$host_os,;t t
30622 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30623 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30624 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30625 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30626 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30627 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30628 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30629 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30630 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30631 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30632 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30633 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30634 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30635 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30636 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30637 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30638 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30639 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30640 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30641 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30642 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30643 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30644 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30645 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30646 s,@SET_MAKE@,$SET_MAKE,;t t
30647 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30648 s,@USE_NLS@,$USE_NLS,;t t
30649 s,@MSGFMT@,$MSGFMT,;t t
30650 s,@GMSGFMT@,$GMSGFMT,;t t
30651 s,@XGETTEXT@,$XGETTEXT,;t t
30652 s,@MSGMERGE@,$MSGMERGE,;t t
30653 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30654 s,@LIBICONV@,$LIBICONV,;t t
30655 s,@LTLIBICONV@,$LTLIBICONV,;t t
30656 s,@INTLLIBS@,$INTLLIBS,;t t
30657 s,@LIBINTL@,$LIBINTL,;t t
30658 s,@LTLIBINTL@,$LTLIBINTL,;t t
30659 s,@POSUB@,$POSUB,;t t
30660 s,@GLIBC2@,$GLIBC2,;t t
30661 s,@ALLOCA@,$ALLOCA,;t t
30662 s,@GLIBC21@,$GLIBC21,;t t
30663 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30664 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30665 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30666 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30667 s,@INTLBISON@,$INTLBISON,;t t
30668 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30669 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30670 s,@CATOBJEXT@,$CATOBJEXT,;t t
30671 s,@DATADIRNAME@,$DATADIRNAME,;t t
30672 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30673 s,@GENCAT@,$GENCAT,;t t
30674 s,@INTLOBJS@,$INTLOBJS,;t t
30675 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30676 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30677 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30678 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30679 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30680 s,@GNOME_DIR@,$GNOME_DIR,;t t
30681 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30682 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30683 s,@WX_DIR@,$WX_DIR,;t t
30684 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30685 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30686 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30687 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30688 s,@STATIC_FD@,$STATIC_FD,;t t
30689 s,@STATIC_SD@,$STATIC_SD,;t t
30690 s,@STATIC_DIR@,$STATIC_DIR,;t t
30691 s,@STATIC_CONS@,$STATIC_CONS,;t t
30692 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30693 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30694 s,@ALL_DIRS@,$ALL_DIRS,;t t
30695 s,@DIRD_DIR@,$DIRD_DIR,;t t
30696 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30697 s,@STORED_DIR@,$STORED_DIR,;t t
30698 s,@CONS_INC@,$CONS_INC,;t t
30699 s,@CONS_OBJ@,$CONS_OBJ,;t t
30700 s,@CONS_SRC@,$CONS_SRC,;t t
30701 s,@CONS_LIBS@,$CONS_LIBS,;t t
30702 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30703 s,@READLINE_SRC@,$READLINE_SRC,;t t
30704 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30705 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30706 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30707 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30708 s,@working_dir@,$working_dir,;t t
30709 s,@scriptdir@,$scriptdir,;t t
30710 s,@dump_email@,$dump_email,;t t
30711 s,@job_email@,$job_email,;t t
30712 s,@smtp_host@,$smtp_host,;t t
30713 s,@piddir@,$piddir,;t t
30714 s,@subsysdir@,$subsysdir,;t t
30715 s,@baseport@,$baseport,;t t
30716 s,@dir_port@,$dir_port,;t t
30717 s,@fd_port@,$fd_port,;t t
30718 s,@sd_port@,$sd_port,;t t
30719 s,@dir_password@,$dir_password,;t t
30720 s,@fd_password@,$fd_password,;t t
30721 s,@sd_password@,$sd_password,;t t
30722 s,@mon_dir_password@,$mon_dir_password,;t t
30723 s,@mon_fd_password@,$mon_fd_password,;t t
30724 s,@mon_sd_password@,$mon_sd_password,;t t
30725 s,@dir_user@,$dir_user,;t t
30726 s,@dir_group@,$dir_group,;t t
30727 s,@sd_user@,$sd_user,;t t
30728 s,@sd_group@,$sd_group,;t t
30729 s,@fd_user@,$fd_user,;t t
30730 s,@fd_group@,$fd_group,;t t
30731 s,@SBINPERM@,$SBINPERM,;t t
30732 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30733 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30734 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30735 s,@cats@,$cats,;t t
30736 s,@DB_NAME@,$DB_NAME,;t t
30737 s,@GETCONF@,$GETCONF,;t t
30738 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30739 s,@X_CFLAGS@,$X_CFLAGS,;t t
30740 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30741 s,@X_LIBS@,$X_LIBS,;t t
30742 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30743 s,@LIBOBJS@,$LIBOBJS,;t t
30744 s,@FDLIBS@,$FDLIBS,;t t
30745 s,@DEBUG@,$DEBUG,;t t
30746 s,@DINCLUDE@,$DINCLUDE,;t t
30747 s,@DLIB@,$DLIB,;t t
30748 s,@DB_LIBS@,$DB_LIBS,;t t
30749 s,@WCFLAGS@,$WCFLAGS,;t t
30750 s,@WLDFLAGS@,$WLDFLAGS,;t t
30751 s,@WRAPLIBS@,$WRAPLIBS,;t t
30752 s,@OBJLIST@,$OBJLIST,;t t
30753 s,@hostname@,$hostname,;t t
30754 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30755 s,@PSCMD@,$PSCMD,;t t
30756 s,@WIN32@,$WIN32,;t t
30757 s,@MACOSX@,$MACOSX,;t t
30758 s,@DISTNAME@,$DISTNAME,;t t
30759 s,@DISTVER@,$DISTVER,;t t
30760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30761 /@MCOMMON@/r $MCOMMON
30767 cat >>$CONFIG_STATUS <<\_ACEOF
30768 # Split the substitutions into bite-sized pieces for seds with
30769 # small command number limits, like on Digital OSF/1 and HP-UX.
30770 ac_max_sed_lines=48
30771 ac_sed_frag=1 # Number of current file.
30772 ac_beg=1 # First line for current file.
30773 ac_end=$ac_max_sed_lines # Line after last line for current file.
30776 while $ac_more_lines; do
30777 if test $ac_beg -gt 1; then
30778 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30780 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30782 if test ! -s $tmp/subs.frag; then
30783 ac_more_lines=false
30785 # The purpose of the label and of the branching condition is to
30786 # speed up the sed processing (if there are no `@' at all, there
30787 # is no need to browse any of the substitutions).
30788 # These are the two extra sed commands mentioned above.
30790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30791 if test -z "$ac_sed_cmds"; then
30792 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30794 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30796 ac_sed_frag=`expr $ac_sed_frag + 1`
30798 ac_end=`expr $ac_end + $ac_max_sed_lines`
30801 if test -z "$ac_sed_cmds"; then
30804 fi # test -n "$CONFIG_FILES"
30807 cat >>$CONFIG_STATUS <<\_ACEOF
30808 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30811 - | *:- | *:-:* ) # input from stdin
30813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30817 * ) ac_file_in=$ac_file.in ;;
30820 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30821 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30822 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30823 X"$ac_file" : 'X\(//\)[^/]' \| \
30824 X"$ac_file" : 'X\(//\)$' \| \
30825 X"$ac_file" : 'X\(/\)' \| \
30826 . : '\(.\)' 2>/dev/null ||
30828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30830 /^X\(\/\/\)$/{ s//\1/; q; }
30831 /^X\(\/\).*/{ s//\1/; q; }
30833 { if $as_mkdir_p; then
30838 while test ! -d "$as_dir"; do
30839 as_dirs="$as_dir $as_dirs"
30840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30842 X"$as_dir" : 'X\(//\)[^/]' \| \
30843 X"$as_dir" : 'X\(//\)$' \| \
30844 X"$as_dir" : 'X\(/\)' \| \
30845 . : '\(.\)' 2>/dev/null ||
30847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30849 /^X\(\/\/\)$/{ s//\1/; q; }
30850 /^X\(\/\).*/{ s//\1/; q; }
30853 test ! -n "$as_dirs" || mkdir $as_dirs
30854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30855 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30856 { (exit 1); exit 1; }; }; }
30860 if test "$ac_dir" != .; then
30861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30862 # A "../" for each directory in $ac_dir_suffix.
30863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30865 ac_dir_suffix= ac_top_builddir=
30869 .) # No --srcdir option. We are building in place.
30871 if test -z "$ac_top_builddir"; then
30874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30876 [\\/]* | ?:[\\/]* ) # Absolute path.
30877 ac_srcdir=$srcdir$ac_dir_suffix;
30878 ac_top_srcdir=$srcdir ;;
30879 *) # Relative path.
30880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30884 # Do not use `cd foo && pwd` to compute absolute paths, because
30885 # the directories may not exist.
30887 .) ac_abs_builddir="$ac_dir";;
30890 .) ac_abs_builddir=`pwd`;;
30891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30895 case $ac_abs_builddir in
30896 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30898 case ${ac_top_builddir}. in
30899 .) ac_abs_top_builddir=$ac_abs_builddir;;
30900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30904 case $ac_abs_builddir in
30905 .) ac_abs_srcdir=$ac_srcdir;;
30908 .) ac_abs_srcdir=$ac_abs_builddir;;
30909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30913 case $ac_abs_builddir in
30914 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30916 case $ac_top_srcdir in
30917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30926 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30929 if test x"$ac_file" != x-; then
30930 { echo "$as_me:$LINENO: creating $ac_file" >&5
30931 echo "$as_me: creating $ac_file" >&6;}
30934 # Let's still pretend it is `configure' which instantiates (i.e., don't
30935 # use $as_me), people would be surprised to read:
30936 # /* config.h. Generated by config.status. */
30937 if test x"$ac_file" = x-; then
30940 configure_input="$ac_file. "
30942 configure_input=$configure_input"Generated from `echo $ac_file_in |
30943 sed 's,.*/,,'` by configure."
30945 # First look for the input files in the build tree, otherwise in the
30947 ac_file_inputs=`IFS=:
30948 for f in $ac_file_in; do
30950 -) echo $tmp/stdin ;;
30952 # Absolute (can't be DOS-style, as IFS=:)
30953 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30954 echo "$as_me: error: cannot find input file: $f" >&2;}
30955 { (exit 1); exit 1; }; }
30958 if test -f "$f"; then
30961 elif test -f "$srcdir/$f"; then
30966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30967 echo "$as_me: error: cannot find input file: $f" >&2;}
30968 { (exit 1); exit 1; }; }
30971 done` || { (exit 1); exit 1; }
30973 cat >>$CONFIG_STATUS <<_ACEOF
30977 cat >>$CONFIG_STATUS <<\_ACEOF
30979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30980 s,@configure_input@,$configure_input,;t t
30981 s,@srcdir@,$ac_srcdir,;t t
30982 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30983 s,@top_srcdir@,$ac_top_srcdir,;t t
30984 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30985 s,@builddir@,$ac_builddir,;t t
30986 s,@abs_builddir@,$ac_abs_builddir,;t t
30987 s,@top_builddir@,$ac_top_builddir,;t t
30988 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30989 s,@INSTALL@,$ac_INSTALL,;t t
30990 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30992 if test x"$ac_file" != x-; then
30993 mv $tmp/out $ac_file
31001 cat >>$CONFIG_STATUS <<\_ACEOF
31004 # CONFIG_HEADER section.
31007 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31008 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31010 # ac_d sets the value in "#define NAME VALUE" lines.
31011 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31012 ac_dB='[ ].*$,\1#\2'
31015 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31016 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31017 ac_uB='$,\1#\2define\3'
31021 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31024 - | *:- | *:-:* ) # input from stdin
31026 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31028 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31029 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31030 * ) ac_file_in=$ac_file.in ;;
31033 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31034 echo "$as_me: creating $ac_file" >&6;}
31036 # First look for the input files in the build tree, otherwise in the
31038 ac_file_inputs=`IFS=:
31039 for f in $ac_file_in; do
31041 -) echo $tmp/stdin ;;
31043 # Absolute (can't be DOS-style, as IFS=:)
31044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31045 echo "$as_me: error: cannot find input file: $f" >&2;}
31046 { (exit 1); exit 1; }; }
31047 # Do quote $f, to prevent DOS paths from being IFS'd.
31050 if test -f "$f"; then
31053 elif test -f "$srcdir/$f"; then
31058 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31059 echo "$as_me: error: cannot find input file: $f" >&2;}
31060 { (exit 1); exit 1; }; }
31063 done` || { (exit 1); exit 1; }
31064 # Remove the trailing spaces.
31065 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31069 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31070 # `conftest.undefs', that substitutes the proper values into
31071 # config.h.in to produce config.h. The first handles `#define'
31072 # templates, and the second `#undef' templates.
31073 # And first: Protect against being on the right side of a sed subst in
31074 # config.status. Protect against being in an unquoted here document
31075 # in config.status.
31076 rm -f conftest.defines conftest.undefs
31077 # Using a here document instead of a string reduces the quoting nightmare.
31078 # Putting comments in sed scripts is not portable.
31080 # `end' is used to avoid that the second main sed command (meant for
31081 # 0-ary CPP macros) applies to n-ary macro definitions.
31082 # See the Autoconf documentation for `clear'.
31083 cat >confdef2sed.sed <<\_ACEOF
31088 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31090 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31093 # If some macros were called several times there might be several times
31094 # the same #defines, which is useless. Nevertheless, we may not want to
31095 # sort them, since we want the *last* AC-DEFINE to be honored.
31096 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31097 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31098 rm -f confdef2sed.sed
31100 # This sed command replaces #undef with comments. This is necessary, for
31101 # example, in the case of _POSIX_SOURCE, which is predefined and required
31102 # on some systems where configure will not decide to define it.
31103 cat >>conftest.undefs <<\_ACEOF
31104 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31107 # Break up conftest.defines because some shells have a limit on the size
31108 # of here documents, and old seds have small limits too (100 cmds).
31109 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31110 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31111 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31112 echo ' :' >>$CONFIG_STATUS
31113 rm -f conftest.tail
31114 while grep . conftest.defines >/dev/null
31116 # Write a limited-size here document to $tmp/defines.sed.
31117 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31118 # Speed up: don't consider the non `#define' lines.
31119 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31120 # Work around the forget-to-reset-the-flag bug.
31121 echo 't clr' >>$CONFIG_STATUS
31122 echo ': clr' >>$CONFIG_STATUS
31123 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31125 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31127 mv $tmp/out $tmp/in
31129 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31130 rm -f conftest.defines
31131 mv conftest.tail conftest.defines
31133 rm -f conftest.defines
31134 echo ' fi # grep' >>$CONFIG_STATUS
31135 echo >>$CONFIG_STATUS
31137 # Break up conftest.undefs because some shells have a limit on the size
31138 # of here documents, and old seds have small limits too (100 cmds).
31139 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31140 rm -f conftest.tail
31141 while grep . conftest.undefs >/dev/null
31143 # Write a limited-size here document to $tmp/undefs.sed.
31144 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31145 # Speed up: don't consider the non `#undef'
31146 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31147 # Work around the forget-to-reset-the-flag bug.
31148 echo 't clr' >>$CONFIG_STATUS
31149 echo ': clr' >>$CONFIG_STATUS
31150 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31152 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31154 mv $tmp/out $tmp/in
31156 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31157 rm -f conftest.undefs
31158 mv conftest.tail conftest.undefs
31160 rm -f conftest.undefs
31162 cat >>$CONFIG_STATUS <<\_ACEOF
31163 # Let's still pretend it is `configure' which instantiates (i.e., don't
31164 # use $as_me), people would be surprised to read:
31165 # /* config.h. Generated by config.status. */
31166 if test x"$ac_file" = x-; then
31167 echo "/* Generated by configure. */" >$tmp/config.h
31169 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31171 cat $tmp/in >>$tmp/config.h
31173 if test x"$ac_file" != x-; then
31174 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31176 echo "$as_me: $ac_file is unchanged" >&6;}
31178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31180 X"$ac_file" : 'X\(//\)[^/]' \| \
31181 X"$ac_file" : 'X\(//\)$' \| \
31182 X"$ac_file" : 'X\(/\)' \| \
31183 . : '\(.\)' 2>/dev/null ||
31185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31187 /^X\(\/\/\)$/{ s//\1/; q; }
31188 /^X\(\/\).*/{ s//\1/; q; }
31190 { if $as_mkdir_p; then
31195 while test ! -d "$as_dir"; do
31196 as_dirs="$as_dir $as_dirs"
31197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31199 X"$as_dir" : 'X\(//\)[^/]' \| \
31200 X"$as_dir" : 'X\(//\)$' \| \
31201 X"$as_dir" : 'X\(/\)' \| \
31202 . : '\(.\)' 2>/dev/null ||
31204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31206 /^X\(\/\/\)$/{ s//\1/; q; }
31207 /^X\(\/\).*/{ s//\1/; q; }
31210 test ! -n "$as_dirs" || mkdir $as_dirs
31211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31213 { (exit 1); exit 1; }; }; }
31216 mv $tmp/config.h $ac_file
31220 rm -f $tmp/config.h
31224 cat >>$CONFIG_STATUS <<\_ACEOF
31227 # CONFIG_COMMANDS section.
31229 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31230 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31231 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31232 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31233 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31234 X"$ac_dest" : 'X\(//\)[^/]' \| \
31235 X"$ac_dest" : 'X\(//\)$' \| \
31236 X"$ac_dest" : 'X\(/\)' \| \
31237 . : '\(.\)' 2>/dev/null ||
31239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31241 /^X\(\/\/\)$/{ s//\1/; q; }
31242 /^X\(\/\).*/{ s//\1/; q; }
31244 { if $as_mkdir_p; then
31249 while test ! -d "$as_dir"; do
31250 as_dirs="$as_dir $as_dirs"
31251 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31253 X"$as_dir" : 'X\(//\)[^/]' \| \
31254 X"$as_dir" : 'X\(//\)$' \| \
31255 X"$as_dir" : 'X\(/\)' \| \
31256 . : '\(.\)' 2>/dev/null ||
31258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31260 /^X\(\/\/\)$/{ s//\1/; q; }
31261 /^X\(\/\).*/{ s//\1/; q; }
31264 test ! -n "$as_dirs" || mkdir $as_dirs
31265 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31266 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31267 { (exit 1); exit 1; }; }; }
31271 if test "$ac_dir" != .; then
31272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31273 # A "../" for each directory in $ac_dir_suffix.
31274 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31276 ac_dir_suffix= ac_top_builddir=
31280 .) # No --srcdir option. We are building in place.
31282 if test -z "$ac_top_builddir"; then
31285 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31287 [\\/]* | ?:[\\/]* ) # Absolute path.
31288 ac_srcdir=$srcdir$ac_dir_suffix;
31289 ac_top_srcdir=$srcdir ;;
31290 *) # Relative path.
31291 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31292 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31295 # Do not use `cd foo && pwd` to compute absolute paths, because
31296 # the directories may not exist.
31298 .) ac_abs_builddir="$ac_dir";;
31301 .) ac_abs_builddir=`pwd`;;
31302 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31303 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31306 case $ac_abs_builddir in
31307 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31309 case ${ac_top_builddir}. in
31310 .) ac_abs_top_builddir=$ac_abs_builddir;;
31311 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31312 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31315 case $ac_abs_builddir in
31316 .) ac_abs_srcdir=$ac_srcdir;;
31319 .) ac_abs_srcdir=$ac_abs_builddir;;
31320 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31321 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31324 case $ac_abs_builddir in
31325 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31327 case $ac_top_srcdir in
31328 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31329 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31330 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31335 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31336 echo "$as_me: executing $ac_dest commands" >&6;}
31339 for ac_file in $CONFIG_FILES; do
31340 # Support "outfile[:infile[:infile...]]"
31342 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31344 # PO directories have a Makefile.in generated from Makefile.in.in.
31345 case "$ac_file" in */Makefile.in)
31346 # Adjust a relative srcdir.
31347 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31348 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31349 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31350 # In autoconf-2.13 it is called $ac_given_srcdir.
31351 # In autoconf-2.50 it is called $srcdir.
31352 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31353 case "$ac_given_srcdir" in
31354 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31355 /*) top_srcdir="$ac_given_srcdir" ;;
31356 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31358 # Treat a directory as a PO directory if and only if it has a
31359 # POTFILES.in file. This allows packages to have multiple PO
31360 # directories under different names or in different locations.
31361 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31362 rm -f "$ac_dir/POTFILES"
31363 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31364 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31365 POMAKEFILEDEPS="POTFILES.in"
31366 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31367 # on $ac_dir but don't depend on user-specified configuration
31369 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31370 # The LINGUAS file contains the set of available languages.
31371 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31372 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31374 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31375 # Hide the ALL_LINGUAS assigment from automake.
31376 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31377 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31379 # The set of available languages was given in configure.in.
31380 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31383 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31384 # Compute UPDATEPOFILES
31385 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31386 # Compute DUMMYPOFILES
31387 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31389 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31390 case "$ac_given_srcdir" in
31392 *) srcdirpre='$(srcdir)/' ;;
31398 for lang in $ALL_LINGUAS; do
31399 POFILES="$POFILES $srcdirpre$lang.po"
31400 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31401 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31402 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31404 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31405 # environment variable.
31407 if test -n "$ALL_LINGUAS"; then
31408 for presentlang in $ALL_LINGUAS; do
31410 if test "%UNSET%" != "$LINGUAS"; then
31411 desiredlanguages="$LINGUAS"
31413 desiredlanguages="$ALL_LINGUAS"
31415 for desiredlang in $desiredlanguages; do
31416 # Use the presentlang catalog if desiredlang is
31417 # a. equal to presentlang, or
31418 # b. a variant of presentlang (because in this case,
31419 # presentlang can be used as a fallback for messages
31420 # which are not translated in the desiredlang catalog).
31421 case "$desiredlang" in
31422 "$presentlang"*) useit=yes;;
31425 if test $useit = yes; then
31426 INST_LINGUAS="$INST_LINGUAS $presentlang"
31431 if test -n "$INST_LINGUAS"; then
31432 for lang in $INST_LINGUAS; do
31433 CATALOGS="$CATALOGS $lang.gmo"
31436 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31437 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
31438 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31439 if test -f "$f"; then
31441 *.orig | *.bak | *~) ;;
31442 *) cat "$f" >> "$ac_dir/Makefile" ;;
31450 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31456 cat >>$CONFIG_STATUS <<\_ACEOF
31458 { (exit 0); exit 0; }
31460 chmod +x $CONFIG_STATUS
31461 ac_clean_files=$ac_clean_files_save
31464 # configure is writing to config.log, and then calls config.status.
31465 # config.status does its own redirection, appending to config.log.
31466 # Unfortunately, on DOS this fails, as config.log is still kept open
31467 # by configure, so config.status won't be able to write to it; its
31468 # output is simply discarded. So we exec the FD to /dev/null,
31469 # effectively closing config.log, so it can be properly (re)opened and
31470 # appended to by config.status. When coming back to configure, we
31471 # need to make the FD available again.
31472 if test "$no_create" != yes; then
31474 ac_config_status_args=
31475 test "$silent" = yes &&
31476 ac_config_status_args="$ac_config_status_args --quiet"
31478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31481 # would make configure fail if this is the last instruction.
31482 $ac_cs_success || { (exit 1); exit 1; }
31487 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31488 chmod 755 dvd-handler
31489 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31494 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31495 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31497 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31498 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31500 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31501 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31503 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31504 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31506 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31507 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31509 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31510 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31512 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31513 chmod 755 $c/sqlite
31516 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31517 largefile_support="yes"
31521 # A whole lot of hand springs to get the compiler version.
31522 # This is because gcc changed the output in version 3.0
31524 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31525 if test "x${CCVERSION}" = "x" ; then
31526 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31528 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31529 if test x"${CXXVERSION}" = x ; then
31530 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31533 if test "x${subsysdir}" = "x${sbindir}" ; then
31536 echo "You have set --sbindir and --with-subsys-dir"
31537 echo " both equal to: ${subsysdir} "
31538 echo " This is not permitted. Please reconfigure."
31540 echo "Aborting configuration ..."
31546 if test "x${db_name}" = "xInternal" ; then
31549 echo "You have not specified either --enable-client-only or one of the"
31550 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31551 echo " This is not permitted. Please reconfigure."
31553 echo "Aborting the configuration ..."
31560 Configuration on `date`:
31562 Host: $host -- ${DISTNAME} ${DISTVER}
31563 Bacula version: ${VERSION} (${DATE})
31564 Source code location: ${srcdir}
31565 Install binaries: ${sbindir}
31566 Install config files: ${sysconfdir}
31567 Scripts directory: ${scriptdir}
31568 Working directory: ${working_dir}
31569 PID directory: ${piddir}
31570 Subsys directory: ${subsysdir}
31571 Man directory: ${mandir}
31572 Data directory: ${datadir}
31573 C Compiler: ${CC} ${CCVERSION}
31574 C++ Compiler: ${CXX} ${CXXVERSION}
31575 Compiler flags: ${WCFLAGS} ${CFLAGS}
31576 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31578 Statically Linked Tools: ${support_static_tools}
31579 Statically Linked FD: ${support_static_fd}
31580 Statically Linked SD: ${support_static_sd}
31581 Statically Linked DIR: ${support_static_dir}
31582 Statically Linked CONS: ${support_static_cons}
31583 Database type: ${db_name}
31584 Database lib: ${DB_LIBS}
31586 Job Output Email: ${job_email}
31587 Traceback Email: ${dump_email}
31588 SMTP Host Address: ${smtp_host}
31590 Director Port: ${dir_port}
31591 File daemon Port: ${fd_port}
31592 Storage daemon Port: ${sd_port}
31594 Director User: ${dir_user}
31595 Director Group: ${dir_group}
31596 Storage Daemon User: ${sd_user}
31597 Storage DaemonGroup: ${sd_group}
31598 File Daemon User: ${fd_user}
31599 File Daemon Group: ${fd_group}
31601 SQL binaries Directory ${SQL_BINDIR}
31603 Large file support: $largefile_support
31604 Bacula conio support: ${got_conio} ${CONS_LIBS}
31605 readline support: ${got_readline} ${PRTREADLINE_SRC}
31606 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31607 TLS support: ${support_tls}
31608 Encryption support: ${support_crypto}
31609 ZLIB support: ${have_zlib}
31610 enable-smartalloc: ${support_smartalloc}
31611 enable-gnome: ${support_gnome} ${gnome_version}
31612 enable-wx-console: ${support_wx_console} ${wx_version}
31613 enable-tray-monitor: ${support_tray_monitor}
31614 client-only: ${build_client_only}
31615 build-dird: ${build_dird}
31616 build-stored: ${build_stored}
31617 ACL support: ${have_acl}
31618 Python support: ${support_python} ${PYTHON_LIBS}