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 TOP_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
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436 # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1467 if test -n "$TRUEPRG"; then
1468 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1475 test -n "$TRUEPRG" && break
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1479 for ac_prog in false
1481 # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1512 if test -n "$FALSEPRG"; then
1513 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 test -n "$FALSEPRG" && break
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1576 if test -z "$ac_cv_prog_CC"; then
1578 # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_ac_ct_CC="gcc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="${ac_tool_prefix}cc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if test -z "$ac_cv_prog_CC"; then
1658 # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_CC="cc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1699 if test -z "$CC"; then
1700 # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719 ac_prog_rejected=yes
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 if test $ac_prog_rejected = yes; then
1730 # We found a bogon in the path, so make sure we never use it.
1731 set dummy $ac_cv_prog_CC
1733 if test $# != 0; then
1734 # We chose a different compiler from the bogus one.
1735 # However, it has the same basename, so the bogon will be chosen
1736 # first if we set CC to just the basename; use the full file name.
1738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1744 if test -n "$CC"; then
1745 echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1753 if test -z "$CC"; then
1754 if test -n "$ac_tool_prefix"; then
1757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 test -z "$as_dir" && as_dir=.
1772 for ac_exec_ext in '' $ac_executable_extensions; do
1773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 test -n "$CC" && break
1795 if test -z "$CC"; then
1799 # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="$ac_prog"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1834 test -n "$ac_ct_CC" && break
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851 "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854 (eval $ac_compiler --version </dev/null >&5) 2>&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859 (eval $ac_compiler -v </dev/null >&5) 2>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864 (eval $ac_compiler -V </dev/null >&5) 2>&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }
1869 cat >conftest.$ac_ext <<_ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h. */
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893 (eval $ac_link_default) 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then
1897 # Find the output, starting from the most likely. This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1907 test -f "$ac_file" || continue
1909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1912 # This is the source file.
1915 # We found the default executable, but exeext='' is most
1919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920 # FIXME: I believe we export ac_cv_exeext for Libtool,
1921 # but it would be cool to find out if it's true. Does anybody
1922 # maintain Libtool? --akim.
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937 { (exit 77); exit 77; }; }
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1944 # Check the compiler produces executables we can run. If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951 if { ac_try='./$ac_file'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1959 if test "$cross_compiling" = maybe; then
1962 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run. If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987 (eval $ac_link) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; then
1991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1995 for ac_file in conftest.exe conftest conftest.*; do
1996 test -f "$ac_file" || continue
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061 { (exit 1); exit 1; }; }
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>conftest.er1
2097 grep -v '^ *+' conftest.er1 >conftest.err
2099 cat conftest.err >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -z "$ac_c_werror_flag"
2103 || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat >conftest.$ac_ext <<_ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1 >conftest.err
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186 CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188 if test "$GCC" = yes; then
2194 if test "$GCC" = yes; then
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 ac_cv_prog_cc_stdc=no
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2231 s = g (p, va_arg (v,int));
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2237 function prototypes and stuff, but not '\xHH' hex character constants.
2238 These don't provoke an error unfortunately, instead are silently treated
2239 as 'x'. The following induces an error, until -std1 is added to get
2240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2241 array size at least. It's necessary to write '\x00'==0 to get something
2242 that's true only with -std1. */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX -qlanglvl=ansi
2262 # Ultrix and OSF/1 -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions -Aa -D_HPUX_SOURCE
2265 # SVR4 -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2268 CC="$ac_save_CC $ac_arg"
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 ac_cv_prog_cc_stdc=$ac_arg
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.err conftest.$ac_objext
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2305 case "x$ac_cv_prog_cc_stdc" in
2307 echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312 CC="$CC $ac_cv_prog_cc_stdc" ;;
2315 # Some people use a C++ compiler to compile C. Since we use `exit',
2316 # in C++ we need to declare it. In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1 >conftest.err
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 for ac_declaration in \
2348 'extern "C" void std::exit (int) throw (); using std::exit;' \
2349 'extern "C" void std::exit (int); using std::exit;' \
2350 'extern "C" void exit (int) throw ();' \
2351 'extern "C" void exit (int);' \
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 if test -n "$ac_declaration"; then
2447 echo '#ifdef __cplusplus' >>confdefs.h
2448 echo $ac_declaration >>confdefs.h
2449 echo '#endif' >>confdefs.h
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$CXX"; then
2480 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 if test -n "$CXX"; then
2500 echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 test -n "$CXX" && break
2510 if test -z "$CXX"; then
2512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 if test -n "$ac_ct_CXX"; then
2522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_CXX="$ac_prog"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2549 test -n "$ac_ct_CXX" && break
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559 "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562 (eval $ac_compiler --version </dev/null >&5) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567 (eval $ac_compiler -v </dev/null >&5) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572 (eval $ac_compiler -V </dev/null >&5) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_cxx_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_cxx_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cxx_g=yes
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693 CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695 if test "$GXX" = yes; then
2701 if test "$GXX" = yes; then
2707 for ac_declaration in \
2709 'extern "C" void std::exit (int) throw (); using std::exit;' \
2710 'extern "C" void std::exit (int); using std::exit;' \
2711 'extern "C" void exit (int) throw ();' \
2712 'extern "C" void exit (int);' \
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_cxx_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_cxx_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 if test -n "$ac_declaration"; then
2808 echo '#ifdef __cplusplus' >>confdefs.h
2809 echo $ac_declaration >>confdefs.h
2810 echo '#endif' >>confdefs.h
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test "x$CC" != xcc; then
2820 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2823 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2826 set dummy $CC; ac_cc=`echo $2 |
2827 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } &&
2855 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); };
2861 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862 if test "x$CC" != xcc; then
2863 # Test first that cc exists at all.
2864 if { ac_try='cc -c conftest.$ac_ext >&5'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); };
2885 # cc exists but doesn't like -o.
2886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2891 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897 echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2943 # include <limits.h>
2945 # include <assert.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Broken: fails on valid input.
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Passes both tests.
3015 rm -f conftest.err conftest.$ac_ext
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3035 for ac_c_preproc_warn_flag in '' yes
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3050 # include <limits.h>
3052 # include <assert.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073 if test -z "$ac_cpp_err"; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Broken: fails on valid input.
3082 rm -f conftest.err conftest.$ac_ext
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Passes both tests.
3122 rm -f conftest.err conftest.$ac_ext
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150 then ac_cv_prog_egrep='grep -E'
3151 else ac_cv_prog_egrep='egrep'
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156 EGREP=$ac_cv_prog_egrep
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_pattern="Autoconf.*'x'"
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177 ac_cv_prog_gcc_traditional=yes
3179 ac_cv_prog_gcc_traditional=no
3184 if test $ac_cv_prog_gcc_traditional = no; then
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196 ac_cv_prog_gcc_traditional=yes
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204 if test $ac_cv_prog_gcc_traditional = yes; then
3205 CC="$CC -traditional"
3209 if test "x$CC" = xgcc; then
3210 cat >>confdefs.h <<\_ACEOF
3215 # Extract the first word of "$CXX", so it can be a program name with args.
3216 set dummy $CXX; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_CXX+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3247 if test -n "$CXX"; then
3248 echo "$as_me:$LINENO: result: $CXX" >&5
3249 echo "${ECHO_T}$CXX" >&6
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3255 if test ! -e $CXX; then
3256 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3257 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3258 { (exit 1); exit 1; }; }
3261 # Find a good install program. We prefer a C program (faster),
3262 # so one script is as good as another. But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276 if test -z "$INSTALL"; then
3277 if test "${ac_cv_path_install+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 # Account for people who put trailing slashes in PATH elements.
3287 ./ | .// | /cC/* | \
3288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3292 # OSF1 and SCO ODT 3.0 have their own names for install.
3293 # Don't use installbsd from OSF since it installs stuff as root
3295 for ac_prog in ginstall scoinst install; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3298 if test $ac_prog = install &&
3299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300 # AIX install. It has an incompatible calling convention.
3302 elif test $ac_prog = install &&
3303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304 # program-specific install script used by HP pwplus--don't use.
3307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3319 if test "${ac_cv_path_install+set}" = set; then
3320 INSTALL=$ac_cv_path_install
3322 # As a last resort, use the slow shell script. We don't cache a
3323 # path for INSTALL within a source directory, because that will
3324 # break other packages using the cache if that directory is
3325 # removed, or if the path is relative.
3326 INSTALL=$ac_install_sh
3329 echo "$as_me:$LINENO: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_RANLIB+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$RANLIB"; then
3349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 RANLIB=$ac_cv_prog_RANLIB
3368 if test -n "$RANLIB"; then
3369 echo "$as_me:$LINENO: result: $RANLIB" >&5
3370 echo "${ECHO_T}$RANLIB" >&6
3372 echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3377 if test -z "$ac_cv_prog_RANLIB"; then
3378 ac_ct_RANLIB=$RANLIB
3379 # Extract the first word of "ranlib", so it can be a program name with args.
3380 set dummy ranlib; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 if test -n "$ac_ct_RANLIB"; then
3387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_ac_ct_RANLIB="ranlib"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3407 if test -n "$ac_ct_RANLIB"; then
3408 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3409 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 RANLIB=$ac_ct_RANLIB
3417 RANLIB="$ac_cv_prog_RANLIB"
3420 # Extract the first word of "mv", so it can be a program name with args.
3421 set dummy mv; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_path_MV+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3452 if test -n "$MV"; then
3453 echo "$as_me:$LINENO: result: $MV" >&5
3454 echo "${ECHO_T}$MV" >&6
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 # Extract the first word of "rm", so it can be a program name with args.
3461 set dummy rm; ac_word=$2
3462 echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3464 if test "${ac_cv_path_RM+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3492 if test -n "$RM"; then
3493 echo "$as_me:$LINENO: result: $RM" >&5
3494 echo "${ECHO_T}$RM" >&6
3496 echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3500 # Extract the first word of "cp", so it can be a program name with args.
3501 set dummy cp; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_CP+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3532 if test -n "$CP"; then
3533 echo "$as_me:$LINENO: result: $CP" >&5
3534 echo "${ECHO_T}$CP" >&6
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3540 # Extract the first word of "sed", so it can be a program name with args.
3541 set dummy sed; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_path_SED+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3572 if test -n "$SED"; then
3573 echo "$as_me:$LINENO: result: $SED" >&5
3574 echo "${ECHO_T}$SED" >&6
3576 echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3580 # Extract the first word of "echo", so it can be a program name with args.
3581 set dummy echo; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_path_ECHO+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3610 ECHO=$ac_cv_path_ECHO
3612 if test -n "$ECHO"; then
3613 echo "$as_me:$LINENO: result: $ECHO" >&5
3614 echo "${ECHO_T}$ECHO" >&6
3616 echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6
3620 # Extract the first word of "cmp", so it can be a program name with args.
3621 set dummy cmp; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_CMP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3652 if test -n "$CMP"; then
3653 echo "$as_me:$LINENO: result: $CMP" >&5
3654 echo "${ECHO_T}$CMP" >&6
3656 echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3660 # Extract the first word of "tbl", so it can be a program name with args.
3661 set dummy tbl; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_path_TBL+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3692 if test -n "$TBL"; then
3693 echo "$as_me:$LINENO: result: $TBL" >&5
3694 echo "${ECHO_T}$TBL" >&6
3696 echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3700 # Extract the first word of "ar", so it can be a program name with args.
3701 set dummy ar; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_path_AR+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3732 if test -n "$AR"; then
3733 echo "$as_me:$LINENO: result: $AR" >&5
3734 echo "${ECHO_T}$AR" >&6
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3740 # Extract the first word of "openssl", so it can be a program name with args.
3741 set dummy openssl; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_path_OPENSSL+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3770 OPENSSL=$ac_cv_path_OPENSSL
3772 if test -n "$OPENSSL"; then
3773 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3774 echo "${ECHO_T}$OPENSSL" >&6
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3780 # Extract the first word of "mtx", so it can be a program name with args.
3781 set dummy mtx; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_MTX+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3812 if test -n "$MTX"; then
3813 echo "$as_me:$LINENO: result: $MTX" >&5
3814 echo "${ECHO_T}$MTX" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3820 # Extract the first word of "dd", so it can be a program name with args.
3821 set dummy dd; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_DD+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3852 if test -n "$DD"; then
3853 echo "$as_me:$LINENO: result: $DD" >&5
3854 echo "${ECHO_T}$DD" >&6
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 # Extract the first word of "mkisofs", so it can be a program name with args.
3861 set dummy mkisofs; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_path_MKISOFS+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3890 MKISOFS=$ac_cv_path_MKISOFS
3892 if test -n "$MKISOFS"; then
3893 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3894 echo "${ECHO_T}$MKISOFS" >&6
3896 echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3900 # Extract the first word of "python", so it can be a program name with args.
3901 set dummy python; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_path_PYTHON+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3930 PYTHON=$ac_cv_path_PYTHON
3932 if test -n "$PYTHON"; then
3933 echo "$as_me:$LINENO: result: $PYTHON" >&5
3934 echo "${ECHO_T}$PYTHON" >&6
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3940 # Extract the first word of "growisofs", so it can be a program name with args.
3941 set dummy growisofs; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3970 GROWISOFS=$ac_cv_path_GROWISOFS
3972 if test -n "$GROWISOFS"; then
3973 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3974 echo "${ECHO_T}$GROWISOFS" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3981 set dummy dvd+rw-mediainfo; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 case $DVDRWMEDIAINFO in
3989 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4010 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4012 if test -n "$DVDRWMEDIAINFO"; then
4013 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4014 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4020 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4021 set dummy dvd+rw-format; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 case $DVDRWFORMAT in
4029 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4050 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4052 if test -n "$DVDRWFORMAT"; then
4053 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4054 echo "${ECHO_T}$DVDRWFORMAT" >&6
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4060 # Extract the first word of "pkg-config", so it can be a program name with args.
4061 set dummy pkg-config; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4090 PKGCONFIG=$ac_cv_path_PKGCONFIG
4092 if test -n "$PKGCONFIG"; then
4093 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4094 echo "${ECHO_T}$PKGCONFIG" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 if test "x$WXCONFIG" = x; then
4104 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4105 set dummy ${WXCONFIG}; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4134 WXCONFIG=$ac_cv_path_WXCONFIG
4136 if test -n "$WXCONFIG"; then
4137 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4138 echo "${ECHO_T}$WXCONFIG" >&6
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4145 # Extract the first word of "cdrecord", so it can be a program name with args.
4146 set dummy cdrecord; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_CDRECORD+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4175 CDRECORD=$ac_cv_path_CDRECORD
4177 if test -n "$CDRECORD"; then
4178 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4179 echo "${ECHO_T}$CDRECORD" >&6
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4185 # Extract the first word of "pidof", so it can be a program name with args.
4186 set dummy pidof; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_path_PIDOF+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4215 PIDOF=$ac_cv_path_PIDOF
4217 if test -n "$PIDOF"; then
4218 echo "$as_me:$LINENO: result: $PIDOF" >&5
4219 echo "${ECHO_T}$PIDOF" >&6
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4225 for ac_prog in gawk mawk nawk awk
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_AWK+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$AWK"; then
4235 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_AWK="$ac_prog"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$AWK"; then
4255 echo "$as_me:$LINENO: result: $AWK" >&5
4256 echo "${ECHO_T}$AWK" >&6
4258 echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4262 test -n "$AWK" && break
4265 # Some AWK programs fail, so test it and warn the user
4266 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4267 { if ((prog == $2) || (("(" prog ")") == $2) ||
4268 (("" prog "") == $2) ||
4269 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4271 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4272 The regex engine of $AWK is too broken to be used you
4273 might want to install GNU AWK.
4274 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4275 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4276 The regex engine of $AWK is too broken to be used you
4277 might want to install GNU AWK.
4278 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4279 { (exit 1); exit 1; }; }
4282 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4283 set dummy $THE_AWK; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_AWK+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4314 if test -n "$AWK"; then
4315 echo "$as_me:$LINENO: result: $AWK" >&5
4316 echo "${ECHO_T}$AWK" >&6
4318 echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4323 test -n "$ARFLAG" || ARFLAGS="cr"
4334 # Make sure we can run config.sub.
4335 $ac_config_sub sun4 >/dev/null 2>&1 ||
4336 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4338 { (exit 1); exit 1; }; }
4340 echo "$as_me:$LINENO: checking build system type" >&5
4341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4342 if test "${ac_cv_build+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_cv_build_alias=$build_alias
4346 test -z "$ac_cv_build_alias" &&
4347 ac_cv_build_alias=`$ac_config_guess`
4348 test -z "$ac_cv_build_alias" &&
4349 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4351 { (exit 1); exit 1; }; }
4352 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4353 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4355 { (exit 1); exit 1; }; }
4358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4359 echo "${ECHO_T}$ac_cv_build" >&6
4361 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4362 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4363 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4367 echo "$as_me:$LINENO: checking host system type" >&5
4368 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4369 if test "${ac_cv_host+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_cv_host_alias=$host_alias
4373 test -z "$ac_cv_host_alias" &&
4374 ac_cv_host_alias=$ac_cv_build_alias
4375 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4376 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4377 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4378 { (exit 1); exit 1; }; }
4381 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4382 echo "${ECHO_T}$ac_cv_host" >&6
4384 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4385 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4386 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4390 *cygwin* ) CYGWIN=yes;;
4394 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4400 HAVE_SUN_OS_FALSE='#'
4402 HAVE_SUN_OS_TRUE='#'
4405 cat >>confdefs.h <<\_ACEOF
4406 #define HAVE_SUN_OS 1
4414 HAVE_SUN_OS_FALSE='#'
4416 HAVE_SUN_OS_TRUE='#'
4421 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4427 HAVE_OSF1_OS_FALSE='#'
4429 HAVE_OSF1_OS_TRUE='#'
4432 cat >>confdefs.h <<\_ACEOF
4433 #define HAVE_OSF1_OS 1
4441 HAVE_OSF1_OS_FALSE='#'
4443 HAVE_OSF1_OS_TRUE='#'
4448 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4454 HAVE_AIX_OS_FALSE='#'
4456 HAVE_AIX_OS_TRUE='#'
4459 cat >>confdefs.h <<\_ACEOF
4460 #define HAVE_AIX_OS 1
4468 HAVE_AIX_OS_FALSE='#'
4470 HAVE_AIX_OS_TRUE='#'
4475 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4481 HAVE_HPUX_OS_FALSE='#'
4483 HAVE_HPUX_OS_TRUE='#'
4486 cat >>confdefs.h <<\_ACEOF
4487 #define HAVE_HPUX_OS 1
4495 HAVE_HPUX_OS_FALSE='#'
4497 HAVE_HPUX_OS_TRUE='#'
4502 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4508 HAVE_LINUX_OS_FALSE='#'
4510 HAVE_LINUX_OS_TRUE='#'
4511 HAVE_LINUX_OS_FALSE=
4513 cat >>confdefs.h <<\_ACEOF
4514 #define HAVE_LINUX_OS 1
4522 HAVE_LINUX_OS_FALSE='#'
4524 HAVE_LINUX_OS_TRUE='#'
4525 HAVE_LINUX_OS_FALSE=
4529 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4534 HAVE_FREEBSD_OS_TRUE=
4535 HAVE_FREEBSD_OS_FALSE='#'
4537 HAVE_FREEBSD_OS_TRUE='#'
4538 HAVE_FREEBSD_OS_FALSE=
4540 cat >>confdefs.h <<\_ACEOF
4541 #define HAVE_FREEBSD_OS 1
4548 HAVE_FREEBSD_OS_TRUE=
4549 HAVE_FREEBSD_OS_FALSE='#'
4551 HAVE_FREEBSD_OS_TRUE='#'
4552 HAVE_FREEBSD_OS_FALSE=
4556 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4561 HAVE_NETBSD_OS_TRUE=
4562 HAVE_NETBSD_OS_FALSE='#'
4564 HAVE_NETBSD_OS_TRUE='#'
4565 HAVE_NETBSD_OS_FALSE=
4567 cat >>confdefs.h <<\_ACEOF
4568 #define HAVE_NETBSD_OS 1
4575 HAVE_NETBSD_OS_TRUE=
4576 HAVE_NETBSD_OS_FALSE='#'
4578 HAVE_NETBSD_OS_TRUE='#'
4579 HAVE_NETBSD_OS_FALSE=
4583 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4588 HAVE_OPENBSD_OS_TRUE=
4589 HAVE_OPENBSD_OS_FALSE='#'
4591 HAVE_OPENBSD_OS_TRUE='#'
4592 HAVE_OPENBSD_OS_FALSE=
4594 cat >>confdefs.h <<\_ACEOF
4595 #define HAVE_OPENBSD_OS 1
4602 HAVE_OPENBSD_OS_TRUE=
4603 HAVE_OPENBSD_OS_FALSE='#'
4605 HAVE_OPENBSD_OS_TRUE='#'
4606 HAVE_OPENBSD_OS_FALSE=
4610 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4616 HAVE_BSDI_OS_FALSE='#'
4618 HAVE_BSDI_OS_TRUE='#'
4621 cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_BSDI_OS 1
4630 HAVE_BSDI_OS_FALSE='#'
4632 HAVE_BSDI_OS_TRUE='#'
4637 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4643 HAVE_SGI_OS_FALSE='#'
4645 HAVE_SGI_OS_TRUE='#'
4648 cat >>confdefs.h <<\_ACEOF
4649 #define HAVE_SGI_OS 1
4657 HAVE_SGI_OS_FALSE='#'
4659 HAVE_SGI_OS_TRUE='#'
4664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4670 HAVE_IRIX_OS_FALSE='#'
4672 HAVE_IRIX_OS_TRUE='#'
4675 cat >>confdefs.h <<\_ACEOF
4676 #define HAVE_IRIX_OS 1
4684 HAVE_IRIX_OS_FALSE='#'
4686 HAVE_IRIX_OS_TRUE='#'
4691 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4696 HAVE_DARWIN_OS_TRUE=
4697 HAVE_DARWIN_OS_FALSE='#'
4699 HAVE_DARWIN_OS_TRUE='#'
4700 HAVE_DARWIN_OS_FALSE=
4702 cat >>confdefs.h <<\_ACEOF
4703 #define HAVE_DARWIN_OS 1
4710 HAVE_DARWIN_OS_TRUE=
4711 HAVE_DARWIN_OS_FALSE='#'
4713 HAVE_DARWIN_OS_TRUE='#'
4714 HAVE_DARWIN_OS_FALSE=
4719 # -----------------------------------------------------------
4720 # ----------------------------------------------------------
4721 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4722 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4723 if test "x$DISTNAME" != "x"
4725 echo "distname set to $DISTNAME"
4726 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4753 elif test -f /etc/SuSE-release
4756 elif test -d /etc/SuSEconfig
4759 elif test -f /etc/mandrake-release
4762 elif test -f /etc/whitebox-release
4765 elif test -f /etc/redhat-release
4768 elif test -f /etc/gentoo-release
4771 elif test -f /etc/debian_version
4774 elif test -f /etc/slackware-version
4777 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4780 elif test -f /etc/engarde-version
4783 elif test "$CYGWIN" = yes
4786 cat >>confdefs.h <<\_ACEOF
4787 #define HAVE_CYGWIN 1
4793 echo "$as_me:$LINENO: result: done" >&5
4794 echo "${ECHO_T}done" >&6
4797 # --------------------------------------------------
4798 # Suppport for gettext (translations)
4799 # By default, $datadir is ${prefix}/share
4800 # --------------------------------------------------
4801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 cat >conftest.make <<\_ACEOF
4809 @echo 'ac_maketemp="$(MAKE)"'
4811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4813 if test -n "$ac_maketemp"; then
4814 eval ac_cv_prog_make_${ac_make}_set=yes
4816 eval ac_cv_prog_make_${ac_make}_set=no
4820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4821 echo "$as_me:$LINENO: result: yes" >&5
4822 echo "${ECHO_T}yes" >&6
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827 SET_MAKE="MAKE=${MAKE-make}"
4833 if test -n "$ac_aux_dir"; then
4834 case "$ac_aux_dir" in
4835 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4836 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4839 if test -z "$MKINSTALLDIRS"; then
4840 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4845 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4847 # Check whether --enable-nls or --disable-nls was given.
4848 if test "${enable_nls+set}" = set; then
4849 enableval="$enable_nls"
4854 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4855 echo "${ECHO_T}$USE_NLS" >&6
4862 # Prepare PATH_SEPARATOR.
4863 # The user is always right.
4864 if test "${PATH_SEPARATOR+set}" != set; then
4865 echo "#! /bin/sh" >conf$$.sh
4866 echo "exit 0" >>conf$$.sh
4868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4876 # Find out how to test for executable files. Don't use a zero-byte file,
4877 # as systems may use methods other than mode bits to determine executability.
4878 cat >conf$$.file <<_ASEOF
4882 chmod +x conf$$.file
4883 if test -x conf$$.file >/dev/null 2>&1; then
4884 ac_executable_p="test -x"
4886 ac_executable_p="test -f"
4890 # Extract the first word of "msgfmt", so it can be a program name with args.
4891 set dummy msgfmt; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_path_MSGFMT+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4902 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4903 for ac_dir in $PATH; do
4905 test -z "$ac_dir" && ac_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4908 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4909 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4910 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4911 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4918 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4922 MSGFMT="$ac_cv_path_MSGFMT"
4923 if test "$MSGFMT" != ":"; then
4924 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4925 echo "${ECHO_T}$MSGFMT" >&6
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4931 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4932 set dummy gmsgfmt; ac_word=$2
4933 echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4961 GMSGFMT=$ac_cv_path_GMSGFMT
4963 if test -n "$GMSGFMT"; then
4964 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4965 echo "${ECHO_T}$GMSGFMT" >&6
4967 echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4973 # Prepare PATH_SEPARATOR.
4974 # The user is always right.
4975 if test "${PATH_SEPARATOR+set}" != set; then
4976 echo "#! /bin/sh" >conf$$.sh
4977 echo "exit 0" >>conf$$.sh
4979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4987 # Find out how to test for executable files. Don't use a zero-byte file,
4988 # as systems may use methods other than mode bits to determine executability.
4989 cat >conf$$.file <<_ASEOF
4993 chmod +x conf$$.file
4994 if test -x conf$$.file >/dev/null 2>&1; then
4995 ac_executable_p="test -x"
4997 ac_executable_p="test -f"
5001 # Extract the first word of "xgettext", so it can be a program name with args.
5002 set dummy xgettext; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5013 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5014 for ac_dir in $PATH; do
5016 test -z "$ac_dir" && ac_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5019 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5020 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5021 (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
5022 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5029 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5033 XGETTEXT="$ac_cv_path_XGETTEXT"
5034 if test "$XGETTEXT" != ":"; then
5035 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5036 echo "${ECHO_T}$XGETTEXT" >&6
5038 echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6
5045 # Prepare PATH_SEPARATOR.
5046 # The user is always right.
5047 if test "${PATH_SEPARATOR+set}" != set; then
5048 echo "#! /bin/sh" >conf$$.sh
5049 echo "exit 0" >>conf$$.sh
5051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5059 # Find out how to test for executable files. Don't use a zero-byte file,
5060 # as systems may use methods other than mode bits to determine executability.
5061 cat >conf$$.file <<_ASEOF
5065 chmod +x conf$$.file
5066 if test -x conf$$.file >/dev/null 2>&1; then
5067 ac_executable_p="test -x"
5069 ac_executable_p="test -f"
5073 # Extract the first word of "msgmerge", so it can be a program name with args.
5074 set dummy msgmerge; ac_word=$2
5075 echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5085 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5086 for ac_dir in $PATH; do
5088 test -z "$ac_dir" && ac_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5091 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5092 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5093 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5100 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5104 MSGMERGE="$ac_cv_path_MSGMERGE"
5105 if test "$MSGMERGE" != ":"; then
5106 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5107 echo "${ECHO_T}$MSGMERGE" >&6
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5114 if test "$GMSGFMT" != ":"; then
5115 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5116 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5119 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5120 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5121 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5126 if test "$XGETTEXT" != ":"; then
5127 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5128 (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
5131 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5132 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5138 ac_config_commands="$ac_config_commands default-1"
5142 if test "X$prefix" = "XNONE"; then
5143 acl_final_prefix="$ac_default_prefix"
5145 acl_final_prefix="$prefix"
5147 if test "X$exec_prefix" = "XNONE"; then
5148 acl_final_exec_prefix='${prefix}'
5150 acl_final_exec_prefix="$exec_prefix"
5152 acl_save_prefix="$prefix"
5153 prefix="$acl_final_prefix"
5154 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5155 prefix="$acl_save_prefix"
5158 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5159 if test "${with_gnu_ld+set}" = set; then
5160 withval="$with_gnu_ld"
5161 test "$withval" = no || with_gnu_ld=yes
5165 # Prepare PATH_SEPARATOR.
5166 # The user is always right.
5167 if test "${PATH_SEPARATOR+set}" != set; then
5168 echo "#! /bin/sh" >conf$$.sh
5169 echo "exit 0" >>conf$$.sh
5171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5179 if test "$GCC" = yes; then
5180 # Check if gcc -print-prog-name=ld gives a path.
5181 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5182 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5185 # gcc leaves a trailing carriage return which upsets mingw
5186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5191 # Accept absolute paths.
5192 [\\/]* | [A-Za-z]:[\\/]*)
5193 re_direlt='/[^/][^/]*/\.\./'
5194 # Canonicalize the path of ld
5195 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5196 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5197 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5199 test -z "$LD" && LD="$ac_prog"
5202 # If it fails, then pretend we aren't using GCC.
5206 # If it is relative, then search for the first ld in PATH.
5210 elif test "$with_gnu_ld" = yes; then
5211 echo "$as_me:$LINENO: checking for GNU ld" >&5
5212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5214 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5217 if test "${acl_cv_path_LD+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -z "$LD"; then
5221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5222 for ac_dir in $PATH; do
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 acl_cv_path_LD="$ac_dir/$ac_prog"
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some GNU ld's only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test "$with_gnu_ld" != no && break ;;
5233 test "$with_gnu_ld" != yes && break ;;
5239 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5243 LD="$acl_cv_path_LD"
5244 if test -n "$LD"; then
5245 echo "$as_me:$LINENO: result: $LD" >&5
5246 echo "${ECHO_T}$LD" >&6
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5251 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5252 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5253 { (exit 1); exit 1; }; }
5254 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5255 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5256 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262 acl_cv_prog_gnu_ld=yes ;;
5264 acl_cv_prog_gnu_ld=no ;;
5267 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5268 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5269 with_gnu_ld=$acl_cv_prog_gnu_ld
5274 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5275 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5276 if test "${acl_cv_rpath+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5281 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5287 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5288 echo "${ECHO_T}$acl_cv_rpath" >&6
5290 libext="$acl_cv_libext"
5291 shlibext="$acl_cv_shlibext"
5292 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5293 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5294 hardcode_direct="$acl_cv_hardcode_direct"
5295 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5296 # Check whether --enable-rpath or --disable-rpath was given.
5297 if test "${enable_rpath+set}" = set; then
5298 enableval="$enable_rpath"
5312 acl_save_prefix="$prefix"
5313 prefix="$acl_final_prefix"
5314 acl_save_exec_prefix="$exec_prefix"
5315 exec_prefix="$acl_final_exec_prefix"
5317 eval additional_includedir=\"$includedir\"
5318 eval additional_libdir=\"$libdir\"
5320 exec_prefix="$acl_save_exec_prefix"
5321 prefix="$acl_save_prefix"
5324 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5325 if test "${with_libiconv_prefix+set}" = set; then
5326 withval="$with_libiconv_prefix"
5328 if test "X$withval" = "Xno"; then
5331 if test "X$withval" = "X"; then
5333 acl_save_prefix="$prefix"
5334 prefix="$acl_final_prefix"
5335 acl_save_exec_prefix="$exec_prefix"
5336 exec_prefix="$acl_final_exec_prefix"
5338 eval additional_includedir=\"$includedir\"
5339 eval additional_libdir=\"$libdir\"
5341 exec_prefix="$acl_save_exec_prefix"
5342 prefix="$acl_save_prefix"
5345 additional_includedir="$withval/include"
5346 additional_libdir="$withval/lib"
5356 names_already_handled=
5357 names_next_round='iconv '
5358 while test -n "$names_next_round"; do
5359 names_this_round="$names_next_round"
5361 for name in $names_this_round; do
5363 for n in $names_already_handled; do
5364 if test "$n" = "$name"; then
5369 if test -z "$already_handled"; then
5370 names_already_handled="$names_already_handled $name"
5371 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5372 eval value=\"\$HAVE_LIB$uppername\"
5373 if test -n "$value"; then
5374 if test "$value" = yes; then
5375 eval value=\"\$LIB$uppername\"
5376 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5377 eval value=\"\$LTLIB$uppername\"
5378 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5387 if test $use_additional = yes; then
5388 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5389 found_dir="$additional_libdir"
5390 found_so="$additional_libdir/lib$name.$shlibext"
5391 if test -f "$additional_libdir/lib$name.la"; then
5392 found_la="$additional_libdir/lib$name.la"
5395 if test -f "$additional_libdir/lib$name.$libext"; then
5396 found_dir="$additional_libdir"
5397 found_a="$additional_libdir/lib$name.$libext"
5398 if test -f "$additional_libdir/lib$name.la"; then
5399 found_la="$additional_libdir/lib$name.la"
5404 if test "X$found_dir" = "X"; then
5405 for x in $LDFLAGS $LTLIBICONV; do
5407 acl_save_prefix="$prefix"
5408 prefix="$acl_final_prefix"
5409 acl_save_exec_prefix="$exec_prefix"
5410 exec_prefix="$acl_final_exec_prefix"
5412 exec_prefix="$acl_save_exec_prefix"
5413 prefix="$acl_save_prefix"
5417 dir=`echo "X$x" | sed -e 's/^X-L//'`
5418 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5420 found_so="$dir/lib$name.$shlibext"
5421 if test -f "$dir/lib$name.la"; then
5422 found_la="$dir/lib$name.la"
5425 if test -f "$dir/lib$name.$libext"; then
5427 found_a="$dir/lib$name.$libext"
5428 if test -f "$dir/lib$name.la"; then
5429 found_la="$dir/lib$name.la"
5435 if test "X$found_dir" != "X"; then
5440 if test "X$found_dir" != "X"; then
5441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5442 if test "X$found_so" != "X"; then
5443 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5447 for x in $ltrpathdirs; do
5448 if test "X$x" = "X$found_dir"; then
5453 if test -z "$haveit"; then
5454 ltrpathdirs="$ltrpathdirs $found_dir"
5456 if test "$hardcode_direct" = yes; then
5457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5459 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5462 for x in $rpathdirs; do
5463 if test "X$x" = "X$found_dir"; then
5468 if test -z "$haveit"; then
5469 rpathdirs="$rpathdirs $found_dir"
5473 for x in $LDFLAGS $LIBICONV; do
5475 acl_save_prefix="$prefix"
5476 prefix="$acl_final_prefix"
5477 acl_save_exec_prefix="$exec_prefix"
5478 exec_prefix="$acl_final_exec_prefix"
5480 exec_prefix="$acl_save_exec_prefix"
5481 prefix="$acl_save_prefix"
5483 if test "X$x" = "X-L$found_dir"; then
5488 if test -z "$haveit"; then
5489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5491 if test "$hardcode_minus_L" != no; then
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5494 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5500 if test "X$found_a" != "X"; then
5501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5503 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5506 additional_includedir=
5507 case "$found_dir" in
5509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5510 additional_includedir="$basedir/include"
5513 if test "X$additional_includedir" != "X"; then
5514 if test "X$additional_includedir" != "X/usr/include"; then
5516 if test "X$additional_includedir" = "X/usr/local/include"; then
5517 if test -n "$GCC"; then
5519 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5523 if test -z "$haveit"; then
5524 for x in $CPPFLAGS $INCICONV; do
5526 acl_save_prefix="$prefix"
5527 prefix="$acl_final_prefix"
5528 acl_save_exec_prefix="$exec_prefix"
5529 exec_prefix="$acl_final_exec_prefix"
5531 exec_prefix="$acl_save_exec_prefix"
5532 prefix="$acl_save_prefix"
5534 if test "X$x" = "X-I$additional_includedir"; then
5539 if test -z "$haveit"; then
5540 if test -d "$additional_includedir"; then
5541 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5547 if test -n "$found_la"; then
5548 save_libdir="$libdir"
5550 */* | *\\*) . "$found_la" ;;
5551 *) . "./$found_la" ;;
5553 libdir="$save_libdir"
5554 for dep in $dependency_libs; do
5557 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5558 if test "X$additional_libdir" != "X/usr/lib"; then
5560 if test "X$additional_libdir" = "X/usr/local/lib"; then
5561 if test -n "$GCC"; then
5563 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5567 if test -z "$haveit"; then
5569 for x in $LDFLAGS $LIBICONV; do
5571 acl_save_prefix="$prefix"
5572 prefix="$acl_final_prefix"
5573 acl_save_exec_prefix="$exec_prefix"
5574 exec_prefix="$acl_final_exec_prefix"
5576 exec_prefix="$acl_save_exec_prefix"
5577 prefix="$acl_save_prefix"
5579 if test "X$x" = "X-L$additional_libdir"; then
5584 if test -z "$haveit"; then
5585 if test -d "$additional_libdir"; then
5586 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5590 for x in $LDFLAGS $LTLIBICONV; do
5592 acl_save_prefix="$prefix"
5593 prefix="$acl_final_prefix"
5594 acl_save_exec_prefix="$exec_prefix"
5595 exec_prefix="$acl_final_exec_prefix"
5597 exec_prefix="$acl_save_exec_prefix"
5598 prefix="$acl_save_prefix"
5600 if test "X$x" = "X-L$additional_libdir"; then
5605 if test -z "$haveit"; then
5606 if test -d "$additional_libdir"; then
5607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5614 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5615 if test "$enable_rpath" != no; then
5617 for x in $rpathdirs; do
5618 if test "X$x" = "X$dir"; then
5623 if test -z "$haveit"; then
5624 rpathdirs="$rpathdirs $dir"
5627 for x in $ltrpathdirs; do
5628 if test "X$x" = "X$dir"; then
5633 if test -z "$haveit"; then
5634 ltrpathdirs="$ltrpathdirs $dir"
5639 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5645 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5652 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5659 if test "X$rpathdirs" != "X"; then
5660 if test -n "$hardcode_libdir_separator"; then
5662 for found_dir in $rpathdirs; do
5663 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5665 acl_save_libdir="$libdir"
5667 eval flag=\"$hardcode_libdir_flag_spec\"
5668 libdir="$acl_save_libdir"
5669 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5671 for found_dir in $rpathdirs; do
5672 acl_save_libdir="$libdir"
5674 eval flag=\"$hardcode_libdir_flag_spec\"
5675 libdir="$acl_save_libdir"
5676 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680 if test "X$ltrpathdirs" != "X"; then
5681 for found_dir in $ltrpathdirs; do
5682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5703 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5704 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5705 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 gt_save_CPPFLAGS="$CPPFLAGS"
5709 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5710 gt_save_LIBS="$LIBS"
5711 LIBS="$LIBS -framework CoreFoundation"
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <CFPreferences.h>
5722 CFPreferencesCopyAppValue(NULL, NULL)
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 gt_cv_func_CFPreferencesCopyAppValue=yes
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 gt_cv_func_CFPreferencesCopyAppValue=no
5756 rm -f conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5758 CPPFLAGS="$gt_save_CPPFLAGS"
5759 LIBS="$gt_save_LIBS"
5761 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5762 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5763 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5770 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5771 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5772 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 gt_save_CPPFLAGS="$CPPFLAGS"
5776 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5777 gt_save_LIBS="$LIBS"
5778 LIBS="$LIBS -framework CoreFoundation"
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <CFLocale.h>
5789 CFLocaleCopyCurrent();
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag"
5804 || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest$ac_exeext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 gt_cv_func_CFLocaleCopyCurrent=yes
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 gt_cv_func_CFLocaleCopyCurrent=no
5823 rm -f conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5825 CPPFLAGS="$gt_save_CPPFLAGS"
5826 LIBS="$gt_save_LIBS"
5828 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5829 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5830 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_CFLOCALECOPYCURRENT 1
5838 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5839 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5845 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5847 # Check whether --enable-nls or --disable-nls was given.
5848 if test "${enable_nls+set}" = set; then
5849 enableval="$enable_nls"
5854 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5855 echo "${ECHO_T}$USE_NLS" >&6
5864 if test "$USE_NLS" = "yes"; then
5865 gt_use_preinstalled_gnugettext=no
5872 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5873 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5874 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <libintl.h>
5884 extern int _nl_msg_cat_cntr;
5885 extern int *_nl_domain_bindings;
5889 bindtextdomain ("", "");
5890 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897 (eval $ac_link) 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest$ac_exeext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 gt_cv_func_gnugettext1_libc=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 gt_cv_func_gnugettext1_libc=no
5924 rm -f conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5927 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5928 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5930 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5936 am_save_CPPFLAGS="$CPPFLAGS"
5938 for element in $INCICONV; do
5940 for x in $CPPFLAGS; do
5942 acl_save_prefix="$prefix"
5943 prefix="$acl_final_prefix"
5944 acl_save_exec_prefix="$exec_prefix"
5945 exec_prefix="$acl_final_exec_prefix"
5947 exec_prefix="$acl_save_exec_prefix"
5948 prefix="$acl_save_prefix"
5950 if test "X$x" = "X$element"; then
5955 if test -z "$haveit"; then
5956 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5961 echo "$as_me:$LINENO: checking for iconv" >&5
5962 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5963 if test "${am_cv_func_iconv+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 am_cv_func_iconv="no, consider installing GNU libiconv"
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5980 iconv_t cd = iconv_open("","");
5981 iconv(cd,NULL,NULL,NULL,NULL);
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 am_cv_func_iconv=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 rm -f conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6017 if test "$am_cv_func_iconv" != yes; then
6018 am_save_LIBS="$LIBS"
6019 LIBS="$LIBS $LIBICONV"
6020 cat >conftest.$ac_ext <<_ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6031 iconv_t cd = iconv_open("","");
6032 iconv(cd,NULL,NULL,NULL,NULL);
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6061 am_cv_func_iconv=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6067 rm -f conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 LIBS="$am_save_LIBS"
6073 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6074 echo "${ECHO_T}$am_cv_func_iconv" >&6
6075 if test "$am_cv_func_iconv" = yes; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ICONV 1
6082 if test "$am_cv_lib_iconv" = yes; then
6083 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6084 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6085 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6086 echo "${ECHO_T}$LIBICONV" >&6
6088 CPPFLAGS="$am_save_CPPFLAGS"
6100 acl_save_prefix="$prefix"
6101 prefix="$acl_final_prefix"
6102 acl_save_exec_prefix="$exec_prefix"
6103 exec_prefix="$acl_final_exec_prefix"
6105 eval additional_includedir=\"$includedir\"
6106 eval additional_libdir=\"$libdir\"
6108 exec_prefix="$acl_save_exec_prefix"
6109 prefix="$acl_save_prefix"
6112 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6113 if test "${with_libintl_prefix+set}" = set; then
6114 withval="$with_libintl_prefix"
6116 if test "X$withval" = "Xno"; then
6119 if test "X$withval" = "X"; then
6121 acl_save_prefix="$prefix"
6122 prefix="$acl_final_prefix"
6123 acl_save_exec_prefix="$exec_prefix"
6124 exec_prefix="$acl_final_exec_prefix"
6126 eval additional_includedir=\"$includedir\"
6127 eval additional_libdir=\"$libdir\"
6129 exec_prefix="$acl_save_exec_prefix"
6130 prefix="$acl_save_prefix"
6133 additional_includedir="$withval/include"
6134 additional_libdir="$withval/lib"
6144 names_already_handled=
6145 names_next_round='intl '
6146 while test -n "$names_next_round"; do
6147 names_this_round="$names_next_round"
6149 for name in $names_this_round; do
6151 for n in $names_already_handled; do
6152 if test "$n" = "$name"; then
6157 if test -z "$already_handled"; then
6158 names_already_handled="$names_already_handled $name"
6159 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6160 eval value=\"\$HAVE_LIB$uppername\"
6161 if test -n "$value"; then
6162 if test "$value" = yes; then
6163 eval value=\"\$LIB$uppername\"
6164 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6165 eval value=\"\$LTLIB$uppername\"
6166 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6175 if test $use_additional = yes; then
6176 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6177 found_dir="$additional_libdir"
6178 found_so="$additional_libdir/lib$name.$shlibext"
6179 if test -f "$additional_libdir/lib$name.la"; then
6180 found_la="$additional_libdir/lib$name.la"
6183 if test -f "$additional_libdir/lib$name.$libext"; then
6184 found_dir="$additional_libdir"
6185 found_a="$additional_libdir/lib$name.$libext"
6186 if test -f "$additional_libdir/lib$name.la"; then
6187 found_la="$additional_libdir/lib$name.la"
6192 if test "X$found_dir" = "X"; then
6193 for x in $LDFLAGS $LTLIBINTL; do
6195 acl_save_prefix="$prefix"
6196 prefix="$acl_final_prefix"
6197 acl_save_exec_prefix="$exec_prefix"
6198 exec_prefix="$acl_final_exec_prefix"
6200 exec_prefix="$acl_save_exec_prefix"
6201 prefix="$acl_save_prefix"
6205 dir=`echo "X$x" | sed -e 's/^X-L//'`
6206 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6208 found_so="$dir/lib$name.$shlibext"
6209 if test -f "$dir/lib$name.la"; then
6210 found_la="$dir/lib$name.la"
6213 if test -f "$dir/lib$name.$libext"; then
6215 found_a="$dir/lib$name.$libext"
6216 if test -f "$dir/lib$name.la"; then
6217 found_la="$dir/lib$name.la"
6223 if test "X$found_dir" != "X"; then
6228 if test "X$found_dir" != "X"; then
6229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6230 if test "X$found_so" != "X"; then
6231 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6235 for x in $ltrpathdirs; do
6236 if test "X$x" = "X$found_dir"; then
6241 if test -z "$haveit"; then
6242 ltrpathdirs="$ltrpathdirs $found_dir"
6244 if test "$hardcode_direct" = yes; then
6245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6247 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6250 for x in $rpathdirs; do
6251 if test "X$x" = "X$found_dir"; then
6256 if test -z "$haveit"; then
6257 rpathdirs="$rpathdirs $found_dir"
6261 for x in $LDFLAGS $LIBINTL; do
6263 acl_save_prefix="$prefix"
6264 prefix="$acl_final_prefix"
6265 acl_save_exec_prefix="$exec_prefix"
6266 exec_prefix="$acl_final_exec_prefix"
6268 exec_prefix="$acl_save_exec_prefix"
6269 prefix="$acl_save_prefix"
6271 if test "X$x" = "X-L$found_dir"; then
6276 if test -z "$haveit"; then
6277 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6279 if test "$hardcode_minus_L" != no; then
6280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6282 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6288 if test "X$found_a" != "X"; then
6289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6291 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6294 additional_includedir=
6295 case "$found_dir" in
6297 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6298 additional_includedir="$basedir/include"
6301 if test "X$additional_includedir" != "X"; then
6302 if test "X$additional_includedir" != "X/usr/include"; then
6304 if test "X$additional_includedir" = "X/usr/local/include"; then
6305 if test -n "$GCC"; then
6307 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6311 if test -z "$haveit"; then
6312 for x in $CPPFLAGS $INCINTL; do
6314 acl_save_prefix="$prefix"
6315 prefix="$acl_final_prefix"
6316 acl_save_exec_prefix="$exec_prefix"
6317 exec_prefix="$acl_final_exec_prefix"
6319 exec_prefix="$acl_save_exec_prefix"
6320 prefix="$acl_save_prefix"
6322 if test "X$x" = "X-I$additional_includedir"; then
6327 if test -z "$haveit"; then
6328 if test -d "$additional_includedir"; then
6329 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6335 if test -n "$found_la"; then
6336 save_libdir="$libdir"
6338 */* | *\\*) . "$found_la" ;;
6339 *) . "./$found_la" ;;
6341 libdir="$save_libdir"
6342 for dep in $dependency_libs; do
6345 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6346 if test "X$additional_libdir" != "X/usr/lib"; then
6348 if test "X$additional_libdir" = "X/usr/local/lib"; then
6349 if test -n "$GCC"; then
6351 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6355 if test -z "$haveit"; then
6357 for x in $LDFLAGS $LIBINTL; do
6359 acl_save_prefix="$prefix"
6360 prefix="$acl_final_prefix"
6361 acl_save_exec_prefix="$exec_prefix"
6362 exec_prefix="$acl_final_exec_prefix"
6364 exec_prefix="$acl_save_exec_prefix"
6365 prefix="$acl_save_prefix"
6367 if test "X$x" = "X-L$additional_libdir"; then
6372 if test -z "$haveit"; then
6373 if test -d "$additional_libdir"; then
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6378 for x in $LDFLAGS $LTLIBINTL; do
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6388 if test "X$x" = "X-L$additional_libdir"; then
6393 if test -z "$haveit"; then
6394 if test -d "$additional_libdir"; then
6395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6402 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6403 if test "$enable_rpath" != no; then
6405 for x in $rpathdirs; do
6406 if test "X$x" = "X$dir"; then
6411 if test -z "$haveit"; then
6412 rpathdirs="$rpathdirs $dir"
6415 for x in $ltrpathdirs; do
6416 if test "X$x" = "X$dir"; then
6421 if test -z "$haveit"; then
6422 ltrpathdirs="$ltrpathdirs $dir"
6427 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6433 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6440 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6441 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6447 if test "X$rpathdirs" != "X"; then
6448 if test -n "$hardcode_libdir_separator"; then
6450 for found_dir in $rpathdirs; do
6451 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6453 acl_save_libdir="$libdir"
6455 eval flag=\"$hardcode_libdir_flag_spec\"
6456 libdir="$acl_save_libdir"
6457 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6459 for found_dir in $rpathdirs; do
6460 acl_save_libdir="$libdir"
6462 eval flag=\"$hardcode_libdir_flag_spec\"
6463 libdir="$acl_save_libdir"
6464 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468 if test "X$ltrpathdirs" != "X"; then
6469 for found_dir in $ltrpathdirs; do
6470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6474 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6475 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6476 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 gt_save_CPPFLAGS="$CPPFLAGS"
6480 CPPFLAGS="$CPPFLAGS $INCINTL"
6481 gt_save_LIBS="$LIBS"
6482 LIBS="$LIBS $LIBINTL"
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <libintl.h>
6490 extern int _nl_msg_cat_cntr;
6495 const char *_nl_expand_alias (const char *);
6499 bindtextdomain ("", "");
6500 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 gt_cv_func_gnugettext1_libintl=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 gt_cv_func_gnugettext1_libintl=no
6534 rm -f conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6537 LIBS="$LIBS $LIBICONV"
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 #include <libintl.h>
6545 extern int _nl_msg_cat_cntr;
6550 const char *_nl_expand_alias (const char *);
6554 bindtextdomain ("", "");
6555 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 LIBINTL="$LIBINTL $LIBICONV"
6583 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6584 gt_cv_func_gnugettext1_libintl=yes
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6591 rm -f conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6594 CPPFLAGS="$gt_save_CPPFLAGS"
6595 LIBS="$gt_save_LIBS"
6597 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6598 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6601 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6602 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6603 && test "$PACKAGE" != gettext-runtime \
6604 && test "$PACKAGE" != gettext-tools; }; then
6605 gt_use_preinstalled_gnugettext=yes
6614 if test -n "$INTL_MACOSX_LIBS"; then
6615 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6616 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6617 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6618 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6622 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6623 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6625 cat >>confdefs.h <<\_ACEOF
6626 #define ENABLE_NLS 1
6634 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6635 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6636 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6637 echo "${ECHO_T}$USE_NLS" >&6
6638 if test "$USE_NLS" = "yes"; then
6639 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6640 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6641 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6642 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6643 gt_source="external libintl"
6648 gt_source="included intl directory"
6650 echo "$as_me:$LINENO: result: $gt_source" >&5
6651 echo "${ECHO_T}$gt_source" >&6
6654 if test "$USE_NLS" = "yes"; then
6656 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6657 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6658 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6659 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6660 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6661 echo "${ECHO_T}$LIBINTL" >&6
6663 for element in $INCINTL; do
6665 for x in $CPPFLAGS; do
6667 acl_save_prefix="$prefix"
6668 prefix="$acl_final_prefix"
6669 acl_save_exec_prefix="$exec_prefix"
6670 exec_prefix="$acl_final_exec_prefix"
6672 exec_prefix="$acl_save_exec_prefix"
6673 prefix="$acl_save_prefix"
6675 if test "X$x" = "X$element"; then
6680 if test -z "$haveit"; then
6681 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_GETTEXT 1
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_DCGETTEXT 1
6711 if test x${prefix} = xNONE ; then
6712 if test `eval echo ${datadir}` = NONE/share ; then
6717 # ------------------------------------------------------------------
6718 # If the user has not set --prefix, we set our default to nothing.
6719 # In this case, if the user has not set --sysconfdir, we set it
6720 # to the package default of /etc/bacula. If either --prefix or
6721 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6722 # ------------------------------------------------------------------
6723 if test x${prefix} = xNONE ; then
6724 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6725 sysconfdir=/etc/bacula
6729 sysconfdir=`eval echo ${sysconfdir}`
6730 datadir=`eval echo ${datadir}`
6731 localedir=`eval echo ${datadir}/locale`
6732 cat >>confdefs.h <<_ACEOF
6733 #define LOCALEDIR "$localedir"
6737 # -------------------------------------------------------------------------
6738 # If the user has not set --exec-prefix, we default to ${prefix}
6739 # -------------------------------------------------------------------------
6740 if test x${exec_prefix} = xNONE ; then
6741 exec_prefix=${prefix}
6744 # ------------------------------------------------------------------
6745 # If the user has not set --sbindir, we set our default as /sbin
6746 # ------------------------------------------------------------------
6747 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6748 sbindir=${exec_prefix}/sbin
6750 sbindir=`eval echo ${sbindir}`
6752 # -------------------------------------------------------------------------
6753 # If the user has not set --mandir, we default to /usr/share/man
6754 # -------------------------------------------------------------------------
6755 if test x$mandir = x'${prefix}/man' ; then
6756 mandir=/usr/share/man
6760 # ------------------------------------------------------------------
6761 # All list of languages for which a translation exist. Each
6762 # language is separated by a space.
6763 # ------------------------------------------------------------------
6766 for ac_prog in msgfmt
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772 if test "${ac_cv_path_MSGFMT+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 MSGFMT=$ac_cv_path_MSGFMT
6799 if test -n "$MSGFMT"; then
6800 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6801 echo "${ECHO_T}$MSGFMT" >&6
6803 echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6807 test -n "$MSGFMT" && break
6809 test -n "$MSGFMT" || MSGFMT="no"
6811 if test "$MSGFMT" = "no"
6813 echo 'msgfmt program not found, disabling NLS !'
6815 USE_INCLUDED_LIBINTL=no
6818 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6819 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6820 if test "${ac_cv_gnu_library_2+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6830 #include <features.h>
6831 #ifdef __GNU_LIBRARY__
6832 #if (__GLIBC__ >= 2)
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6840 ac_cv_gnu_library_2=yes
6842 ac_cv_gnu_library_2=no
6849 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6850 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6852 GLIBC2="$ac_cv_gnu_library_2"
6855 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6856 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6857 if test "${ac_cv_search_strerror+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_func_search_save_LIBS=$LIBS
6861 ac_cv_search_strerror=no
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>conftest.er1
6888 grep -v '^ *+' conftest.er1 >conftest.err
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_search_strerror="none required"
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6912 rm -f conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 if test "$ac_cv_search_strerror" = no; then
6915 for ac_lib in cposix; do
6916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 /* Override any gcc2 internal prototype to avoid an error. */
6928 /* We use char because int might match the return type of a gcc2
6929 builtin and then its argument prototype would still apply. */
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_cv_search_strerror="-l$ac_lib"
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6968 rm -f conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_func_search_save_LIBS
6974 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6975 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6976 if test "$ac_cv_search_strerror" != no; then
6977 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6981 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6983 if test "${ac_cv_header_stdc+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_header_stdc=yes
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_header_stdc=no
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036 if test $ac_cv_header_stdc = yes; then
7037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "memchr" >/dev/null 2>&1; then
7051 ac_cv_header_stdc=no
7057 if test $ac_cv_header_stdc = yes; then
7058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "free" >/dev/null 2>&1; then
7072 ac_cv_header_stdc=no
7078 if test $ac_cv_header_stdc = yes; then
7079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080 if test "$cross_compiling" = yes; then
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7094 # define ISLOWER(c) \
7095 (('a' <= (c) && (c) <= 'i') \
7096 || ('j' <= (c) && (c) <= 'r') \
7097 || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106 for (i = 0; i < 256; i++)
7107 if (XOR (islower (i), ISLOWER (i))
7108 || toupper (i) != TOUPPER (i))
7113 rm -f conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7126 echo "$as_me: program exited with status $ac_status" >&5
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_header_stdc=no
7133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7138 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7139 if test $ac_cv_header_stdc = yes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STDC_HEADERS 1
7147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7149 if test "${ac_cv_c_const+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7162 /* FIXME: Include the comments suggested by Paul. */
7164 /* Ultrix mips cc rejects this. */
7165 typedef int charset[2];
7167 /* SunOS 4.1.1 cc rejects this. */
7168 char const *const *ccp;
7170 /* NEC SVR4.0.2 mips cc rejects this. */
7171 struct point {int x, y;};
7172 static struct point const zero = {0,0};
7173 /* AIX XL C 1.02.0.0 rejects this.
7174 It does not let you subtract one const X* pointer from another in
7175 an arm of an if-expression whose if-part is not a constant
7177 const char *g = "string";
7178 ccp = &g + (g ? g-g : 0);
7179 /* HPUX 7.0 cc rejects these. */
7182 ccp = (char const *const *) p;
7183 { /* SCO 3.2v4 cc rejects this. */
7185 char const *s = 0 ? (char *) 0 : (char const *) 0;
7189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7191 const int *foo = &x[0];
7194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7195 typedef const int *iptr;
7199 { /* AIX XL C 1.02.0.0 rejects this saying
7200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7201 struct s { int j; const int *ap[3]; };
7202 struct s *b; b->j = 5;
7204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7245 echo "${ECHO_T}$ac_cv_c_const" >&6
7246 if test $ac_cv_c_const = no; then
7248 cat >>confdefs.h <<\_ACEOF
7255 echo "$as_me:$LINENO: checking for signed" >&5
7256 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7257 if test "${bh_cv_c_signed+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7307 echo "${ECHO_T}$bh_cv_c_signed" >&6
7308 if test $bh_cv_c_signed = no; then
7310 cat >>confdefs.h <<\_ACEOF
7316 echo "$as_me:$LINENO: checking for inline" >&5
7317 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7318 if test "${ac_cv_c_inline+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 for ac_kw in inline __inline__ __inline; do
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7331 static $ac_kw foo_t static_foo () {return 0; }
7332 $ac_kw foo_t foo () {return 0; }
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_c_inline=$ac_kw; break
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7369 echo "${ECHO_T}$ac_cv_c_inline" >&6
7372 case $ac_cv_c_inline in
7375 case $ac_cv_c_inline in
7377 *) ac_val=$ac_cv_c_inline;;
7379 cat >>confdefs.h <<_ACEOF
7381 #define inline $ac_val
7387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7398 inttypes.h stdint.h unistd.h
7400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 $ac_includes_default
7414 #include <$ac_header>
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 eval "$as_ac_Header=yes"
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 eval "$as_ac_Header=no"
7445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7450 cat >>confdefs.h <<_ACEOF
7451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 echo "$as_me:$LINENO: checking for off_t" >&5
7460 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7461 if test "${ac_cv_type_off_t+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 $ac_includes_default
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7486 grep -v '^ *+' conftest.er1 >conftest.err
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest.$ac_objext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_type_off_t=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7515 if test $ac_cv_type_off_t = yes; then
7519 cat >>confdefs.h <<_ACEOF
7525 echo "$as_me:$LINENO: checking for size_t" >&5
7526 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7527 if test "${ac_cv_type_size_t+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7542 if (sizeof (size_t))
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest.$ac_objext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 ac_cv_type_size_t=yes
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_cv_type_size_t=no
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7580 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7581 if test $ac_cv_type_size_t = yes; then
7585 cat >>confdefs.h <<_ACEOF
7586 #define size_t unsigned
7592 echo "$as_me:$LINENO: checking for long long" >&5
7593 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7594 if test "${ac_cv_type_long_long+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 cat >conftest.$ac_ext <<_ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 long long ll = 1LL; int i = 63;
7607 long long llmax = (long long) -1;
7608 return ll << i | ll >> i | llmax / ll | llmax % ll;
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615 (eval $ac_link) 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag"
7623 || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest$ac_exeext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_cv_type_long_long=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_cv_type_long_long=no
7642 rm -f conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7646 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7647 if test $ac_cv_type_long_long = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_LONG_LONG 1
7656 echo "$as_me:$LINENO: checking for long double" >&5
7657 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7658 if test "${gt_cv_c_long_double+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 if test "$GCC" = yes; then
7662 gt_cv_c_long_double=yes
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7671 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7672 long double foo = 0.0;
7673 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7674 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 gt_cv_c_long_double=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 gt_cv_c_long_double=no
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7717 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7718 if test $gt_cv_c_long_double = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_LONG_DOUBLE 1
7727 echo "$as_me:$LINENO: checking for wchar_t" >&5
7728 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7729 if test "${gt_cv_c_wchar_t+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 wchar_t foo = (wchar_t)'\0';
7748 rm -f conftest.$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
7752 grep -v '^ *+' conftest.er1 >conftest.err
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7780 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7781 if test $gt_cv_c_wchar_t = yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_WCHAR_T 1
7790 echo "$as_me:$LINENO: checking for wint_t" >&5
7791 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7792 if test "${gt_cv_c_wint_t+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7802 wint_t foo = (wchar_t)'\0';
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7843 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7844 if test $gt_cv_c_wint_t = yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_WINT_T 1
7853 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7854 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7855 if test "${gl_cv_header_inttypes_h+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <sys/types.h>
7865 #include <inttypes.h>
7869 uintmax_t i = (uintmax_t) -1;
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest.$ac_objext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 gl_cv_header_inttypes_h=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 gl_cv_header_inttypes_h=no
7903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7906 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7907 if test $gl_cv_header_inttypes_h = yes; then
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7916 echo "$as_me:$LINENO: checking for stdint.h" >&5
7917 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7918 if test "${gl_cv_header_stdint_h+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <sys/types.h>
7932 uintmax_t i = (uintmax_t) -1;
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 gl_cv_header_stdint_h=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 gl_cv_header_stdint_h=no
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7969 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7970 if test $gl_cv_header_stdint_h = yes; then
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_STDINT_H_WITH_UINTMAX 1
7981 echo "$as_me:$LINENO: checking for intmax_t" >&5
7982 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7983 if test "${gt_cv_c_intmax_t+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 cat >conftest.$ac_ext <<_ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7995 #if HAVE_STDINT_H_WITH_UINTMAX
7998 #if HAVE_INTTYPES_H_WITH_UINTMAX
7999 #include <inttypes.h>
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 gt_cv_c_intmax_t=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8042 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8043 if test $gt_cv_c_intmax_t = yes; then
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_INTMAX_T 1
8053 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8054 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8055 if test "${gt_cv_func_printf_posix+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 if test "$cross_compiling" = yes; then
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074 $EGREP "notposix" >/dev/null 2>&1; then
8075 gt_cv_func_printf_posix="guessing no"
8077 gt_cv_func_printf_posix="guessing yes"
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8092 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8093 dollar expansion (possibly an autoconf bug). */
8094 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8095 static char buf[100];
8098 sprintf (buf, format, 33, 55);
8099 return (strcmp (buf, "55 33") != 0);
8102 rm -f conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 gt_cv_func_printf_posix=yes
8115 echo "$as_me: program exited with status $ac_status" >&5
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8120 gt_cv_func_printf_posix=no
8122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8127 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8128 case $gt_cv_func_printf_posix in
8131 cat >>confdefs.h <<\_ACEOF
8132 #define HAVE_POSIX_PRINTF 1
8138 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8139 # for constant arguments. Useless!
8140 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8141 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8142 if test "${ac_cv_working_alloca_h+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8155 char *p = (char *) alloca (2 * sizeof (int));
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_working_alloca_h=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_working_alloca_h=no
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8193 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8194 if test $ac_cv_working_alloca_h = yes; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_ALLOCA_H 1
8202 echo "$as_me:$LINENO: checking for alloca" >&5
8203 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8204 if test "${ac_cv_func_alloca_works+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8214 # define alloca __builtin_alloca
8217 # include <malloc.h>
8218 # define alloca _alloca
8221 # include <alloca.h>
8226 # ifndef alloca /* predefined by HP cc +Olibcalls */
8237 char *p = (char *) alloca (1);
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244 (eval $ac_link) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1 >conftest.err
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_func_alloca_works=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_func_alloca_works=no
8271 rm -f conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8275 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8277 if test $ac_cv_func_alloca_works = yes; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_ALLOCA 1
8284 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8285 # that cause trouble. Some versions do not even contain alloca or
8286 # contain a buggy version. If you still want to use their alloca,
8287 # use ar to extract alloca.o from them instead of compiling alloca.c.
8289 ALLOCA=alloca.$ac_objext
8291 cat >>confdefs.h <<\_ACEOF
8296 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8297 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8298 if test "${ac_cv_os_cray+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #if defined(CRAY) && ! defined(CRAY2)
8314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8315 $EGREP "webecray" >/dev/null 2>&1; then
8323 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8324 echo "${ECHO_T}$ac_cv_os_cray" >&6
8325 if test $ac_cv_os_cray = yes; then
8326 for ac_func in _getb67 GETB67 getb67; do
8327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8328 echo "$as_me:$LINENO: checking for $ac_func" >&5
8329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_var+set}\" = set"; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8341 #define $ac_func innocuous_$ac_func
8343 /* System header to define __stub macros and hopefully few prototypes,
8344 which can conflict with char $ac_func (); below.
8345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8346 <limits.h> exists even on freestanding compilers. */
8349 # include <limits.h>
8351 # include <assert.h>
8356 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8364 /* The GNU C library defines this for functions which it implements
8365 to always fail with ENOSYS. Some functions are actually named
8366 something starting with __ and the normal name is an alias. */
8367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8370 char (*f) () = $ac_func;
8379 return f != $ac_func;
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 eval "$as_ac_var=yes"
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 eval "$as_ac_var=no"
8413 rm -f conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8418 if test `eval echo '${'$as_ac_var'}'` = yes; then
8420 cat >>confdefs.h <<_ACEOF
8421 #define CRAY_STACKSEG_END $ac_func
8430 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8431 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8432 if test "${ac_cv_c_stack_direction+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 if test "$cross_compiling" = yes; then
8436 ac_cv_c_stack_direction=0
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8445 find_stack_direction ()
8447 static char *addr = 0;
8452 return find_stack_direction ();
8455 return (&dummy > addr) ? 1 : -1;
8461 exit (find_stack_direction () < 0);
8464 rm -f conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_c_stack_direction=1
8477 echo "$as_me: program exited with status $ac_status" >&5
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8482 ac_cv_c_stack_direction=-1
8484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8488 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8490 cat >>confdefs.h <<_ACEOF
8491 #define STACK_DIRECTION $ac_cv_c_stack_direction
8499 for ac_header in stdlib.h unistd.h
8501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8503 echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511 # Is the header compilable?
8512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 #include <$ac_header>
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_header_compiler=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_compiler=no
8552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 #include <$ac_header>
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev/null; then
8575 if test -s conftest.err; then
8576 ac_cpp_err=$ac_c_preproc_warn_flag
8577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8584 if test -z "$ac_cpp_err"; then
8585 ac_header_preproc=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_header_preproc=no
8592 rm -f conftest.err conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6
8596 # So? What about this header?
8597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8603 ac_header_preproc=yes
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8620 ## ------------------------------------------ ##
8621 ## Report this to the AC_PACKAGE_NAME lists. ##
8622 ## ------------------------------------------ ##
8625 sed "s/^/$as_me: WARNING: /" >&2
8628 echo "$as_me:$LINENO: checking for $ac_header" >&5
8629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 eval "$as_ac_Header=\$ac_header_preproc"
8635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8640 cat >>confdefs.h <<_ACEOF
8641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8649 for ac_func in getpagesize
8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_func" >&5
8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_var+set}\" = set"; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8665 #define $ac_func innocuous_$ac_func
8667 /* System header to define __stub macros and hopefully few prototypes,
8668 which can conflict with char $ac_func (); below.
8669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670 <limits.h> exists even on freestanding compilers. */
8673 # include <limits.h>
8675 # include <assert.h>
8680 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8694 char (*f) () = $ac_func;
8703 return f != $ac_func;
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag"
8718 || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest$ac_exeext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 eval "$as_ac_var=yes"
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 eval "$as_ac_var=no"
8737 rm -f conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8742 if test `eval echo '${'$as_ac_var'}'` = yes; then
8743 cat >>confdefs.h <<_ACEOF
8744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 echo "$as_me:$LINENO: checking for working mmap" >&5
8751 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8752 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 if test "$cross_compiling" = yes; then
8756 ac_cv_func_mmap_fixed_mapped=no
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 $ac_includes_default
8765 /* malloc might have been renamed as rpl_malloc. */
8768 /* Thanks to Mike Haertel and Jim Avera for this test.
8769 Here is a matrix of mmap possibilities:
8770 mmap private not fixed
8771 mmap private fixed at somewhere currently unmapped
8772 mmap private fixed at somewhere already mapped
8773 mmap shared not fixed
8774 mmap shared fixed at somewhere currently unmapped
8775 mmap shared fixed at somewhere already mapped
8776 For private mappings, we should verify that changes cannot be read()
8777 back from the file, nor mmap's back from the file at a different
8778 address. (There have been systems where private was not correctly
8779 implemented like the infamous i386 svr4.0, and systems where the
8780 VM page cache was not coherent with the file system buffer cache
8781 like early versions of FreeBSD and possibly contemporary NetBSD.)
8782 For shared mappings, we should conversely verify that changes get
8783 propagated back to all the places they're supposed to be.
8785 Grep wants private fixed already mapped.
8786 The main things grep needs to know about mmap are:
8787 * does it exist and is it safe to write into the mmap'd area
8788 * how to use it (BSD variants) */
8791 #include <sys/mman.h>
8793 #if !STDC_HEADERS && !HAVE_STDLIB_H
8797 /* This mess was copied from the GNU getpagesize.h. */
8798 #if !HAVE_GETPAGESIZE
8799 /* Assume that all systems that can run configure have sys/param.h. */
8800 # if !HAVE_SYS_PARAM_H
8801 # define HAVE_SYS_PARAM_H 1
8804 # ifdef _SC_PAGESIZE
8805 # define getpagesize() sysconf(_SC_PAGESIZE)
8806 # else /* no _SC_PAGESIZE */
8807 # if HAVE_SYS_PARAM_H
8808 # include <sys/param.h>
8809 # ifdef EXEC_PAGESIZE
8810 # define getpagesize() EXEC_PAGESIZE
8811 # else /* no EXEC_PAGESIZE */
8813 # define getpagesize() NBPG * CLSIZE
8816 # endif /* no CLSIZE */
8817 # else /* no NBPG */
8819 # define getpagesize() NBPC
8820 # else /* no NBPC */
8822 # define getpagesize() PAGESIZE
8823 # endif /* PAGESIZE */
8824 # endif /* no NBPC */
8825 # endif /* no NBPG */
8826 # endif /* no EXEC_PAGESIZE */
8827 # else /* no HAVE_SYS_PARAM_H */
8828 # define getpagesize() 8192 /* punt totally */
8829 # endif /* no HAVE_SYS_PARAM_H */
8830 # endif /* no _SC_PAGESIZE */
8832 #endif /* no HAVE_GETPAGESIZE */
8837 char *data, *data2, *data3;
8841 pagesize = getpagesize ();
8843 /* First, make a file with some known garbage in it. */
8844 data = (char *) malloc (pagesize);
8847 for (i = 0; i < pagesize; ++i)
8848 *(data + i) = rand ();
8850 fd = creat ("conftest.mmap", 0600);
8853 if (write (fd, data, pagesize) != pagesize)
8857 /* Next, try to mmap the file at a fixed address which already has
8858 something else allocated at it. If we can, also make sure that
8859 we see the same garbage. */
8860 fd = open ("conftest.mmap", O_RDWR);
8863 data2 = (char *) malloc (2 * pagesize);
8866 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8867 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8868 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8870 for (i = 0; i < pagesize; ++i)
8871 if (*(data + i) != *(data2 + i))
8874 /* Finally, make sure that changes to the mapped area do not
8875 percolate back to the file as seen by read(). (This is a bug on
8876 some variants of i386 svr4.0.) */
8877 for (i = 0; i < pagesize; ++i)
8878 *(data2 + i) = *(data2 + i) + 1;
8879 data3 = (char *) malloc (pagesize);
8882 if (read (fd, data3, pagesize) != pagesize)
8884 for (i = 0; i < pagesize; ++i)
8885 if (*(data + i) != *(data3 + i))
8891 rm -f conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_func_mmap_fixed_mapped=yes
8904 echo "$as_me: program exited with status $ac_status" >&5
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_func_mmap_fixed_mapped=no
8911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8915 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8916 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8926 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8927 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8928 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8938 #include <features.h>
8939 #ifdef __GNU_LIBRARY__
8940 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8948 ac_cv_gnu_library_2_1=yes
8950 ac_cv_gnu_library_2_1=no
8957 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8958 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8960 GLIBC21="$ac_cv_gnu_library_2_1"
8965 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8966 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8967 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 if test "$cross_compiling" = yes; then
8973 # Guess based on the CPU.
8975 alpha* | i3456786 | m68k | s390*)
8976 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8978 gt_cv_int_divbyzero_sigfpe="guessing no";;
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8994 sigfpe_handler (int sig)
8996 sigfpe_handler (sig) int sig;
8999 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9000 exit (sig != SIGFPE);
9010 signal (SIGFPE, sigfpe_handler);
9011 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9012 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9013 signal (SIGTRAP, sigfpe_handler);
9015 /* Linux/SPARC yields signal SIGILL. */
9016 #if defined (__sparc__) && defined (__linux__)
9017 signal (SIGILL, sigfpe_handler);
9026 rm -f conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028 (eval $ac_link) 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 gt_cv_int_divbyzero_sigfpe=yes
9039 echo "$as_me: program exited with status $ac_status" >&5
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9044 gt_cv_int_divbyzero_sigfpe=no
9046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9051 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9052 case "$gt_cv_int_divbyzero_sigfpe" in
9057 cat >>confdefs.h <<_ACEOF
9058 #define INTDIV0_RAISES_SIGFPE $value
9063 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9064 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9065 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 unsigned long long ull = 1ULL; int i = 63;
9078 unsigned long long ullmax = (unsigned long long) -1;
9079 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>conftest.er1
9088 grep -v '^ *+' conftest.er1 >conftest.err
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -z "$ac_c_werror_flag"
9094 || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest$ac_exeext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 ac_cv_type_unsigned_long_long=yes
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_cv_type_unsigned_long_long=no
9113 rm -f conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9117 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9118 if test $ac_cv_type_unsigned_long_long = yes; then
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_UNSIGNED_LONG_LONG 1
9129 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9131 test $ac_cv_type_unsigned_long_long = yes \
9132 && ac_type='unsigned long long' \
9133 || ac_type='unsigned long'
9135 cat >>confdefs.h <<_ACEOF
9136 #define uintmax_t $ac_type
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_UINTMAX_T 1
9148 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9149 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9150 if test "${gt_cv_header_inttypes_h+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 #include <sys/types.h>
9161 #include <inttypes.h>
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 gt_cv_header_inttypes_h=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 gt_cv_header_inttypes_h=no
9199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9203 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9204 if test $gt_cv_header_inttypes_h = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_INTTYPES_H 1
9214 if test $gt_cv_header_inttypes_h = yes; then
9215 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9216 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9217 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <inttypes.h>
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 gt_cv_inttypes_pri_broken=no
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 gt_cv_inttypes_pri_broken=yes
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9273 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9275 if test "$gt_cv_inttypes_pri_broken" = yes; then
9277 cat >>confdefs.h <<_ACEOF
9278 #define PRI_MACROS_BROKEN 1
9285 for ac_header in stdint.h
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306 $ac_includes_default
9307 #include <$ac_header>
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_header_compiler=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_header_compiler=no
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 #include <$ac_header>
9353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } >/dev/null; then
9361 if test -s conftest.err; then
9362 ac_cpp_err=$ac_c_preproc_warn_flag
9363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9370 if test -z "$ac_cpp_err"; then
9371 ac_header_preproc=yes
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 ac_header_preproc=no
9378 rm -f conftest.err conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6
9382 # So? What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9389 ac_header_preproc=yes
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9406 ## ------------------------------------------ ##
9407 ## Report this to the AC_PACKAGE_NAME lists. ##
9408 ## ------------------------------------------ ##
9411 sed "s/^/$as_me: WARNING: /" >&2
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 eval "$as_ac_Header=\$ac_header_preproc"
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9434 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9435 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 $EGREP "Found it" >/dev/null 2>&1; then
9459 if test -z "$result"; then
9460 if test "$cross_compiling" = yes; then
9461 # Depending upon the size, compute the lo and hi bounds.
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9513 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522 (eval $ac_compile) 2>conftest.er1
9524 grep -v '^ *+' conftest.er1 >conftest.err
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -z "$ac_c_werror_flag"
9530 || test ! -s conftest.err'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_hi=$ac_mid; break
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9547 ac_lo=`expr $ac_mid + 1`
9548 if test $ac_lo -le $ac_mid; then
9552 ac_mid=`expr 2 '*' $ac_mid + 1`
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9611 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620 (eval $ac_compile) 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_c_werror_flag"
9628 || test ! -s conftest.err'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try='test -s conftest.$ac_objext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9640 ac_lo=$ac_mid; break
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_hi=`expr '(' $ac_mid ')' - 1`
9646 if test $ac_mid -le $ac_hi; then
9650 ac_mid=`expr 2 '*' $ac_mid`
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 # Binary search between lo and hi bounds.
9664 while test "x$ac_lo" != "x$ac_hi"; do
9665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9676 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_lo=`expr '(' $ac_mid ')' + 1`
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9719 if test "$cross_compiling" = yes; then
9720 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9721 See \`config.log' for more details." >&5
9722 echo "$as_me: error: cannot run test program while cross compiling
9723 See \`config.log' for more details." >&2;}
9724 { (exit 1); exit 1; }; }
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9733 long longval () { return ~(size_t)0 / 10; }
9734 unsigned long ulongval () { return ~(size_t)0 / 10; }
9741 FILE *f = fopen ("conftest.val", "w");
9744 if ((~(size_t)0 / 10) < 0)
9746 long i = longval ();
9747 if (i != (~(size_t)0 / 10))
9749 fprintf (f, "%ld\n", i);
9753 unsigned long i = ulongval ();
9754 if (i != (~(size_t)0 / 10))
9756 fprintf (f, "%lu\n", i);
9758 exit (ferror (f) || fclose (f) != 0);
9764 rm -f conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 res_hi=`cat conftest.val`
9777 echo "$as_me: program exited with status $ac_status" >&5
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9788 if test "$cross_compiling" = yes; then
9789 # Depending upon the size, compute the lo and hi bounds.
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9841 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850 (eval $ac_compile) 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest.$ac_objext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9870 ac_hi=$ac_mid; break
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_lo=`expr $ac_mid + 1`
9876 if test $ac_lo -le $ac_mid; then
9880 ac_mid=`expr 2 '*' $ac_mid + 1`
9882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9939 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948 (eval $ac_compile) 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag"
9956 || test ! -s conftest.err'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest.$ac_objext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_lo=$ac_mid; break
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_hi=`expr '(' $ac_mid ')' - 1`
9974 if test $ac_mid -le $ac_hi; then
9978 ac_mid=`expr 2 '*' $ac_mid`
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 # Binary search between lo and hi bounds.
9992 while test "x$ac_lo" != "x$ac_hi"; do
9993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 #include <stddef.h>
10004 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013 (eval $ac_compile) 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_lo=`expr '(' $ac_mid ')' + 1`
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10043 ?*) res_lo=$ac_lo;;
10047 if test "$cross_compiling" = yes; then
10048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10049 See \`config.log' for more details." >&5
10050 echo "$as_me: error: cannot run test program while cross compiling
10051 See \`config.log' for more details." >&2;}
10052 { (exit 1); exit 1; }; }
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 #include <stddef.h>
10061 long longval () { return ~(size_t)0 % 10; }
10062 unsigned long ulongval () { return ~(size_t)0 % 10; }
10064 #include <stdlib.h>
10069 FILE *f = fopen ("conftest.val", "w");
10072 if ((~(size_t)0 % 10) < 0)
10074 long i = longval ();
10075 if (i != (~(size_t)0 % 10))
10077 fprintf (f, "%ld\n", i);
10081 unsigned long i = ulongval ();
10082 if (i != (~(size_t)0 % 10))
10084 fprintf (f, "%lu\n", i);
10086 exit (ferror (f) || fclose (f) != 0);
10092 rm -f conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 res_lo=`cat conftest.val`
10105 echo "$as_me: program exited with status $ac_status" >&5
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ( exit $ac_status )
10112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10116 if test "$cross_compiling" = yes; then
10117 # Depending upon the size, compute the lo and hi bounds.
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <stddef.h>
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 #include <stddef.h>
10169 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178 (eval $ac_compile) 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag"
10186 || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 ac_hi=$ac_mid; break
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_lo=`expr $ac_mid + 1`
10204 if test $ac_lo -le $ac_mid; then
10208 ac_mid=`expr 2 '*' $ac_mid + 1`
10210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stddef.h>
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10257 cat >conftest.$ac_ext <<_ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 #include <stddef.h>
10267 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_lo=$ac_mid; break
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_hi=`expr '(' $ac_mid ')' - 1`
10302 if test $ac_mid -le $ac_hi; then
10306 ac_mid=`expr 2 '*' $ac_mid`
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 # Binary search between lo and hi bounds.
10320 while test "x$ac_lo" != "x$ac_hi"; do
10321 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <stddef.h>
10332 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_lo=`expr '(' $ac_mid ')' + 1`
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10371 ?*) fits_in_uint=$ac_lo;;
10375 if test "$cross_compiling" = yes; then
10376 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10377 See \`config.log' for more details." >&5
10378 echo "$as_me: error: cannot run test program while cross compiling
10379 See \`config.log' for more details." >&2;}
10380 { (exit 1); exit 1; }; }
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 #include <stddef.h>
10389 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10390 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10392 #include <stdlib.h>
10397 FILE *f = fopen ("conftest.val", "w");
10400 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10402 long i = longval ();
10403 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10405 fprintf (f, "%ld\n", i);
10409 unsigned long i = ulongval ();
10410 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10412 fprintf (f, "%lu\n", i);
10414 exit (ferror (f) || fclose (f) != 0);
10420 rm -f conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 fits_in_uint=`cat conftest.val`
10433 echo "$as_me: program exited with status $ac_status" >&5
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ( exit $ac_status )
10440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10444 if test "$fits_in_uint" = 1; then
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <stddef.h>
10453 extern unsigned long foo;
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
10472 { ac_try='test -z "$ac_c_werror_flag"
10473 || test ! -s conftest.err'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10493 if test -z "$result"; then
10494 if test "$fits_in_uint" = 1; then
10495 result="$res_hi$res_lo"U
10497 result="$res_hi$res_lo"UL
10500 result='~(size_t)0'
10503 echo "$as_me:$LINENO: result: $result" >&5
10504 echo "${ECHO_T}$result" >&6
10505 if test "$result" != yes; then
10507 cat >>confdefs.h <<_ACEOF
10508 #define SIZE_MAX $result
10517 for ac_header in stdint.h
10519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10521 echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10529 # Is the header compilable?
10530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 #include <$ac_header>
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_header_compiler=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_header_compiler=no
10570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10572 echo "${ECHO_T}$ac_header_compiler" >&6
10574 # Is the header present?
10575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <$ac_header>
10585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null; then
10593 if test -s conftest.err; then
10594 ac_cpp_err=$ac_c_preproc_warn_flag
10595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10602 if test -z "$ac_cpp_err"; then
10603 ac_header_preproc=yes
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_header_preproc=no
10610 rm -f conftest.err conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10612 echo "${ECHO_T}$ac_header_preproc" >&6
10614 # So? What about this header?
10615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10621 ac_header_preproc=yes
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10638 ## ------------------------------------------ ##
10639 ## Report this to the AC_PACKAGE_NAME lists. ##
10640 ## ------------------------------------------ ##
10643 sed "s/^/$as_me: WARNING: /" >&2
10646 echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 eval "$as_ac_Header=\$ac_header_preproc"
10653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10674 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10675 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10688 if ((ptrdiff_t *) 0)
10690 if (sizeof (ptrdiff_t))
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag"
10706 || test ! -s conftest.err'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_type_ptrdiff_t=yes
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ac_cv_type_ptrdiff_t=no
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10728 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10729 if test $ac_cv_type_ptrdiff_t = yes; then
10733 cat >>confdefs.h <<\_ACEOF
10734 #define ptrdiff_t long
10750 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10751 stdlib.h string.h unistd.h sys/param.h
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10755 echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10763 # Is the header compilable?
10764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 $ac_includes_default
10773 #include <$ac_header>
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -z "$ac_c_werror_flag"
10785 || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest.$ac_objext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_header_compiler=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_header_compiler=no
10804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 echo "${ECHO_T}$ac_header_compiler" >&6
10808 # Is the header present?
10809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <$ac_header>
10819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } >/dev/null; then
10827 if test -s conftest.err; then
10828 ac_cpp_err=$ac_c_preproc_warn_flag
10829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10836 if test -z "$ac_cpp_err"; then
10837 ac_header_preproc=yes
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_header_preproc=no
10844 rm -f conftest.err conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6
10848 # So? What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855 ac_header_preproc=yes
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10872 ## ------------------------------------------ ##
10873 ## Report this to the AC_PACKAGE_NAME lists. ##
10874 ## ------------------------------------------ ##
10877 sed "s/^/$as_me: WARNING: /" >&2
10880 echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 eval "$as_ac_Header=\$ac_header_preproc"
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892 cat >>confdefs.h <<_ACEOF
10893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10924 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10925 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929 echo "$as_me:$LINENO: checking for $ac_func" >&5
10930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_var+set}\" = set"; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 cat >conftest.$ac_ext <<_ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10942 #define $ac_func innocuous_$ac_func
10944 /* System header to define __stub macros and hopefully few prototypes,
10945 which can conflict with char $ac_func (); below.
10946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947 <limits.h> exists even on freestanding compilers. */
10950 # include <limits.h>
10952 # include <assert.h>
10957 /* Override any gcc2 internal prototype to avoid an error. */
10962 /* We use char because int might match the return type of a gcc2
10963 builtin and then its argument prototype would still apply. */
10965 /* The GNU C library defines this for functions which it implements
10966 to always fail with ENOSYS. Some functions are actually named
10967 something starting with __ and the normal name is an alias. */
10968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10971 char (*f) () = $ac_func;
10980 return f != $ac_func;
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try='test -s conftest$ac_exeext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 eval "$as_ac_var=yes"
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 eval "$as_ac_var=no"
11014 rm -f conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020 cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11030 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11031 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11046 char *p = (char *) _snprintf;
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_have_decl__snprintf=yes
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_have_decl__snprintf=no
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11084 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11085 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11086 if test $ac_cv_have_decl__snprintf = yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define HAVE_DECL__SNPRINTF $gt_value
11098 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11099 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11100 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11115 char *p = (char *) _snwprintf;
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_have_decl__snwprintf=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_have_decl__snwprintf=no
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11154 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11155 if test $ac_cv_have_decl__snwprintf = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_DECL__SNWPRINTF $gt_value
11168 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11169 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11170 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11184 #ifndef feof_unlocked
11185 char *p = (char *) feof_unlocked;
11192 rm -f conftest.$ac_objext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11194 (eval $ac_compile) 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest.$ac_objext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_have_decl_feof_unlocked=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_cv_have_decl_feof_unlocked=no
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11224 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11225 if test $ac_cv_have_decl_feof_unlocked = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11237 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11238 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11239 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11253 #ifndef fgets_unlocked
11254 char *p = (char *) fgets_unlocked;
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263 (eval $ac_compile) 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try='test -z "$ac_c_werror_flag"
11271 || test ! -s conftest.err'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_cv_have_decl_fgets_unlocked=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_have_decl_fgets_unlocked=no
11290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11293 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11294 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11306 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11307 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11308 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11322 #ifndef getc_unlocked
11323 char *p = (char *) getc_unlocked;
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_cv_have_decl_getc_unlocked=yes
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 ac_cv_have_decl_getc_unlocked=no
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11362 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11363 if test $ac_cv_have_decl_getc_unlocked = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11375 case $gt_cv_func_printf_posix in
11376 *yes) HAVE_POSIX_PRINTF=1 ;;
11377 *) HAVE_POSIX_PRINTF=0 ;;
11380 if test "$ac_cv_func_asprintf" = yes; then
11386 if test "$ac_cv_func_snprintf" = yes; then
11392 if test "$ac_cv_func_wprintf" = yes; then
11404 am_save_CPPFLAGS="$CPPFLAGS"
11406 for element in $INCICONV; do
11408 for x in $CPPFLAGS; do
11410 acl_save_prefix="$prefix"
11411 prefix="$acl_final_prefix"
11412 acl_save_exec_prefix="$exec_prefix"
11413 exec_prefix="$acl_final_exec_prefix"
11415 exec_prefix="$acl_save_exec_prefix"
11416 prefix="$acl_save_prefix"
11418 if test "X$x" = "X$element"; then
11423 if test -z "$haveit"; then
11424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11429 echo "$as_me:$LINENO: checking for iconv" >&5
11430 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11431 if test "${am_cv_func_iconv+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 am_cv_func_iconv="no, consider installing GNU libiconv"
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <stdlib.h>
11448 iconv_t cd = iconv_open("","");
11449 iconv(cd,NULL,NULL,NULL,NULL);
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>conftest.er1
11459 grep -v '^ *+' conftest.er1 >conftest.err
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag"
11465 || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 am_cv_func_iconv=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11483 rm -f conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 if test "$am_cv_func_iconv" != yes; then
11486 am_save_LIBS="$LIBS"
11487 LIBS="$LIBS $LIBICONV"
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <stdlib.h>
11499 iconv_t cd = iconv_open("","");
11500 iconv(cd,NULL,NULL,NULL,NULL);
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>conftest.er1
11510 grep -v '^ *+' conftest.er1 >conftest.err
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -z "$ac_c_werror_flag"
11516 || test ! -s conftest.err'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 am_cv_lib_iconv=yes
11529 am_cv_func_iconv=yes
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11535 rm -f conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS="$am_save_LIBS"
11541 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11542 echo "${ECHO_T}$am_cv_func_iconv" >&6
11543 if test "$am_cv_func_iconv" = yes; then
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_ICONV 1
11550 if test "$am_cv_lib_iconv" = yes; then
11551 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11552 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11553 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11554 echo "${ECHO_T}$LIBICONV" >&6
11556 CPPFLAGS="$am_save_CPPFLAGS"
11563 if test "$am_cv_func_iconv" = yes; then
11564 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11565 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11566 if test "${am_cv_proto_iconv+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11577 #include <stdlib.h>
11583 #if defined(__STDC__) || defined(__cplusplus)
11584 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11597 rm -f conftest.$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 am_cv_proto_iconv_arg1=""
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 am_cv_proto_iconv_arg1="const"
11626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627 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);"
11630 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11631 echo "$as_me:$LINENO: result: ${ac_t:-
11632 }$am_cv_proto_iconv" >&5
11633 echo "${ECHO_T}${ac_t:-
11634 }$am_cv_proto_iconv" >&6
11636 cat >>confdefs.h <<_ACEOF
11637 #define ICONV_CONST $am_cv_proto_iconv_arg1
11643 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11644 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11645 if test "${am_cv_langinfo_codeset+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <langinfo.h>
11658 char* cs = nl_langinfo(CODESET);
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665 (eval $ac_link) 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_c_werror_flag"
11673 || test ! -s conftest.err'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 am_cv_langinfo_codeset=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 am_cv_langinfo_codeset=no
11692 rm -f conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11697 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11698 if test $am_cv_langinfo_codeset = yes; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_LANGINFO_CODESET 1
11706 if test $ac_cv_header_locale_h = yes; then
11708 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11709 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11710 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <locale.h>
11728 rm -f conftest.$ac_objext conftest$ac_exeext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730 (eval $ac_link) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag"
11738 || test ! -s conftest.err'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest$ac_exeext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 gt_cv_val_LC_MESSAGES=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 gt_cv_val_LC_MESSAGES=no
11757 rm -f conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
11760 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11761 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11762 if test $gt_cv_val_LC_MESSAGES = yes; then
11764 cat >>confdefs.h <<\_ACEOF
11765 #define HAVE_LC_MESSAGES 1
11772 if test -n "$INTL_MACOSX_LIBS"; then
11773 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11776 for ac_prog in bison
11778 # Extract the first word of "$ac_prog", so it can be a program name with args.
11779 set dummy $ac_prog; ac_word=$2
11780 echo "$as_me:$LINENO: checking for $ac_word" >&5
11781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 if test -n "$INTLBISON"; then
11786 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_INTLBISON="$ac_prog"
11796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 INTLBISON=$ac_cv_prog_INTLBISON
11805 if test -n "$INTLBISON"; then
11806 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11807 echo "${ECHO_T}$INTLBISON" >&6
11809 echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6
11813 test -n "$INTLBISON" && break
11816 if test -z "$INTLBISON"; then
11819 echo "$as_me:$LINENO: checking version of bison" >&5
11820 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11821 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11822 case $ac_prog_version in
11823 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11824 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11825 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11826 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11828 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11829 echo "${ECHO_T}$ac_prog_version" >&6
11831 if test $ac_verc_fail = yes; then
11850 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11851 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11852 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 gt_save_CPPFLAGS="$CPPFLAGS"
11856 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11857 gt_save_LIBS="$LIBS"
11858 LIBS="$LIBS -framework CoreFoundation"
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <CFPreferences.h>
11869 CFPreferencesCopyAppValue(NULL, NULL)
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag"
11884 || test ! -s conftest.err'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 gt_cv_func_CFPreferencesCopyAppValue=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 gt_cv_func_CFPreferencesCopyAppValue=no
11903 rm -f conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 CPPFLAGS="$gt_save_CPPFLAGS"
11906 LIBS="$gt_save_LIBS"
11908 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11909 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11910 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11917 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11918 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11919 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 gt_save_CPPFLAGS="$CPPFLAGS"
11923 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11924 gt_save_LIBS="$LIBS"
11925 LIBS="$LIBS -framework CoreFoundation"
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 #include <CFLocale.h>
11936 CFLocaleCopyCurrent();
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>conftest.er1
11945 grep -v '^ *+' conftest.er1 >conftest.err
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -z "$ac_c_werror_flag"
11951 || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 gt_cv_func_CFLocaleCopyCurrent=yes
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 gt_cv_func_CFLocaleCopyCurrent=no
11970 rm -f conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 CPPFLAGS="$gt_save_CPPFLAGS"
11973 LIBS="$gt_save_LIBS"
11975 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11976 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11977 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_CFLOCALECOPYCURRENT 1
11985 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11986 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11992 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11993 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11994 # Check whether --enable-nls or --disable-nls was given.
11995 if test "${enable_nls+set}" = set; then
11996 enableval="$enable_nls"
12001 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12002 echo "${ECHO_T}$USE_NLS" >&6
12007 BUILD_INCLUDED_LIBINTL=no
12008 USE_INCLUDED_LIBINTL=no
12014 if test "$USE_NLS" = "yes"; then
12015 gt_use_preinstalled_gnugettext=no
12017 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12018 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12020 # Check whether --with-included-gettext or --without-included-gettext was given.
12021 if test "${with_included_gettext+set}" = set; then
12022 withval="$with_included_gettext"
12023 nls_cv_force_use_gnu_gettext=$withval
12025 nls_cv_force_use_gnu_gettext=no
12027 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12028 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12030 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12031 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12038 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12039 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12040 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 #include <libintl.h>
12050 extern int _nl_msg_cat_cntr;
12051 extern int *_nl_domain_bindings;
12055 bindtextdomain ("", "");
12056 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag"
12071 || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 gt_cv_func_gnugettext1_libc=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 gt_cv_func_gnugettext1_libc=no
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12093 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12094 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12096 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12102 acl_save_prefix="$prefix"
12103 prefix="$acl_final_prefix"
12104 acl_save_exec_prefix="$exec_prefix"
12105 exec_prefix="$acl_final_exec_prefix"
12107 eval additional_includedir=\"$includedir\"
12108 eval additional_libdir=\"$libdir\"
12110 exec_prefix="$acl_save_exec_prefix"
12111 prefix="$acl_save_prefix"
12114 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12115 if test "${with_libintl_prefix+set}" = set; then
12116 withval="$with_libintl_prefix"
12118 if test "X$withval" = "Xno"; then
12121 if test "X$withval" = "X"; then
12123 acl_save_prefix="$prefix"
12124 prefix="$acl_final_prefix"
12125 acl_save_exec_prefix="$exec_prefix"
12126 exec_prefix="$acl_final_exec_prefix"
12128 eval additional_includedir=\"$includedir\"
12129 eval additional_libdir=\"$libdir\"
12131 exec_prefix="$acl_save_exec_prefix"
12132 prefix="$acl_save_prefix"
12135 additional_includedir="$withval/include"
12136 additional_libdir="$withval/lib"
12146 names_already_handled=
12147 names_next_round='intl '
12148 while test -n "$names_next_round"; do
12149 names_this_round="$names_next_round"
12151 for name in $names_this_round; do
12153 for n in $names_already_handled; do
12154 if test "$n" = "$name"; then
12155 already_handled=yes
12159 if test -z "$already_handled"; then
12160 names_already_handled="$names_already_handled $name"
12161 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12162 eval value=\"\$HAVE_LIB$uppername\"
12163 if test -n "$value"; then
12164 if test "$value" = yes; then
12165 eval value=\"\$LIB$uppername\"
12166 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12167 eval value=\"\$LTLIB$uppername\"
12168 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12177 if test $use_additional = yes; then
12178 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12179 found_dir="$additional_libdir"
12180 found_so="$additional_libdir/lib$name.$shlibext"
12181 if test -f "$additional_libdir/lib$name.la"; then
12182 found_la="$additional_libdir/lib$name.la"
12185 if test -f "$additional_libdir/lib$name.$libext"; then
12186 found_dir="$additional_libdir"
12187 found_a="$additional_libdir/lib$name.$libext"
12188 if test -f "$additional_libdir/lib$name.la"; then
12189 found_la="$additional_libdir/lib$name.la"
12194 if test "X$found_dir" = "X"; then
12195 for x in $LDFLAGS $LTLIBINTL; do
12197 acl_save_prefix="$prefix"
12198 prefix="$acl_final_prefix"
12199 acl_save_exec_prefix="$exec_prefix"
12200 exec_prefix="$acl_final_exec_prefix"
12202 exec_prefix="$acl_save_exec_prefix"
12203 prefix="$acl_save_prefix"
12207 dir=`echo "X$x" | sed -e 's/^X-L//'`
12208 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12210 found_so="$dir/lib$name.$shlibext"
12211 if test -f "$dir/lib$name.la"; then
12212 found_la="$dir/lib$name.la"
12215 if test -f "$dir/lib$name.$libext"; then
12217 found_a="$dir/lib$name.$libext"
12218 if test -f "$dir/lib$name.la"; then
12219 found_la="$dir/lib$name.la"
12225 if test "X$found_dir" != "X"; then
12230 if test "X$found_dir" != "X"; then
12231 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12232 if test "X$found_so" != "X"; then
12233 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12234 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12237 for x in $ltrpathdirs; do
12238 if test "X$x" = "X$found_dir"; then
12243 if test -z "$haveit"; then
12244 ltrpathdirs="$ltrpathdirs $found_dir"
12246 if test "$hardcode_direct" = yes; then
12247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12249 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12252 for x in $rpathdirs; do
12253 if test "X$x" = "X$found_dir"; then
12258 if test -z "$haveit"; then
12259 rpathdirs="$rpathdirs $found_dir"
12263 for x in $LDFLAGS $LIBINTL; do
12265 acl_save_prefix="$prefix"
12266 prefix="$acl_final_prefix"
12267 acl_save_exec_prefix="$exec_prefix"
12268 exec_prefix="$acl_final_exec_prefix"
12270 exec_prefix="$acl_save_exec_prefix"
12271 prefix="$acl_save_prefix"
12273 if test "X$x" = "X-L$found_dir"; then
12278 if test -z "$haveit"; then
12279 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12281 if test "$hardcode_minus_L" != no; then
12282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12284 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12290 if test "X$found_a" != "X"; then
12291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12293 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12296 additional_includedir=
12297 case "$found_dir" in
12299 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12300 additional_includedir="$basedir/include"
12303 if test "X$additional_includedir" != "X"; then
12304 if test "X$additional_includedir" != "X/usr/include"; then
12306 if test "X$additional_includedir" = "X/usr/local/include"; then
12307 if test -n "$GCC"; then
12309 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12313 if test -z "$haveit"; then
12314 for x in $CPPFLAGS $INCINTL; do
12316 acl_save_prefix="$prefix"
12317 prefix="$acl_final_prefix"
12318 acl_save_exec_prefix="$exec_prefix"
12319 exec_prefix="$acl_final_exec_prefix"
12321 exec_prefix="$acl_save_exec_prefix"
12322 prefix="$acl_save_prefix"
12324 if test "X$x" = "X-I$additional_includedir"; then
12329 if test -z "$haveit"; then
12330 if test -d "$additional_includedir"; then
12331 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12337 if test -n "$found_la"; then
12338 save_libdir="$libdir"
12339 case "$found_la" in
12340 */* | *\\*) . "$found_la" ;;
12341 *) . "./$found_la" ;;
12343 libdir="$save_libdir"
12344 for dep in $dependency_libs; do
12347 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12348 if test "X$additional_libdir" != "X/usr/lib"; then
12350 if test "X$additional_libdir" = "X/usr/local/lib"; then
12351 if test -n "$GCC"; then
12353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12357 if test -z "$haveit"; then
12359 for x in $LDFLAGS $LIBINTL; do
12361 acl_save_prefix="$prefix"
12362 prefix="$acl_final_prefix"
12363 acl_save_exec_prefix="$exec_prefix"
12364 exec_prefix="$acl_final_exec_prefix"
12366 exec_prefix="$acl_save_exec_prefix"
12367 prefix="$acl_save_prefix"
12369 if test "X$x" = "X-L$additional_libdir"; then
12374 if test -z "$haveit"; then
12375 if test -d "$additional_libdir"; then
12376 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12380 for x in $LDFLAGS $LTLIBINTL; do
12382 acl_save_prefix="$prefix"
12383 prefix="$acl_final_prefix"
12384 acl_save_exec_prefix="$exec_prefix"
12385 exec_prefix="$acl_final_exec_prefix"
12387 exec_prefix="$acl_save_exec_prefix"
12388 prefix="$acl_save_prefix"
12390 if test "X$x" = "X-L$additional_libdir"; then
12395 if test -z "$haveit"; then
12396 if test -d "$additional_libdir"; then
12397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12404 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12405 if test "$enable_rpath" != no; then
12407 for x in $rpathdirs; do
12408 if test "X$x" = "X$dir"; then
12413 if test -z "$haveit"; then
12414 rpathdirs="$rpathdirs $dir"
12417 for x in $ltrpathdirs; do
12418 if test "X$x" = "X$dir"; then
12423 if test -z "$haveit"; then
12424 ltrpathdirs="$ltrpathdirs $dir"
12429 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12432 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12435 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12436 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12442 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12449 if test "X$rpathdirs" != "X"; then
12450 if test -n "$hardcode_libdir_separator"; then
12452 for found_dir in $rpathdirs; do
12453 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12455 acl_save_libdir="$libdir"
12457 eval flag=\"$hardcode_libdir_flag_spec\"
12458 libdir="$acl_save_libdir"
12459 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12461 for found_dir in $rpathdirs; do
12462 acl_save_libdir="$libdir"
12463 libdir="$found_dir"
12464 eval flag=\"$hardcode_libdir_flag_spec\"
12465 libdir="$acl_save_libdir"
12466 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12470 if test "X$ltrpathdirs" != "X"; then
12471 for found_dir in $ltrpathdirs; do
12472 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12476 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12477 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12478 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 gt_save_CPPFLAGS="$CPPFLAGS"
12482 CPPFLAGS="$CPPFLAGS $INCINTL"
12483 gt_save_LIBS="$LIBS"
12484 LIBS="$LIBS $LIBINTL"
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 #include <libintl.h>
12492 extern int _nl_msg_cat_cntr;
12497 const char *_nl_expand_alias (const char *);
12501 bindtextdomain ("", "");
12502 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag"
12517 || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 gt_cv_func_gnugettext1_libintl=yes
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 gt_cv_func_gnugettext1_libintl=no
12536 rm -f conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12539 LIBS="$LIBS $LIBICONV"
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 #include <libintl.h>
12547 extern int _nl_msg_cat_cntr;
12552 const char *_nl_expand_alias (const char *);
12556 bindtextdomain ("", "");
12557 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 LIBINTL="$LIBINTL $LIBICONV"
12585 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12586 gt_cv_func_gnugettext1_libintl=yes
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12593 rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12596 CPPFLAGS="$gt_save_CPPFLAGS"
12597 LIBS="$gt_save_LIBS"
12599 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12600 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12603 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12604 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12605 && test "$PACKAGE" != gettext-runtime \
12606 && test "$PACKAGE" != gettext-tools; }; then
12607 gt_use_preinstalled_gnugettext=yes
12615 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12616 nls_cv_use_gnu_gettext=yes
12620 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12621 BUILD_INCLUDED_LIBINTL=yes
12622 USE_INCLUDED_LIBINTL=yes
12623 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12624 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12625 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12629 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12630 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12635 if test -n "$INTL_MACOSX_LIBS"; then
12636 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12639 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12643 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define ENABLE_NLS 1
12655 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12656 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12657 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12658 echo "${ECHO_T}$USE_NLS" >&6
12659 if test "$USE_NLS" = "yes"; then
12660 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12661 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12662 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12663 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12664 gt_source="external libintl"
12669 gt_source="included intl directory"
12671 echo "$as_me:$LINENO: result: $gt_source" >&5
12672 echo "${ECHO_T}$gt_source" >&6
12675 if test "$USE_NLS" = "yes"; then
12677 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12678 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12679 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12680 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12681 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12682 echo "${ECHO_T}$LIBINTL" >&6
12684 for element in $INCINTL; do
12686 for x in $CPPFLAGS; do
12688 acl_save_prefix="$prefix"
12689 prefix="$acl_final_prefix"
12690 acl_save_exec_prefix="$exec_prefix"
12691 exec_prefix="$acl_final_exec_prefix"
12693 exec_prefix="$acl_save_exec_prefix"
12694 prefix="$acl_save_prefix"
12696 if test "X$x" = "X$element"; then
12701 if test -z "$haveit"; then
12702 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_GETTEXT 1
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_DCGETTEXT 1
12724 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12725 BUILD_INCLUDED_LIBINTL=yes
12732 nls_cv_header_intl=
12733 nls_cv_header_libgt=
12745 if test "$USE_INCLUDED_LIBINTL" = yes; then
12746 INTLOBJS="\$(GETTOBJS)"
12750 INTL_LIBTOOL_SUFFIX_PREFIX=
12754 INTLLIBS="$LIBINTL"
12767 support_postgresql=no
12768 support_smartalloc=yes
12769 support_readline=yes
12772 support_wx_console=no
12777 support_static_tools=no
12778 support_static_fd=no
12779 support_static_sd=no
12780 support_static_dir=no
12781 support_static_cons=no
12783 build_client_only=no
12791 # -------------------------------------------
12792 # gnome (default off)
12793 # -------------------------------------------
12794 # Check whether --enable-gnome or --disable-gnome was given.
12795 if test "${enable_gnome+set}" = set; then
12796 enableval="$enable_gnome"
12797 if test x$enableval = xyes; then
12803 if test x$support_gnome = xyes; then
12804 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12806 if test $pkg = 0; then
12807 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12808 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12809 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12810 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12815 GNOME_DIR=src/gnome2-console
12816 gnome_version="Version 2.x"
12818 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12819 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12820 { (exit 1); exit 1; }; }
12826 # -------------------------------------------
12827 # wx-console (default off)
12828 # -------------------------------------------
12829 # Check whether --enable-wx-console or --disable-wx-console was given.
12830 if test "${enable_wx_console+set}" = set; then
12831 enableval="$enable_wx_console"
12832 if test x$enableval = xyes; then
12833 support_wx_console=yes
12838 if test x$support_wx_console = xyes; then
12839 abc=`$WXCONFIG $WXFLAGS --cppflags`
12841 if test $pkg = 0; then
12842 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12843 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12844 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12848 WX_DIR=src/wx-console
12851 echo "wx-config program not found. wx-console disabled."
12853 support_wx_console=no
12859 # -------------------------------------------
12860 # tray-monitor (default off)
12861 # -------------------------------------------
12862 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12863 if test "${enable_tray_monitor+set}" = set; then
12864 enableval="$enable_tray_monitor"
12865 if test x$enableval = xyes; then
12866 support_tray_monitor=yes
12871 if test x$support_tray_monitor = xyes; then
12872 abc=`$PKGCONFIG --exists gtk+-2.0`
12874 if test $pkg = 0; then
12875 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12876 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12879 TRAY_MONITOR_DIR=src/tray-monitor
12880 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12882 if test $pkg = 0; then
12883 cat >>confdefs.h <<\_ACEOF
12884 #define HAVE_GTK_2_4 1
12892 # -------------------------------------------
12893 # smartalloc (default off)
12894 # -------------------------------------------
12895 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12896 if test "${enable_smartalloc+set}" = set; then
12897 enableval="$enable_smartalloc"
12898 if test x$enableval = xno; then
12899 support_smartalloc=no
12903 if test x$support_smartalloc = xyes; then
12904 cat >>confdefs.h <<\_ACEOF
12905 #define SMARTALLOC 1
12910 # -------------------------------------------
12911 # static-tools (default off)
12912 # -------------------------------------------
12913 # Check whether --enable-static-tools or --disable-static-tools was given.
12914 if test "${enable_static_tools+set}" = set; then
12915 enableval="$enable_static_tools"
12916 if test x$enableval = xyes; then
12917 support_static_tools=yes
12922 if test x$support_static_tools = xyes; then
12923 TTOOL_LDFLAGS="-static"
12927 # -------------------------------------------
12928 # static-fd (default off)
12929 # -------------------------------------------
12930 # Check whether --enable-static-fd or --disable-static-fd was given.
12931 if test "${enable_static_fd+set}" = set; then
12932 enableval="$enable_static_fd"
12933 if test x$enableval = xyes; then
12934 support_static_fd=yes
12939 if test x$support_static_fd = xyes; then
12940 STATIC_FD="static-bacula-fd"
12944 # -------------------------------------------
12945 # static-sd (default off)
12946 # -------------------------------------------
12947 # Check whether --enable-static-sd or --disable-static-sd was given.
12948 if test "${enable_static_sd+set}" = set; then
12949 enableval="$enable_static_sd"
12950 if test x$enableval = xyes; then
12951 support_static_sd=yes
12956 if test x$support_static_sd = xyes; then
12957 STATIC_SD="static-bacula-sd"
12961 # -------------------------------------------
12962 # static-dir (default off)
12963 # -------------------------------------------
12964 # Check whether --enable-static-dir or --disable-static-dir was given.
12965 if test "${enable_static_dir+set}" = set; then
12966 enableval="$enable_static_dir"
12967 if test x$enableval = xyes; then
12968 support_static_dir=yes
12973 if test x$support_static_dir = xyes; then
12974 STATIC_DIR="static-bacula-dir"
12978 # -------------------------------------------
12979 # static-cons (default off)
12980 # -------------------------------------------
12981 # Check whether --enable-static-cons or --disable-static-cons was given.
12982 if test "${enable_static_cons+set}" = set; then
12983 enableval="$enable_static_cons"
12984 if test x$enableval = xyes; then
12985 support_static_cons=yes
12992 if test x$support_static_cons = xyes; then
12993 STATIC_CONS="static-bconsole"
12994 STATIC_GNOME_CONS="static-gnome-console"
12995 STATIC_WX_CONS="static-wx-console"
13001 # -------------------------------------------
13002 # client_only (default off)
13003 # -------------------------------------------
13004 # Check whether --enable-client-only or --disable-client-only was given.
13005 if test "${enable_client_only+set}" = set; then
13006 enableval="$enable_client_only"
13007 if test x$enableval = xyes; then
13008 build_client_only=yes
13013 if test x$build_client_only = xno; then
13020 # -------------------------------------------
13021 # director (default on)
13022 # -------------------------------------------
13023 # Check whether --enable-build-dird or --disable-build-dird was given.
13024 if test "${enable_build_dird+set}" = set; then
13025 enableval="$enable_build_dird"
13026 if test x$enableval = xno; then
13030 if test x$build_dird = xyes; then
13031 DIRD_DIR="src/dird"
13032 DIR_TOOLS="DIRTOOLS"
13035 DIR_TOOLS="NODIRTOOLS"
13040 # -------------------------------------------
13041 # stored (default on)
13042 # -------------------------------------------
13043 # Check whether --enable-build-stored or --disable-build-stored was given.
13044 if test "${enable_build_stored+set}" = set; then
13045 enableval="$enable_build_stored"
13046 if test x$enableval = xno; then
13050 if test x$build_stored = xyes; then
13051 STORED_DIR="src/stored"
13057 # ---------------------------------------------------
13058 # Check for conio (Bacula readline substitute)(
13059 # ---------------------------------------------------
13060 # this allows you to turn it completely off
13061 # Check whether --enable-conio or --disable-conio was given.
13062 if test "${enable_conio+set}" = set; then
13063 enableval="$enable_conio"
13064 if test x$enableval = xno; then
13070 if test x$support_conio = xyes; then
13071 if test "${ac_cv_header_termcap_h+set}" = set; then
13072 echo "$as_me:$LINENO: checking for termcap.h" >&5
13073 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13074 if test "${ac_cv_header_termcap_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13080 # Is the header compilable?
13081 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13082 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <termcap.h>
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest.$ac_objext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_header_compiler=yes
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 ac_header_compiler=no
13121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13123 echo "${ECHO_T}$ac_header_compiler" >&6
13125 # Is the header present?
13126 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13127 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #include <termcap.h>
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null; then
13144 if test -s conftest.err; then
13145 ac_cpp_err=$ac_c_preproc_warn_flag
13146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13153 if test -z "$ac_cpp_err"; then
13154 ac_header_preproc=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_header_preproc=no
13161 rm -f conftest.err conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13163 echo "${ECHO_T}$ac_header_preproc" >&6
13165 # So? What about this header?
13166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13168 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13169 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13171 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13172 ac_header_preproc=yes
13175 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13180 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13182 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13186 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13189 ## ------------------------------------------ ##
13190 ## Report this to the AC_PACKAGE_NAME lists. ##
13191 ## ------------------------------------------ ##
13194 sed "s/^/$as_me: WARNING: /" >&2
13197 echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 ac_cv_header_termcap_h=$ac_header_preproc
13204 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13205 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13208 if test $ac_cv_header_termcap_h = yes; then
13209 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13210 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13211 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ltermcap $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13223 /* Override any gcc2 internal prototype to avoid an error. */
13227 /* We use char because int might match the return type of a gcc2
13228 builtin and then its argument prototype would still apply. */
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_lib_termcap_tgetent=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_lib_termcap_tgetent=no
13267 rm -f conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13271 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13273 if test $ac_cv_lib_termcap_tgetent = yes; then
13274 CONS_LIBS="-ltermcap"
13278 support_readline=no
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_CONIO 1
13286 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lncurses $LIBS"
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13300 /* Override any gcc2 internal prototype to avoid an error. */
13304 /* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest$ac_exeext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_lib_ncurses_tgetent=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_cv_lib_ncurses_tgetent=no
13344 rm -f conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13349 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13350 if test $ac_cv_lib_ncurses_tgetent = yes; then
13351 CONS_LIBS="-lncurses"
13355 support_readline=no
13357 cat >>confdefs.h <<\_ACEOF
13358 #define HAVE_CONIO 1
13371 for ac_header in curses.h
13373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375 echo "$as_me:$LINENO: checking for $ac_header" >&5
13376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13383 # Is the header compilable?
13384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 $ac_includes_default
13393 #include <$ac_header>
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag"
13405 || test ! -s conftest.err'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest.$ac_objext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_header_compiler=yes
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 ac_header_compiler=no
13424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13426 echo "${ECHO_T}$ac_header_compiler" >&6
13428 # Is the header present?
13429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 #include <$ac_header>
13439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } >/dev/null; then
13447 if test -s conftest.err; then
13448 ac_cpp_err=$ac_c_preproc_warn_flag
13449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13456 if test -z "$ac_cpp_err"; then
13457 ac_header_preproc=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_header_preproc=no
13464 rm -f conftest.err conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13466 echo "${ECHO_T}$ac_header_preproc" >&6
13468 # So? What about this header?
13469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13475 ac_header_preproc=yes
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13492 ## ------------------------------------------ ##
13493 ## Report this to the AC_PACKAGE_NAME lists. ##
13494 ## ------------------------------------------ ##
13497 sed "s/^/$as_me: WARNING: /" >&2
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 eval "$as_ac_Header=\$ac_header_preproc"
13507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13512 cat >>confdefs.h <<_ACEOF
13513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13520 echo "$as_me:$LINENO: checking for term.h" >&5
13521 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13522 if test "${ac_cv_header_term_h+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13532 #include <curses.h>
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_header_term_h=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_cv_header_term_h=no
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13570 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13571 if test $ac_cv_header_term_h = yes; then
13572 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13573 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13574 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 ac_check_lib_save_LIBS=$LIBS
13578 LIBS="-lcurses $LIBS"
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 /* Override any gcc2 internal prototype to avoid an error. */
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>conftest.er1
13605 grep -v '^ *+' conftest.er1 >conftest.err
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_lib_curses_tgetent=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_lib_curses_tgetent=no
13630 rm -f conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13634 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13635 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13636 if test $ac_cv_lib_curses_tgetent = yes; then
13637 CONS_LIBS="-lcurses"
13641 support_readline=no
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_CONIO 1
13652 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13663 # ---------------------------------------------------
13664 # Check for readline support/directory (default off)
13665 # ---------------------------------------------------
13666 # this allows you to turn it completely off
13667 # Check whether --enable-readline or --disable-readline was given.
13668 if test "${enable_readline+set}" = set; then
13669 enableval="$enable_readline"
13670 if test x$enableval = xno; then
13671 support_readline=no
13677 if test x$support_readline = xyes; then
13679 # Check whether --with-readline or --without-readline was given.
13680 if test "${with_readline+set}" = set; then
13681 withval="$with_readline"
13683 case "$with_readline" in
13686 if test -f ${with_readline}/readline.h; then
13687 CONS_INC="-I${with_readline}"
13688 CONS_LDFLAGS="-L$with_readline"
13689 elif test -f ${with_readline}/include/readline/readline.h; then
13690 CONS_INC="-I${with_readline}/include/readline"
13691 CONS_LDFLAGS="-L${with_readline}/lib"
13692 with_readline="${with_readline}/include/readline"
13694 with_readline="/usr/include/readline"
13696 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13698 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13699 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706 # Is the header compilable?
13707 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13708 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13716 #include <${with_readline}/readline.h>
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>conftest.er1
13722 grep -v '^ *+' conftest.er1 >conftest.err
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest.$ac_objext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_header_compiler=yes
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 ac_header_compiler=no
13747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13749 echo "${ECHO_T}$ac_header_compiler" >&6
13751 # Is the header present?
13752 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13753 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 #include <${with_readline}/readline.h>
13762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } >/dev/null; then
13770 if test -s conftest.err; then
13771 ac_cpp_err=$ac_c_preproc_warn_flag
13772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13779 if test -z "$ac_cpp_err"; then
13780 ac_header_preproc=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_header_preproc=no
13787 rm -f conftest.err conftest.$ac_ext
13788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789 echo "${ECHO_T}$ac_header_preproc" >&6
13791 # So? What about this header?
13792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13797 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13798 ac_header_preproc=yes
13801 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13806 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13808 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13810 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13812 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13815 ## ------------------------------------------ ##
13816 ## Report this to the AC_PACKAGE_NAME lists. ##
13817 ## ------------------------------------------ ##
13820 sed "s/^/$as_me: WARNING: /" >&2
13823 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 eval "$as_ac_Header=\$ac_header_preproc"
13830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835 cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_READLINE 1
13839 CONS_LIBS="-lreadline -lhistory -ltermcap"
13844 echo "readline.h not found. readline turned off ..."
13856 # check for standard readline library
13857 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13858 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13859 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13860 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13864 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13866 # Is the header compilable?
13867 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13868 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 $ac_includes_default
13876 #include </usr/include/readline/readline.h>
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_header_compiler=yes
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_header_compiler=no
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6
13911 # Is the header present?
13912 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13913 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include </usr/include/readline/readline.h>
13922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } >/dev/null; then
13930 if test -s conftest.err; then
13931 ac_cpp_err=$ac_c_preproc_warn_flag
13932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13939 if test -z "$ac_cpp_err"; then
13940 ac_header_preproc=yes
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_header_preproc=no
13947 rm -f conftest.err conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13949 echo "${ECHO_T}$ac_header_preproc" >&6
13951 # So? What about this header?
13952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13954 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13955 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13957 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13958 ac_header_preproc=yes
13961 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13966 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13968 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13972 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13975 ## ------------------------------------------ ##
13976 ## Report this to the AC_PACKAGE_NAME lists. ##
13977 ## ------------------------------------------ ##
13980 sed "s/^/$as_me: WARNING: /" >&2
13983 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13984 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13985 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13990 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13991 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13994 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_READLINE 1
14000 CONS_INC="-I/usr/include/readline"
14001 CONS_LIBS="-lreadline -ltermcap"
14005 # Did not find standard library, so try Bacula's default
14006 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14009 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 # Is the header compilable?
14017 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14018 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 $ac_includes_default
14026 #include <${TOP_DIR}/depkgs/readline/readline.h>
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag"
14038 || test ! -s conftest.err'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_header_compiler=yes
14052 echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14055 ac_header_compiler=no
14057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14059 echo "${ECHO_T}$ac_header_compiler" >&6
14061 # Is the header present?
14062 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14063 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #include <${TOP_DIR}/depkgs/readline/readline.h>
14072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } >/dev/null; then
14080 if test -s conftest.err; then
14081 ac_cpp_err=$ac_c_preproc_warn_flag
14082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14089 if test -z "$ac_cpp_err"; then
14090 ac_header_preproc=yes
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ac_header_preproc=no
14097 rm -f conftest.err conftest.$ac_ext
14098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14099 echo "${ECHO_T}$ac_header_preproc" >&6
14101 # So? What about this header?
14102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14104 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14105 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14107 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14108 ac_header_preproc=yes
14111 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14116 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14118 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14120 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14122 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14125 ## ------------------------------------------ ##
14126 ## Report this to the AC_PACKAGE_NAME lists. ##
14127 ## ------------------------------------------ ##
14130 sed "s/^/$as_me: WARNING: /" >&2
14133 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14134 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 eval "$as_ac_Header=\$ac_header_preproc"
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_READLINE 1
14150 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14151 CONS_LIBS="-lreadline -lhistory -ltermcap"
14152 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14153 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14157 echo "readline.h not found. readline turned off ..."
14183 # Minimal stuff for readline Makefile configuration
14186 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14187 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14188 if test "${ac_cv_header_stat_broken+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <sys/types.h>
14198 #include <sys/stat.h>
14200 #if defined(S_ISBLK) && defined(S_IFDIR)
14201 # if S_ISBLK (S_IFDIR)
14206 #if defined(S_ISBLK) && defined(S_IFCHR)
14207 # if S_ISBLK (S_IFCHR)
14212 #if defined(S_ISLNK) && defined(S_IFREG)
14213 # if S_ISLNK (S_IFREG)
14218 #if defined(S_ISSOCK) && defined(S_IFREG)
14219 # if S_ISSOCK (S_IFREG)
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226 $EGREP "You lose" >/dev/null 2>&1; then
14227 ac_cv_header_stat_broken=yes
14229 ac_cv_header_stat_broken=no
14234 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14235 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14236 if test $ac_cv_header_stat_broken = yes; then
14238 cat >>confdefs.h <<\_ACEOF
14239 #define STAT_MACROS_BROKEN 1
14249 ac_header_dirent=no
14250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14251 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14252 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 cat >conftest.$ac_ext <<_ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 #include <sys/types.h>
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 eval "$as_ac_Header=yes"
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 eval "$as_ac_Header=no"
14304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14309 cat >>confdefs.h <<_ACEOF
14310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14313 ac_header_dirent=$ac_hdr; break
14317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14318 if test $ac_header_dirent = dirent.h; then
14319 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14321 if test "${ac_cv_search_opendir+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 ac_func_search_save_LIBS=$LIBS
14325 ac_cv_search_opendir=no
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14333 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -z "$ac_c_werror_flag"
14358 || test ! -s conftest.err'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; } &&
14364 { ac_try='test -s conftest$ac_exeext'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 ac_cv_search_opendir="none required"
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14376 rm -f conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 if test "$ac_cv_search_opendir" = no; then
14379 for ac_lib in dir; do
14380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14388 /* Override any gcc2 internal prototype to avoid an error. */
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405 (eval $ac_link) 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest$ac_exeext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_search_opendir="-l$ac_lib"
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14432 rm -f conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14436 LIBS=$ac_func_search_save_LIBS
14438 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14439 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14440 if test "$ac_cv_search_opendir" != no; then
14441 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14446 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14448 if test "${ac_cv_search_opendir+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 ac_func_search_save_LIBS=$LIBS
14452 ac_cv_search_opendir=no
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14460 /* Override any gcc2 internal prototype to avoid an error. */
14464 /* We use char because int might match the return type of a gcc2
14465 builtin and then its argument prototype would still apply. */
14475 rm -f conftest.$ac_objext conftest$ac_exeext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477 (eval $ac_link) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest$ac_exeext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_search_opendir="none required"
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14503 rm -f conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14505 if test "$ac_cv_search_opendir" = no; then
14506 for ac_lib in x; do
14507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14515 /* Override any gcc2 internal prototype to avoid an error. */
14519 /* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag"
14540 || test ! -s conftest.err'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_search_opendir="-l$ac_lib"
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14559 rm -f conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14563 LIBS=$ac_func_search_save_LIBS
14565 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14566 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14567 if test "$ac_cv_search_opendir" != no; then
14568 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14581 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14584 echo "$as_me:$LINENO: checking for $ac_func" >&5
14585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14586 if eval "test \"\${$as_ac_var+set}\" = set"; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14597 #define $ac_func innocuous_$ac_func
14599 /* System header to define __stub macros and hopefully few prototypes,
14600 which can conflict with char $ac_func (); below.
14601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602 <limits.h> exists even on freestanding compilers. */
14605 # include <limits.h>
14607 # include <assert.h>
14612 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14626 char (*f) () = $ac_func;
14635 return f != $ac_func;
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag"
14650 || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest$ac_exeext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 eval "$as_ac_var=yes"
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 eval "$as_ac_var=no"
14669 rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14674 if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14684 for ac_func in nanosleep nl_langinfo
14686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700 #define $ac_func innocuous_$ac_func
14702 /* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14708 # include <limits.h>
14710 # include <assert.h>
14715 /* Override any gcc2 internal prototype to avoid an error. */
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 char (*f) () = $ac_func;
14738 return f != $ac_func;
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>conftest.er1
14747 grep -v '^ *+' conftest.er1 >conftest.err
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag"
14753 || test ! -s conftest.err'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 eval "$as_ac_var=yes"
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 eval "$as_ac_var=no"
14772 rm -f conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14777 if test `eval echo '${'$as_ac_var'}'` = yes; then
14778 cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14786 for ac_header in varargs.h
14788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14790 echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14798 # Is the header compilable?
14799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 $ac_includes_default
14808 #include <$ac_header>
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag"
14820 || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest.$ac_objext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_header_compiler=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_header_compiler=no
14839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14841 echo "${ECHO_T}$ac_header_compiler" >&6
14843 # Is the header present?
14844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 #include <$ac_header>
14854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14857 grep -v '^ *+' conftest.er1 >conftest.err
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } >/dev/null; then
14862 if test -s conftest.err; then
14863 ac_cpp_err=$ac_c_preproc_warn_flag
14864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14871 if test -z "$ac_cpp_err"; then
14872 ac_header_preproc=yes
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_header_preproc=no
14879 rm -f conftest.err conftest.$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881 echo "${ECHO_T}$ac_header_preproc" >&6
14883 # So? What about this header?
14884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890 ac_header_preproc=yes
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14907 ## ------------------------------------------ ##
14908 ## Report this to the AC_PACKAGE_NAME lists. ##
14909 ## ------------------------------------------ ##
14912 sed "s/^/$as_me: WARNING: /" >&2
14915 echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 eval "$as_ac_Header=\$ac_header_preproc"
14922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14927 cat >>confdefs.h <<_ACEOF
14928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 # End of readline/conio stuff
14937 # -----------------------------------------------------------------------
14939 # -----------------------------------------------------------------------
14940 # Check for Python support
14942 echo "$as_me:$LINENO: checking for Python support" >&5
14943 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14945 # Check whether --with-python or --without-python was given.
14946 if test "${with_python+set}" = set; then
14947 withval="$with_python"
14951 if test "$withval" != "no"; then
14952 if test "$withval" = "yes"; then
14953 for python_root in /usr /usr/local /usr/sfw; do
14954 if test -f $python_root/include/python2.2/Python.h; then
14955 PYTHON_INCDIR=-I$python_root/include/python2.2
14956 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14958 elif test -f $python_root/include/python2.3/Python.h; then
14959 PYTHON_INCDIR=-I$python_root/include/python2.3
14960 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14962 elif test -f $python_root/include/python2.4/Python.h; then
14963 PYTHON_INCDIR=-I$python_root/include/python2.4
14964 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14968 if test x$PYTHON_INCDIR = x; then
14969 if test -f $prefix/include/Python.h; then
14970 PYTHON_INCDIR=-I$prefix/include
14971 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14973 echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14975 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14976 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14977 { (exit 1); exit 1; }; }
14981 if test -f $withval/Python.h; then
14982 PYTHON_INCDIR=-I$withval
14983 PYTHON_LIBS="-L$withval/config -lpython"
14984 elif test -f $withval/include/Python.h; then
14985 PYTHON_INCDIR=-I$withval/include
14986 PYTHON_LIBS="-L$withval/lib/config -lpython"
14987 elif test -f $withval/include/python/Python.h; then
14988 PYTHON_INCDIR=-I$withval/include/python
14989 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14991 echo "$as_me:$LINENO: result: no" >&5
14992 echo "${ECHO_T}no" >&6
14993 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14994 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14995 { (exit 1); exit 1; }; }
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_PYTHON 1
15002 echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15005 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15006 echo "$as_me: checking for more Python libs" >&6;}
15007 saved_LIBS="$LIBS"; LIBS=
15008 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15009 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15010 if test "${ac_cv_search_shm_open+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_func_search_save_LIBS=$LIBS
15014 ac_cv_search_shm_open=no
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_search_shm_open="none required"
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15065 rm -f conftest.err conftest.$ac_objext \
15066 conftest$ac_exeext conftest.$ac_ext
15067 if test "$ac_cv_search_shm_open" = no; then
15068 for ac_lib in rt; do
15069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15077 /* Override any gcc2 internal prototype to avoid an error. */
15081 /* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest$ac_exeext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_search_shm_open="-l$ac_lib"
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15121 rm -f conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext conftest.$ac_ext
15125 LIBS=$ac_func_search_save_LIBS
15127 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15128 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15129 if test "$ac_cv_search_shm_open" != no; then
15130 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15135 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15136 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15137 if test "${ac_cv_lib_util_openpty+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 ac_check_lib_save_LIBS=$LIBS
15141 LIBS="-lutil $LIBS"
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15149 /* Override any gcc2 internal prototype to avoid an error. */
15153 /* We use char because int might match the return type of a gcc2
15154 builtin and then its argument prototype would still apply. */
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166 (eval $ac_link) 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag"
15174 || test ! -s conftest.err'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_cv_lib_util_openpty=yes
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 ac_cv_lib_util_openpty=no
15193 rm -f conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15198 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15199 if test $ac_cv_lib_util_openpty = yes; then
15200 cat >>confdefs.h <<_ACEOF
15201 #define HAVE_LIBUTIL 1
15204 LIBS="-lutil $LIBS"
15208 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15211 echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15217 echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15226 # Find where sockets are (especially for Solaris)
15227 # Do this before the TCP Wrappers test since tcp wrappers
15228 # uses the socket library and some linkers are stupid.
15230 echo "$as_me:$LINENO: checking for socket" >&5
15231 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15232 if test "${ac_cv_func_socket+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15243 #define socket innocuous_socket
15245 /* System header to define __stub macros and hopefully few prototypes,
15246 which can conflict with char socket (); below.
15247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248 <limits.h> exists even on freestanding compilers. */
15251 # include <limits.h>
15253 # include <assert.h>
15258 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15266 /* The GNU C library defines this for functions which it implements
15267 to always fail with ENOSYS. Some functions are actually named
15268 something starting with __ and the normal name is an alias. */
15269 #if defined (__stub_socket) || defined (__stub___socket)
15272 char (*f) () = socket;
15281 return f != socket;
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288 (eval $ac_link) 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag"
15296 || test ! -s conftest.err'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_func_socket=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_func_socket=no
15315 rm -f conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15318 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15319 echo "${ECHO_T}$ac_cv_func_socket" >&6
15320 if test $ac_cv_func_socket = yes; then
15321 echo "$as_me:$LINENO: result: using libc's socket" >&5
15322 echo "${ECHO_T}using libc's socket" >&6
15325 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15326 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15327 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lxnet $LIBS"
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15339 /* Override any gcc2 internal prototype to avoid an error. */
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag"
15364 || test ! -s conftest.err'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_xnet_socket=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_cv_lib_xnet_socket=no
15383 rm -f conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15387 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15388 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15389 if test $ac_cv_lib_xnet_socket = yes; then
15390 cat >>confdefs.h <<_ACEOF
15391 #define HAVE_LIBXNET 1
15394 LIBS="-lxnet $LIBS"
15399 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15400 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15401 if test "${ac_cv_lib_socket_socket+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 ac_check_lib_save_LIBS=$LIBS
15405 LIBS="-lsocket $LIBS"
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15413 /* Override any gcc2 internal prototype to avoid an error. */
15417 /* We use char because int might match the return type of a gcc2
15418 builtin and then its argument prototype would still apply. */
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_socket_socket=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_lib_socket_socket=no
15457 rm -f conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 LIBS=$ac_check_lib_save_LIBS
15461 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15462 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15463 if test $ac_cv_lib_socket_socket = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_LIBSOCKET 1
15468 LIBS="-lsocket $LIBS"
15473 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15474 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15475 if test "${ac_cv_lib_inet_socket+set}" = set; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 ac_check_lib_save_LIBS=$LIBS
15479 LIBS="-linet $LIBS"
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15487 /* Override any gcc2 internal prototype to avoid an error. */
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504 (eval $ac_link) 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag"
15512 || test ! -s conftest.err'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest$ac_exeext'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_cv_lib_inet_socket=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_inet_socket=no
15531 rm -f conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15535 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15536 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15537 if test $ac_cv_lib_inet_socket = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define HAVE_LIBINET 1
15542 LIBS="-linet $LIBS"
15550 # -----------------------------------------------------------
15551 # Check whether user wants TCP wrappers support (default off)
15552 # -----------------------------------------------------------
15556 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15557 if test "${with_tcp_wrappers+set}" = set; then
15558 withval="$with_tcp_wrappers"
15560 if test "x$withval" != "xno" ; then
15562 LIBS="$saved_LIBS -lwrap"
15563 echo "$as_me:$LINENO: checking for libwrap" >&5
15564 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15565 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15566 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15567 if test "${ac_cv_search_nanosleep+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 ac_func_search_save_LIBS=$LIBS
15571 ac_cv_search_nanosleep=no
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any gcc2 internal prototype to avoid an error. */
15583 /* We use char because int might match the return type of a gcc2
15584 builtin and then its argument prototype would still apply. */
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15596 (eval $ac_link) 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest$ac_exeext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_cv_search_nanosleep="none required"
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15622 rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624 if test "$ac_cv_search_nanosleep" = no; then
15625 for ac_lib in rt; do
15626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15634 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651 (eval $ac_link) 2>conftest.er1
15653 grep -v '^ *+' conftest.er1 >conftest.err
15655 cat conftest.err >&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -z "$ac_c_werror_flag"
15659 || test ! -s conftest.err'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_search_nanosleep="-l$ac_lib"
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15678 rm -f conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_func_search_save_LIBS
15684 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15685 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15686 if test "$ac_cv_search_nanosleep" != no; then
15687 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <sys/types.h>
15699 int deny_severity = 0;
15700 int allow_severity = 0;
15701 struct request_info *req;
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15712 (eval $ac_link) 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag"
15720 || test ! -s conftest.err'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; } &&
15726 { ac_try='test -s conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15733 echo "$as_me:$LINENO: result: yes" >&5
15734 echo "${ECHO_T}yes" >&6
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_LIBWRAP 1
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15748 LIBS="$saved_LIBS -lwrap -lnsl"
15749 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <sys/types.h>
15758 int deny_severity = 0;
15759 int allow_severity = 0;
15760 struct request_info *req;
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15792 echo "$as_me:$LINENO: result: yes" >&5
15793 echo "${ECHO_T}yes" >&6
15794 cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_LIBWRAP 1
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15807 echo "$as_me: error: *** libwrap missing" >&2;}
15808 { (exit 1); exit 1; }; }
15811 rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15822 # -----------------------------------------------------------
15823 # Check whether OpenSSL is available
15824 # -----------------------------------------------------------
15825 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15826 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15828 # Check whether --with-openssl or --without-openssl was given.
15829 if test "${with_openssl+set}" = set; then
15830 withval="$with_openssl"
15831 with_openssl_directory=${withval}
15834 if test "x$with_openssl_directory" != "x"; then
15835 OPENSSL_LIBS="-lssl -lcrypto"
15838 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15839 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15840 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15844 saved_CFLAGS="$CFLAGS"
15845 LIBS="$saved_LIBS $OPENSSL_LIBS"
15846 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <openssl/ssl.h>
15858 CRYPTO_set_id_callback(NULL);
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865 (eval $ac_link) 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try='test -z "$ac_c_werror_flag"
15873 || test ! -s conftest.err'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; } &&
15879 { ac_try='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15887 support_crypto="yes"
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15896 rm -f conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext conftest.$ac_ext
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <openssl/evp.h>
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_openssl_sha2="yes"
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_openssl_sha2="no"
15944 rm -f conftest.err conftest.$ac_objext \
15945 conftest$ac_exeext conftest.$ac_ext
15948 CFLAGS="$saved_CFLAGS"
15950 if test "$support_tls" = "yes"; then
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_OPENSSL 1
15957 cat >>confdefs.h <<\_ACEOF
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE_CRYPTO 1
15968 if test "$ac_cv_openssl_sha2" = "yes"; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_SHA2 1
15977 support_crypto="no"
15982 echo "$as_me:$LINENO: result: $support_tls" >&5
15983 echo "${ECHO_T}$support_tls" >&6
15988 # -----------------------------------------------------------
15989 # Python and OpenSSL are using dlopen
15990 # -----------------------------------------------------------
15992 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15993 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15994 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15995 if test "${ac_cv_search_dlopen+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 ac_func_search_save_LIBS=$LIBS
15999 ac_cv_search_dlopen=no
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16007 /* Override any gcc2 internal prototype to avoid an error. */
16011 /* We use char because int might match the return type of a gcc2
16012 builtin and then its argument prototype would still apply. */
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024 (eval $ac_link) 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -z "$ac_c_werror_flag"
16032 || test ! -s conftest.err'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest$ac_exeext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_search_dlopen="none required"
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16050 rm -f conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext conftest.$ac_ext
16052 if test "$ac_cv_search_dlopen" = no; then
16053 for ac_lib in dl; do
16054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16062 /* Override any gcc2 internal prototype to avoid an error. */
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079 (eval $ac_link) 2>conftest.er1
16081 grep -v '^ *+' conftest.er1 >conftest.err
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest$ac_exeext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_search_dlopen="-l$ac_lib"
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16106 rm -f conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_func_search_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16113 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16114 if test "$ac_cv_search_dlopen" != no; then
16115 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16121 # ------------------------------------------
16122 # Where to place working dir
16123 # ------------------------------------------
16124 working_dir=`eval echo ${prefix}/var/bacula/working`
16126 # Check whether --with-working-dir or --without-working-dir was given.
16127 if test "${with_working_dir+set}" = set; then
16128 withval="$with_working_dir"
16130 if test "x$withval" != "xno" ; then
16131 working_dir=$withval
16140 # ------------------------------------------
16141 # Where to place scriptdir (script files)
16142 # ------------------------------------------
16143 scriptdir=`eval echo ${sysconfdir}`
16145 # Check whether --with-scriptdir or --without-scriptdir was given.
16146 if test "${with_scriptdir+set}" = set; then
16147 withval="$with_scriptdir"
16149 if test "x$withval" != "xno" ; then
16159 # ------------------------------------------
16160 # Where to send dump email
16161 # ------------------------------------------
16162 dump_email=root@localhost
16164 # Check whether --with-dump-email or --without-dump-email was given.
16165 if test "${with_dump_email+set}" = set; then
16166 withval="$with_dump_email"
16168 if test "x$withval" != "xno" ; then
16169 dump_email=$withval
16177 # ------------------------------------------
16178 # Where to send job email
16179 # ------------------------------------------
16180 job_email=root@localhost
16182 # Check whether --with-job-email or --without-job-email was given.
16183 if test "${with_job_email+set}" = set; then
16184 withval="$with_job_email"
16186 if test "x$withval" != "xno" ; then
16195 # ------------------------------------------
16196 # Where to find smtp host
16197 # ------------------------------------------
16198 smtp_host=localhost
16200 # Check whether --with-smtp_host or --without-smtp_host was given.
16201 if test "${with_smtp_host+set}" = set; then
16202 withval="$with_smtp_host"
16204 if test "x$withval" != "xno" ; then
16214 # ------------------------------------
16215 # Where to place pid files
16216 # ------------------------------------
16219 # Check whether --with-pid-dir or --without-pid-dir was given.
16220 if test "${with_pid_dir+set}" = set; then
16221 withval="$with_pid_dir"
16223 if test "x$withval" != "xno" ; then
16230 cat >>confdefs.h <<_ACEOF
16231 #define _PATH_BACULA_PIDDIR "$piddir"
16237 # ------------------------------------
16238 # Where to place subsys "lock file"
16239 # ------------------------------------
16240 subsysdir=/var/run/subsys
16242 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16243 if test "${with_subsys_dir+set}" = set; then
16244 withval="$with_subsys_dir"
16246 if test "x$withval" != "xno" ; then
16257 # ------------------------------------
16258 # Where to start assigning ports
16259 # ------------------------------------
16262 # Check whether --with-baseport or --without-baseport was given.
16263 if test "${with_baseport+set}" = set; then
16264 withval="$with_baseport"
16266 if test "x$withval" != "xno" ; then
16274 dir_port=`expr $baseport`
16275 fd_port=`expr $baseport + 1`
16276 sd_port=`expr $fd_port + 1`
16283 # ------------------------------------------
16284 # Generate passwords
16285 # ------------------------------------------
16288 # Check whether --with-dir-password or --without-dir-password was given.
16289 if test "${with_dir_password+set}" = set; then
16290 withval="$with_dir_password"
16292 if test "x$withval" != "xno" ; then
16293 dir_password=$withval
16299 if test "x$dir_password" = "x" ; then
16300 if test "x$OPENSSL" = "xnone" ; then
16301 key=`autoconf/randpass 33`
16303 key=`openssl rand -base64 33`
16310 # Check whether --with-fd-password or --without-fd-password was given.
16311 if test "${with_fd_password+set}" = set; then
16312 withval="$with_fd_password"
16314 if test "x$withval" != "xno" ; then
16315 fd_password=$withval
16321 if test "x$fd_password" = "x" ; then
16322 if test "x$OPENSSL" = "xnone" ; then
16323 key=`autoconf/randpass 37`
16325 key=`openssl rand -base64 33`
16332 # Check whether --with-sd-password or --without-sd-password was given.
16333 if test "${with_sd_password+set}" = set; then
16334 withval="$with_sd_password"
16336 if test "x$withval" != "xno" ; then
16337 sd_password=$withval
16343 if test "x$sd_password" = "x" ; then
16344 if test "x$OPENSSL" = "xnone" ; then
16345 key=`autoconf/randpass 41`
16347 key=`openssl rand -base64 33`
16354 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16355 if test "${with_mon_dir_password+set}" = set; then
16356 withval="$with_mon_dir_password"
16358 if test "x$withval" != "xno" ; then
16359 mon_dir_password=$withval
16365 if test "x$mon_dir_password" = "x" ; then
16366 if test "x$OPENSSL" = "xnone" ; then
16367 key=`autoconf/randpass 33`
16369 key=`openssl rand -base64 33`
16371 mon_dir_password=$key
16376 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16377 if test "${with_mon_fd_password+set}" = set; then
16378 withval="$with_mon_fd_password"
16380 if test "x$withval" != "xno" ; then
16381 mon_fd_password=$withval
16387 if test "x$mon_fd_password" = "x" ; then
16388 if test "x$OPENSSL" = "xnone" ; then
16389 key=`autoconf/randpass 37`
16391 key=`openssl rand -base64 33`
16393 mon_fd_password=$key
16398 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16399 if test "${with_mon_sd_password+set}" = set; then
16400 withval="$with_mon_sd_password"
16402 if test "x$withval" != "xno" ; then
16403 mon_sd_password=$withval
16409 if test "x$mon_sd_password" = "x" ; then
16410 if test "x$OPENSSL" = "xnone" ; then
16411 key=`autoconf/randpass 41`
16413 key=`openssl rand -base64 33`
16415 mon_sd_password=$key
16427 # Handle users and groups for each daemon
16431 # Check whether --with-dir_user or --without-dir_user was given.
16432 if test "${with_dir_user+set}" = set; then
16433 withval="$with_dir_user"
16435 if test "x$withval" != "x" ; then
16444 # Check whether --with-dir_group or --without-dir_group was given.
16445 if test "${with_dir_group+set}" = set; then
16446 withval="$with_dir_group"
16448 if test "x$withval" != "x" ; then
16457 # Check whether --with-sd_user or --without-sd_user was given.
16458 if test "${with_sd_user+set}" = set; then
16459 withval="$with_sd_user"
16461 if test "x$withval" != "x" ; then
16470 # Check whether --with-sd_group or --without-sd_group was given.
16471 if test "${with_sd_group+set}" = set; then
16472 withval="$with_sd_group"
16474 if test "x$withval" != "x" ; then
16483 # Check whether --with-fd_user or --without-fd_user was given.
16484 if test "${with_fd_user+set}" = set; then
16485 withval="$with_fd_user"
16487 if test "x$withval" != "x" ; then
16496 # Check whether --with-fd_group or --without-fd_group was given.
16497 if test "${with_fd_group+set}" = set; then
16498 withval="$with_fd_group"
16500 if test "x$withval" != "x" ; then
16518 # allow setting default executable permissions
16522 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16523 if test "${with_sbin_perm+set}" = set; then
16524 withval="$with_sbin_perm"
16526 if test "x$withval" != "x" ; then
16535 # ------------------------------------------------
16536 # Bacula check for various SQL database engines
16537 # ------------------------------------------------
16540 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16541 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16543 # Check whether --with-postgresql or --without-postgresql was given.
16544 if test "${with_postgresql+set}" = set; then
16545 withval="$with_postgresql"
16547 if test "$withval" != "no"; then
16548 if test "$db_found" = "yes"; then
16549 echo "$as_me:$LINENO: result: error" >&5
16550 echo "${ECHO_T}error" >&6
16551 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16552 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16553 { (exit 1); exit 1; }; };
16555 if test "$withval" = "yes"; then
16556 PG_CONFIG=`which pg_config`
16557 if test -n "$PG_CONFIG";then
16558 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16559 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16560 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16561 elif test -f /usr/local/include/libpq-fe.h; then
16562 POSTGRESQL_INCDIR=/usr/local/include
16563 POSTGRESQL_LIBDIR=/usr/local/lib
16564 POSTGRESQL_BINDIR=/usr/local/bin
16565 elif test -f /usr/include/libpq-fe.h; then
16566 POSTGRESQL_INCDIR=/usr/include
16567 POSTGRESQL_LIBDIR=/usr/lib
16568 POSTGRESQL_BINDIR=/usr/bin
16569 elif test -f /usr/include/pgsql/libpq-fe.h; then
16570 POSTGRESQL_INCDIR=/usr/include/pgsql
16571 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16572 POSTGRESQL_BINDIR=/usr/bin
16573 elif test -f /usr/include/postgresql/libpq-fe.h; then
16574 POSTGRESQL_INCDIR=/usr/include/postgresql
16575 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16576 POSTGRESQL_BINDIR=/usr/bin
16578 echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6
16580 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16581 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16582 { (exit 1); exit 1; }; }
16584 elif test -f $withval/include/libpq-fe.h; then
16585 POSTGRESQL_INCDIR=$withval/include
16586 POSTGRESQL_LIBDIR=$withval/lib
16587 POSTGRESQL_BINDIR=$withval/bin
16588 elif test -f $withval/include/postgresql/libpq-fe.h; then
16589 POSTGRESQL_INCDIR=$withval/include/postgresql
16590 POSTGRESQL_LIBDIR=$withval/lib
16591 POSTGRESQL_BINDIR=$withval/bin
16593 echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16596 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16597 { (exit 1); exit 1; }; }
16599 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16600 echo "$as_me:$LINENO: checking for crypt" >&5
16601 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16602 if test "${ac_cv_func_crypt+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16613 #define crypt innocuous_crypt
16615 /* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char crypt (); below.
16617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618 <limits.h> exists even on freestanding compilers. */
16621 # include <limits.h>
16623 # include <assert.h>
16628 /* Override any gcc2 internal prototype to avoid an error. */
16633 /* We use char because int might match the return type of a gcc2
16634 builtin and then its argument prototype would still apply. */
16636 /* The GNU C library defines this for functions which it implements
16637 to always fail with ENOSYS. Some functions are actually named
16638 something starting with __ and the normal name is an alias. */
16639 #if defined (__stub_crypt) || defined (__stub___crypt)
16642 char (*f) () = crypt;
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658 (eval $ac_link) 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag"
16666 || test ! -s conftest.err'
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); }; } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_func_crypt=yes
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_func_crypt=no
16685 rm -f conftest.err conftest.$ac_objext \
16686 conftest$ac_exeext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16689 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16690 if test $ac_cv_func_crypt = yes; then
16693 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16694 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16695 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lcrypt $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724 (eval $ac_link) 2>conftest.er1
16726 grep -v '^ *+' conftest.er1 >conftest.err
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -z "$ac_c_werror_flag"
16732 || test ! -s conftest.err'
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); }; } &&
16738 { ac_try='test -s conftest$ac_exeext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_cv_lib_crypt_crypt=yes
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_cv_lib_crypt_crypt=no
16751 rm -f conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16756 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16757 if test $ac_cv_lib_crypt_crypt = yes; then
16758 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16763 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16764 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16765 SQL_BINDIR=$POSTGRESQL_BINDIR
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_POSTGRESQL 1
16770 echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6
16773 support_postgresql=yes
16777 echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6
16783 echo "$as_me:$LINENO: result: no" >&5
16784 echo "${ECHO_T}no" >&6
16795 echo "$as_me:$LINENO: checking for MySQL support" >&5
16796 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16798 # Check whether --with-mysql or --without-mysql was given.
16799 if test "${with_mysql+set}" = set; then
16800 withval="$with_mysql"
16802 if test "$withval" != "no"; then
16803 if test "$withval" = "yes"; then
16804 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16805 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16806 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16807 MYSQL_BINDIR=/usr/local/mysql/bin
16808 elif test -f /usr/include/mysql/mysql.h; then
16809 MYSQL_INCDIR=/usr/include/mysql
16810 MYSQL_LIBDIR=/usr/lib/mysql
16811 MYSQL_BINDIR=/usr/bin
16812 elif test -f /usr/include/mysql.h; then
16813 MYSQL_INCDIR=/usr/include
16814 MYSQL_LIBDIR=/usr/lib
16815 MYSQL_BINDIR=/usr/bin
16816 elif test -f /usr/local/include/mysql/mysql.h; then
16817 MYSQL_INCDIR=/usr/local/include/mysql
16818 MYSQL_LIBDIR=/usr/local/lib/mysql
16819 MYSQL_BINDIR=/usr/local/bin
16820 elif test -f /usr/local/include/mysql.h; then
16821 MYSQL_INCDIR=/usr/local/include
16822 MYSQL_LIBDIR=/usr/local/lib
16823 MYSQL_BINDIR=/usr/local/bin
16825 echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6
16827 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16828 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16829 { (exit 1); exit 1; }; }
16832 if test -f $withval/include/mysql/mysql.h; then
16833 MYSQL_INCDIR=$withval/include/mysql
16834 MYSQL_LIBDIR=$withval/lib/mysql
16835 MYSQL_BINDIR=$withval/bin
16836 elif test -f $withval/include/mysql.h; then
16837 MYSQL_INCDIR=$withval/include
16838 MYSQL_LIBDIR=$withval/lib
16839 MYSQL_BINDIR=$withval/bin
16841 echo "$as_me:$LINENO: result: no" >&5
16842 echo "${ECHO_T}no" >&6
16843 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16844 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16845 { (exit 1); exit 1; }; }
16848 SQL_INCLUDE=-I$MYSQL_INCDIR
16849 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16850 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_THREAD_SAFE_MYSQL 1
16856 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16858 SQL_BINDIR=$MYSQL_BINDIR
16860 cat >>confdefs.h <<\_ACEOF
16861 #define HAVE_MYSQL 1
16864 echo "$as_me:$LINENO: result: yes" >&5
16865 echo "${ECHO_T}yes" >&6
16872 echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6
16880 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16881 if test "${with_embedded_mysql+set}" = set; then
16882 withval="$with_embedded_mysql"
16884 if test "$withval" != "no"; then
16885 if test "$withval" = "yes"; then
16886 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16887 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16888 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16889 MYSQL_BINDIR=/usr/local/mysql/bin
16890 elif test -f /usr/include/mysql/mysql.h; then
16891 MYSQL_INCDIR=/usr/include/mysql
16892 MYSQL_LIBDIR=/usr/lib/mysql
16893 MYSQL_BINDIR=/usr/bin
16894 elif test -f /usr/include/mysql.h; then
16895 MYSQL_INCDIR=/usr/include
16896 MYSQL_LIBDIR=/usr/lib
16897 MYSQL_BINDIR=/usr/bin
16898 elif test -f /usr/local/include/mysql/mysql.h; then
16899 MYSQL_INCDIR=/usr/local/include/mysql
16900 MYSQL_LIBDIR=/usr/local/lib/mysql
16901 MYSQL_BINDIR=/usr/local/bin
16902 elif test -f /usr/local/include/mysql.h; then
16903 MYSQL_INCDIR=/usr/local/include
16904 MYSQL_LIBDIR=/usr/local/lib
16905 MYSQL_BINDIR=/usr/local/bin
16907 echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6
16909 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16910 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16911 { (exit 1); exit 1; }; }
16914 if test -f $withval/include/mysql/mysql.h; then
16915 MYSQL_INCDIR=$withval/include/mysql
16916 MYSQL_LIBDIR=$withval/lib/mysql
16917 MYSQL_BINDIR=$withval/bin
16918 elif test -f $withval/include/mysql.h; then
16919 MYSQL_INCDIR=$withval/include
16920 MYSQL_LIBDIR=$withval/lib
16921 MYSQL_BINDIR=$withval/bin
16923 echo "$as_me:$LINENO: result: no" >&5
16924 echo "${ECHO_T}no" >&6
16925 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16926 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16927 { (exit 1); exit 1; }; }
16930 SQL_INCLUDE=-I$MYSQL_INCDIR
16931 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16932 SQL_BINDIR=$MYSQL_BINDIR
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_MYSQL 1
16938 cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_EMBEDDED_MYSQL 1
16942 echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6
16950 echo "$as_me:$LINENO: result: no" >&5
16951 echo "${ECHO_T}no" >&6
16966 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16967 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16969 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16970 if test "${with_sqlite3+set}" = set; then
16971 withval="$with_sqlite3"
16973 if test "$withval" != "no"; then
16974 if test "$withval" = "yes"; then
16975 if test -f /usr/local/include/sqlite3.h; then
16976 SQLITE_INCDIR=/usr/local/include
16977 SQLITE_LIBDIR=/usr/local/lib
16978 SQLITE_BINDIR=/usr/local/bin
16979 elif test -f /usr/include/sqlite3.h; then
16980 SQLITE_INCDIR=/usr/include
16981 SQLITE_LIBDIR=/usr/lib
16982 SQLITE_BINDIR=/usr/bin
16983 elif test -f $prefix/include/sqlite3.h; then
16984 SQLITE_INCDIR=$prefix/include
16985 SQLITE_LIBDIR=$prefix/lib
16986 SQLITE_BINDIR=$prefix/bin
16988 echo "$as_me:$LINENO: result: no" >&5
16989 echo "${ECHO_T}no" >&6
16990 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16991 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16992 { (exit 1); exit 1; }; }
16995 if test -f $withval/sqlite3.h; then
16996 SQLITE_INCDIR=$withval
16997 SQLITE_LIBDIR=$withval
16998 SQLITE_BINDIR=$withval
16999 elif test -f $withval/include/sqlite3.h; then
17000 SQLITE_INCDIR=$withval/include
17001 SQLITE_LIBDIR=$withval/lib
17002 SQLITE_BINDIR=$withval/bin
17004 echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6
17006 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17007 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17008 { (exit 1); exit 1; }; }
17011 SQL_INCLUDE=-I$SQLITE_INCDIR
17012 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17013 SQL_BINDIR=$SQLITE_BINDIR
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_SQLITE3 1
17019 echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6
17022 support_sqlite3=yes
17027 echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17033 echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6
17045 echo "$as_me:$LINENO: checking for SQLite support" >&5
17046 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17048 # Check whether --with-sqlite or --without-sqlite was given.
17049 if test "${with_sqlite+set}" = set; then
17050 withval="$with_sqlite"
17052 if test "$withval" != "no"; then
17053 if test "$withval" = "yes"; then
17054 if test -f /usr/local/include/sqlite.h; then
17055 SQLITE_INCDIR=/usr/local/include
17056 SQLITE_LIBDIR=/usr/local/lib
17057 SQLITE_BINDIR=/usr/local/bin
17058 elif test -f /usr/include/sqlite.h; then
17059 SQLITE_INCDIR=/usr/include
17060 SQLITE_LIBDIR=/usr/lib
17061 SQLITE_BINDIR=/usr/bin
17062 elif test -f $prefix/include/sqlite.h; then
17063 SQLITE_INCDIR=$prefix/include
17064 SQLITE_LIBDIR=$prefix/lib
17065 SQLITE_BINDIR=$prefix/bin
17067 echo "$as_me:$LINENO: result: no" >&5
17068 echo "${ECHO_T}no" >&6
17069 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17070 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17071 { (exit 1); exit 1; }; }
17074 if test -f $withval/sqlite.h; then
17075 SQLITE_INCDIR=$withval
17076 SQLITE_LIBDIR=$withval
17077 SQLITE_BINDIR=$withval
17078 elif test -f $withval/include/sqlite.h; then
17079 SQLITE_INCDIR=$withval/include
17080 SQLITE_LIBDIR=$withval/lib
17081 SQLITE_BINDIR=$withval/bin
17083 echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6
17085 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17086 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17087 { (exit 1); exit 1; }; }
17090 SQL_INCLUDE=-I$SQLITE_INCDIR
17091 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17092 SQL_BINDIR=$SQLITE_BINDIR
17094 cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_SQLITE 1
17098 echo "$as_me:$LINENO: result: yes" >&5
17099 echo "${ECHO_T}yes" >&6
17106 echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17112 echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17125 cat >>confdefs.h <<\_ACEOF
17126 #define PROTOTYPES 1
17130 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17131 if test -z "$CCOPTS"; then
17132 CCOPTS='-g -O2 -Wall'
17140 largefile_support="no"
17142 # Check whether --enable-largefile or --disable-largefile was given.
17143 if test "${enable_largefile+set}" = set; then
17144 enableval="$enable_largefile"
17147 if test "$enable_largefile" != no; then
17148 if test -n "$ac_tool_prefix"; then
17149 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17150 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17151 echo "$as_me:$LINENO: checking for $ac_word" >&5
17152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17153 if test "${ac_cv_prog_GETCONF+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 if test -n "$GETCONF"; then
17157 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160 for as_dir in $PATH
17163 test -z "$as_dir" && as_dir=.
17164 for ac_exec_ext in '' $ac_executable_extensions; do
17165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17175 GETCONF=$ac_cv_prog_GETCONF
17176 if test -n "$GETCONF"; then
17177 echo "$as_me:$LINENO: result: $GETCONF" >&5
17178 echo "${ECHO_T}$GETCONF" >&6
17180 echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6
17185 if test -z "$ac_cv_prog_GETCONF"; then
17186 ac_ct_GETCONF=$GETCONF
17187 # Extract the first word of "getconf", so it can be a program name with args.
17188 set dummy getconf; ac_word=$2
17189 echo "$as_me:$LINENO: checking for $ac_word" >&5
17190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17191 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 if test -n "$ac_ct_GETCONF"; then
17195 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17201 test -z "$as_dir" && as_dir=.
17202 for ac_exec_ext in '' $ac_executable_extensions; do
17203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17204 ac_cv_prog_ac_ct_GETCONF="getconf"
17205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17213 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17214 if test -n "$ac_ct_GETCONF"; then
17215 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17216 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17218 echo "$as_me:$LINENO: result: no" >&5
17219 echo "${ECHO_T}no" >&6
17222 GETCONF=$ac_ct_GETCONF
17224 GETCONF="$ac_cv_prog_GETCONF"
17227 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17228 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17229 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17233 ac_cv_sys_largefile_CFLAGS=no
17235 # IRIX 6.2 and later require cc -n32.
17236 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17237 if test "$GCC" != yes; then
17238 ac_cv_sys_largefile_CFLAGS=-n32
17241 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
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); }; } &&
17273 { ac_try='test -s conftest$ac_exeext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17284 ac_cv_sys_largefile_CFLAGS=no
17286 rm -f conftest.err conftest.$ac_objext \
17287 conftest$ac_exeext conftest.$ac_ext
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17293 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17294 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17295 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17296 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17300 ac_cv_sys_largefile_LDFLAGS=no
17304 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17305 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17306 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17307 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17308 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17312 ac_cv_sys_largefile_LIBS=no
17316 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17317 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17319 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17322 -D_FILE_OFFSET_BITS=*) ;;
17323 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17324 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17329 case "$CPPFLAGS" in
17330 '') CPPFLAGS="$ac_flag" ;;
17331 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17339 '') CFLAGS="$ac_flag" ;;
17340 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17345 case "$ac_cv_sys_largefile_LDFLAGS" in
17349 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17350 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17353 case "$ac_cv_sys_largefile_LIBS" in
17357 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17358 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17361 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17362 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 ac_cv_sys_file_offset_bits=no
17367 ac_cv_sys_file_offset_bits=64
17368 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17370 -D_FILE_OFFSET_BITS)
17371 ac_cv_sys_file_offset_bits=1 ;;
17372 -D_FILE_OFFSET_BITS=*)
17373 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17378 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17379 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17380 if test "$ac_cv_sys_file_offset_bits" != no; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17387 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17388 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17389 if test "${ac_cv_sys_largefile_source+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 ac_cv_sys_largefile_source=no
17393 ac_cv_sys_largefile_source=1
17394 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17396 -D_LARGEFILE_SOURCE)
17397 ac_cv_sys_largefile_source=1 ;;
17398 -D_LARGEFILE_SOURCE=*)
17399 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17404 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17405 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17406 if test "$ac_cv_sys_largefile_source" != no; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17413 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17414 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17415 if test "${ac_cv_sys_large_files+set}" = set; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 ac_cv_sys_large_files=no
17419 ac_cv_sys_large_files=1
17420 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17423 ac_cv_sys_large_files=1 ;;
17425 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17430 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17431 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17432 if test "$ac_cv_sys_large_files" != no; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define _LARGE_FILES $ac_cv_sys_large_files
17443 echo "$as_me:$LINENO: checking for X" >&5
17444 echo $ECHO_N "checking for X... $ECHO_C" >&6
17447 # Check whether --with-x or --without-x was given.
17448 if test "${with_x+set}" = set; then
17452 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17453 if test "x$with_x" = xno; then
17454 # The user explicitly disabled X.
17457 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17458 # Both variables are already set.
17461 if test "${ac_cv_have_x+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 # One or both of the vars are not set, and there is no cached value.
17465 ac_x_includes=no ac_x_libraries=no
17466 rm -fr conftest.dir
17467 if mkdir conftest.dir; then
17469 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17470 cat >Imakefile <<'_ACEOF'
17472 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17474 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17476 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17477 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17478 for ac_extension in a so sl; do
17479 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17480 test -f $ac_im_libdir/libX11.$ac_extension; then
17481 ac_im_usrlibdir=$ac_im_libdir; break
17484 # Screen out bogus values from the imake configuration. They are
17485 # bogus both because they are the default anyway, and because
17486 # using them would break gcc on systems where it needs fixed includes.
17487 case $ac_im_incroot in
17489 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17491 case $ac_im_usrlibdir in
17492 /usr/lib | /lib) ;;
17493 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17497 rm -fr conftest.dir
17500 # Standard set of common directories for X headers.
17501 # Check X11 before X11Rn because it is often a symlink to the current release.
17513 /usr/local/X11/include
17514 /usr/local/X11R6/include
17515 /usr/local/X11R5/include
17516 /usr/local/X11R4/include
17518 /usr/local/include/X11
17519 /usr/local/include/X11R6
17520 /usr/local/include/X11R5
17521 /usr/local/include/X11R4
17525 /usr/XFree86/include/X11
17529 /usr/unsupported/include
17530 /usr/athena/include
17531 /usr/local/x11r5/include
17532 /usr/lpp/Xamples/include
17534 /usr/openwin/include
17535 /usr/openwin/share/include'
17537 if test "$ac_x_includes" = no; then
17538 # Guess where to find include files, by looking for Intrinsic.h.
17539 # First, try using that file with no special directory specified.
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <X11/Intrinsic.h>
17548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17551 grep -v '^ *+' conftest.er1 >conftest.err
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } >/dev/null; then
17556 if test -s conftest.err; then
17557 ac_cpp_err=$ac_c_preproc_warn_flag
17558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17565 if test -z "$ac_cpp_err"; then
17566 # We can compile using X headers with no special include directory.
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 for ac_dir in $ac_x_header_dirs; do
17573 if test -r "$ac_dir/X11/Intrinsic.h"; then
17574 ac_x_includes=$ac_dir
17579 rm -f conftest.err conftest.$ac_ext
17580 fi # $ac_x_includes = no
17582 if test "$ac_x_libraries" = no; then
17583 # Check for the libraries.
17584 # See if we find them without any special options.
17585 # Don't add to $LIBS permanently.
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <X11/Intrinsic.h>
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605 (eval $ac_link) 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -z "$ac_c_werror_flag"
17613 || test ! -s conftest.err'
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); }; } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17626 # We can link X programs with no special library path.
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17633 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17635 # Don't even attempt the hair of trying to link an X program!
17636 for ac_extension in a so sl; do
17637 if test -r $ac_dir/libXt.$ac_extension; then
17638 ac_x_libraries=$ac_dir
17644 rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646 fi # $ac_x_libraries = no
17648 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17649 # Didn't find X anywhere. Cache the known absence of X.
17650 ac_cv_have_x="have_x=no"
17652 # Record where we found X for the cache.
17653 ac_cv_have_x="have_x=yes \
17654 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17659 eval "$ac_cv_have_x"
17662 if test "$have_x" != yes; then
17663 echo "$as_me:$LINENO: result: $have_x" >&5
17664 echo "${ECHO_T}$have_x" >&6
17667 # If each of the values was on the command line, it overrides each guess.
17668 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17669 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17670 # Update the cache value to reflect the command line values.
17671 ac_cv_have_x="have_x=yes \
17672 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17673 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17674 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17677 if test "$no_x" = yes; then
17678 # Not all programs may use this symbol, but it does not hurt to define it.
17680 cat >>confdefs.h <<\_ACEOF
17681 #define X_DISPLAY_MISSING 1
17684 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17686 if test -n "$x_includes"; then
17687 X_CFLAGS="$X_CFLAGS -I$x_includes"
17690 # It would also be nice to do this for all -L options, not just this one.
17691 if test -n "$x_libraries"; then
17692 X_LIBS="$X_LIBS -L$x_libraries"
17693 # For Solaris; some versions of Sun CC require a space after -R and
17694 # others require no space. Words are not sufficient . . . .
17695 case `(uname -sr) 2>/dev/null` in
17697 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17698 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17699 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_c_werror_flag"
17725 || test ! -s conftest.err'
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); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17744 rm -f conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 if test $ac_R_nospace = yes; then
17747 echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17749 X_LIBS="$X_LIBS -R$x_libraries"
17751 LIBS="$ac_xsave_LIBS -R $x_libraries"
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17767 rm -f conftest.$ac_objext conftest$ac_exeext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769 (eval $ac_link) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1 >conftest.err
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
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); }; } &&
17783 { ac_try='test -s conftest$ac_exeext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17796 rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 if test $ac_R_space = yes; then
17799 echo "$as_me:$LINENO: result: yes" >&5
17800 echo "${ECHO_T}yes" >&6
17801 X_LIBS="$X_LIBS -R $x_libraries"
17803 echo "$as_me:$LINENO: result: neither works" >&5
17804 echo "${ECHO_T}neither works" >&6
17807 LIBS=$ac_xsave_LIBS
17811 # Check for system-dependent libraries X programs must link with.
17812 # Do this before checking for the system-independent R6 libraries
17813 # (-lICE), since we may need -lsocket or whatever for X linking.
17815 if test "$ISC" = yes; then
17816 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17818 # Martyn Johnson says this is needed for Ultrix, if the X
17819 # libraries were built with DECnet support. And Karl Berry says
17820 # the Alpha needs dnet_stub (dnet does not exist).
17821 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17829 /* Override any gcc2 internal prototype to avoid an error. */
17833 /* We use char because int might match the return type of a gcc2
17834 builtin and then its argument prototype would still apply. */
17835 char XOpenDisplay ();
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846 (eval $ac_link) 2>conftest.er1
17848 grep -v '^ *+' conftest.er1 >conftest.err
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag"
17854 || test ! -s conftest.err'
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); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17872 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-ldnet $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17885 /* Override any gcc2 internal prototype to avoid an error. */
17889 /* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902 (eval $ac_link) 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
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); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_dnet_dnet_ntoa=yes
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 ac_cv_lib_dnet_dnet_ntoa=no
17929 rm -f conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17934 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17935 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17936 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17939 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17940 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17941 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17942 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-ldnet_stub $LIBS"
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 /* Override any gcc2 internal prototype to avoid an error. */
17958 /* We use char because int might match the return type of a gcc2
17959 builtin and then its argument prototype would still apply. */
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
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); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_cv_lib_dnet_stub_dnet_ntoa=no
17998 rm -f conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18002 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18003 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18004 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18005 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18010 rm -f conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18012 LIBS="$ac_xsave_LIBS"
18014 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18015 # to get the SysV transport functions.
18016 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18018 # The nsl library prevents programs from opening the X display
18019 # on Irix 5.2, according to T.E. Dickey.
18020 # The functions gethostbyname, getservbyname, and inet_addr are
18021 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18022 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18023 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18024 if test "${ac_cv_func_gethostbyname+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18035 #define gethostbyname innocuous_gethostbyname
18037 /* System header to define __stub macros and hopefully few prototypes,
18038 which can conflict with char gethostbyname (); below.
18039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040 <limits.h> exists even on freestanding compilers. */
18043 # include <limits.h>
18045 # include <assert.h>
18048 #undef gethostbyname
18050 /* Override any gcc2 internal prototype to avoid an error. */
18055 /* We use char because int might match the return type of a gcc2
18056 builtin and then its argument prototype would still apply. */
18057 char gethostbyname ();
18058 /* The GNU C library defines this for functions which it implements
18059 to always fail with ENOSYS. Some functions are actually named
18060 something starting with __ and the normal name is an alias. */
18061 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18064 char (*f) () = gethostbyname;
18073 return f != gethostbyname;
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
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); }; } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_func_gethostbyname=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_func_gethostbyname=no
18107 rm -f conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18111 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18113 if test $ac_cv_func_gethostbyname = no; then
18114 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18115 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18116 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18119 ac_check_lib_save_LIBS=$LIBS
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18128 /* Override any gcc2 internal prototype to avoid an error. */
18132 /* We use char because int might match the return type of a gcc2
18133 builtin and then its argument prototype would still apply. */
18134 char gethostbyname ();
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145 (eval $ac_link) 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
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); }; } &&
18159 { ac_try='test -s conftest$ac_exeext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_lib_nsl_gethostbyname=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ac_cv_lib_nsl_gethostbyname=no
18172 rm -f conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18174 LIBS=$ac_check_lib_save_LIBS
18176 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18177 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18178 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18182 if test $ac_cv_lib_nsl_gethostbyname = no; then
18183 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18184 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18185 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_check_lib_save_LIBS=$LIBS
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18197 /* Override any gcc2 internal prototype to avoid an error. */
18201 /* We use char because int might match the return type of a gcc2
18202 builtin and then its argument prototype would still apply. */
18203 char gethostbyname ();
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18214 (eval $ac_link) 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag"
18222 || test ! -s conftest.err'
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); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_cv_lib_bsd_gethostbyname=yes
18236 echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18239 ac_cv_lib_bsd_gethostbyname=no
18241 rm -f conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18245 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18246 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18247 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18254 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18255 # socket/setsockopt and other routines are undefined under SCO ODT
18256 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18257 # on later versions), says Simon Leinen: it contains gethostby*
18258 # variants that don't use the name server (or something). -lsocket
18259 # must be given before -lnsl if both are needed. We assume that
18260 # if connect needs -lnsl, so does gethostbyname.
18261 echo "$as_me:$LINENO: checking for connect" >&5
18262 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18263 if test "${ac_cv_func_connect+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define connect innocuous_connect
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char connect (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18282 # include <limits.h>
18284 # include <assert.h>
18289 /* Override any gcc2 internal prototype to avoid an error. */
18294 /* We use char because int might match the return type of a gcc2
18295 builtin and then its argument prototype would still apply. */
18297 /* The GNU C library defines this for functions which it implements
18298 to always fail with ENOSYS. Some functions are actually named
18299 something starting with __ and the normal name is an alias. */
18300 #if defined (__stub_connect) || defined (__stub___connect)
18303 char (*f) () = connect;
18312 return f != connect;
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
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); }; } &&
18333 { ac_try='test -s conftest$ac_exeext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_func_connect=yes
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_func_connect=no
18346 rm -f conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18349 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18350 echo "${ECHO_T}$ac_cv_func_connect" >&6
18352 if test $ac_cv_func_connect = no; then
18353 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18354 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18355 if test "${ac_cv_lib_socket_connect+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18367 /* Override any gcc2 internal prototype to avoid an error. */
18371 /* We use char because int might match the return type of a gcc2
18372 builtin and then its argument prototype would still apply. */
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384 (eval $ac_link) 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
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); }; } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_lib_socket_connect=yes
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 ac_cv_lib_socket_connect=no
18411 rm -f conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18415 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18416 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18417 if test $ac_cv_lib_socket_connect = yes; then
18418 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18423 # Guillermo Gomez says -lposix is necessary on A/UX.
18424 echo "$as_me:$LINENO: checking for remove" >&5
18425 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18426 if test "${ac_cv_func_remove+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.$ac_ext <<_ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437 #define remove innocuous_remove
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char remove (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18445 # include <limits.h>
18447 # include <assert.h>
18452 /* Override any gcc2 internal prototype to avoid an error. */
18457 /* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18460 /* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463 #if defined (__stub_remove) || defined (__stub___remove)
18466 char (*f) () = remove;
18475 return f != remove;
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482 (eval $ac_link) 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -z "$ac_c_werror_flag"
18490 || test ! -s conftest.err'
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); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_func_remove=yes
18504 echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 ac_cv_func_remove=no
18509 rm -f conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18512 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18513 echo "${ECHO_T}$ac_cv_func_remove" >&6
18515 if test $ac_cv_func_remove = no; then
18516 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18517 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18518 if test "${ac_cv_lib_posix_remove+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lposix $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18530 /* Override any gcc2 internal prototype to avoid an error. */
18534 /* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
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); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_lib_posix_remove=yes
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_cv_lib_posix_remove=no
18574 rm -f conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18579 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18580 if test $ac_cv_lib_posix_remove = yes; then
18581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18586 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18587 echo "$as_me:$LINENO: checking for shmat" >&5
18588 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18589 if test "${ac_cv_func_shmat+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18600 #define shmat innocuous_shmat
18602 /* System header to define __stub macros and hopefully few prototypes,
18603 which can conflict with char shmat (); below.
18604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605 <limits.h> exists even on freestanding compilers. */
18608 # include <limits.h>
18610 # include <assert.h>
18615 /* Override any gcc2 internal prototype to avoid an error. */
18620 /* We use char because int might match the return type of a gcc2
18621 builtin and then its argument prototype would still apply. */
18623 /* The GNU C library defines this for functions which it implements
18624 to always fail with ENOSYS. Some functions are actually named
18625 something starting with __ and the normal name is an alias. */
18626 #if defined (__stub_shmat) || defined (__stub___shmat)
18629 char (*f) () = shmat;
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } &&
18652 { ac_try='test -z "$ac_c_werror_flag"
18653 || test ! -s conftest.err'
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); }; } &&
18659 { ac_try='test -s conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_func_shmat=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_func_shmat=no
18672 rm -f conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18675 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18676 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18678 if test $ac_cv_func_shmat = no; then
18679 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18680 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 ac_check_lib_save_LIBS=$LIBS
18686 cat >conftest.$ac_ext <<_ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18693 /* Override any gcc2 internal prototype to avoid an error. */
18697 /* We use char because int might match the return type of a gcc2
18698 builtin and then its argument prototype would still apply. */
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710 (eval $ac_link) 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag"
18718 || test ! -s conftest.err'
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); }; } &&
18724 { ac_try='test -s conftest$ac_exeext'
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 ac_cv_lib_ipc_shmat=yes
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 ac_cv_lib_ipc_shmat=no
18737 rm -f conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18741 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18742 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18743 if test $ac_cv_lib_ipc_shmat = yes; then
18744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18750 # Check for libraries that X11R6 Xt/Xaw programs need.
18751 ac_save_LDFLAGS=$LDFLAGS
18752 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18753 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18754 # check for ICE first), but we must link in the order -lSM -lICE or
18755 # we get undefined symbols. So assume we have SM if we have ICE.
18756 # These have to be linked with before -lX11, unlike the other
18757 # libraries we check for below, so use a different variable.
18758 # John Interrante, Karl Berry
18759 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18760 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18761 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 ac_check_lib_save_LIBS=$LIBS
18765 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18773 /* Override any gcc2 internal prototype to avoid an error. */
18777 /* We use char because int might match the return type of a gcc2
18778 builtin and then its argument prototype would still apply. */
18779 char IceConnectionNumber ();
18783 IceConnectionNumber ();
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790 (eval $ac_link) 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
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); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_cv_lib_ICE_IceConnectionNumber=yes
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_cv_lib_ICE_IceConnectionNumber=no
18817 rm -f conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18822 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18823 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18824 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18827 LDFLAGS=$ac_save_LDFLAGS
18889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891 echo "$as_me:$LINENO: checking for $ac_header" >&5
18892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18899 # Is the header compilable?
18900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 $ac_includes_default
18909 #include <$ac_header>
18911 rm -f conftest.$ac_objext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913 (eval $ac_compile) 2>conftest.er1
18915 grep -v '^ *+' conftest.er1 >conftest.err
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
18920 { ac_try='test -z "$ac_c_werror_flag"
18921 || test ! -s conftest.err'
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); }; } &&
18927 { ac_try='test -s conftest.$ac_objext'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_header_compiler=yes
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_header_compiler=no
18940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18942 echo "${ECHO_T}$ac_header_compiler" >&6
18944 # Is the header present?
18945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 #include <$ac_header>
18955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } >/dev/null; then
18963 if test -s conftest.err; then
18964 ac_cpp_err=$ac_c_preproc_warn_flag
18965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18972 if test -z "$ac_cpp_err"; then
18973 ac_header_preproc=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_header_preproc=no
18980 rm -f conftest.err conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18982 echo "${ECHO_T}$ac_header_preproc" >&6
18984 # So? What about this header?
18985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18991 ac_header_preproc=yes
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19008 ## ------------------------------------------ ##
19009 ## Report this to the AC_PACKAGE_NAME lists. ##
19010 ## ------------------------------------------ ##
19013 sed "s/^/$as_me: WARNING: /" >&2
19016 echo "$as_me:$LINENO: checking for $ac_header" >&5
19017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 eval "$as_ac_Header=\$ac_header_preproc"
19023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19028 cat >>confdefs.h <<_ACEOF
19029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19036 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19038 if test "${ac_cv_header_stdc+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 #include <stdlib.h>
19048 #include <stdarg.h>
19049 #include <string.h>
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
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); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_header_stdc=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_header_stdc=no
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 if test $ac_cv_header_stdc = yes; then
19092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <string.h>
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103 $EGREP "memchr" >/dev/null 2>&1; then
19106 ac_cv_header_stdc=no
19112 if test $ac_cv_header_stdc = yes; then
19113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 #include <stdlib.h>
19123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19124 $EGREP "free" >/dev/null 2>&1; then
19127 ac_cv_header_stdc=no
19133 if test $ac_cv_header_stdc = yes; then
19134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19135 if test "$cross_compiling" = yes; then
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19145 #if ((' ' & 0x0FF) == 0x020)
19146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19149 # define ISLOWER(c) \
19150 (('a' <= (c) && (c) <= 'i') \
19151 || ('j' <= (c) && (c) <= 'r') \
19152 || ('s' <= (c) && (c) <= 'z'))
19153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19161 for (i = 0; i < 256; i++)
19162 if (XOR (islower (i), ISLOWER (i))
19163 || toupper (i) != TOUPPER (i))
19168 rm -f conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19181 echo "$as_me: program exited with status $ac_status" >&5
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ( exit $ac_status )
19186 ac_cv_header_stdc=no
19188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19192 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19193 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19194 if test $ac_cv_header_stdc = yes; then
19196 cat >>confdefs.h <<\_ACEOF
19197 #define STDC_HEADERS 1
19202 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19203 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19204 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 cat >conftest.$ac_ext <<_ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 #include <sys/types.h>
19217 return makedev(0, 0);
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -z "$ac_c_werror_flag"
19232 || test ! -s conftest.err'
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); }; } &&
19238 { ac_try='test -s conftest$ac_exeext'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_cv_header_sys_types_h_makedev=yes
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_header_sys_types_h_makedev=no
19251 rm -f conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19255 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19256 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19258 if test $ac_cv_header_sys_types_h_makedev = no; then
19259 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19260 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19261 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19262 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19266 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19268 # Is the header compilable?
19269 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19270 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19278 #include <sys/mkdev.h>
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282 (eval $ac_compile) 2>conftest.er1
19284 grep -v '^ *+' conftest.er1 >conftest.err
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } &&
19289 { ac_try='test -z "$ac_c_werror_flag"
19290 || test ! -s conftest.err'
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); }; } &&
19296 { ac_try='test -s conftest.$ac_objext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_header_compiler=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_header_compiler=no
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 echo "${ECHO_T}$ac_header_compiler" >&6
19313 # Is the header present?
19314 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19315 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19316 cat >conftest.$ac_ext <<_ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 #include <sys/mkdev.h>
19324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } >/dev/null; then
19332 if test -s conftest.err; then
19333 ac_cpp_err=$ac_c_preproc_warn_flag
19334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19341 if test -z "$ac_cpp_err"; then
19342 ac_header_preproc=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_header_preproc=no
19349 rm -f conftest.err conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19351 echo "${ECHO_T}$ac_header_preproc" >&6
19353 # So? What about this header?
19354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19357 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19359 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19360 ac_header_preproc=yes
19363 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19364 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19366 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19367 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19368 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19369 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19370 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19371 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19372 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19373 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19374 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19377 ## ------------------------------------------ ##
19378 ## Report this to the AC_PACKAGE_NAME lists. ##
19379 ## ------------------------------------------ ##
19382 sed "s/^/$as_me: WARNING: /" >&2
19385 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19386 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19387 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19392 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19393 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19396 if test $ac_cv_header_sys_mkdev_h = yes; then
19398 cat >>confdefs.h <<\_ACEOF
19399 #define MAJOR_IN_MKDEV 1
19406 if test $ac_cv_header_sys_mkdev_h = no; then
19407 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19408 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19409 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19410 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19414 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19416 # Is the header compilable?
19417 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19418 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 $ac_includes_default
19426 #include <sys/sysmacros.h>
19428 rm -f conftest.$ac_objext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19430 (eval $ac_compile) 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_c_werror_flag"
19438 || test ! -s conftest.err'
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); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 ac_header_compiler=yes
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_header_compiler=no
19457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19459 echo "${ECHO_T}$ac_header_compiler" >&6
19461 # Is the header present?
19462 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19463 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 #include <sys/sysmacros.h>
19472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19475 grep -v '^ *+' conftest.er1 >conftest.err
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } >/dev/null; then
19480 if test -s conftest.err; then
19481 ac_cpp_err=$ac_c_preproc_warn_flag
19482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19489 if test -z "$ac_cpp_err"; then
19490 ac_header_preproc=yes
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_header_preproc=no
19497 rm -f conftest.err conftest.$ac_ext
19498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19499 echo "${ECHO_T}$ac_header_preproc" >&6
19501 # So? What about this header?
19502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19505 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19507 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19508 ac_header_preproc=yes
19511 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19512 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19513 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19514 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19516 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19517 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19518 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19519 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19520 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19522 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19525 ## ------------------------------------------ ##
19526 ## Report this to the AC_PACKAGE_NAME lists. ##
19527 ## ------------------------------------------ ##
19530 sed "s/^/$as_me: WARNING: /" >&2
19533 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19534 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19535 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19541 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19544 if test $ac_cv_header_sys_sysmacros_h = yes; then
19546 cat >>confdefs.h <<\_ACEOF
19547 #define MAJOR_IN_SYSMACROS 1
19561 ac_header_dirent=no
19562 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19563 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19564 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19565 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19575 #include <sys/types.h>
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
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); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 eval "$as_ac_Header=yes"
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 eval "$as_ac_Header=no"
19616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621 cat >>confdefs.h <<_ACEOF
19622 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19625 ac_header_dirent=$ac_hdr; break
19629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19630 if test $ac_header_dirent = dirent.h; then
19631 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19633 if test "${ac_cv_search_opendir+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 ac_func_search_save_LIBS=$LIBS
19637 ac_cv_search_opendir=no
19638 cat >conftest.$ac_ext <<_ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19645 /* Override any gcc2 internal prototype to avoid an error. */
19649 /* We use char because int might match the return type of a gcc2
19650 builtin and then its argument prototype would still apply. */
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19662 (eval $ac_link) 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -z "$ac_c_werror_flag"
19670 || test ! -s conftest.err'
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); }; } &&
19676 { ac_try='test -s conftest$ac_exeext'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_search_opendir="none required"
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19688 rm -f conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690 if test "$ac_cv_search_opendir" = no; then
19691 for ac_lib in dir; do
19692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
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); }; } &&
19731 { ac_try='test -s conftest$ac_exeext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_search_opendir="-l$ac_lib"
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19744 rm -f conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_func_search_save_LIBS
19750 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19751 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19752 if test "$ac_cv_search_opendir" != no; then
19753 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19758 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19759 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19760 if test "${ac_cv_search_opendir+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_func_search_save_LIBS=$LIBS
19764 ac_cv_search_opendir=no
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any gcc2 internal prototype to avoid an error. */
19776 /* We use char because int might match the return type of a gcc2
19777 builtin and then its argument prototype would still apply. */
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19789 (eval $ac_link) 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag"
19797 || test ! -s conftest.err'
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); }; } &&
19803 { ac_try='test -s conftest$ac_exeext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_cv_search_opendir="none required"
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19815 rm -f conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 if test "$ac_cv_search_opendir" = no; then
19818 for ac_lib in x; do
19819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* Override any gcc2 internal prototype to avoid an error. */
19831 /* We use char because int might match the return type of a gcc2
19832 builtin and then its argument prototype would still apply. */
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844 (eval $ac_link) 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
19851 { ac_try='test -z "$ac_c_werror_flag"
19852 || test ! -s conftest.err'
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); }; } &&
19858 { ac_try='test -s conftest$ac_exeext'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_cv_search_opendir="-l$ac_lib"
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19871 rm -f conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_func_search_save_LIBS
19877 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19878 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19879 if test "$ac_cv_search_opendir" != no; then
19880 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19886 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19887 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19888 if test "${ac_cv_header_stat_broken+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <sys/types.h>
19898 #include <sys/stat.h>
19900 #if defined(S_ISBLK) && defined(S_IFDIR)
19901 # if S_ISBLK (S_IFDIR)
19906 #if defined(S_ISBLK) && defined(S_IFCHR)
19907 # if S_ISBLK (S_IFCHR)
19912 #if defined(S_ISLNK) && defined(S_IFREG)
19913 # if S_ISLNK (S_IFREG)
19918 #if defined(S_ISSOCK) && defined(S_IFREG)
19919 # if S_ISSOCK (S_IFREG)
19925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926 $EGREP "You lose" >/dev/null 2>&1; then
19927 ac_cv_header_stat_broken=yes
19929 ac_cv_header_stat_broken=no
19934 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19935 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19936 if test $ac_cv_header_stat_broken = yes; then
19938 cat >>confdefs.h <<\_ACEOF
19939 #define STAT_MACROS_BROKEN 1
19944 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19945 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19946 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19955 #include <sys/types.h>
19956 #include <sys/wait.h>
19957 #ifndef WEXITSTATUS
19958 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19969 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19974 rm -f conftest.$ac_objext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19976 (eval $ac_compile) 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
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); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_cv_header_sys_wait_h=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_header_sys_wait_h=no
20003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20006 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20007 if test $ac_cv_header_sys_wait_h = yes; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_SYS_WAIT_H 1
20015 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20016 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20017 if test "${ac_cv_header_time+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <sys/types.h>
20027 #include <sys/time.h>
20033 if ((struct tm *) 0)
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041 (eval $ac_compile) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_cv_header_time=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_header_time=no
20068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20071 echo "${ECHO_T}$ac_cv_header_time" >&6
20072 if test $ac_cv_header_time = yes; then
20074 cat >>confdefs.h <<\_ACEOF
20075 #define TIME_WITH_SYS_TIME 1
20081 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20082 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20083 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 $ac_includes_default
20096 static struct stat ac_aggr;
20097 if (ac_aggr.st_blksize)
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105 (eval $ac_compile) 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag"
20113 || test ! -s conftest.err'
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); }; } &&
20119 { ac_try='test -s conftest.$ac_objext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_cv_member_struct_stat_st_blksize=yes
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20140 static struct stat ac_aggr;
20141 if (sizeof ac_aggr.st_blksize)
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
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); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_cv_member_struct_stat_st_blksize=yes
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_cv_member_struct_stat_st_blksize=no
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20182 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20189 cat >>confdefs.h <<\_ACEOF
20190 #define HAVE_ST_BLKSIZE 1
20196 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20197 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20198 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20211 static struct stat ac_aggr;
20212 if (ac_aggr.st_blocks)
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_c_werror_flag"
20228 || test ! -s conftest.err'
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); }; } &&
20234 { ac_try='test -s conftest.$ac_objext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_member_struct_stat_st_blocks=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 cat >conftest.$ac_ext <<_ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20251 $ac_includes_default
20255 static struct stat ac_aggr;
20256 if (sizeof ac_aggr.st_blocks)
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
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); }; } &&
20278 { ac_try='test -s conftest.$ac_objext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_member_struct_stat_st_blocks=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_member_struct_stat_st_blocks=no
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20297 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_ST_BLOCKS 1
20310 "fileblocks.$ac_objext" | \
20311 *" fileblocks.$ac_objext" | \
20312 "fileblocks.$ac_objext "* | \
20313 *" fileblocks.$ac_objext "* ) ;;
20314 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20320 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20322 if test "${ac_cv_struct_tm+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 #include <sys/types.h>
20337 struct tm *tp; tp->tm_sec;
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344 (eval $ac_compile) 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag"
20352 || test ! -s conftest.err'
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); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 ac_cv_struct_tm=time.h
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_cv_struct_tm=sys/time.h
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20375 if test $ac_cv_struct_tm = sys/time.h; then
20377 cat >>confdefs.h <<\_ACEOF
20378 #define TM_IN_SYS_TIME 1
20383 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20384 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20385 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <sys/types.h>
20395 #include <$ac_cv_struct_tm>
20401 static struct tm ac_aggr;
20402 if (ac_aggr.tm_zone)
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410 (eval $ac_compile) 2>conftest.er1
20412 grep -v '^ *+' conftest.er1 >conftest.err
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
20417 { ac_try='test -z "$ac_c_werror_flag"
20418 || test ! -s conftest.err'
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); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_member_struct_tm_tm_zone=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 cat >conftest.$ac_ext <<_ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20441 #include <sys/types.h>
20442 #include <$ac_cv_struct_tm>
20448 static struct tm ac_aggr;
20449 if (sizeof ac_aggr.tm_zone)
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
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); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_member_struct_tm_tm_zone=yes
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_cv_member_struct_tm_tm_zone=no
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_STRUCT_TM_TM_ZONE 1
20499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_TM_ZONE 1
20506 echo "$as_me:$LINENO: checking for tzname" >&5
20507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20508 if test "${ac_cv_var_tzname+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 #ifndef tzname /* For SGI. */
20519 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
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); }; } &&
20546 { ac_try='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_var_tzname=yes
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 ac_cv_var_tzname=no
20559 rm -f conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20562 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20563 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20564 if test $ac_cv_var_tzname = yes; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_TZNAME 1
20574 echo "$as_me:$LINENO: checking for utime.h" >&5
20575 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20576 if test "${ba_cv_header_utime_h+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 #include <sys/types.h>
20596 rm -f conftest.$ac_objext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598 (eval $ac_compile) 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
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); }; } &&
20612 { ac_try='test -s conftest.$ac_objext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ba_cv_header_utime_h=yes
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ba_cv_header_utime_h=no
20625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20628 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20629 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_UTIME_H 1
20634 echo "$as_me:$LINENO: checking for socklen_t" >&5
20635 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20636 if test "${ba_cv_header_socklen_t+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 #include <sys/types.h>
20647 #include <sys/socket.h>
20656 rm -f conftest.$ac_objext
20657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20658 (eval $ac_compile) 2>conftest.er1
20660 grep -v '^ *+' conftest.er1 >conftest.err
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -z "$ac_c_werror_flag"
20666 || test ! -s conftest.err'
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); }; } &&
20672 { ac_try='test -s conftest.$ac_objext'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ba_cv_header_socklen_t=yes
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 ba_cv_header_socklen_t=no
20685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20687 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20688 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20689 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20690 #define HAVE_SOCKLEN_T 1
20694 echo "$as_me:$LINENO: checking for bigendian" >&5
20695 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20696 if test "${ba_cv_bigendian+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 if test "$cross_compiling" = yes; then
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20710 rm -f conftest$ac_exeext
20711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20712 (eval $ac_link) 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ba_cv_bigendian=yes
20723 echo "$as_me: program exited with status $ac_status" >&5
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ( exit $ac_status )
20730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20733 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20734 echo "${ECHO_T}$ba_cv_bigendian" >&6
20735 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20736 #define HAVE_BIGENDIAN 1
20741 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20743 if test "${ac_cv_c_const+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20756 /* FIXME: Include the comments suggested by Paul. */
20757 #ifndef __cplusplus
20758 /* Ultrix mips cc rejects this. */
20759 typedef int charset[2];
20761 /* SunOS 4.1.1 cc rejects this. */
20762 char const *const *ccp;
20764 /* NEC SVR4.0.2 mips cc rejects this. */
20765 struct point {int x, y;};
20766 static struct point const zero = {0,0};
20767 /* AIX XL C 1.02.0.0 rejects this.
20768 It does not let you subtract one const X* pointer from another in
20769 an arm of an if-expression whose if-part is not a constant
20771 const char *g = "string";
20772 ccp = &g + (g ? g-g : 0);
20773 /* HPUX 7.0 cc rejects these. */
20776 ccp = (char const *const *) p;
20777 { /* SCO 3.2v4 cc rejects this. */
20779 char const *s = 0 ? (char *) 0 : (char const *) 0;
20783 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20784 int x[] = {25, 17};
20785 const int *foo = &x[0];
20788 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20789 typedef const int *iptr;
20793 { /* AIX XL C 1.02.0.0 rejects this saying
20794 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20795 struct s { int j; const int *ap[3]; };
20796 struct s *b; b->j = 5;
20798 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20799 const int foo = 10;
20807 rm -f conftest.$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809 (eval $ac_compile) 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -z "$ac_c_werror_flag"
20817 || test ! -s conftest.err'
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); }; } &&
20823 { ac_try='test -s conftest.$ac_objext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20838 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20839 echo "${ECHO_T}$ac_cv_c_const" >&6
20840 if test $ac_cv_c_const = no; then
20842 cat >>confdefs.h <<\_ACEOF
20850 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20851 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20853 # The order of these tests is important.
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 #include <sys/statvfs.h>
20861 #include <sys/fstyp.h>
20863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20866 grep -v '^ *+' conftest.er1 >conftest.err
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } >/dev/null; then
20871 if test -s conftest.err; then
20872 ac_cpp_err=$ac_c_preproc_warn_flag
20873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20880 if test -z "$ac_cpp_err"; then
20881 cat >>confdefs.h <<\_ACEOF
20882 #define FSTYPE_STATVFS 1
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20891 rm -f conftest.err conftest.$ac_ext
20892 if test $fstype = no; then
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <sys/statfs.h>
20900 #include <sys/fstyp.h>
20902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20905 grep -v '^ *+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } >/dev/null; then
20910 if test -s conftest.err; then
20911 ac_cpp_err=$ac_c_preproc_warn_flag
20912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20919 if test -z "$ac_cpp_err"; then
20920 cat >>confdefs.h <<\_ACEOF
20921 #define FSTYPE_USG_STATFS 1
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20930 rm -f conftest.err conftest.$ac_ext
20932 if test $fstype = no; then
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <sys/statfs.h>
20940 #include <sys/vmount.h>
20942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20945 grep -v '^ *+' conftest.er1 >conftest.err
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } >/dev/null; then
20950 if test -s conftest.err; then
20951 ac_cpp_err=$ac_c_preproc_warn_flag
20952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20959 if test -z "$ac_cpp_err"; then
20960 cat >>confdefs.h <<\_ACEOF
20961 #define FSTYPE_AIX_STATFS 1
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20970 rm -f conftest.err conftest.$ac_ext
20972 if test $fstype = no; then
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20979 #include <mntent.h>
20981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } >/dev/null; then
20989 if test -s conftest.err; then
20990 ac_cpp_err=$ac_c_preproc_warn_flag
20991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20998 if test -z "$ac_cpp_err"; then
20999 cat >>confdefs.h <<\_ACEOF
21000 #define FSTYPE_MNTENT 1
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21009 rm -f conftest.err conftest.$ac_ext
21011 if test $fstype = no; then
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 #include <sys/mount.h>
21021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21022 $EGREP "f_type;" >/dev/null 2>&1; then
21023 cat >>confdefs.h <<\_ACEOF
21024 #define FSTYPE_STATFS 1
21031 if test $fstype = no; then
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 #include <sys/mount.h>
21039 #include <sys/fs_types.h>
21041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21044 grep -v '^ *+' conftest.er1 >conftest.err
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } >/dev/null; then
21049 if test -s conftest.err; then
21050 ac_cpp_err=$ac_c_preproc_warn_flag
21051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21058 if test -z "$ac_cpp_err"; then
21059 cat >>confdefs.h <<\_ACEOF
21060 #define FSTYPE_GETMNT 1
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21069 rm -f conftest.err conftest.$ac_ext
21071 echo "$as_me:$LINENO: result: $fstype" >&5
21072 echo "${ECHO_T}$fstype" >&6
21074 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21075 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21076 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21077 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21081 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21083 # Is the header compilable?
21084 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21085 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 $ac_includes_default
21093 #include <sys/statvfs.h>
21095 rm -f conftest.$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try='test -z "$ac_c_werror_flag"
21105 || test ! -s conftest.err'
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); }; } &&
21111 { ac_try='test -s conftest.$ac_objext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 ac_header_compiler=yes
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_header_compiler=no
21124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6
21128 # Is the header present?
21129 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21130 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <sys/statvfs.h>
21139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } >/dev/null; then
21147 if test -s conftest.err; then
21148 ac_cpp_err=$ac_c_preproc_warn_flag
21149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21156 if test -z "$ac_cpp_err"; then
21157 ac_header_preproc=yes
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 ac_header_preproc=no
21164 rm -f conftest.err conftest.$ac_ext
21165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21166 echo "${ECHO_T}$ac_header_preproc" >&6
21168 # So? What about this header?
21169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21171 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21172 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21173 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21174 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21175 ac_header_preproc=yes
21178 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21179 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21181 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21183 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21185 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21187 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21189 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21192 ## ------------------------------------------ ##
21193 ## Report this to the AC_PACKAGE_NAME lists. ##
21194 ## ------------------------------------------ ##
21197 sed "s/^/$as_me: WARNING: /" >&2
21200 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21201 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21202 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21207 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21208 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21211 if test $ac_cv_header_sys_statvfs_h = yes; then
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_SYS_STATVFS_H 1
21221 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21222 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21223 if test "${ac_cv_type_signal+set}" = set; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <sys/types.h>
21233 #include <signal.h>
21238 extern "C" void (*signal (int, void (*)(int)))(int);
21240 void (*signal ()) ();
21251 rm -f conftest.$ac_objext
21252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21253 (eval $ac_compile) 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } &&
21260 { ac_try='test -z "$ac_c_werror_flag"
21261 || test ! -s conftest.err'
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); }; } &&
21267 { ac_try='test -s conftest.$ac_objext'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_type_signal=void
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_cv_type_signal=int
21280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21282 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21283 echo "${ECHO_T}$ac_cv_type_signal" >&6
21285 cat >>confdefs.h <<_ACEOF
21286 #define RETSIGTYPE $ac_cv_type_signal
21291 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21292 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21293 if test "${bash_cv_signal_vintage+set}" = set; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <signal.h>
21309 struct sigaction sa;
21310 sigemptyset(&ss); sigsuspend(&ss);
21311 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21312 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21318 rm -f conftest.$ac_objext conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320 (eval $ac_link) 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } &&
21327 { ac_try='test -z "$ac_c_werror_flag"
21328 || test ! -s conftest.err'
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); }; } &&
21334 { ac_try='test -s conftest$ac_exeext'
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 bash_cv_signal_vintage=posix
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21346 cat >conftest.$ac_ext <<_ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 #include <signal.h>
21357 int mask = sigmask(SIGINT);
21358 sigsetmask(mask); sigblock(mask); sigpause(mask);
21364 rm -f conftest.$ac_objext conftest$ac_exeext
21365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366 (eval $ac_link) 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } &&
21373 { ac_try='test -z "$ac_c_werror_flag"
21374 || test ! -s conftest.err'
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); }; } &&
21380 { ac_try='test -s conftest$ac_exeext'
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 bash_cv_signal_vintage=4.2bsd
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 #include <signal.h>
21400 RETSIGTYPE foo() { }
21405 int mask = sigmask(SIGINT);
21406 sigset(SIGINT, foo); sigrelse(SIGINT);
21407 sighold(SIGINT); sigpause(SIGINT);
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>conftest.er1
21417 grep -v '^ *+' conftest.er1 >conftest.err
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } &&
21422 { ac_try='test -z "$ac_c_werror_flag"
21423 || test ! -s conftest.err'
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); }; } &&
21429 { ac_try='test -s conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 bash_cv_signal_vintage=svr3
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 bash_cv_signal_vintage=v7
21443 rm -f conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
21447 rm -f conftest.err conftest.$ac_objext \
21448 conftest$ac_exeext conftest.$ac_ext
21451 rm -f conftest.err conftest.$ac_objext \
21452 conftest$ac_exeext conftest.$ac_ext
21456 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21457 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21458 if test "$bash_cv_signal_vintage" = posix; then
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_POSIX_SIGNALS 1
21463 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21464 cat >>confdefs.h <<\_ACEOF
21465 #define HAVE_BSD_SIGNALS 1
21468 elif test "$bash_cv_signal_vintage" = svr3; then
21469 cat >>confdefs.h <<\_ACEOF
21470 #define HAVE_USG_SIGHOLD 1
21475 echo "$as_me:$LINENO: checking for mode_t" >&5
21476 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21477 if test "${ac_cv_type_mode_t+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 cat >conftest.$ac_ext <<_ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 $ac_includes_default
21492 if (sizeof (mode_t))
21498 rm -f conftest.$ac_objext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21500 (eval $ac_compile) 2>conftest.er1
21502 grep -v '^ *+' conftest.er1 >conftest.err
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } &&
21507 { ac_try='test -z "$ac_c_werror_flag"
21508 || test ! -s conftest.err'
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); }; } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 ac_cv_type_mode_t=yes
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21525 ac_cv_type_mode_t=no
21527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21529 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21530 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21531 if test $ac_cv_type_mode_t = yes; then
21535 cat >>confdefs.h <<_ACEOF
21541 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21542 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21543 if test "${ac_cv_type_uid_t+set}" = set; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <sys/types.h>
21555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21556 $EGREP "uid_t" >/dev/null 2>&1; then
21557 ac_cv_type_uid_t=yes
21559 ac_cv_type_uid_t=no
21564 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21565 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21566 if test $ac_cv_type_uid_t = no; then
21568 cat >>confdefs.h <<\_ACEOF
21573 cat >>confdefs.h <<\_ACEOF
21579 echo "$as_me:$LINENO: checking for size_t" >&5
21580 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21581 if test "${ac_cv_type_size_t+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 $ac_includes_default
21596 if (sizeof (size_t))
21602 rm -f conftest.$ac_objext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21604 (eval $ac_compile) 2>conftest.er1
21606 grep -v '^ *+' conftest.er1 >conftest.err
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } &&
21611 { ac_try='test -z "$ac_c_werror_flag"
21612 || test ! -s conftest.err'
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); }; } &&
21618 { ac_try='test -s conftest.$ac_objext'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 ac_cv_type_size_t=yes
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_cv_type_size_t=no
21631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21633 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21634 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21635 if test $ac_cv_type_size_t = yes; then
21639 cat >>confdefs.h <<_ACEOF
21640 #define size_t unsigned
21645 echo "$as_me:$LINENO: checking for pid_t" >&5
21646 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21647 if test "${ac_cv_type_pid_t+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 cat >conftest.$ac_ext <<_ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 $ac_includes_default
21662 if (sizeof (pid_t))
21668 rm -f conftest.$ac_objext
21669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670 (eval $ac_compile) 2>conftest.er1
21672 grep -v '^ *+' conftest.er1 >conftest.err
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } &&
21677 { ac_try='test -z "$ac_c_werror_flag"
21678 || test ! -s conftest.err'
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); }; } &&
21684 { ac_try='test -s conftest.$ac_objext'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21690 ac_cv_type_pid_t=yes
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 ac_cv_type_pid_t=no
21697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21700 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21701 if test $ac_cv_type_pid_t = yes; then
21705 cat >>confdefs.h <<_ACEOF
21711 echo "$as_me:$LINENO: checking for off_t" >&5
21712 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21713 if test "${ac_cv_type_off_t+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 $ac_includes_default
21728 if (sizeof (off_t))
21734 rm -f conftest.$ac_objext
21735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21736 (eval $ac_compile) 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
21743 { ac_try='test -z "$ac_c_werror_flag"
21744 || test ! -s conftest.err'
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); }; } &&
21750 { ac_try='test -s conftest.$ac_objext'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; }; then
21756 ac_cv_type_off_t=yes
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_cv_type_off_t=no
21763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21765 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21766 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21767 if test $ac_cv_type_off_t = yes; then
21771 cat >>confdefs.h <<_ACEOF
21777 echo "$as_me:$LINENO: checking for ino_t" >&5
21778 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21779 if test "${ac_cv_type_ino_t+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 $ac_includes_default
21794 if (sizeof (ino_t))
21800 rm -f conftest.$ac_objext
21801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21802 (eval $ac_compile) 2>conftest.er1
21804 grep -v '^ *+' conftest.er1 >conftest.err
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } &&
21809 { ac_try='test -z "$ac_c_werror_flag"
21810 || test ! -s conftest.err'
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); }; } &&
21816 { ac_try='test -s conftest.$ac_objext'
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; }; then
21822 ac_cv_type_ino_t=yes
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21827 ac_cv_type_ino_t=no
21829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21831 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21832 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21833 if test $ac_cv_type_ino_t = yes; then
21837 cat >>confdefs.h <<_ACEOF
21838 #define ino_t unsigned long
21843 echo "$as_me:$LINENO: checking for dev_t" >&5
21844 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21845 if test "${ac_cv_type_dev_t+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21860 if (sizeof (dev_t))
21866 rm -f conftest.$ac_objext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868 (eval $ac_compile) 2>conftest.er1
21870 grep -v '^ *+' conftest.er1 >conftest.err
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } &&
21875 { ac_try='test -z "$ac_c_werror_flag"
21876 || test ! -s conftest.err'
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); }; } &&
21882 { ac_try='test -s conftest.$ac_objext'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; }; then
21888 ac_cv_type_dev_t=yes
21890 echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_cv_type_dev_t=no
21895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21897 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21898 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21899 if test $ac_cv_type_dev_t = yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define dev_t unsigned long
21909 echo "$as_me:$LINENO: checking for daddr_t" >&5
21910 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21911 if test "${ac_cv_type_daddr_t+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21914 cat >conftest.$ac_ext <<_ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 $ac_includes_default
21926 if (sizeof (daddr_t))
21932 rm -f conftest.$ac_objext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21934 (eval $ac_compile) 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
21941 { ac_try='test -z "$ac_c_werror_flag"
21942 || test ! -s conftest.err'
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); }; } &&
21948 { ac_try='test -s conftest.$ac_objext'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
21954 ac_cv_type_daddr_t=yes
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_cv_type_daddr_t=no
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21963 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
21964 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
21965 if test $ac_cv_type_daddr_t = yes; then
21969 cat >>confdefs.h <<_ACEOF
21970 #define daddr_t long
21975 echo "$as_me:$LINENO: checking for major_t" >&5
21976 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
21977 if test "${ac_cv_type_major_t+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21992 if (sizeof (major_t))
21998 rm -f conftest.$ac_objext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22000 (eval $ac_compile) 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -z "$ac_c_werror_flag"
22008 || test ! -s conftest.err'
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); }; } &&
22014 { ac_try='test -s conftest.$ac_objext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 ac_cv_type_major_t=yes
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 ac_cv_type_major_t=no
22027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22031 if test $ac_cv_type_major_t = yes; then
22035 cat >>confdefs.h <<_ACEOF
22036 #define major_t int
22041 echo "$as_me:$LINENO: checking for minor_t" >&5
22042 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22043 if test "${ac_cv_type_minor_t+set}" = set; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22046 cat >conftest.$ac_ext <<_ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 $ac_includes_default
22058 if (sizeof (minor_t))
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066 (eval $ac_compile) 2>conftest.er1
22068 grep -v '^ *+' conftest.er1 >conftest.err
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } &&
22073 { ac_try='test -z "$ac_c_werror_flag"
22074 || test ! -s conftest.err'
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); }; } &&
22080 { ac_try='test -s conftest.$ac_objext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 ac_cv_type_minor_t=yes
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_cv_type_minor_t=no
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22095 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22097 if test $ac_cv_type_minor_t = yes; then
22101 cat >>confdefs.h <<_ACEOF
22102 #define minor_t int
22107 echo "$as_me:$LINENO: checking for ssize_t" >&5
22108 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22109 if test "${ac_cv_type_ssize_t+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 $ac_includes_default
22124 if (sizeof (ssize_t))
22130 rm -f conftest.$ac_objext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22132 (eval $ac_compile) 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
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); }; } &&
22146 { ac_try='test -s conftest.$ac_objext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 ac_cv_type_ssize_t=yes
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ac_cv_type_ssize_t=no
22159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22161 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22162 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22163 if test $ac_cv_type_ssize_t = yes; then
22167 cat >>confdefs.h <<_ACEOF
22168 #define ssize_t int
22173 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22174 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22175 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 cat >conftest.$ac_ext <<_ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184 $ac_includes_default
22188 static struct stat ac_aggr;
22189 if (ac_aggr.st_blocks)
22195 rm -f conftest.$ac_objext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22197 (eval $ac_compile) 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } &&
22204 { ac_try='test -z "$ac_c_werror_flag"
22205 || test ! -s conftest.err'
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); }; } &&
22211 { ac_try='test -s conftest.$ac_objext'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; }; then
22217 ac_cv_member_struct_stat_st_blocks=yes
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222 cat >conftest.$ac_ext <<_ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22228 $ac_includes_default
22232 static struct stat ac_aggr;
22233 if (sizeof ac_aggr.st_blocks)
22239 rm -f conftest.$ac_objext
22240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22241 (eval $ac_compile) 2>conftest.er1
22243 grep -v '^ *+' conftest.er1 >conftest.err
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); } &&
22248 { ac_try='test -z "$ac_c_werror_flag"
22249 || test ! -s conftest.err'
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); }; } &&
22255 { ac_try='test -s conftest.$ac_objext'
22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257 (eval $ac_try) 2>&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; }; then
22261 ac_cv_member_struct_stat_st_blocks=yes
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_cv_member_struct_stat_st_blocks=no
22268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22272 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22273 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22274 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22276 cat >>confdefs.h <<_ACEOF
22277 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22281 cat >>confdefs.h <<\_ACEOF
22282 #define HAVE_ST_BLOCKS 1
22287 "fileblocks.$ac_objext" | \
22288 *" fileblocks.$ac_objext" | \
22289 "fileblocks.$ac_objext "* | \
22290 *" fileblocks.$ac_objext "* ) ;;
22291 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22298 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22299 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22300 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 cat >conftest.$ac_ext <<_ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22313 static struct stat ac_aggr;
22314 if (ac_aggr.st_rdev)
22320 rm -f conftest.$ac_objext
22321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22322 (eval $ac_compile) 2>conftest.er1
22324 grep -v '^ *+' conftest.er1 >conftest.err
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } &&
22329 { ac_try='test -z "$ac_c_werror_flag"
22330 || test ! -s conftest.err'
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); }; } &&
22336 { ac_try='test -s conftest.$ac_objext'
22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338 (eval $ac_try) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_member_struct_stat_st_rdev=yes
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 cat >conftest.$ac_ext <<_ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 $ac_includes_default
22357 static struct stat ac_aggr;
22358 if (sizeof ac_aggr.st_rdev)
22364 rm -f conftest.$ac_objext
22365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22366 (eval $ac_compile) 2>conftest.er1
22368 grep -v '^ *+' conftest.er1 >conftest.err
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -z "$ac_c_werror_flag"
22374 || test ! -s conftest.err'
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); }; } &&
22380 { ac_try='test -s conftest.$ac_objext'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; }; then
22386 ac_cv_member_struct_stat_st_rdev=yes
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_cv_member_struct_stat_st_rdev=no
22393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22397 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22398 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22399 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22401 cat >>confdefs.h <<_ACEOF
22402 #define HAVE_STRUCT_STAT_ST_RDEV 1
22406 cat >>confdefs.h <<\_ACEOF
22407 #define HAVE_ST_RDEV 1
22413 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22414 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22415 if test "${ac_cv_struct_tm+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 #include <sys/types.h>
22430 struct tm *tp; tp->tm_sec;
22435 rm -f conftest.$ac_objext
22436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22437 (eval $ac_compile) 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } &&
22444 { ac_try='test -z "$ac_c_werror_flag"
22445 || test ! -s conftest.err'
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); }; } &&
22451 { ac_try='test -s conftest.$ac_objext'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; }; then
22457 ac_cv_struct_tm=time.h
22459 echo "$as_me: failed program was:" >&5
22460 sed 's/^/| /' conftest.$ac_ext >&5
22462 ac_cv_struct_tm=sys/time.h
22464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22466 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22467 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22468 if test $ac_cv_struct_tm = sys/time.h; then
22470 cat >>confdefs.h <<\_ACEOF
22471 #define TM_IN_SYS_TIME 1
22476 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22477 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22478 if test "${ac_cv_c_const+set}" = set; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22491 /* FIXME: Include the comments suggested by Paul. */
22492 #ifndef __cplusplus
22493 /* Ultrix mips cc rejects this. */
22494 typedef int charset[2];
22496 /* SunOS 4.1.1 cc rejects this. */
22497 char const *const *ccp;
22499 /* NEC SVR4.0.2 mips cc rejects this. */
22500 struct point {int x, y;};
22501 static struct point const zero = {0,0};
22502 /* AIX XL C 1.02.0.0 rejects this.
22503 It does not let you subtract one const X* pointer from another in
22504 an arm of an if-expression whose if-part is not a constant
22506 const char *g = "string";
22507 ccp = &g + (g ? g-g : 0);
22508 /* HPUX 7.0 cc rejects these. */
22511 ccp = (char const *const *) p;
22512 { /* SCO 3.2v4 cc rejects this. */
22514 char const *s = 0 ? (char *) 0 : (char const *) 0;
22518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22519 int x[] = {25, 17};
22520 const int *foo = &x[0];
22523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22524 typedef const int *iptr;
22528 { /* AIX XL C 1.02.0.0 rejects this saying
22529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22530 struct s { int j; const int *ap[3]; };
22531 struct s *b; b->j = 5;
22533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22534 const int foo = 10;
22542 rm -f conftest.$ac_objext
22543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22544 (eval $ac_compile) 2>conftest.er1
22546 grep -v '^ *+' conftest.er1 >conftest.err
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } &&
22551 { ac_try='test -z "$ac_c_werror_flag"
22552 || test ! -s conftest.err'
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); }; } &&
22558 { ac_try='test -s conftest.$ac_objext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22573 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22574 echo "${ECHO_T}$ac_cv_c_const" >&6
22575 if test $ac_cv_c_const = no; then
22577 cat >>confdefs.h <<\_ACEOF
22585 echo "$as_me:$LINENO: checking for char" >&5
22586 echo $ECHO_N "checking for char... $ECHO_C" >&6
22587 if test "${ac_cv_type_char+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 cat >conftest.$ac_ext <<_ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22596 $ac_includes_default
22608 rm -f conftest.$ac_objext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22612 grep -v '^ *+' conftest.er1 >conftest.err
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
22617 { ac_try='test -z "$ac_c_werror_flag"
22618 || test ! -s conftest.err'
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); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_type_char=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22639 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22640 echo "${ECHO_T}$ac_cv_type_char" >&6
22642 echo "$as_me:$LINENO: checking size of char" >&5
22643 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22644 if test "${ac_cv_sizeof_char+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 if test "$ac_cv_type_char" = yes; then
22648 # The cast to unsigned long works around a bug in the HP C Compiler
22649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22651 # This bug is HP SR number 8606223364.
22652 if test "$cross_compiling" = yes; then
22653 # Depending upon the size, compute the lo and hi bounds.
22654 cat >conftest.$ac_ext <<_ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22660 $ac_includes_default
22664 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22671 rm -f conftest.$ac_objext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22673 (eval $ac_compile) 2>conftest.er1
22675 grep -v '^ *+' conftest.er1 >conftest.err
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } &&
22680 { ac_try='test -z "$ac_c_werror_flag"
22681 || test ! -s conftest.err'
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); }; } &&
22687 { ac_try='test -s conftest.$ac_objext'
22688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689 (eval $ac_try) 2>&5
22691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692 (exit $ac_status); }; }; then
22695 cat >conftest.$ac_ext <<_ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22701 $ac_includes_default
22705 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22712 rm -f conftest.$ac_objext
22713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22714 (eval $ac_compile) 2>conftest.er1
22716 grep -v '^ *+' conftest.er1 >conftest.err
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
22721 { ac_try='test -z "$ac_c_werror_flag"
22722 || test ! -s conftest.err'
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); }; } &&
22728 { ac_try='test -s conftest.$ac_objext'
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
22734 ac_hi=$ac_mid; break
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 ac_lo=`expr $ac_mid + 1`
22740 if test $ac_lo -le $ac_mid; then
22744 ac_mid=`expr 2 '*' $ac_mid + 1`
22746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 cat >conftest.$ac_ext <<_ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h. */
22758 $ac_includes_default
22762 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22769 rm -f conftest.$ac_objext
22770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22771 (eval $ac_compile) 2>conftest.er1
22773 grep -v '^ *+' conftest.er1 >conftest.err
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } &&
22778 { ac_try='test -z "$ac_c_werror_flag"
22779 || test ! -s conftest.err'
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); }; } &&
22785 { ac_try='test -s conftest.$ac_objext'
22786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787 (eval $ac_try) 2>&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; }; then
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22803 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22810 rm -f conftest.$ac_objext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812 (eval $ac_compile) 2>conftest.er1
22814 grep -v '^ *+' conftest.er1 >conftest.err
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } &&
22819 { ac_try='test -z "$ac_c_werror_flag"
22820 || test ! -s conftest.err'
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); }; } &&
22826 { ac_try='test -s conftest.$ac_objext'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_lo=$ac_mid; break
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22837 ac_hi=`expr '(' $ac_mid ')' - 1`
22838 if test $ac_mid -le $ac_hi; then
22842 ac_mid=`expr 2 '*' $ac_mid`
22844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22855 # Binary search between lo and hi bounds.
22856 while test "x$ac_lo" != "x$ac_hi"; do
22857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22864 $ac_includes_default
22868 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877 (eval $ac_compile) 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
22884 { ac_try='test -z "$ac_c_werror_flag"
22885 || test ! -s conftest.err'
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); }; } &&
22891 { ac_try='test -s conftest.$ac_objext'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; }; then
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_lo=`expr '(' $ac_mid ')' + 1`
22904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22907 ?*) ac_cv_sizeof_char=$ac_lo;;
22908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22909 See \`config.log' for more details." >&5
22910 echo "$as_me: error: cannot compute sizeof (char), 77
22911 See \`config.log' for more details." >&2;}
22912 { (exit 1); exit 1; }; } ;;
22915 if test "$cross_compiling" = yes; then
22916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22917 See \`config.log' for more details." >&5
22918 echo "$as_me: error: cannot run test program while cross compiling
22919 See \`config.log' for more details." >&2;}
22920 { (exit 1); exit 1; }; }
22922 cat >conftest.$ac_ext <<_ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 $ac_includes_default
22929 long longval () { return (long) (sizeof (char)); }
22930 unsigned long ulongval () { return (long) (sizeof (char)); }
22932 #include <stdlib.h>
22937 FILE *f = fopen ("conftest.val", "w");
22940 if (((long) (sizeof (char))) < 0)
22942 long i = longval ();
22943 if (i != ((long) (sizeof (char))))
22945 fprintf (f, "%ld\n", i);
22949 unsigned long i = ulongval ();
22950 if (i != ((long) (sizeof (char))))
22952 fprintf (f, "%lu\n", i);
22954 exit (ferror (f) || fclose (f) != 0);
22960 rm -f conftest$ac_exeext
22961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22962 (eval $ac_link) 2>&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; }; then
22971 ac_cv_sizeof_char=`cat conftest.val`
22973 echo "$as_me: program exited with status $ac_status" >&5
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ( exit $ac_status )
22978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22979 See \`config.log' for more details." >&5
22980 echo "$as_me: error: cannot compute sizeof (char), 77
22981 See \`config.log' for more details." >&2;}
22982 { (exit 1); exit 1; }; }
22984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22989 ac_cv_sizeof_char=0
22992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22993 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
22994 cat >>confdefs.h <<_ACEOF
22995 #define SIZEOF_CHAR $ac_cv_sizeof_char
22999 echo "$as_me:$LINENO: checking for short int" >&5
23000 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23001 if test "${ac_cv_type_short_int+set}" = set; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23004 cat >conftest.$ac_ext <<_ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 $ac_includes_default
23014 if ((short int *) 0)
23016 if (sizeof (short int))
23022 rm -f conftest.$ac_objext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23024 (eval $ac_compile) 2>conftest.er1
23026 grep -v '^ *+' conftest.er1 >conftest.err
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } &&
23031 { ac_try='test -z "$ac_c_werror_flag"
23032 || test ! -s conftest.err'
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); }; } &&
23038 { ac_try='test -s conftest.$ac_objext'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 ac_cv_type_short_int=yes
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ac_cv_type_short_int=no
23051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23053 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23054 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23056 echo "$as_me:$LINENO: checking size of short int" >&5
23057 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23058 if test "${ac_cv_sizeof_short_int+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23061 if test "$ac_cv_type_short_int" = yes; then
23062 # The cast to unsigned long works around a bug in the HP C Compiler
23063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23065 # This bug is HP SR number 8606223364.
23066 if test "$cross_compiling" = yes; then
23067 # Depending upon the size, compute the lo and hi bounds.
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 $ac_includes_default
23078 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23085 rm -f conftest.$ac_objext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23087 (eval $ac_compile) 2>conftest.er1
23089 grep -v '^ *+' conftest.er1 >conftest.err
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } &&
23094 { ac_try='test -z "$ac_c_werror_flag"
23095 || test ! -s conftest.err'
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); }; } &&
23101 { ac_try='test -s conftest.$ac_objext'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23109 cat >conftest.$ac_ext <<_ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23115 $ac_includes_default
23119 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23126 rm -f conftest.$ac_objext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128 (eval $ac_compile) 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } &&
23135 { ac_try='test -z "$ac_c_werror_flag"
23136 || test ! -s conftest.err'
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); }; } &&
23142 { ac_try='test -s conftest.$ac_objext'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 ac_hi=$ac_mid; break
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ac_lo=`expr $ac_mid + 1`
23154 if test $ac_lo -le $ac_mid; then
23158 ac_mid=`expr 2 '*' $ac_mid + 1`
23160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23166 cat >conftest.$ac_ext <<_ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h. */
23172 $ac_includes_default
23176 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23183 rm -f conftest.$ac_objext
23184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23185 (eval $ac_compile) 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } &&
23192 { ac_try='test -z "$ac_c_werror_flag"
23193 || test ! -s conftest.err'
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); }; } &&
23199 { ac_try='test -s conftest.$ac_objext'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; }; then
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23217 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226 (eval $ac_compile) 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
23233 { ac_try='test -z "$ac_c_werror_flag"
23234 || test ! -s conftest.err'
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); }; } &&
23240 { ac_try='test -s conftest.$ac_objext'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; }; then
23246 ac_lo=$ac_mid; break
23248 echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23251 ac_hi=`expr '(' $ac_mid ')' - 1`
23252 if test $ac_mid -le $ac_hi; then
23256 ac_mid=`expr 2 '*' $ac_mid`
23258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23261 echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23269 # Binary search between lo and hi bounds.
23270 while test "x$ac_lo" != "x$ac_hi"; do
23271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23272 cat >conftest.$ac_ext <<_ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278 $ac_includes_default
23282 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23289 rm -f conftest.$ac_objext
23290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23291 (eval $ac_compile) 2>conftest.er1
23293 grep -v '^ *+' conftest.er1 >conftest.err
23295 cat conftest.err >&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } &&
23298 { ac_try='test -z "$ac_c_werror_flag"
23299 || test ! -s conftest.err'
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); }; } &&
23305 { ac_try='test -s conftest.$ac_objext'
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23313 echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 ac_lo=`expr '(' $ac_mid ')' + 1`
23318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23321 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23322 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23323 See \`config.log' for more details." >&5
23324 echo "$as_me: error: cannot compute sizeof (short int), 77
23325 See \`config.log' for more details." >&2;}
23326 { (exit 1); exit 1; }; } ;;
23329 if test "$cross_compiling" = yes; then
23330 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23331 See \`config.log' for more details." >&5
23332 echo "$as_me: error: cannot run test program while cross compiling
23333 See \`config.log' for more details." >&2;}
23334 { (exit 1); exit 1; }; }
23336 cat >conftest.$ac_ext <<_ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h. */
23342 $ac_includes_default
23343 long longval () { return (long) (sizeof (short int)); }
23344 unsigned long ulongval () { return (long) (sizeof (short int)); }
23346 #include <stdlib.h>
23351 FILE *f = fopen ("conftest.val", "w");
23354 if (((long) (sizeof (short int))) < 0)
23356 long i = longval ();
23357 if (i != ((long) (sizeof (short int))))
23359 fprintf (f, "%ld\n", i);
23363 unsigned long i = ulongval ();
23364 if (i != ((long) (sizeof (short int))))
23366 fprintf (f, "%lu\n", i);
23368 exit (ferror (f) || fclose (f) != 0);
23374 rm -f conftest$ac_exeext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23376 (eval $ac_link) 2>&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_cv_sizeof_short_int=`cat conftest.val`
23387 echo "$as_me: program exited with status $ac_status" >&5
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23391 ( exit $ac_status )
23392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23393 See \`config.log' for more details." >&5
23394 echo "$as_me: error: cannot compute sizeof (short int), 77
23395 See \`config.log' for more details." >&2;}
23396 { (exit 1); exit 1; }; }
23398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23403 ac_cv_sizeof_short_int=0
23406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23407 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23408 cat >>confdefs.h <<_ACEOF
23409 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23413 echo "$as_me:$LINENO: checking for int" >&5
23414 echo $ECHO_N "checking for int... $ECHO_C" >&6
23415 if test "${ac_cv_type_int+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 $ac_includes_default
23436 rm -f conftest.$ac_objext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23438 (eval $ac_compile) 2>conftest.er1
23440 grep -v '^ *+' conftest.er1 >conftest.err
23442 cat conftest.err >&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } &&
23445 { ac_try='test -z "$ac_c_werror_flag"
23446 || test ! -s conftest.err'
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); }; } &&
23452 { ac_try='test -s conftest.$ac_objext'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; }; then
23460 echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23467 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23468 echo "${ECHO_T}$ac_cv_type_int" >&6
23470 echo "$as_me:$LINENO: checking size of int" >&5
23471 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23472 if test "${ac_cv_sizeof_int+set}" = set; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 if test "$ac_cv_type_int" = yes; then
23476 # The cast to unsigned long works around a bug in the HP C Compiler
23477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23479 # This bug is HP SR number 8606223364.
23480 if test "$cross_compiling" = yes; then
23481 # Depending upon the size, compute the lo and hi bounds.
23482 cat >conftest.$ac_ext <<_ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h. */
23488 $ac_includes_default
23492 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23499 rm -f conftest.$ac_objext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23501 (eval $ac_compile) 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
23508 { ac_try='test -z "$ac_c_werror_flag"
23509 || test ! -s conftest.err'
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); }; } &&
23515 { ac_try='test -s conftest.$ac_objext'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23523 cat >conftest.$ac_ext <<_ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h. */
23529 $ac_includes_default
23533 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23540 rm -f conftest.$ac_objext
23541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23542 (eval $ac_compile) 2>conftest.er1
23544 grep -v '^ *+' conftest.er1 >conftest.err
23546 cat conftest.err >&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } &&
23549 { ac_try='test -z "$ac_c_werror_flag"
23550 || test ! -s conftest.err'
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); }; } &&
23556 { ac_try='test -s conftest.$ac_objext'
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 ac_hi=$ac_mid; break
23564 echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 ac_lo=`expr $ac_mid + 1`
23568 if test $ac_lo -le $ac_mid; then
23572 ac_mid=`expr 2 '*' $ac_mid + 1`
23574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23580 cat >conftest.$ac_ext <<_ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 $ac_includes_default
23590 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23597 rm -f conftest.$ac_objext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23599 (eval $ac_compile) 2>conftest.er1
23601 grep -v '^ *+' conftest.er1 >conftest.err
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } &&
23606 { ac_try='test -z "$ac_c_werror_flag"
23607 || test ! -s conftest.err'
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); }; } &&
23613 { ac_try='test -s conftest.$ac_objext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 $ac_includes_default
23631 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23638 rm -f conftest.$ac_objext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640 (eval $ac_compile) 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
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); }; } &&
23654 { ac_try='test -s conftest.$ac_objext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_lo=$ac_mid; break
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23665 ac_hi=`expr '(' $ac_mid ')' - 1`
23666 if test $ac_mid -le $ac_hi; then
23670 ac_mid=`expr 2 '*' $ac_mid`
23672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23683 # Binary search between lo and hi bounds.
23684 while test "x$ac_lo" != "x$ac_hi"; do
23685 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 $ac_includes_default
23696 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23703 rm -f conftest.$ac_objext
23704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23705 (eval $ac_compile) 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
23712 { ac_try='test -z "$ac_c_werror_flag"
23713 || test ! -s conftest.err'
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); }; } &&
23719 { ac_try='test -s conftest.$ac_objext'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23730 ac_lo=`expr '(' $ac_mid ')' + 1`
23732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23735 ?*) ac_cv_sizeof_int=$ac_lo;;
23736 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23737 See \`config.log' for more details." >&5
23738 echo "$as_me: error: cannot compute sizeof (int), 77
23739 See \`config.log' for more details." >&2;}
23740 { (exit 1); exit 1; }; } ;;
23743 if test "$cross_compiling" = yes; then
23744 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23745 See \`config.log' for more details." >&5
23746 echo "$as_me: error: cannot run test program while cross compiling
23747 See \`config.log' for more details." >&2;}
23748 { (exit 1); exit 1; }; }
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 $ac_includes_default
23757 long longval () { return (long) (sizeof (int)); }
23758 unsigned long ulongval () { return (long) (sizeof (int)); }
23760 #include <stdlib.h>
23765 FILE *f = fopen ("conftest.val", "w");
23768 if (((long) (sizeof (int))) < 0)
23770 long i = longval ();
23771 if (i != ((long) (sizeof (int))))
23773 fprintf (f, "%ld\n", i);
23777 unsigned long i = ulongval ();
23778 if (i != ((long) (sizeof (int))))
23780 fprintf (f, "%lu\n", i);
23782 exit (ferror (f) || fclose (f) != 0);
23788 rm -f conftest$ac_exeext
23789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23790 (eval $ac_link) 2>&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795 (eval $ac_try) 2>&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23799 ac_cv_sizeof_int=`cat conftest.val`
23801 echo "$as_me: program exited with status $ac_status" >&5
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23805 ( exit $ac_status )
23806 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23807 See \`config.log' for more details." >&5
23808 echo "$as_me: error: cannot compute sizeof (int), 77
23809 See \`config.log' for more details." >&2;}
23810 { (exit 1); exit 1; }; }
23812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23820 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23821 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23822 cat >>confdefs.h <<_ACEOF
23823 #define SIZEOF_INT $ac_cv_sizeof_int
23827 echo "$as_me:$LINENO: checking for long int" >&5
23828 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23829 if test "${ac_cv_type_long_int+set}" = set; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23832 cat >conftest.$ac_ext <<_ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h. */
23838 $ac_includes_default
23842 if ((long int *) 0)
23844 if (sizeof (long int))
23850 rm -f conftest.$ac_objext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23852 (eval $ac_compile) 2>conftest.er1
23854 grep -v '^ *+' conftest.er1 >conftest.err
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -z "$ac_c_werror_flag"
23860 || test ! -s conftest.err'
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); }; } &&
23866 { ac_try='test -s conftest.$ac_objext'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 ac_cv_type_long_int=yes
23874 echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23877 ac_cv_type_long_int=no
23879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23881 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23882 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23884 echo "$as_me:$LINENO: checking size of long int" >&5
23885 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23886 if test "${ac_cv_sizeof_long_int+set}" = set; then
23887 echo $ECHO_N "(cached) $ECHO_C" >&6
23889 if test "$ac_cv_type_long_int" = yes; then
23890 # The cast to unsigned long works around a bug in the HP C Compiler
23891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893 # This bug is HP SR number 8606223364.
23894 if test "$cross_compiling" = yes; then
23895 # Depending upon the size, compute the lo and hi bounds.
23896 cat >conftest.$ac_ext <<_ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h. */
23902 $ac_includes_default
23906 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23913 rm -f conftest.$ac_objext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23915 (eval $ac_compile) 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } &&
23922 { ac_try='test -z "$ac_c_werror_flag"
23923 || test ! -s conftest.err'
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); }; } &&
23929 { ac_try='test -s conftest.$ac_objext'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; }; then
23937 cat >conftest.$ac_ext <<_ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943 $ac_includes_default
23947 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
23954 rm -f conftest.$ac_objext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23956 (eval $ac_compile) 2>conftest.er1
23958 grep -v '^ *+' conftest.er1 >conftest.err
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } &&
23963 { ac_try='test -z "$ac_c_werror_flag"
23964 || test ! -s conftest.err'
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); }; } &&
23970 { ac_try='test -s conftest.$ac_objext'
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23976 ac_hi=$ac_mid; break
23978 echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23981 ac_lo=`expr $ac_mid + 1`
23982 if test $ac_lo -le $ac_mid; then
23986 ac_mid=`expr 2 '*' $ac_mid + 1`
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23991 echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23994 cat >conftest.$ac_ext <<_ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24000 $ac_includes_default
24004 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24011 rm -f conftest.$ac_objext
24012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24013 (eval $ac_compile) 2>conftest.er1
24015 grep -v '^ *+' conftest.er1 >conftest.err
24017 cat conftest.err >&5
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } &&
24020 { ac_try='test -z "$ac_c_werror_flag"
24021 || test ! -s conftest.err'
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); }; } &&
24027 { ac_try='test -s conftest.$ac_objext'
24028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 (eval $ac_try) 2>&5
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; }; then
24035 cat >conftest.$ac_ext <<_ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041 $ac_includes_default
24045 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
24061 { ac_try='test -z "$ac_c_werror_flag"
24062 || test ! -s conftest.err'
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); }; } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 ac_lo=$ac_mid; break
24076 echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24079 ac_hi=`expr '(' $ac_mid ')' - 1`
24080 if test $ac_mid -le $ac_hi; then
24084 ac_mid=`expr 2 '*' $ac_mid`
24086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24089 echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24097 # Binary search between lo and hi bounds.
24098 while test "x$ac_lo" != "x$ac_hi"; do
24099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24100 cat >conftest.$ac_ext <<_ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106 $ac_includes_default
24110 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24117 rm -f conftest.$ac_objext
24118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24119 (eval $ac_compile) 2>conftest.er1
24121 grep -v '^ *+' conftest.er1 >conftest.err
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125 (exit $ac_status); } &&
24126 { ac_try='test -z "$ac_c_werror_flag"
24127 || test ! -s conftest.err'
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); }; } &&
24133 { ac_try='test -s conftest.$ac_objext'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24141 echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 ac_lo=`expr '(' $ac_mid ')' + 1`
24146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24149 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24150 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24151 See \`config.log' for more details." >&5
24152 echo "$as_me: error: cannot compute sizeof (long int), 77
24153 See \`config.log' for more details." >&2;}
24154 { (exit 1); exit 1; }; } ;;
24157 if test "$cross_compiling" = yes; then
24158 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24159 See \`config.log' for more details." >&5
24160 echo "$as_me: error: cannot run test program while cross compiling
24161 See \`config.log' for more details." >&2;}
24162 { (exit 1); exit 1; }; }
24164 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 $ac_includes_default
24171 long longval () { return (long) (sizeof (long int)); }
24172 unsigned long ulongval () { return (long) (sizeof (long int)); }
24174 #include <stdlib.h>
24179 FILE *f = fopen ("conftest.val", "w");
24182 if (((long) (sizeof (long int))) < 0)
24184 long i = longval ();
24185 if (i != ((long) (sizeof (long int))))
24187 fprintf (f, "%ld\n", i);
24191 unsigned long i = ulongval ();
24192 if (i != ((long) (sizeof (long int))))
24194 fprintf (f, "%lu\n", i);
24196 exit (ferror (f) || fclose (f) != 0);
24202 rm -f conftest$ac_exeext
24203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24204 (eval $ac_link) 2>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213 ac_cv_sizeof_long_int=`cat conftest.val`
24215 echo "$as_me: program exited with status $ac_status" >&5
24216 echo "$as_me: failed program was:" >&5
24217 sed 's/^/| /' conftest.$ac_ext >&5
24219 ( exit $ac_status )
24220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24221 See \`config.log' for more details." >&5
24222 echo "$as_me: error: cannot compute sizeof (long int), 77
24223 See \`config.log' for more details." >&2;}
24224 { (exit 1); exit 1; }; }
24226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24231 ac_cv_sizeof_long_int=0
24234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24235 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24236 cat >>confdefs.h <<_ACEOF
24237 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24241 echo "$as_me:$LINENO: checking for long long int" >&5
24242 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24243 if test "${ac_cv_type_long_long_int+set}" = set; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 $ac_includes_default
24256 if ((long long int *) 0)
24258 if (sizeof (long long int))
24264 rm -f conftest.$ac_objext
24265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24266 (eval $ac_compile) 2>conftest.er1
24268 grep -v '^ *+' conftest.er1 >conftest.err
24270 cat conftest.err >&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } &&
24273 { ac_try='test -z "$ac_c_werror_flag"
24274 || test ! -s conftest.err'
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); }; } &&
24280 { ac_try='test -s conftest.$ac_objext'
24281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282 (eval $ac_try) 2>&5
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); }; }; then
24286 ac_cv_type_long_long_int=yes
24288 echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24291 ac_cv_type_long_long_int=no
24293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24295 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24296 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24298 echo "$as_me:$LINENO: checking size of long long int" >&5
24299 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24300 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 if test "$ac_cv_type_long_long_int" = yes; then
24304 # The cast to unsigned long works around a bug in the HP C Compiler
24305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24307 # This bug is HP SR number 8606223364.
24308 if test "$cross_compiling" = yes; then
24309 # Depending upon the size, compute the lo and hi bounds.
24310 cat >conftest.$ac_ext <<_ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24316 $ac_includes_default
24320 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24327 rm -f conftest.$ac_objext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329 (eval $ac_compile) 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
24336 { ac_try='test -z "$ac_c_werror_flag"
24337 || test ! -s conftest.err'
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); }; } &&
24343 { ac_try='test -s conftest.$ac_objext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24351 cat >conftest.$ac_ext <<_ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 $ac_includes_default
24361 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24368 rm -f conftest.$ac_objext
24369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24370 (eval $ac_compile) 2>conftest.er1
24372 grep -v '^ *+' conftest.er1 >conftest.err
24374 cat conftest.err >&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } &&
24377 { ac_try='test -z "$ac_c_werror_flag"
24378 || test ! -s conftest.err'
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); }; } &&
24384 { ac_try='test -s conftest.$ac_objext'
24385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386 (eval $ac_try) 2>&5
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); }; }; then
24390 ac_hi=$ac_mid; break
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24395 ac_lo=`expr $ac_mid + 1`
24396 if test $ac_lo -le $ac_mid; then
24400 ac_mid=`expr 2 '*' $ac_mid + 1`
24402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24408 cat >conftest.$ac_ext <<_ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 $ac_includes_default
24418 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24425 rm -f conftest.$ac_objext
24426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24427 (eval $ac_compile) 2>conftest.er1
24429 grep -v '^ *+' conftest.er1 >conftest.err
24431 cat conftest.err >&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
24434 { ac_try='test -z "$ac_c_werror_flag"
24435 || test ! -s conftest.err'
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); }; } &&
24441 { ac_try='test -s conftest.$ac_objext'
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455 $ac_includes_default
24459 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24466 rm -f conftest.$ac_objext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24468 (eval $ac_compile) 2>conftest.er1
24470 grep -v '^ *+' conftest.er1 >conftest.err
24472 cat conftest.err >&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } &&
24475 { ac_try='test -z "$ac_c_werror_flag"
24476 || test ! -s conftest.err'
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); }; } &&
24482 { ac_try='test -s conftest.$ac_objext'
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; }; then
24488 ac_lo=$ac_mid; break
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_hi=`expr '(' $ac_mid ')' - 1`
24494 if test $ac_mid -le $ac_hi; then
24498 ac_mid=`expr 2 '*' $ac_mid`
24500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24511 # Binary search between lo and hi bounds.
24512 while test "x$ac_lo" != "x$ac_hi"; do
24513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24514 cat >conftest.$ac_ext <<_ACEOF
24517 cat confdefs.h >>conftest.$ac_ext
24518 cat >>conftest.$ac_ext <<_ACEOF
24519 /* end confdefs.h. */
24520 $ac_includes_default
24524 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24531 rm -f conftest.$ac_objext
24532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24533 (eval $ac_compile) 2>conftest.er1
24535 grep -v '^ *+' conftest.er1 >conftest.err
24537 cat conftest.err >&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } &&
24540 { ac_try='test -z "$ac_c_werror_flag"
24541 || test ! -s conftest.err'
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); }; } &&
24547 { ac_try='test -s conftest.$ac_objext'
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; }; then
24555 echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 ac_lo=`expr '(' $ac_mid ')' + 1`
24560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24563 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24564 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24565 See \`config.log' for more details." >&5
24566 echo "$as_me: error: cannot compute sizeof (long long int), 77
24567 See \`config.log' for more details." >&2;}
24568 { (exit 1); exit 1; }; } ;;
24571 if test "$cross_compiling" = yes; then
24572 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24573 See \`config.log' for more details." >&5
24574 echo "$as_me: error: cannot run test program while cross compiling
24575 See \`config.log' for more details." >&2;}
24576 { (exit 1); exit 1; }; }
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 $ac_includes_default
24585 long longval () { return (long) (sizeof (long long int)); }
24586 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24588 #include <stdlib.h>
24593 FILE *f = fopen ("conftest.val", "w");
24596 if (((long) (sizeof (long long int))) < 0)
24598 long i = longval ();
24599 if (i != ((long) (sizeof (long long int))))
24601 fprintf (f, "%ld\n", i);
24605 unsigned long i = ulongval ();
24606 if (i != ((long) (sizeof (long long int))))
24608 fprintf (f, "%lu\n", i);
24610 exit (ferror (f) || fclose (f) != 0);
24616 rm -f conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618 (eval $ac_link) 2>&5
24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 ac_cv_sizeof_long_long_int=`cat conftest.val`
24629 echo "$as_me: program exited with status $ac_status" >&5
24630 echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ( exit $ac_status )
24634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24635 See \`config.log' for more details." >&5
24636 echo "$as_me: error: cannot compute sizeof (long long int), 77
24637 See \`config.log' for more details." >&2;}
24638 { (exit 1); exit 1; }; }
24640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24645 ac_cv_sizeof_long_long_int=0
24648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24649 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24650 cat >>confdefs.h <<_ACEOF
24651 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24655 echo "$as_me:$LINENO: checking for int *" >&5
24656 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24657 if test "${ac_cv_type_int_p+set}" = set; then
24658 echo $ECHO_N "(cached) $ECHO_C" >&6
24660 cat >conftest.$ac_ext <<_ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h. */
24666 $ac_includes_default
24672 if (sizeof (int *))
24678 rm -f conftest.$ac_objext
24679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24680 (eval $ac_compile) 2>conftest.er1
24682 grep -v '^ *+' conftest.er1 >conftest.err
24684 cat conftest.err >&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); } &&
24687 { ac_try='test -z "$ac_c_werror_flag"
24688 || test ! -s conftest.err'
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); }; } &&
24694 { ac_try='test -s conftest.$ac_objext'
24695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696 (eval $ac_try) 2>&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); }; }; then
24700 ac_cv_type_int_p=yes
24702 echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24705 ac_cv_type_int_p=no
24707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24709 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24710 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24712 echo "$as_me:$LINENO: checking size of int *" >&5
24713 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24714 if test "${ac_cv_sizeof_int_p+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24717 if test "$ac_cv_type_int_p" = yes; then
24718 # The cast to unsigned long works around a bug in the HP C Compiler
24719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24721 # This bug is HP SR number 8606223364.
24722 if test "$cross_compiling" = yes; then
24723 # Depending upon the size, compute the lo and hi bounds.
24724 cat >conftest.$ac_ext <<_ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24730 $ac_includes_default
24734 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24741 rm -f conftest.$ac_objext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24743 (eval $ac_compile) 2>conftest.er1
24745 grep -v '^ *+' conftest.er1 >conftest.err
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } &&
24750 { ac_try='test -z "$ac_c_werror_flag"
24751 || test ! -s conftest.err'
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); }; } &&
24757 { ac_try='test -s conftest.$ac_objext'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; }; then
24765 cat >conftest.$ac_ext <<_ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 $ac_includes_default
24775 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24782 rm -f conftest.$ac_objext
24783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24784 (eval $ac_compile) 2>conftest.er1
24786 grep -v '^ *+' conftest.er1 >conftest.err
24788 cat conftest.err >&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } &&
24791 { ac_try='test -z "$ac_c_werror_flag"
24792 || test ! -s conftest.err'
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); }; } &&
24798 { ac_try='test -s conftest.$ac_objext'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; }; then
24804 ac_hi=$ac_mid; break
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24809 ac_lo=`expr $ac_mid + 1`
24810 if test $ac_lo -le $ac_mid; then
24814 ac_mid=`expr 2 '*' $ac_mid + 1`
24816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24819 echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828 $ac_includes_default
24832 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24839 rm -f conftest.$ac_objext
24840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24841 (eval $ac_compile) 2>conftest.er1
24843 grep -v '^ *+' conftest.er1 >conftest.err
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } &&
24848 { ac_try='test -z "$ac_c_werror_flag"
24849 || test ! -s conftest.err'
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); }; } &&
24855 { ac_try='test -s conftest.$ac_objext'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24873 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882 (eval $ac_compile) 2>conftest.er1
24884 grep -v '^ *+' conftest.er1 >conftest.err
24886 cat conftest.err >&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } &&
24889 { ac_try='test -z "$ac_c_werror_flag"
24890 || test ! -s conftest.err'
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); }; } &&
24896 { ac_try='test -s conftest.$ac_objext'
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_lo=$ac_mid; break
24904 echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24907 ac_hi=`expr '(' $ac_mid ')' - 1`
24908 if test $ac_mid -le $ac_hi; then
24912 ac_mid=`expr 2 '*' $ac_mid`
24914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24925 # Binary search between lo and hi bounds.
24926 while test "x$ac_lo" != "x$ac_hi"; do
24927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24928 cat >conftest.$ac_ext <<_ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h. */
24934 $ac_includes_default
24938 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24945 rm -f conftest.$ac_objext
24946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24947 (eval $ac_compile) 2>conftest.er1
24949 grep -v '^ *+' conftest.er1 >conftest.err
24951 cat conftest.err >&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } &&
24954 { ac_try='test -z "$ac_c_werror_flag"
24955 || test ! -s conftest.err'
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); }; } &&
24961 { ac_try='test -s conftest.$ac_objext'
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; }; then
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24972 ac_lo=`expr '(' $ac_mid ')' + 1`
24974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24977 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
24979 See \`config.log' for more details." >&5
24980 echo "$as_me: error: cannot compute sizeof (int *), 77
24981 See \`config.log' for more details." >&2;}
24982 { (exit 1); exit 1; }; } ;;
24985 if test "$cross_compiling" = yes; then
24986 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24987 See \`config.log' for more details." >&5
24988 echo "$as_me: error: cannot run test program while cross compiling
24989 See \`config.log' for more details." >&2;}
24990 { (exit 1); exit 1; }; }
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 $ac_includes_default
24999 long longval () { return (long) (sizeof (int *)); }
25000 unsigned long ulongval () { return (long) (sizeof (int *)); }
25002 #include <stdlib.h>
25007 FILE *f = fopen ("conftest.val", "w");
25010 if (((long) (sizeof (int *))) < 0)
25012 long i = longval ();
25013 if (i != ((long) (sizeof (int *))))
25015 fprintf (f, "%ld\n", i);
25019 unsigned long i = ulongval ();
25020 if (i != ((long) (sizeof (int *))))
25022 fprintf (f, "%lu\n", i);
25024 exit (ferror (f) || fclose (f) != 0);
25030 rm -f conftest$ac_exeext
25031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032 (eval $ac_link) 2>&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; }; then
25041 ac_cv_sizeof_int_p=`cat conftest.val`
25043 echo "$as_me: program exited with status $ac_status" >&5
25044 echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25047 ( exit $ac_status )
25048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25049 See \`config.log' for more details." >&5
25050 echo "$as_me: error: cannot compute sizeof (int *), 77
25051 See \`config.log' for more details." >&2;}
25052 { (exit 1); exit 1; }; }
25054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25059 ac_cv_sizeof_int_p=0
25062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25063 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25064 cat >>confdefs.h <<_ACEOF
25065 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25070 # Check for sys/types.h types
25071 echo "$as_me:$LINENO: checking for u_int type" >&5
25072 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25073 if test "${ac_cv_have_u_int+set}" = set; then
25074 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 cat >conftest.$ac_ext <<_ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25083 #include <sys/types.h>
25092 rm -f conftest.$ac_objext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25094 (eval $ac_compile) 2>conftest.er1
25096 grep -v '^ *+' conftest.er1 >conftest.err
25098 cat conftest.err >&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } &&
25101 { ac_try='test -z "$ac_c_werror_flag"
25102 || test ! -s conftest.err'
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); }; } &&
25108 { ac_try='test -s conftest.$ac_objext'
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; }; then
25114 ac_cv_have_u_int="yes"
25116 echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ac_cv_have_u_int="no"
25122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25125 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25126 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25127 if test "x$ac_cv_have_u_int" = "xyes" ; then
25128 cat >>confdefs.h <<\_ACEOF
25129 #define HAVE_U_INT 1
25135 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25136 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25137 if test "${ac_cv_have_intmax_t+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 #include <sys/types.h>
25156 rm -f conftest.$ac_objext
25157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25158 (eval $ac_compile) 2>conftest.er1
25160 grep -v '^ *+' conftest.er1 >conftest.err
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } &&
25165 { ac_try='test -z "$ac_c_werror_flag"
25166 || test ! -s conftest.err'
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); }; } &&
25172 { ac_try='test -s conftest.$ac_objext'
25173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25174 (eval $ac_try) 2>&5
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); }; }; then
25178 ac_cv_have_intmax_t="yes"
25180 echo "$as_me: failed program was:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 #include <stdint.h>
25199 rm -f conftest.$ac_objext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25201 (eval $ac_compile) 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
25208 { ac_try='test -z "$ac_c_werror_flag"
25209 || test ! -s conftest.err'
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); }; } &&
25215 { ac_try='test -s conftest.$ac_objext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 ac_cv_have_intmax_t="yes"
25223 echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 ac_cv_have_intmax_t="no"
25229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25237 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25238 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25239 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25240 cat >>confdefs.h <<\_ACEOF
25241 #define HAVE_INTMAX_T 1
25248 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25249 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25250 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 cat >conftest.$ac_ext <<_ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h. */
25260 #include <sys/types.h>
25264 u_intmax_t a; a = 1;
25269 rm -f conftest.$ac_objext
25270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25271 (eval $ac_compile) 2>conftest.er1
25273 grep -v '^ *+' conftest.er1 >conftest.err
25275 cat conftest.err >&5
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); } &&
25278 { ac_try='test -z "$ac_c_werror_flag"
25279 || test ! -s conftest.err'
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); }; } &&
25285 { ac_try='test -s conftest.$ac_objext'
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; }; then
25291 ac_cv_have_u_intmax_t="yes"
25293 echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25297 cat >conftest.$ac_ext <<_ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25303 #include <stdint.h>
25307 u_intmax_t a; a = 1;
25312 rm -f conftest.$ac_objext
25313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25314 (eval $ac_compile) 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } &&
25321 { ac_try='test -z "$ac_c_werror_flag"
25322 || test ! -s conftest.err'
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); }; } &&
25328 { ac_try='test -s conftest.$ac_objext'
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; }; then
25334 ac_cv_have_u_intmax_t="yes"
25336 echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25339 ac_cv_have_u_intmax_t="no"
25342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25349 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25350 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25351 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25352 cat >>confdefs.h <<\_ACEOF
25353 #define HAVE_U_INTMAX_T 1
25360 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25361 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25362 if test "${ac_cv_have_intxx_t+set}" = set; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25366 cat >conftest.$ac_ext <<_ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25372 #include <sys/types.h>
25376 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25381 rm -f conftest.$ac_objext
25382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25383 (eval $ac_compile) 2>conftest.er1
25385 grep -v '^ *+' conftest.er1 >conftest.err
25387 cat conftest.err >&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } &&
25390 { ac_try='test -z "$ac_c_werror_flag"
25391 || test ! -s conftest.err'
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); }; } &&
25397 { ac_try='test -s conftest.$ac_objext'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; }; then
25403 ac_cv_have_intxx_t="yes"
25405 echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25408 ac_cv_have_intxx_t="no"
25411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25414 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25415 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25416 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25417 cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_INTXX_T 1
25424 echo "$as_me:$LINENO: checking for int64_t type" >&5
25425 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25426 if test "${ac_cv_have_int64_t+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 cat >conftest.$ac_ext <<_ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h. */
25436 #include <sys/types.h>
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>conftest.er1
25449 grep -v '^ *+' conftest.er1 >conftest.err
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
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); }; } &&
25461 { ac_try='test -s conftest.$ac_objext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 ac_cv_have_int64_t="yes"
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 ac_cv_have_int64_t="no"
25475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25478 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25479 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25480 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25481 cat >>confdefs.h <<\_ACEOF
25482 #define HAVE_INT64_T 1
25488 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25489 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25490 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 #include <sys/types.h>
25504 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511 (eval $ac_compile) 2>conftest.er1
25513 grep -v '^ *+' conftest.er1 >conftest.err
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
25518 { ac_try='test -z "$ac_c_werror_flag"
25519 || test ! -s conftest.err'
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); }; } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25531 ac_cv_have_u_intxx_t="yes"
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25536 ac_cv_have_u_intxx_t="no"
25539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25542 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25543 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25544 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25545 cat >>confdefs.h <<\_ACEOF
25546 #define HAVE_U_INTXX_T 1
25552 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25553 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25554 if test "${ac_cv_have_u_int64_t+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 #include <sys/types.h>
25568 u_int64_t a; a = 1;
25573 rm -f conftest.$ac_objext
25574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25575 (eval $ac_compile) 2>conftest.er1
25577 grep -v '^ *+' conftest.er1 >conftest.err
25579 cat conftest.err >&5
25580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } &&
25582 { ac_try='test -z "$ac_c_werror_flag"
25583 || test ! -s conftest.err'
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); }; } &&
25589 { ac_try='test -s conftest.$ac_objext'
25590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; }; then
25595 ac_cv_have_u_int64_t="yes"
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 ac_cv_have_u_int64_t="no"
25603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25606 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25607 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25608 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25609 cat >>confdefs.h <<\_ACEOF
25610 #define HAVE_U_INT64_T 1
25616 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25617 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25619 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25620 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25621 cat >conftest.$ac_ext <<_ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 #include <sys/bitypes.h>
25631 int8_t a; int16_t b; int32_t c;
25632 u_int8_t e; u_int16_t f; u_int32_t g;
25633 a = b = c = e = f = g = 1;
25638 rm -f conftest.$ac_objext
25639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25640 (eval $ac_compile) 2>conftest.er1
25642 grep -v '^ *+' conftest.er1 >conftest.err
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } &&
25647 { ac_try='test -z "$ac_c_werror_flag"
25648 || test ! -s conftest.err'
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); }; } &&
25654 { ac_try='test -s conftest.$ac_objext'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 cat >>confdefs.h <<\_ACEOF
25661 #define HAVE_U_INTXX_T 1
25664 cat >>confdefs.h <<\_ACEOF
25665 #define HAVE_INTXX_T 1
25668 cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_SYS_BITYPES_H 1
25672 echo "$as_me:$LINENO: result: yes" >&5
25673 echo "${ECHO_T}yes" >&6
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25678 echo "$as_me:$LINENO: result: no" >&5
25679 echo "${ECHO_T}no" >&6
25682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25685 if test -z "$have_u_intxx_t" ; then
25686 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25687 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25688 if test "${ac_cv_have_uintxx_t+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 cat >conftest.$ac_ext <<_ACEOF
25695 cat confdefs.h >>conftest.$ac_ext
25696 cat >>conftest.$ac_ext <<_ACEOF
25697 /* end confdefs.h. */
25698 #include <sys/types.h>
25702 uint8_t a; uint16_t b;
25703 uint32_t c; a = b = c = 1;
25708 rm -f conftest.$ac_objext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25710 (eval $ac_compile) 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } &&
25717 { ac_try='test -z "$ac_c_werror_flag"
25718 || test ! -s conftest.err'
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); }; } &&
25724 { ac_try='test -s conftest.$ac_objext'
25725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726 (eval $ac_try) 2>&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_cv_have_uintxx_t="yes"
25732 echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735 ac_cv_have_uintxx_t="no"
25738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25742 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25743 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25744 cat >>confdefs.h <<\_ACEOF
25745 #define HAVE_UINTXX_T 1
25751 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25752 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25754 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25755 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25756 cat >conftest.$ac_ext <<_ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25762 #include <sys/bitypes.h>
25766 int64_t a; u_int64_t b;
25772 rm -f conftest.$ac_objext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774 (eval $ac_compile) 2>conftest.er1
25776 grep -v '^ *+' conftest.er1 >conftest.err
25778 cat conftest.err >&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } &&
25781 { ac_try='test -z "$ac_c_werror_flag"
25782 || test ! -s conftest.err'
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); }; } &&
25788 { ac_try='test -s conftest.$ac_objext'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
25794 cat >>confdefs.h <<\_ACEOF
25795 #define HAVE_U_INT64_T 1
25798 cat >>confdefs.h <<\_ACEOF
25799 #define HAVE_INT64_T 1
25802 echo "$as_me:$LINENO: result: yes" >&5
25803 echo "${ECHO_T}yes" >&6
25805 echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25808 echo "$as_me:$LINENO: result: no" >&5
25809 echo "${ECHO_T}no" >&6
25812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25815 if (test -z "$have_uintxx_t" && \
25816 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25818 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25819 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25826 #include <sys/bitypes.h>
25830 uint8_t a; uint16_t b;
25831 uint32_t c; a = b = c = 1;
25836 rm -f conftest.$ac_objext
25837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838 (eval $ac_compile) 2>conftest.er1
25840 grep -v '^ *+' conftest.er1 >conftest.err
25842 cat conftest.err >&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } &&
25845 { ac_try='test -z "$ac_c_werror_flag"
25846 || test ! -s conftest.err'
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); }; } &&
25852 { ac_try='test -s conftest.$ac_objext'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858 cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_UINTXX_T 1
25862 echo "$as_me:$LINENO: result: yes" >&5
25863 echo "${ECHO_T}yes" >&6
25865 echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 echo "$as_me:$LINENO: result: no" >&5
25869 echo "${ECHO_T}no" >&6
25872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25909 echo "$as_me:$LINENO: checking for $ac_func" >&5
25910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25911 if eval "test \"\${$as_ac_var+set}\" = set"; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 cat >conftest.$ac_ext <<_ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25922 #define $ac_func innocuous_$ac_func
25924 /* System header to define __stub macros and hopefully few prototypes,
25925 which can conflict with char $ac_func (); below.
25926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25927 <limits.h> exists even on freestanding compilers. */
25930 # include <limits.h>
25932 # include <assert.h>
25937 /* Override any gcc2 internal prototype to avoid an error. */
25942 /* We use char because int might match the return type of a gcc2
25943 builtin and then its argument prototype would still apply. */
25945 /* The GNU C library defines this for functions which it implements
25946 to always fail with ENOSYS. Some functions are actually named
25947 something starting with __ and the normal name is an alias. */
25948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25951 char (*f) () = $ac_func;
25960 return f != $ac_func;
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25967 (eval $ac_link) 2>conftest.er1
25969 grep -v '^ *+' conftest.er1 >conftest.err
25971 cat conftest.err >&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } &&
25974 { ac_try='test -z "$ac_c_werror_flag"
25975 || test ! -s conftest.err'
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); }; } &&
25981 { ac_try='test -s conftest$ac_exeext'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
25987 eval "$as_ac_var=yes"
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25992 eval "$as_ac_var=no"
25994 rm -f conftest.err conftest.$ac_objext \
25995 conftest$ac_exeext conftest.$ac_ext
25997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25999 if test `eval echo '${'$as_ac_var'}'` = yes; then
26000 cat >>confdefs.h <<_ACEOF
26001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26005 echo 'configure: cannot find needed function.'; exit 1
26012 for ac_func in fchdir
26014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26015 echo "$as_me:$LINENO: checking for $ac_func" >&5
26016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26017 if eval "test \"\${$as_ac_var+set}\" = set"; then
26018 echo $ECHO_N "(cached) $ECHO_C" >&6
26020 cat >conftest.$ac_ext <<_ACEOF
26023 cat confdefs.h >>conftest.$ac_ext
26024 cat >>conftest.$ac_ext <<_ACEOF
26025 /* end confdefs.h. */
26026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26028 #define $ac_func innocuous_$ac_func
26030 /* System header to define __stub macros and hopefully few prototypes,
26031 which can conflict with char $ac_func (); below.
26032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26033 <limits.h> exists even on freestanding compilers. */
26036 # include <limits.h>
26038 # include <assert.h>
26043 /* Override any gcc2 internal prototype to avoid an error. */
26048 /* We use char because int might match the return type of a gcc2
26049 builtin and then its argument prototype would still apply. */
26051 /* The GNU C library defines this for functions which it implements
26052 to always fail with ENOSYS. Some functions are actually named
26053 something starting with __ and the normal name is an alias. */
26054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26057 char (*f) () = $ac_func;
26066 return f != $ac_func;
26071 rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26073 (eval $ac_link) 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
26080 { ac_try='test -z "$ac_c_werror_flag"
26081 || test ! -s conftest.err'
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); }; } &&
26087 { ac_try='test -s conftest$ac_exeext'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; }; then
26093 eval "$as_ac_var=yes"
26095 echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26098 eval "$as_ac_var=no"
26100 rm -f conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
26103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26105 if test `eval echo '${'$as_ac_var'}'` = yes; then
26106 cat >>confdefs.h <<_ACEOF
26107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26109 cat >>confdefs.h <<\_ACEOF
26110 #define HAVE_FCHDIR 1
26117 for ac_func in strtoll
26119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26120 echo "$as_me:$LINENO: checking for $ac_func" >&5
26121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26122 if eval "test \"\${$as_ac_var+set}\" = set"; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26125 cat >conftest.$ac_ext <<_ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h. */
26131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26133 #define $ac_func innocuous_$ac_func
26135 /* System header to define __stub macros and hopefully few prototypes,
26136 which can conflict with char $ac_func (); below.
26137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26138 <limits.h> exists even on freestanding compilers. */
26141 # include <limits.h>
26143 # include <assert.h>
26148 /* Override any gcc2 internal prototype to avoid an error. */
26153 /* We use char because int might match the return type of a gcc2
26154 builtin and then its argument prototype would still apply. */
26156 /* The GNU C library defines this for functions which it implements
26157 to always fail with ENOSYS. Some functions are actually named
26158 something starting with __ and the normal name is an alias. */
26159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26162 char (*f) () = $ac_func;
26171 return f != $ac_func;
26176 rm -f conftest.$ac_objext conftest$ac_exeext
26177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26178 (eval $ac_link) 2>conftest.er1
26180 grep -v '^ *+' conftest.er1 >conftest.err
26182 cat conftest.err >&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } &&
26185 { ac_try='test -z "$ac_c_werror_flag"
26186 || test ! -s conftest.err'
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); }; } &&
26192 { ac_try='test -s conftest$ac_exeext'
26193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194 (eval $ac_try) 2>&5
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); }; }; then
26198 eval "$as_ac_var=yes"
26200 echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26203 eval "$as_ac_var=no"
26205 rm -f conftest.err conftest.$ac_objext \
26206 conftest$ac_exeext conftest.$ac_ext
26208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26210 if test `eval echo '${'$as_ac_var'}'` = yes; then
26211 cat >>confdefs.h <<_ACEOF
26212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26214 cat >>confdefs.h <<\_ACEOF
26215 #define HAVE_STRTOLL 1
26223 for ac_func in chflags
26225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26226 echo "$as_me:$LINENO: checking for $ac_func" >&5
26227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26228 if eval "test \"\${$as_ac_var+set}\" = set"; then
26229 echo $ECHO_N "(cached) $ECHO_C" >&6
26231 cat >conftest.$ac_ext <<_ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26239 #define $ac_func innocuous_$ac_func
26241 /* System header to define __stub macros and hopefully few prototypes,
26242 which can conflict with char $ac_func (); below.
26243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26244 <limits.h> exists even on freestanding compilers. */
26247 # include <limits.h>
26249 # include <assert.h>
26254 /* Override any gcc2 internal prototype to avoid an error. */
26259 /* We use char because int might match the return type of a gcc2
26260 builtin and then its argument prototype would still apply. */
26262 /* The GNU C library defines this for functions which it implements
26263 to always fail with ENOSYS. Some functions are actually named
26264 something starting with __ and the normal name is an alias. */
26265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26268 char (*f) () = $ac_func;
26277 return f != $ac_func;
26282 rm -f conftest.$ac_objext conftest$ac_exeext
26283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26284 (eval $ac_link) 2>conftest.er1
26286 grep -v '^ *+' conftest.er1 >conftest.err
26288 cat conftest.err >&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } &&
26291 { ac_try='test -z "$ac_c_werror_flag"
26292 || test ! -s conftest.err'
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); }; } &&
26298 { ac_try='test -s conftest$ac_exeext'
26299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300 (eval $ac_try) 2>&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; }; then
26304 eval "$as_ac_var=yes"
26306 echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 eval "$as_ac_var=no"
26311 rm -f conftest.err conftest.$ac_objext \
26312 conftest$ac_exeext conftest.$ac_ext
26314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26316 if test `eval echo '${'$as_ac_var'}'` = yes; then
26317 cat >>confdefs.h <<_ACEOF
26318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26329 for ac_func in snprintf vsnprintf gethostid fseeko
26331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26332 echo "$as_me:$LINENO: checking for $ac_func" >&5
26333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26334 if eval "test \"\${$as_ac_var+set}\" = set"; then
26335 echo $ECHO_N "(cached) $ECHO_C" >&6
26337 cat >conftest.$ac_ext <<_ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h. */
26343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26345 #define $ac_func innocuous_$ac_func
26347 /* System header to define __stub macros and hopefully few prototypes,
26348 which can conflict with char $ac_func (); below.
26349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26350 <limits.h> exists even on freestanding compilers. */
26353 # include <limits.h>
26355 # include <assert.h>
26360 /* Override any gcc2 internal prototype to avoid an error. */
26365 /* We use char because int might match the return type of a gcc2
26366 builtin and then its argument prototype would still apply. */
26368 /* The GNU C library defines this for functions which it implements
26369 to always fail with ENOSYS. Some functions are actually named
26370 something starting with __ and the normal name is an alias. */
26371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26374 char (*f) () = $ac_func;
26383 return f != $ac_func;
26388 rm -f conftest.$ac_objext conftest$ac_exeext
26389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26390 (eval $ac_link) 2>conftest.er1
26392 grep -v '^ *+' conftest.er1 >conftest.err
26394 cat conftest.err >&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } &&
26397 { ac_try='test -z "$ac_c_werror_flag"
26398 || test ! -s conftest.err'
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); }; } &&
26404 { ac_try='test -s conftest$ac_exeext'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; }; then
26410 eval "$as_ac_var=yes"
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 eval "$as_ac_var=no"
26417 rm -f conftest.err conftest.$ac_objext \
26418 conftest$ac_exeext conftest.$ac_ext
26420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26422 if test `eval echo '${'$as_ac_var'}'` = yes; then
26423 cat >>confdefs.h <<_ACEOF
26424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26435 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26438 echo "$as_me:$LINENO: checking for $ac_func" >&5
26439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26440 if eval "test \"\${$as_ac_var+set}\" = set"; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 cat >conftest.$ac_ext <<_ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26451 #define $ac_func innocuous_$ac_func
26453 /* System header to define __stub macros and hopefully few prototypes,
26454 which can conflict with char $ac_func (); below.
26455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26456 <limits.h> exists even on freestanding compilers. */
26459 # include <limits.h>
26461 # include <assert.h>
26466 /* Override any gcc2 internal prototype to avoid an error. */
26471 /* We use char because int might match the return type of a gcc2
26472 builtin and then its argument prototype would still apply. */
26474 /* The GNU C library defines this for functions which it implements
26475 to always fail with ENOSYS. Some functions are actually named
26476 something starting with __ and the normal name is an alias. */
26477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26480 char (*f) () = $ac_func;
26489 return f != $ac_func;
26494 rm -f conftest.$ac_objext conftest$ac_exeext
26495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26496 (eval $ac_link) 2>conftest.er1
26498 grep -v '^ *+' conftest.er1 >conftest.err
26500 cat conftest.err >&5
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } &&
26503 { ac_try='test -z "$ac_c_werror_flag"
26504 || test ! -s conftest.err'
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); }; } &&
26510 { ac_try='test -s conftest$ac_exeext'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
26516 eval "$as_ac_var=yes"
26518 echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26521 eval "$as_ac_var=no"
26523 rm -f conftest.err conftest.$ac_objext \
26524 conftest$ac_exeext conftest.$ac_ext
26526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26528 if test `eval echo '${'$as_ac_var'}'` = yes; then
26529 cat >>confdefs.h <<_ACEOF
26530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26537 # If resolver functions are not in libc check for -lnsl or -lresolv.
26538 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26539 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26540 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26541 echo $ECHO_N "(cached) $ECHO_C" >&6
26543 cat >conftest.$ac_ext <<_ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h. */
26549 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26551 #define gethostbyname_r innocuous_gethostbyname_r
26553 /* System header to define __stub macros and hopefully few prototypes,
26554 which can conflict with char gethostbyname_r (); below.
26555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26556 <limits.h> exists even on freestanding compilers. */
26559 # include <limits.h>
26561 # include <assert.h>
26564 #undef gethostbyname_r
26566 /* Override any gcc2 internal prototype to avoid an error. */
26571 /* We use char because int might match the return type of a gcc2
26572 builtin and then its argument prototype would still apply. */
26573 char gethostbyname_r ();
26574 /* The GNU C library defines this for functions which it implements
26575 to always fail with ENOSYS. Some functions are actually named
26576 something starting with __ and the normal name is an alias. */
26577 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26580 char (*f) () = gethostbyname_r;
26589 return f != gethostbyname_r;
26594 rm -f conftest.$ac_objext conftest$ac_exeext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26596 (eval $ac_link) 2>conftest.er1
26598 grep -v '^ *+' conftest.er1 >conftest.err
26600 cat conftest.err >&5
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } &&
26603 { ac_try='test -z "$ac_c_werror_flag"
26604 || test ! -s conftest.err'
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); }; } &&
26610 { ac_try='test -s conftest$ac_exeext'
26611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612 (eval $ac_try) 2>&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); }; }; then
26616 ac_cv_func_gethostbyname_r=yes
26618 echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26621 ac_cv_func_gethostbyname_r=no
26623 rm -f conftest.err conftest.$ac_objext \
26624 conftest$ac_exeext conftest.$ac_ext
26626 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26627 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26628 if test $ac_cv_func_gethostbyname_r = yes; then
26629 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26630 echo "${ECHO_T}using libc's resolver" >&6
26633 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26634 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26635 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26636 echo $ECHO_N "(cached) $ECHO_C" >&6
26638 ac_check_lib_save_LIBS=$LIBS
26640 cat >conftest.$ac_ext <<_ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h. */
26647 /* Override any gcc2 internal prototype to avoid an error. */
26651 /* We use char because int might match the return type of a gcc2
26652 builtin and then its argument prototype would still apply. */
26653 char gethostbyname_r ();
26657 gethostbyname_r ();
26662 rm -f conftest.$ac_objext conftest$ac_exeext
26663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26664 (eval $ac_link) 2>conftest.er1
26666 grep -v '^ *+' conftest.er1 >conftest.err
26668 cat conftest.err >&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } &&
26671 { ac_try='test -z "$ac_c_werror_flag"
26672 || test ! -s conftest.err'
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); }; } &&
26678 { ac_try='test -s conftest$ac_exeext'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; }; then
26684 ac_cv_lib_nsl_gethostbyname_r=yes
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ac_cv_lib_nsl_gethostbyname_r=no
26691 rm -f conftest.err conftest.$ac_objext \
26692 conftest$ac_exeext conftest.$ac_ext
26693 LIBS=$ac_check_lib_save_LIBS
26695 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26696 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26697 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26698 cat >>confdefs.h <<_ACEOF
26699 #define HAVE_LIBNSL 1
26707 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26708 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26709 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26710 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 ac_check_lib_save_LIBS=$LIBS
26713 LIBS="-lresolv $LIBS"
26714 cat >conftest.$ac_ext <<_ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h. */
26721 /* Override any gcc2 internal prototype to avoid an error. */
26725 /* We use char because int might match the return type of a gcc2
26726 builtin and then its argument prototype would still apply. */
26727 char gethostbyname_r ();
26731 gethostbyname_r ();
26736 rm -f conftest.$ac_objext conftest$ac_exeext
26737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26738 (eval $ac_link) 2>conftest.er1
26740 grep -v '^ *+' conftest.er1 >conftest.err
26742 cat conftest.err >&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } &&
26745 { ac_try='test -z "$ac_c_werror_flag"
26746 || test ! -s conftest.err'
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); }; } &&
26752 { ac_try='test -s conftest$ac_exeext'
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; }; then
26758 ac_cv_lib_resolv_gethostbyname_r=yes
26760 echo "$as_me: failed program was:" >&5
26761 sed 's/^/| /' conftest.$ac_ext >&5
26763 ac_cv_lib_resolv_gethostbyname_r=no
26765 rm -f conftest.err conftest.$ac_objext \
26766 conftest$ac_exeext conftest.$ac_ext
26767 LIBS=$ac_check_lib_save_LIBS
26769 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26770 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26771 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26772 cat >>confdefs.h <<_ACEOF
26773 #define HAVE_LIBRESOLV 1
26776 LIBS="-lresolv $LIBS"
26786 for ac_func in inet_pton
26788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26789 echo "$as_me:$LINENO: checking for $ac_func" >&5
26790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26791 if eval "test \"\${$as_ac_var+set}\" = set"; then
26792 echo $ECHO_N "(cached) $ECHO_C" >&6
26794 cat >conftest.$ac_ext <<_ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h. */
26800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26802 #define $ac_func innocuous_$ac_func
26804 /* System header to define __stub macros and hopefully few prototypes,
26805 which can conflict with char $ac_func (); below.
26806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26807 <limits.h> exists even on freestanding compilers. */
26810 # include <limits.h>
26812 # include <assert.h>
26817 /* Override any gcc2 internal prototype to avoid an error. */
26822 /* We use char because int might match the return type of a gcc2
26823 builtin and then its argument prototype would still apply. */
26825 /* The GNU C library defines this for functions which it implements
26826 to always fail with ENOSYS. Some functions are actually named
26827 something starting with __ and the normal name is an alias. */
26828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26831 char (*f) () = $ac_func;
26840 return f != $ac_func;
26845 rm -f conftest.$ac_objext conftest$ac_exeext
26846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26847 (eval $ac_link) 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } &&
26854 { ac_try='test -z "$ac_c_werror_flag"
26855 || test ! -s conftest.err'
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); }; } &&
26861 { ac_try='test -s conftest$ac_exeext'
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; }; then
26867 eval "$as_ac_var=yes"
26869 echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26872 eval "$as_ac_var=no"
26874 rm -f conftest.err conftest.$ac_objext \
26875 conftest$ac_exeext conftest.$ac_ext
26877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26879 if test `eval echo '${'$as_ac_var'}'` = yes; then
26880 cat >>confdefs.h <<_ACEOF
26881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26883 cat >>confdefs.h <<\_ACEOF
26884 #define HAVE_INET_PTON 1
26891 for ac_func in inet_ntop
26893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26894 echo "$as_me:$LINENO: checking for $ac_func" >&5
26895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26896 if eval "test \"\${$as_ac_var+set}\" = set"; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26907 #define $ac_func innocuous_$ac_func
26909 /* System header to define __stub macros and hopefully few prototypes,
26910 which can conflict with char $ac_func (); below.
26911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26912 <limits.h> exists even on freestanding compilers. */
26915 # include <limits.h>
26917 # include <assert.h>
26922 /* Override any gcc2 internal prototype to avoid an error. */
26927 /* We use char because int might match the return type of a gcc2
26928 builtin and then its argument prototype would still apply. */
26930 /* The GNU C library defines this for functions which it implements
26931 to always fail with ENOSYS. Some functions are actually named
26932 something starting with __ and the normal name is an alias. */
26933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26936 char (*f) () = $ac_func;
26945 return f != $ac_func;
26950 rm -f conftest.$ac_objext conftest$ac_exeext
26951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26952 (eval $ac_link) 2>conftest.er1
26954 grep -v '^ *+' conftest.er1 >conftest.err
26956 cat conftest.err >&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); } &&
26959 { ac_try='test -z "$ac_c_werror_flag"
26960 || test ! -s conftest.err'
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); }; } &&
26966 { ac_try='test -s conftest$ac_exeext'
26967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26968 (eval $ac_try) 2>&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; }; then
26972 eval "$as_ac_var=yes"
26974 echo "$as_me: failed program was:" >&5
26975 sed 's/^/| /' conftest.$ac_ext >&5
26977 eval "$as_ac_var=no"
26979 rm -f conftest.err conftest.$ac_objext \
26980 conftest$ac_exeext conftest.$ac_ext
26982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26984 if test `eval echo '${'$as_ac_var'}'` = yes; then
26985 cat >>confdefs.h <<_ACEOF
26986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26988 cat >>confdefs.h <<\_ACEOF
26989 #define HAVE_INET_NTOP 1
26996 for ac_func in gethostbyname2
26998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26999 echo "$as_me:$LINENO: checking for $ac_func" >&5
27000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27001 if eval "test \"\${$as_ac_var+set}\" = set"; then
27002 echo $ECHO_N "(cached) $ECHO_C" >&6
27004 cat >conftest.$ac_ext <<_ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27012 #define $ac_func innocuous_$ac_func
27014 /* System header to define __stub macros and hopefully few prototypes,
27015 which can conflict with char $ac_func (); below.
27016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27017 <limits.h> exists even on freestanding compilers. */
27020 # include <limits.h>
27022 # include <assert.h>
27027 /* Override any gcc2 internal prototype to avoid an error. */
27032 /* We use char because int might match the return type of a gcc2
27033 builtin and then its argument prototype would still apply. */
27035 /* The GNU C library defines this for functions which it implements
27036 to always fail with ENOSYS. Some functions are actually named
27037 something starting with __ and the normal name is an alias. */
27038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27041 char (*f) () = $ac_func;
27050 return f != $ac_func;
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057 (eval $ac_link) 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
27064 { ac_try='test -z "$ac_c_werror_flag"
27065 || test ! -s conftest.err'
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); }; } &&
27071 { ac_try='test -s conftest$ac_exeext'
27072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073 (eval $ac_try) 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 eval "$as_ac_var=yes"
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 eval "$as_ac_var=no"
27084 rm -f conftest.err conftest.$ac_objext \
27085 conftest$ac_exeext conftest.$ac_ext
27087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27089 if test `eval echo '${'$as_ac_var'}'` = yes; then
27090 cat >>confdefs.h <<_ACEOF
27091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27093 cat >>confdefs.h <<\_ACEOF
27094 #define HAVE_GETHOSTBYNAME2 1
27101 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27102 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27103 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27106 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27112 #include <sys/socket.h>
27116 struct sockaddr s; s.sa_len;
27121 rm -f conftest.$ac_objext
27122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27123 (eval $ac_compile) 2>conftest.er1
27125 grep -v '^ *+' conftest.er1 >conftest.err
27127 cat conftest.err >&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); } &&
27130 { ac_try='test -z "$ac_c_werror_flag"
27131 || test ! -s conftest.err'
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); }; } &&
27137 { ac_try='test -s conftest.$ac_objext'
27138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27139 (eval $ac_try) 2>&5
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); }; }; then
27143 ac_cv_struct_sockaddr_sa_len=yes
27145 echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27148 ac_cv_struct_sockaddr_sa_len=no
27150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27152 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27153 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27155 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27157 cat >>confdefs.h <<\_ACEOF
27158 #define HAVE_SA_LEN 1
27164 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27165 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27166 if test "${ac_cv_ipv6_support+set}" = set; then
27167 echo $ECHO_N "(cached) $ECHO_C" >&6
27169 cat >conftest.$ac_ext <<_ACEOF
27172 cat confdefs.h >>conftest.$ac_ext
27173 cat >>conftest.$ac_ext <<_ACEOF
27174 /* end confdefs.h. */
27175 #include <sys/types.h>
27176 #include <sys/socket.h>
27177 #include <netinet/in.h>
27181 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189 (eval $ac_link) 2>conftest.er1
27191 grep -v '^ *+' conftest.er1 >conftest.err
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag"
27197 || test ! -s conftest.err'
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); }; } &&
27203 { ac_try='test -s conftest$ac_exeext'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; }; then
27209 ac_cv_ipv6_support=yes
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_cv_ipv6_support=no
27216 rm -f conftest.err conftest.$ac_objext \
27217 conftest$ac_exeext conftest.$ac_ext
27219 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27220 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27222 if test "$ac_cv_ipv6_support" = yes; then
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_IPV6 1
27233 for ac_func in strftime
27235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27236 echo "$as_me:$LINENO: checking for $ac_func" >&5
27237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_var+set}\" = set"; then
27239 echo $ECHO_N "(cached) $ECHO_C" >&6
27241 cat >conftest.$ac_ext <<_ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h. */
27247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27249 #define $ac_func innocuous_$ac_func
27251 /* System header to define __stub macros and hopefully few prototypes,
27252 which can conflict with char $ac_func (); below.
27253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27254 <limits.h> exists even on freestanding compilers. */
27257 # include <limits.h>
27259 # include <assert.h>
27264 /* Override any gcc2 internal prototype to avoid an error. */
27269 /* We use char because int might match the return type of a gcc2
27270 builtin and then its argument prototype would still apply. */
27272 /* The GNU C library defines this for functions which it implements
27273 to always fail with ENOSYS. Some functions are actually named
27274 something starting with __ and the normal name is an alias. */
27275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27278 char (*f) () = $ac_func;
27287 return f != $ac_func;
27292 rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27294 (eval $ac_link) 2>conftest.er1
27296 grep -v '^ *+' conftest.er1 >conftest.err
27298 cat conftest.err >&5
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); } &&
27301 { ac_try='test -z "$ac_c_werror_flag"
27302 || test ! -s conftest.err'
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); }; } &&
27308 { ac_try='test -s conftest$ac_exeext'
27309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310 (eval $ac_try) 2>&5
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
27314 eval "$as_ac_var=yes"
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 eval "$as_ac_var=no"
27321 rm -f conftest.err conftest.$ac_objext \
27322 conftest$ac_exeext conftest.$ac_ext
27324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27326 if test `eval echo '${'$as_ac_var'}'` = yes; then
27327 cat >>confdefs.h <<_ACEOF
27328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27332 # strftime is in -lintl on SCO UNIX.
27333 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27334 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27335 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27338 ac_check_lib_save_LIBS=$LIBS
27339 LIBS="-lintl $LIBS"
27340 cat >conftest.$ac_ext <<_ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h. */
27347 /* Override any gcc2 internal prototype to avoid an error. */
27351 /* We use char because int might match the return type of a gcc2
27352 builtin and then its argument prototype would still apply. */
27362 rm -f conftest.$ac_objext conftest$ac_exeext
27363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27364 (eval $ac_link) 2>conftest.er1
27366 grep -v '^ *+' conftest.er1 >conftest.err
27368 cat conftest.err >&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
27371 { ac_try='test -z "$ac_c_werror_flag"
27372 || test ! -s conftest.err'
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); }; } &&
27378 { ac_try='test -s conftest$ac_exeext'
27379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380 (eval $ac_try) 2>&5
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; }; then
27384 ac_cv_lib_intl_strftime=yes
27386 echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 ac_cv_lib_intl_strftime=no
27391 rm -f conftest.err conftest.$ac_objext \
27392 conftest$ac_exeext conftest.$ac_ext
27393 LIBS=$ac_check_lib_save_LIBS
27395 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27396 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27397 if test $ac_cv_lib_intl_strftime = yes; then
27398 cat >>confdefs.h <<\_ACEOF
27399 #define HAVE_STRFTIME 1
27402 LIBS="-lintl $LIBS"
27409 for ac_func in vprintf
27411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27412 echo "$as_me:$LINENO: checking for $ac_func" >&5
27413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27414 if eval "test \"\${$as_ac_var+set}\" = set"; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27417 cat >conftest.$ac_ext <<_ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27425 #define $ac_func innocuous_$ac_func
27427 /* System header to define __stub macros and hopefully few prototypes,
27428 which can conflict with char $ac_func (); below.
27429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27430 <limits.h> exists even on freestanding compilers. */
27433 # include <limits.h>
27435 # include <assert.h>
27440 /* Override any gcc2 internal prototype to avoid an error. */
27445 /* We use char because int might match the return type of a gcc2
27446 builtin and then its argument prototype would still apply. */
27448 /* The GNU C library defines this for functions which it implements
27449 to always fail with ENOSYS. Some functions are actually named
27450 something starting with __ and the normal name is an alias. */
27451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27454 char (*f) () = $ac_func;
27463 return f != $ac_func;
27468 rm -f conftest.$ac_objext conftest$ac_exeext
27469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27470 (eval $ac_link) 2>conftest.er1
27472 grep -v '^ *+' conftest.er1 >conftest.err
27474 cat conftest.err >&5
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); } &&
27477 { ac_try='test -z "$ac_c_werror_flag"
27478 || test ! -s conftest.err'
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); }; } &&
27484 { ac_try='test -s conftest$ac_exeext'
27485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486 (eval $ac_try) 2>&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 eval "$as_ac_var=yes"
27492 echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27495 eval "$as_ac_var=no"
27497 rm -f conftest.err conftest.$ac_objext \
27498 conftest$ac_exeext conftest.$ac_ext
27500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27502 if test `eval echo '${'$as_ac_var'}'` = yes; then
27503 cat >>confdefs.h <<_ACEOF
27504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27507 echo "$as_me:$LINENO: checking for _doprnt" >&5
27508 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27509 if test "${ac_cv_func__doprnt+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27518 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27520 #define _doprnt innocuous__doprnt
27522 /* System header to define __stub macros and hopefully few prototypes,
27523 which can conflict with char _doprnt (); below.
27524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27525 <limits.h> exists even on freestanding compilers. */
27528 # include <limits.h>
27530 # include <assert.h>
27535 /* Override any gcc2 internal prototype to avoid an error. */
27540 /* We use char because int might match the return type of a gcc2
27541 builtin and then its argument prototype would still apply. */
27543 /* The GNU C library defines this for functions which it implements
27544 to always fail with ENOSYS. Some functions are actually named
27545 something starting with __ and the normal name is an alias. */
27546 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27549 char (*f) () = _doprnt;
27558 return f != _doprnt;
27563 rm -f conftest.$ac_objext conftest$ac_exeext
27564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27565 (eval $ac_link) 2>conftest.er1
27567 grep -v '^ *+' conftest.er1 >conftest.err
27569 cat conftest.err >&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } &&
27572 { ac_try='test -z "$ac_c_werror_flag"
27573 || test ! -s conftest.err'
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); }; } &&
27579 { ac_try='test -s conftest$ac_exeext'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 ac_cv_func__doprnt=yes
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27590 ac_cv_func__doprnt=no
27592 rm -f conftest.err conftest.$ac_objext \
27593 conftest$ac_exeext conftest.$ac_ext
27595 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27596 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27597 if test $ac_cv_func__doprnt = yes; then
27599 cat >>confdefs.h <<\_ACEOF
27600 #define HAVE_DOPRNT 1
27609 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27610 # for constant arguments. Useless!
27611 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27612 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27613 if test "${ac_cv_working_alloca_h+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 cat >conftest.$ac_ext <<_ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h. */
27622 #include <alloca.h>
27626 char *p = (char *) alloca (2 * sizeof (int));
27631 rm -f conftest.$ac_objext conftest$ac_exeext
27632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27633 (eval $ac_link) 2>conftest.er1
27635 grep -v '^ *+' conftest.er1 >conftest.err
27637 cat conftest.err >&5
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } &&
27640 { ac_try='test -z "$ac_c_werror_flag"
27641 || test ! -s conftest.err'
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); }; } &&
27647 { ac_try='test -s conftest$ac_exeext'
27648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649 (eval $ac_try) 2>&5
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); }; }; then
27653 ac_cv_working_alloca_h=yes
27655 echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27658 ac_cv_working_alloca_h=no
27660 rm -f conftest.err conftest.$ac_objext \
27661 conftest$ac_exeext conftest.$ac_ext
27663 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27664 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27665 if test $ac_cv_working_alloca_h = yes; then
27667 cat >>confdefs.h <<\_ACEOF
27668 #define HAVE_ALLOCA_H 1
27673 echo "$as_me:$LINENO: checking for alloca" >&5
27674 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27675 if test "${ac_cv_func_alloca_works+set}" = set; then
27676 echo $ECHO_N "(cached) $ECHO_C" >&6
27678 cat >conftest.$ac_ext <<_ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h. */
27685 # define alloca __builtin_alloca
27688 # include <malloc.h>
27689 # define alloca _alloca
27692 # include <alloca.h>
27697 # ifndef alloca /* predefined by HP cc +Olibcalls */
27708 char *p = (char *) alloca (1);
27713 rm -f conftest.$ac_objext conftest$ac_exeext
27714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27715 (eval $ac_link) 2>conftest.er1
27717 grep -v '^ *+' conftest.er1 >conftest.err
27719 cat conftest.err >&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } &&
27722 { ac_try='test -z "$ac_c_werror_flag"
27723 || test ! -s conftest.err'
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); }; } &&
27729 { ac_try='test -s conftest$ac_exeext'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; }; then
27735 ac_cv_func_alloca_works=yes
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27740 ac_cv_func_alloca_works=no
27742 rm -f conftest.err conftest.$ac_objext \
27743 conftest$ac_exeext conftest.$ac_ext
27745 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27746 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27748 if test $ac_cv_func_alloca_works = yes; then
27750 cat >>confdefs.h <<\_ACEOF
27751 #define HAVE_ALLOCA 1
27755 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27756 # that cause trouble. Some versions do not even contain alloca or
27757 # contain a buggy version. If you still want to use their alloca,
27758 # use ar to extract alloca.o from them instead of compiling alloca.c.
27760 ALLOCA=alloca.$ac_objext
27762 cat >>confdefs.h <<\_ACEOF
27767 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27768 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27769 if test "${ac_cv_os_cray+set}" = set; then
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27772 cat >conftest.$ac_ext <<_ACEOF
27775 cat confdefs.h >>conftest.$ac_ext
27776 cat >>conftest.$ac_ext <<_ACEOF
27777 /* end confdefs.h. */
27778 #if defined(CRAY) && ! defined(CRAY2)
27785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27786 $EGREP "webecray" >/dev/null 2>&1; then
27794 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27795 echo "${ECHO_T}$ac_cv_os_cray" >&6
27796 if test $ac_cv_os_cray = yes; then
27797 for ac_func in _getb67 GETB67 getb67; do
27798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799 echo "$as_me:$LINENO: checking for $ac_func" >&5
27800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801 if eval "test \"\${$as_ac_var+set}\" = set"; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27812 #define $ac_func innocuous_$ac_func
27814 /* System header to define __stub macros and hopefully few prototypes,
27815 which can conflict with char $ac_func (); below.
27816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27817 <limits.h> exists even on freestanding compilers. */
27820 # include <limits.h>
27822 # include <assert.h>
27827 /* Override any gcc2 internal prototype to avoid an error. */
27832 /* We use char because int might match the return type of a gcc2
27833 builtin and then its argument prototype would still apply. */
27835 /* The GNU C library defines this for functions which it implements
27836 to always fail with ENOSYS. Some functions are actually named
27837 something starting with __ and the normal name is an alias. */
27838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27841 char (*f) () = $ac_func;
27850 return f != $ac_func;
27855 rm -f conftest.$ac_objext conftest$ac_exeext
27856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27857 (eval $ac_link) 2>conftest.er1
27859 grep -v '^ *+' conftest.er1 >conftest.err
27861 cat conftest.err >&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } &&
27864 { ac_try='test -z "$ac_c_werror_flag"
27865 || test ! -s conftest.err'
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); }; } &&
27871 { ac_try='test -s conftest$ac_exeext'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; }; then
27877 eval "$as_ac_var=yes"
27879 echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27882 eval "$as_ac_var=no"
27884 rm -f conftest.err conftest.$ac_objext \
27885 conftest$ac_exeext conftest.$ac_ext
27887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27889 if test `eval echo '${'$as_ac_var'}'` = yes; then
27891 cat >>confdefs.h <<_ACEOF
27892 #define CRAY_STACKSEG_END $ac_func
27901 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27902 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27903 if test "${ac_cv_c_stack_direction+set}" = set; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27906 if test "$cross_compiling" = yes; then
27907 ac_cv_c_stack_direction=0
27909 cat >conftest.$ac_ext <<_ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27916 find_stack_direction ()
27918 static char *addr = 0;
27923 return find_stack_direction ();
27926 return (&dummy > addr) ? 1 : -1;
27932 exit (find_stack_direction () < 0);
27935 rm -f conftest$ac_exeext
27936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27937 (eval $ac_link) 2>&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27942 (eval $ac_try) 2>&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); }; }; then
27946 ac_cv_c_stack_direction=1
27948 echo "$as_me: program exited with status $ac_status" >&5
27949 echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27952 ( exit $ac_status )
27953 ac_cv_c_stack_direction=-1
27955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27958 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27959 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27961 cat >>confdefs.h <<_ACEOF
27962 #define STACK_DIRECTION $ac_cv_c_stack_direction
27968 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
27969 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
27970 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
27971 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27974 ac_check_lib_save_LIBS=$LIBS
27976 cat >conftest.$ac_ext <<_ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h. */
27983 /* Override any gcc2 internal prototype to avoid an error. */
27987 /* We use char because int might match the return type of a gcc2
27988 builtin and then its argument prototype would still apply. */
27998 rm -f conftest.$ac_objext conftest$ac_exeext
27999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28000 (eval $ac_link) 2>conftest.er1
28002 grep -v '^ *+' conftest.er1 >conftest.err
28004 cat conftest.err >&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } &&
28007 { ac_try='test -z "$ac_c_werror_flag"
28008 || test ! -s conftest.err'
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); }; } &&
28014 { ac_try='test -s conftest$ac_exeext'
28015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28016 (eval $ac_try) 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; }; then
28020 ac_cv_lib_sun_getmntent=yes
28022 echo "$as_me: failed program was:" >&5
28023 sed 's/^/| /' conftest.$ac_ext >&5
28025 ac_cv_lib_sun_getmntent=no
28027 rm -f conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_lib_save_LIBS
28031 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28032 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28033 if test $ac_cv_lib_sun_getmntent = yes; then
28036 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28037 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28038 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28039 echo $ECHO_N "(cached) $ECHO_C" >&6
28041 ac_check_lib_save_LIBS=$LIBS
28043 cat >conftest.$ac_ext <<_ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28050 /* Override any gcc2 internal prototype to avoid an error. */
28054 /* We use char because int might match the return type of a gcc2
28055 builtin and then its argument prototype would still apply. */
28065 rm -f conftest.$ac_objext conftest$ac_exeext
28066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28067 (eval $ac_link) 2>conftest.er1
28069 grep -v '^ *+' conftest.er1 >conftest.err
28071 cat conftest.err >&5
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); } &&
28074 { ac_try='test -z "$ac_c_werror_flag"
28075 || test ! -s conftest.err'
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); }; } &&
28081 { ac_try='test -s conftest$ac_exeext'
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; }; then
28087 ac_cv_lib_seq_getmntent=yes
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28092 ac_cv_lib_seq_getmntent=no
28094 rm -f conftest.err conftest.$ac_objext \
28095 conftest$ac_exeext conftest.$ac_ext
28096 LIBS=$ac_check_lib_save_LIBS
28098 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28099 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28100 if test $ac_cv_lib_seq_getmntent = yes; then
28103 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28104 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28105 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28108 ac_check_lib_save_LIBS=$LIBS
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28117 /* Override any gcc2 internal prototype to avoid an error. */
28121 /* We use char because int might match the return type of a gcc2
28122 builtin and then its argument prototype would still apply. */
28132 rm -f conftest.$ac_objext conftest$ac_exeext
28133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28134 (eval $ac_link) 2>conftest.er1
28136 grep -v '^ *+' conftest.er1 >conftest.err
28138 cat conftest.err >&5
28139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140 (exit $ac_status); } &&
28141 { ac_try='test -z "$ac_c_werror_flag"
28142 || test ! -s conftest.err'
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); }; } &&
28148 { ac_try='test -s conftest$ac_exeext'
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; }; then
28154 ac_cv_lib_gen_getmntent=yes
28156 echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28159 ac_cv_lib_gen_getmntent=no
28161 rm -f conftest.err conftest.$ac_objext \
28162 conftest$ac_exeext conftest.$ac_ext
28163 LIBS=$ac_check_lib_save_LIBS
28165 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28166 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28167 if test $ac_cv_lib_gen_getmntent = yes; then
28176 for ac_func in getmntent
28178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28179 echo "$as_me:$LINENO: checking for $ac_func" >&5
28180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28181 if eval "test \"\${$as_ac_var+set}\" = set"; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28184 cat >conftest.$ac_ext <<_ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h. */
28190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28192 #define $ac_func innocuous_$ac_func
28194 /* System header to define __stub macros and hopefully few prototypes,
28195 which can conflict with char $ac_func (); below.
28196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28197 <limits.h> exists even on freestanding compilers. */
28200 # include <limits.h>
28202 # include <assert.h>
28207 /* Override any gcc2 internal prototype to avoid an error. */
28212 /* We use char because int might match the return type of a gcc2
28213 builtin and then its argument prototype would still apply. */
28215 /* The GNU C library defines this for functions which it implements
28216 to always fail with ENOSYS. Some functions are actually named
28217 something starting with __ and the normal name is an alias. */
28218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28221 char (*f) () = $ac_func;
28230 return f != $ac_func;
28235 rm -f conftest.$ac_objext conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237 (eval $ac_link) 2>conftest.er1
28239 grep -v '^ *+' conftest.er1 >conftest.err
28241 cat conftest.err >&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } &&
28244 { ac_try='test -z "$ac_c_werror_flag"
28245 || test ! -s conftest.err'
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); }; } &&
28251 { ac_try='test -s conftest$ac_exeext'
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; }; then
28257 eval "$as_ac_var=yes"
28259 echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28262 eval "$as_ac_var=no"
28264 rm -f conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
28267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28269 if test `eval echo '${'$as_ac_var'}'` = yes; then
28270 cat >>confdefs.h <<_ACEOF
28271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28278 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28279 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28280 if test "${ac_cv_func_closedir_void+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28283 if test "$cross_compiling" = yes; then
28284 ac_cv_func_closedir_void=yes
28286 cat >conftest.$ac_ext <<_ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28292 $ac_includes_default
28293 #include <$ac_header_dirent>
28294 #ifndef __cplusplus
28301 exit (closedir (opendir (".")) != 0);
28306 rm -f conftest$ac_exeext
28307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28308 (eval $ac_link) 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 ac_cv_func_closedir_void=no
28319 echo "$as_me: program exited with status $ac_status" >&5
28320 echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28323 ( exit $ac_status )
28324 ac_cv_func_closedir_void=yes
28326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28329 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28330 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28331 if test $ac_cv_func_closedir_void = yes; then
28333 cat >>confdefs.h <<\_ACEOF
28334 #define CLOSEDIR_VOID 1
28339 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28340 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28341 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28342 echo $ECHO_N "(cached) $ECHO_C" >&6
28344 if test "$cross_compiling" = yes; then
28345 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28346 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28347 { (exit 1); exit 1; }; }
28349 cat >conftest.$ac_ext <<_ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h. */
28356 # include <unistd.h>
28362 /* If this system has a BSD-style setpgrp which takes arguments,
28363 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28364 exit successfully. */
28365 exit (setpgrp (1,1) == -1 ? 0 : 1);
28370 rm -f conftest$ac_exeext
28371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28372 (eval $ac_link) 2>&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; }; then
28381 ac_cv_func_setpgrp_void=no
28383 echo "$as_me: program exited with status $ac_status" >&5
28384 echo "$as_me: failed program was:" >&5
28385 sed 's/^/| /' conftest.$ac_ext >&5
28387 ( exit $ac_status )
28388 ac_cv_func_setpgrp_void=yes
28390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28393 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28394 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28395 if test $ac_cv_func_setpgrp_void = yes; then
28397 cat >>confdefs.h <<\_ACEOF
28398 #define SETPGRP_VOID 1
28402 # AC_FUNC_FNMATCH dnl use local version
28405 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
28406 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
28407 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
28408 echo $ECHO_N "(cached) $ECHO_C" >&6
28410 ac_check_lib_save_LIBS=$LIBS
28411 LIBS="-lxpg4 $LIBS"
28412 cat >conftest.$ac_ext <<_ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h. */
28419 /* Override any gcc2 internal prototype to avoid an error. */
28423 /* We use char because int might match the return type of a gcc2
28424 builtin and then its argument prototype would still apply. */
28434 rm -f conftest.$ac_objext conftest$ac_exeext
28435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28436 (eval $ac_link) 2>conftest.er1
28438 grep -v '^ *+' conftest.er1 >conftest.err
28440 cat conftest.err >&5
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); } &&
28443 { ac_try='test -z "$ac_c_werror_flag"
28444 || test ! -s conftest.err'
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); }; } &&
28450 { ac_try='test -s conftest$ac_exeext'
28451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452 (eval $ac_try) 2>&5
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); }; }; then
28456 ac_cv_lib_xpg4_setlocale=yes
28458 echo "$as_me: failed program was:" >&5
28459 sed 's/^/| /' conftest.$ac_ext >&5
28461 ac_cv_lib_xpg4_setlocale=no
28463 rm -f conftest.err conftest.$ac_objext \
28464 conftest$ac_exeext conftest.$ac_ext
28465 LIBS=$ac_check_lib_save_LIBS
28467 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
28468 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
28469 if test $ac_cv_lib_xpg4_setlocale = yes; then
28470 LIBS="$LIBS -lxpg4"
28473 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28474 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28475 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28476 echo $ECHO_N "(cached) $ECHO_C" >&6
28478 ac_check_lib_save_LIBS=$LIBS
28479 LIBS="-lintl $LIBS"
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28487 /* Override any gcc2 internal prototype to avoid an error. */
28491 /* We use char because int might match the return type of a gcc2
28492 builtin and then its argument prototype would still apply. */
28502 rm -f conftest.$ac_objext conftest$ac_exeext
28503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28504 (eval $ac_link) 2>conftest.er1
28506 grep -v '^ *+' conftest.er1 >conftest.err
28508 cat conftest.err >&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); } &&
28511 { ac_try='test -z "$ac_c_werror_flag"
28512 || test ! -s conftest.err'
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); }; } &&
28518 { ac_try='test -s conftest$ac_exeext'
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; }; then
28524 ac_cv_lib_intl_gettext=yes
28526 echo "$as_me: failed program was:" >&5
28527 sed 's/^/| /' conftest.$ac_ext >&5
28529 ac_cv_lib_intl_gettext=no
28531 rm -f conftest.err conftest.$ac_objext \
28532 conftest$ac_exeext conftest.$ac_ext
28533 LIBS=$ac_check_lib_save_LIBS
28535 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28536 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28537 if test $ac_cv_lib_intl_gettext = yes; then
28538 LIBS="$LIBS -lintl"
28544 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28545 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28546 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28549 ac_check_lib_save_LIBS=$LIBS
28551 cat >conftest.$ac_ext <<_ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28558 /* Override any gcc2 internal prototype to avoid an error. */
28562 /* We use char because int might match the return type of a gcc2
28563 builtin and then its argument prototype would still apply. */
28573 rm -f conftest.$ac_objext conftest$ac_exeext
28574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28575 (eval $ac_link) 2>conftest.er1
28577 grep -v '^ *+' conftest.er1 >conftest.err
28579 cat conftest.err >&5
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); } &&
28582 { ac_try='test -z "$ac_c_werror_flag"
28583 || test ! -s conftest.err'
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); }; } &&
28589 { ac_try='test -s conftest$ac_exeext'
28590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591 (eval $ac_try) 2>&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); }; }; then
28595 ac_cv_lib_sun_getpwnam=yes
28597 echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28600 ac_cv_lib_sun_getpwnam=no
28602 rm -f conftest.err conftest.$ac_objext \
28603 conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28606 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28607 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28608 if test $ac_cv_lib_sun_getpwnam = yes; then
28609 cat >>confdefs.h <<_ACEOF
28610 #define HAVE_LIBSUN 1
28619 for ac_header in zlib.h
28621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28623 echo "$as_me:$LINENO: checking for $ac_header" >&5
28624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28626 echo $ECHO_N "(cached) $ECHO_C" >&6
28628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28631 # Is the header compilable?
28632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28634 cat >conftest.$ac_ext <<_ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h. */
28640 $ac_includes_default
28641 #include <$ac_header>
28643 rm -f conftest.$ac_objext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28645 (eval $ac_compile) 2>conftest.er1
28647 grep -v '^ *+' conftest.er1 >conftest.err
28649 cat conftest.err >&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } &&
28652 { ac_try='test -z "$ac_c_werror_flag"
28653 || test ! -s conftest.err'
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); }; } &&
28659 { ac_try='test -s conftest.$ac_objext'
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665 ac_header_compiler=yes
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28670 ac_header_compiler=no
28672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28674 echo "${ECHO_T}$ac_header_compiler" >&6
28676 # Is the header present?
28677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28679 cat >conftest.$ac_ext <<_ACEOF
28682 cat confdefs.h >>conftest.$ac_ext
28683 cat >>conftest.$ac_ext <<_ACEOF
28684 /* end confdefs.h. */
28685 #include <$ac_header>
28687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28690 grep -v '^ *+' conftest.er1 >conftest.err
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } >/dev/null; then
28695 if test -s conftest.err; then
28696 ac_cpp_err=$ac_c_preproc_warn_flag
28697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28704 if test -z "$ac_cpp_err"; then
28705 ac_header_preproc=yes
28707 echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28710 ac_header_preproc=no
28712 rm -f conftest.err conftest.$ac_ext
28713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28714 echo "${ECHO_T}$ac_header_preproc" >&6
28716 # So? What about this header?
28717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28723 ac_header_preproc=yes
28726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28740 ## ------------------------------------------ ##
28741 ## Report this to the AC_PACKAGE_NAME lists. ##
28742 ## ------------------------------------------ ##
28745 sed "s/^/$as_me: WARNING: /" >&2
28748 echo "$as_me:$LINENO: checking for $ac_header" >&5
28749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28753 eval "$as_ac_Header=\$ac_header_preproc"
28755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28760 cat >>confdefs.h <<_ACEOF
28761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28768 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28769 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28770 if test "${ac_cv_lib_z_deflate+set}" = set; then
28771 echo $ECHO_N "(cached) $ECHO_C" >&6
28773 ac_check_lib_save_LIBS=$LIBS
28775 cat >conftest.$ac_ext <<_ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28782 /* Override any gcc2 internal prototype to avoid an error. */
28786 /* We use char because int might match the return type of a gcc2
28787 builtin and then its argument prototype would still apply. */
28797 rm -f conftest.$ac_objext conftest$ac_exeext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28799 (eval $ac_link) 2>conftest.er1
28801 grep -v '^ *+' conftest.er1 >conftest.err
28803 cat conftest.err >&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } &&
28806 { ac_try='test -z "$ac_c_werror_flag"
28807 || test ! -s conftest.err'
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); }; } &&
28813 { ac_try='test -s conftest$ac_exeext'
28814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815 (eval $ac_try) 2>&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); }; }; then
28819 ac_cv_lib_z_deflate=yes
28821 echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28824 ac_cv_lib_z_deflate=no
28826 rm -f conftest.err conftest.$ac_objext \
28827 conftest$ac_exeext conftest.$ac_ext
28828 LIBS=$ac_check_lib_save_LIBS
28830 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28831 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28832 if test $ac_cv_lib_z_deflate = yes; then
28837 if test x$FDLIBS = x-lz; then
28838 cat >>confdefs.h <<\_ACEOF
28839 #define HAVE_LIBZ 1
28846 # Check for ACL libraries
28849 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28850 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28851 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28852 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28853 echo $ECHO_N "(cached) $ECHO_C" >&6
28855 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28856 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28858 # Is the header compilable?
28859 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28860 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28861 cat >conftest.$ac_ext <<_ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867 $ac_includes_default
28868 #include <sys/acl.h>
28870 rm -f conftest.$ac_objext
28871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28872 (eval $ac_compile) 2>conftest.er1
28874 grep -v '^ *+' conftest.er1 >conftest.err
28876 cat conftest.err >&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); } &&
28879 { ac_try='test -z "$ac_c_werror_flag"
28880 || test ! -s conftest.err'
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); }; } &&
28886 { ac_try='test -s conftest.$ac_objext'
28887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888 (eval $ac_try) 2>&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); }; }; then
28892 ac_header_compiler=yes
28894 echo "$as_me: failed program was:" >&5
28895 sed 's/^/| /' conftest.$ac_ext >&5
28897 ac_header_compiler=no
28899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28901 echo "${ECHO_T}$ac_header_compiler" >&6
28903 # Is the header present?
28904 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28905 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28906 cat >conftest.$ac_ext <<_ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h. */
28912 #include <sys/acl.h>
28914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28917 grep -v '^ *+' conftest.er1 >conftest.err
28919 cat conftest.err >&5
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); } >/dev/null; then
28922 if test -s conftest.err; then
28923 ac_cpp_err=$ac_c_preproc_warn_flag
28924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28931 if test -z "$ac_cpp_err"; then
28932 ac_header_preproc=yes
28934 echo "$as_me: failed program was:" >&5
28935 sed 's/^/| /' conftest.$ac_ext >&5
28937 ac_header_preproc=no
28939 rm -f conftest.err conftest.$ac_ext
28940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28941 echo "${ECHO_T}$ac_header_preproc" >&6
28943 # So? What about this header?
28944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28946 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28947 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28949 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28950 ac_header_preproc=yes
28953 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28954 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
28956 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
28957 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28958 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28959 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
28960 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28961 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28962 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28963 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28964 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28967 ## ------------------------------------------ ##
28968 ## Report this to the AC_PACKAGE_NAME lists. ##
28969 ## ------------------------------------------ ##
28972 sed "s/^/$as_me: WARNING: /" >&2
28975 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28976 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28977 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28978 echo $ECHO_N "(cached) $ECHO_C" >&6
28980 ac_cv_header_sys_acl_h=$ac_header_preproc
28982 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28983 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28988 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28989 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28990 if test "${ac_cv_func_acl_get_file+set}" = set; then
28991 echo $ECHO_N "(cached) $ECHO_C" >&6
28993 cat >conftest.$ac_ext <<_ACEOF
28996 cat confdefs.h >>conftest.$ac_ext
28997 cat >>conftest.$ac_ext <<_ACEOF
28998 /* end confdefs.h. */
28999 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29001 #define acl_get_file innocuous_acl_get_file
29003 /* System header to define __stub macros and hopefully few prototypes,
29004 which can conflict with char acl_get_file (); below.
29005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29006 <limits.h> exists even on freestanding compilers. */
29009 # include <limits.h>
29011 # include <assert.h>
29014 #undef acl_get_file
29016 /* Override any gcc2 internal prototype to avoid an error. */
29021 /* We use char because int might match the return type of a gcc2
29022 builtin and then its argument prototype would still apply. */
29023 char acl_get_file ();
29024 /* The GNU C library defines this for functions which it implements
29025 to always fail with ENOSYS. Some functions are actually named
29026 something starting with __ and the normal name is an alias. */
29027 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29030 char (*f) () = acl_get_file;
29039 return f != acl_get_file;
29044 rm -f conftest.$ac_objext conftest$ac_exeext
29045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29046 (eval $ac_link) 2>conftest.er1
29048 grep -v '^ *+' conftest.er1 >conftest.err
29050 cat conftest.err >&5
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); } &&
29053 { ac_try='test -z "$ac_c_werror_flag"
29054 || test ! -s conftest.err'
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); }; } &&
29060 { ac_try='test -s conftest$ac_exeext'
29061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062 (eval $ac_try) 2>&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; }; then
29066 ac_cv_func_acl_get_file=yes
29068 echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29071 ac_cv_func_acl_get_file=no
29073 rm -f conftest.err conftest.$ac_objext \
29074 conftest$ac_exeext conftest.$ac_ext
29076 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29077 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29078 if test $ac_cv_func_acl_get_file = yes; then
29081 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29082 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29083 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 ac_check_lib_save_LIBS=$LIBS
29088 cat >conftest.$ac_ext <<_ACEOF
29091 cat confdefs.h >>conftest.$ac_ext
29092 cat >>conftest.$ac_ext <<_ACEOF
29093 /* end confdefs.h. */
29095 /* Override any gcc2 internal prototype to avoid an error. */
29099 /* We use char because int might match the return type of a gcc2
29100 builtin and then its argument prototype would still apply. */
29101 char acl_get_file ();
29110 rm -f conftest.$ac_objext conftest$ac_exeext
29111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29112 (eval $ac_link) 2>conftest.er1
29114 grep -v '^ *+' conftest.er1 >conftest.err
29116 cat conftest.err >&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } &&
29119 { ac_try='test -z "$ac_c_werror_flag"
29120 || test ! -s conftest.err'
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); }; } &&
29126 { ac_try='test -s conftest$ac_exeext'
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; }; then
29132 ac_cv_lib_acl_acl_get_file=yes
29134 echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29137 ac_cv_lib_acl_acl_get_file=no
29139 rm -f conftest.err conftest.$ac_objext \
29140 conftest$ac_exeext conftest.$ac_ext
29141 LIBS=$ac_check_lib_save_LIBS
29143 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29144 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29145 if test $ac_cv_lib_acl_acl_get_file = yes; then
29146 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29148 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29149 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29150 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29151 echo $ECHO_N "(cached) $ECHO_C" >&6
29153 ac_check_lib_save_LIBS=$LIBS
29155 cat >conftest.$ac_ext <<_ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h. */
29162 /* Override any gcc2 internal prototype to avoid an error. */
29166 /* We use char because int might match the return type of a gcc2
29167 builtin and then its argument prototype would still apply. */
29177 rm -f conftest.$ac_objext conftest$ac_exeext
29178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29179 (eval $ac_link) 2>conftest.er1
29181 grep -v '^ *+' conftest.er1 >conftest.err
29183 cat conftest.err >&5
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); } &&
29186 { ac_try='test -z "$ac_c_werror_flag"
29187 || test ! -s conftest.err'
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); }; } &&
29193 { ac_try='test -s conftest$ac_exeext'
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; }; then
29199 ac_cv_lib_sec_acltotext=yes
29201 echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29204 ac_cv_lib_sec_acltotext=no
29206 rm -f conftest.err conftest.$ac_objext \
29207 conftest$ac_exeext conftest.$ac_ext
29208 LIBS=$ac_check_lib_save_LIBS
29210 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29211 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29212 if test $ac_cv_lib_sec_acltotext = yes; then
29213 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29222 if test $have_acl = yes; then
29223 cat >>confdefs.h <<\_ACEOF
29230 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29231 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29232 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29233 echo $ECHO_N "(cached) $ECHO_C" >&6
29235 ac_check_lib_save_LIBS=$LIBS
29236 LIBS="-lpthread $LIBS"
29237 cat >conftest.$ac_ext <<_ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h. */
29244 /* Override any gcc2 internal prototype to avoid an error. */
29248 /* We use char because int might match the return type of a gcc2
29249 builtin and then its argument prototype would still apply. */
29250 char pthread_create ();
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29261 (eval $ac_link) 2>conftest.er1
29263 grep -v '^ *+' conftest.er1 >conftest.err
29265 cat conftest.err >&5
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); } &&
29268 { ac_try='test -z "$ac_c_werror_flag"
29269 || test ! -s conftest.err'
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); }; } &&
29275 { ac_try='test -s conftest$ac_exeext'
29276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277 (eval $ac_try) 2>&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); }; }; then
29281 ac_cv_lib_pthread_pthread_create=yes
29283 echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29286 ac_cv_lib_pthread_pthread_create=no
29288 rm -f conftest.err conftest.$ac_objext \
29289 conftest$ac_exeext conftest.$ac_ext
29290 LIBS=$ac_check_lib_save_LIBS
29292 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29293 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29294 if test $ac_cv_lib_pthread_pthread_create = yes; then
29295 PTHREAD_LIB="-lpthread"
29297 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29298 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29299 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29300 echo $ECHO_N "(cached) $ECHO_C" >&6
29302 ac_check_lib_save_LIBS=$LIBS
29303 LIBS="-lpthreads $LIBS"
29304 cat >conftest.$ac_ext <<_ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h. */
29311 /* Override any gcc2 internal prototype to avoid an error. */
29315 /* We use char because int might match the return type of a gcc2
29316 builtin and then its argument prototype would still apply. */
29317 char pthread_create ();
29326 rm -f conftest.$ac_objext conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328 (eval $ac_link) 2>conftest.er1
29330 grep -v '^ *+' conftest.er1 >conftest.err
29332 cat conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334 (exit $ac_status); } &&
29335 { ac_try='test -z "$ac_c_werror_flag"
29336 || test ! -s conftest.err'
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); }; } &&
29342 { ac_try='test -s conftest$ac_exeext'
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 ac_cv_lib_pthreads_pthread_create=yes
29350 echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29353 ac_cv_lib_pthreads_pthread_create=no
29355 rm -f conftest.err conftest.$ac_objext \
29356 conftest$ac_exeext conftest.$ac_ext
29357 LIBS=$ac_check_lib_save_LIBS
29359 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29360 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29361 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29362 PTHREAD_LIB="-lpthreads"
29364 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29365 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29366 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 ac_check_lib_save_LIBS=$LIBS
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29378 /* Override any gcc2 internal prototype to avoid an error. */
29382 /* We use char because int might match the return type of a gcc2
29383 builtin and then its argument prototype would still apply. */
29384 char pthread_create ();
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395 (eval $ac_link) 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag"
29403 || test ! -s conftest.err'
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); }; } &&
29409 { ac_try='test -s conftest$ac_exeext'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29415 ac_cv_lib_c_r_pthread_create=yes
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29420 ac_cv_lib_c_r_pthread_create=no
29422 rm -f conftest.err conftest.$ac_objext \
29423 conftest$ac_exeext conftest.$ac_ext
29424 LIBS=$ac_check_lib_save_LIBS
29426 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29427 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29428 if test $ac_cv_lib_c_r_pthread_create = yes; then
29429 PTHREAD_LIB="-lc_r"
29431 echo "$as_me:$LINENO: checking for pthread_create" >&5
29432 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29433 if test "${ac_cv_func_pthread_create+set}" = set; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29436 cat >conftest.$ac_ext <<_ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h. */
29442 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29444 #define pthread_create innocuous_pthread_create
29446 /* System header to define __stub macros and hopefully few prototypes,
29447 which can conflict with char pthread_create (); below.
29448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449 <limits.h> exists even on freestanding compilers. */
29452 # include <limits.h>
29454 # include <assert.h>
29457 #undef pthread_create
29459 /* Override any gcc2 internal prototype to avoid an error. */
29464 /* We use char because int might match the return type of a gcc2
29465 builtin and then its argument prototype would still apply. */
29466 char pthread_create ();
29467 /* The GNU C library defines this for functions which it implements
29468 to always fail with ENOSYS. Some functions are actually named
29469 something starting with __ and the normal name is an alias. */
29470 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29473 char (*f) () = pthread_create;
29482 return f != pthread_create;
29487 rm -f conftest.$ac_objext conftest$ac_exeext
29488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29489 (eval $ac_link) 2>conftest.er1
29491 grep -v '^ *+' conftest.er1 >conftest.err
29493 cat conftest.err >&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } &&
29496 { ac_try='test -z "$ac_c_werror_flag"
29497 || test ! -s conftest.err'
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); }; } &&
29503 { ac_try='test -s conftest$ac_exeext'
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; }; then
29509 ac_cv_func_pthread_create=yes
29511 echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29514 ac_cv_func_pthread_create=no
29516 rm -f conftest.err conftest.$ac_objext \
29517 conftest$ac_exeext conftest.$ac_ext
29519 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29520 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29533 cat >>confdefs.h <<\_ACEOF
29539 CFLAGS=${CFLAGS--O}
29540 LDFLAGS=${LDFLAGS--O}
29541 DB_LIBS="${SQL_LFLAGS}"
29543 CPPFLAGS="$CPPFLAGS"
29570 # Finally we set appropriate distribution specific
29571 # variables and defaults
29573 # PFILES are platform specific files
29574 PFILES="platforms/Makefile"
29578 hostname=`uname -n | cut -d '.' -f 1`
29579 if test x${hostname} = x ; then
29580 hostname="localhost"
29582 case "$DISTNAME" in
29585 PSCMD="ps -e -o pid,comm"
29586 PFILES="${PFILES} \
29587 platforms/aix/Makefile"
29588 TAPEDRIVE="/dev/rmt0.1"
29592 PTHREAD_LIB="-lpthread -lexc"
29593 if test "${CC}" = "gcc" ; then
29600 TAPEDRIVE="/dev/nrmt0"
29603 DISTVER=`uname -a |awk '{print $3}'`
29604 TAPEDRIVE="/dev/nrmt0"
29605 PTHREAD_LIB="-pthread"
29606 CFLAGS="${CFLAGS} -pthread"
29607 PSCMD="ps -ax -o pid,command"
29610 PFILES="${PFILES} \
29611 platforms/bsdi/Makefile \
29612 platforms/bsdi/bacula-fd \
29613 platforms/bsdi/bacula-sd \
29614 platforms/bsdi/bacula-dir"
29615 largefile_support="yes"
29618 DISTVER=`uname -a |awk '{print $3}'`
29619 TAPEDRIVE="/dev/nrst0"
29621 WCFLAGS="-mwindows"
29622 WLDFLAGS="-mwindows"
29626 TAPEDRIVE="/dev/nst0"
29627 PSCMD="ps -e -o pid,command"
29629 PFILES="${PFILES} \
29630 platforms/darwin/Makefile"
29633 DISTVER=`cat /etc/debian_version`
29634 TAPEDRIVE="/dev/nrst0"
29635 PSCMD="ps -e -o pid,command"
29638 DISTVER=`uname -a |awk '{print $3}'`
29639 VER=`echo $DISTVER | cut -c 1`
29640 if test x$VER = x4 ; then
29641 PTHREAD_LIB="-pthread"
29642 CFLAGS="${CFLAGS} -pthread"
29646 TAPEDRIVE="/dev/nrsa0"
29647 PSCMD="ps -ax -o pid,command"
29648 PFILES="${PFILES} \
29649 platforms/freebsd/Makefile \
29650 platforms/freebsd/bacula-fd \
29651 platforms/freebsd/bacula-sd \
29652 platforms/freebsd/bacula-dir"
29653 largefile_support="yes"
29656 PSCMD="UNIX95=1 ps -e -o pid,comm"
29657 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29659 TAPEDRIVE="/dev/rmt/0hnb"
29660 PTHREAD_LIB="-lpthread"
29661 cat >>confdefs.h <<\_ACEOF
29662 #define _INCLUDE_LONGLONG 1
29668 TAPEDRIVE="/dev/rmt/0cbn"
29669 PSCMD="ps -e -o pid,comm"
29670 PFILES="${PFILES} \
29671 platforms/irix/Makefile \
29672 platforms/irix/bacula-fd \
29673 platforms/irix/bacula-sd \
29674 platforms/irix/bacula-dir"
29677 DISTVER=`uname -a |awk '{print $3}'`
29680 TAPEDRIVE="/dev/nrst0"
29681 PSCMD="ps -ax -o pid,command"
29682 PTHREAD_LIB="-pthread"
29683 CFLAGS="${CFLAGS} -pthread"
29686 DISTVER=`uname -a |awk '{print $3}'`
29689 TAPEDRIVE="/dev/nrst0"
29690 PSCMD="ps -ax -o pid,command"
29691 PTHREAD_LIB="-pthread"
29692 CFLAGS="${CFLAGS} -pthread"
29693 PFILES="${PFILES} \
29694 platforms/openbsd/Makefile \
29695 platforms/openbsd/bacula-fd \
29696 platforms/openbsd/bacula-sd \
29697 platforms/openbsd/bacula-dir"
29700 if test -f /etc/whitebox-release ; then
29701 f=/etc/whitebox-release
29703 f=/etc/redhat-release
29705 if test `cat $f | grep release |\
29706 cut -f 3 -d ' '`x = "Enterprise"x ; then
29707 DISTVER="Enterprise "`cat $f | grep release |\
29710 DISTVER=`cat /etc/redhat-release | grep release |\
29713 TAPEDRIVE="/dev/nst0"
29714 PSCMD="ps -e -o pid,command"
29715 PFILES="${PFILES} \
29716 platforms/redhat/Makefile \
29717 platforms/redhat/bacula-fd \
29718 platforms/redhat/bacula-sd \
29719 platforms/redhat/bacula-dir \
29720 platforms/redhat/bacula.spec \
29724 DISTVER=`cat /etc/mandrake-release | grep release |\
29726 TAPEDRIVE="/dev/nst0"
29727 PSCMD="ps -e -o pid,command"
29728 PFILES="${PFILES} \
29729 platforms/mandrake/Makefile \
29730 platforms/mandrake/bacula-fd \
29731 platforms/mandrake/bacula-sd \
29732 platforms/mandrake/bacula-dir \
29733 platforms/mandrake/bacula.spec \
29737 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29738 TAPEDRIVE="/dev/nst0"
29739 PSCMD="ps -e -o pid,command"
29740 PFILES="${PFILES} \
29741 platforms/gentoo/Makefile \
29742 platforms/gentoo/bacula-init \
29743 platforms/gentoo/bacula-fd \
29744 platforms/gentoo/bacula-sd \
29745 platforms/gentoo/bacula-dir"
29748 DISTVER=`cat /etc/slackware-version`
29749 TAPEDRIVE="/dev/nst0"
29750 PSCMD="ps -e -o pid,command"
29751 PFILES="${PFILES} \
29752 platforms/slackware/Makefile \
29753 platforms/slackware/rc.bacula-fd \
29754 platforms/slackware/rc.bacula-sd \
29755 platforms/slackware/rc.bacula-dir\
29756 platforms/slackware/functions.bacula"
29760 TAPEDRIVE="/dev/rmt/0cbn"
29761 PSCMD="ps -e -o pid,comm"
29762 PFILES="${PFILES} \
29763 platforms/solaris/Makefile \
29764 platforms/solaris/bacula-fd \
29765 platforms/solaris/bacula-sd \
29766 platforms/solaris/bacula-dir"
29767 if test x$DISTVER = x5.6 ; then
29768 cat >>confdefs.h <<\_ACEOF
29769 #define HAVE_OLD_SOCKOPT 1
29773 LIBS="$LIBS -lresolv"
29776 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29778 TAPEDRIVE="/dev/nst0"
29779 PSCMD="ps -e -o pid,command"
29780 PFILES="${PFILES} \
29781 platforms/suse/Makefile \
29782 platforms/suse/bacula-fd \
29783 platforms/suse/bacula-sd \
29784 platforms/suse/bacula-dir \
29785 platforms/suse/bacula \
29786 platforms/suse/bacula.spec"
29791 TAPEDRIVE="/dev/nst0"
29792 PSCMD="ps -e -o pid,command"
29793 PFILES="${PFILES} \
29794 platforms/suse/Makefile \
29795 platforms/suse/bacula-fd \
29796 platforms/suse/bacula-sd \
29797 platforms/suse/bacula-dir"
29801 TAPEDRIVE="/dev/nst0"
29804 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29810 LIBS="$PTHREAD_LIB $LIBS"
29812 cat >>confdefs.h <<_ACEOF
29816 cat >>confdefs.h <<_ACEOF
29827 MCOMMON=./autoconf/Make.common
29830 if test "x${subsysdir}" = "x${sbindir}" ; then
29833 echo "You have set both --sbindir and --with-subsys-dir"
29834 echo " equal to: ${subsysdir} "
29835 echo "This is not permitted. Please reconfigure."
29837 echo "Aborting configuration ..."
29843 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/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd 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/disk-changer scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu 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/Makefile.vcpp src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29844 ac_config_commands="$ac_config_commands default"
29845 cat >confcache <<\_ACEOF
29846 # This file is a shell script that caches the results of configure
29847 # tests run on this system so they can be shared between configure
29848 # scripts and configure runs, see configure's option --config-cache.
29849 # It is not useful on other systems. If it contains results you don't
29850 # want to keep, you may remove or edit it.
29852 # config.status only pays attention to the cache file if you give it
29853 # the --recheck option to rerun configure.
29855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29857 # following values.
29861 # The following way of writing the cache mishandles newlines in values,
29862 # but we know of no workaround that is simple, portable, and efficient.
29863 # So, don't put newlines in cache variables' values.
29864 # Ultrix sh set writes to stderr and can't be redirected directly,
29865 # and sets the high bit in the cache file unless we assign to the vars.
29868 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29870 # `set' does not quote correctly, so add quotes (double-quote
29871 # substitution turns \\\\ into \\, and sed turns \\ into \).
29874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29877 # `set' quotes correctly as required by POSIX, so do not add quotes.
29879 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29888 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29890 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29891 if test -w $cache_file; then
29892 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29893 cat confcache >$cache_file
29895 echo "not updating unwritable cache $cache_file"
29900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29901 # Let make expand exec_prefix.
29902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29906 # trailing colons and then remove the whole line if VPATH becomes empty
29907 # (actually we leave an empty line to preserve line numbers).
29908 if test "x$srcdir" = x.; then
29909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29910 s/:*\$(srcdir):*/:/;
29911 s/:*\${srcdir}:*/:/;
29913 s/^\([^=]*=[ ]*\):*/\1/;
29919 DEFS=-DHAVE_CONFIG_H
29923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29924 # 1. Remove the extension, and $U if already installed.
29925 ac_i=`echo "$ac_i" |
29926 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29928 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29929 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29931 LIBOBJS=$ac_libobjs
29933 LTLIBOBJS=$ac_ltlibobjs
29937 : ${CONFIG_STATUS=./config.status}
29938 ac_clean_files_save=$ac_clean_files
29939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29942 cat >$CONFIG_STATUS <<_ACEOF
29944 # Generated by $as_me.
29945 # Run this file to recreate the current configuration.
29946 # Compiler output produced by configure, useful for debugging
29947 # configure, is in config.log if it exists.
29950 ac_cs_recheck=false
29952 SHELL=\${CONFIG_SHELL-$SHELL}
29955 cat >>$CONFIG_STATUS <<\_ACEOF
29956 ## --------------------- ##
29957 ## M4sh Initialization. ##
29958 ## --------------------- ##
29960 # Be Bourne compatible
29961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29965 # is contrary to our usage. Disable this feature.
29966 alias -g '${1+"$@"}'='"$@"'
29967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29970 DUALCASE=1; export DUALCASE # for MKS sh
29972 # Support unset when possible.
29973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29980 # Work around bugs in pre-3.0 UWIN ksh.
29981 $as_unset ENV MAIL MAILPATH
29988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29990 LC_TELEPHONE LC_TIME
29992 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29993 eval $as_var=C; export $as_var
29999 # Required to use basename.
30000 if expr a : '\(a\)' >/dev/null 2>&1; then
30006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30007 as_basename=basename
30013 # Name of the executable.
30014 as_me=`$as_basename "$0" ||
30015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30016 X"$0" : 'X\(//\)$' \| \
30017 X"$0" : 'X\(/\)$' \| \
30018 . : '\(.\)' 2>/dev/null ||
30020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30021 /^X\/\(\/\/\)$/{ s//\1/; q; }
30022 /^X\/\(\/\).*/{ s//\1/; q; }
30026 # PATH needs CR, and LINENO needs CR and PATH.
30027 # Avoid depending upon Character Ranges.
30028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30031 as_cr_digits='0123456789'
30032 as_cr_alnum=$as_cr_Letters$as_cr_digits
30034 # The user is always right.
30035 if test "${PATH_SEPARATOR+set}" != set; then
30036 echo "#! /bin/sh" >conf$$.sh
30037 echo "exit 0" >>conf$$.sh
30039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30048 as_lineno_1=$LINENO
30049 as_lineno_2=$LINENO
30050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30051 test "x$as_lineno_1" != "x$as_lineno_2" &&
30052 test "x$as_lineno_3" = "x$as_lineno_2" || {
30053 # Find who we are. Look in the path if we contain no path at all
30056 *[\\/]* ) as_myself=$0 ;;
30057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30058 for as_dir in $PATH
30061 test -z "$as_dir" && as_dir=.
30062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30067 # We did not find ourselves, most probably we were run as `sh COMMAND'
30068 # in which case we are not to be found in the path.
30069 if test "x$as_myself" = x; then
30072 if test ! -f "$as_myself"; then
30073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30075 { (exit 1); exit 1; }; }
30077 case $CONFIG_SHELL in
30079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30083 test -z "$as_dir" && as_dir=.
30084 for as_base in sh bash ksh sh5; do
30087 if ("$as_dir/$as_base" -c '
30088 as_lineno_1=$LINENO
30089 as_lineno_2=$LINENO
30090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30091 test "x$as_lineno_1" != "x$as_lineno_2" &&
30092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30095 CONFIG_SHELL=$as_dir/$as_base
30096 export CONFIG_SHELL
30097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30106 # uniformly replaced by the line number. The first 'sed' inserts a
30107 # line-number line before each line; the second 'sed' does the real
30108 # work. The second script uses 'N' to pair each line-number line
30109 # with the numbered line, and appends trailing '-' during
30110 # substitution so that $LINENO is not a special case at line end.
30111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30113 sed '=' <$as_myself |
30118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30121 s,^['$as_cr_digits']*\n,,
30122 ' >$as_me.lineno &&
30123 chmod +x $as_me.lineno ||
30124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30126 { (exit 1); exit 1; }; }
30128 # Don't try to exec as it changes $[0], causing all sort of problems
30129 # (the dirname of $[0] is not the place where we might find the
30130 # original and so on. Autoconf is especially sensible to this).
30132 # Exit status is that of the last command.
30137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30138 *c*,-n*) ECHO_N= ECHO_C='
30140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30144 if expr a : '\(a\)' >/dev/null 2>&1; then
30150 rm -f conf$$ conf$$.exe conf$$.file
30152 if ln -s conf$$.file conf$$ 2>/dev/null; then
30153 # We could just check for DJGPP; but this test a) works b) is more generic
30154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30155 if test -f conf$$.exe; then
30156 # Don't use ln at all; we don't have any links
30161 elif ln conf$$.file conf$$ 2>/dev/null; then
30166 rm -f conf$$ conf$$.exe conf$$.file
30168 if mkdir -p . 2>/dev/null; then
30171 test -d ./-p && rmdir ./-p
30175 as_executable_p="test -f"
30177 # Sed expression to map a string onto a valid CPP name.
30178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30180 # Sed expression to map a string onto a valid variable name.
30181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30185 # We need space, tab and new line, in precisely that order.
30195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30196 # report actual input values of CONFIG_FILES etc. instead of their
30197 # values after options handling. Logging --version etc. is OK.
30201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30202 ## Running $as_me. ##
30207 This file was extended by $as_me, which was
30208 generated by GNU Autoconf 2.59. Invocation command line was
30210 CONFIG_FILES = $CONFIG_FILES
30211 CONFIG_HEADERS = $CONFIG_HEADERS
30212 CONFIG_LINKS = $CONFIG_LINKS
30213 CONFIG_COMMANDS = $CONFIG_COMMANDS
30217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30221 # Files that config.status was made for.
30222 if test -n "$ac_config_files"; then
30223 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30226 if test -n "$ac_config_headers"; then
30227 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30230 if test -n "$ac_config_links"; then
30231 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30234 if test -n "$ac_config_commands"; then
30235 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30238 cat >>$CONFIG_STATUS <<\_ACEOF
30241 \`$as_me' instantiates files from templates according to the
30242 current configuration.
30244 Usage: $0 [OPTIONS] [FILE]...
30246 -h, --help print this help, then exit
30247 -V, --version print version number, then exit
30248 -q, --quiet do not print progress messages
30249 -d, --debug don't remove temporary files
30250 --recheck update $as_me by reconfiguring in the same conditions
30251 --file=FILE[:TEMPLATE]
30252 instantiate the configuration file FILE
30253 --header=FILE[:TEMPLATE]
30254 instantiate the configuration header FILE
30256 Configuration files:
30259 Configuration headers:
30262 Configuration commands:
30265 Report bugs to <bug-autoconf@gnu.org>."
30268 cat >>$CONFIG_STATUS <<_ACEOF
30271 configured by $0, generated by GNU Autoconf 2.59,
30272 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30274 Copyright (C) 2003 Free Software Foundation, Inc.
30275 This config.status script is free software; the Free Software Foundation
30276 gives unlimited permission to copy, distribute and modify it."
30281 cat >>$CONFIG_STATUS <<\_ACEOF
30282 # If no file are specified by the user, then we need to provide default
30283 # value. By we need to know if files were specified by the user.
30289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30298 *) # This is not an option, so the user has probably given explicit
30301 ac_need_defaults=false;;
30305 # Handling of the options.
30307 cat >>$CONFIG_STATUS <<\_ACEOF
30308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30310 --version | --vers* | -V )
30311 echo "$ac_cs_version"; exit 0 ;;
30313 # Conflict between --help and --header
30314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30315 Try \`$0 --help' for more information." >&5
30316 echo "$as_me: error: ambiguous option: $1
30317 Try \`$0 --help' for more information." >&2;}
30318 { (exit 1); exit 1; }; };;
30319 --help | --hel | -h )
30320 echo "$ac_cs_usage"; exit 0 ;;
30321 --debug | --d* | -d )
30323 --file | --fil | --fi | --f )
30325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30326 ac_need_defaults=false;;
30327 --header | --heade | --head | --hea )
30329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30330 ac_need_defaults=false;;
30331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30335 # This is an error.
30336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30337 Try \`$0 --help' for more information." >&5
30338 echo "$as_me: error: unrecognized option: $1
30339 Try \`$0 --help' for more information." >&2;}
30340 { (exit 1); exit 1; }; } ;;
30342 *) ac_config_targets="$ac_config_targets $1" ;;
30348 ac_configure_extra_args=
30350 if $ac_cs_silent; then
30352 ac_configure_extra_args="$ac_configure_extra_args --silent"
30356 cat >>$CONFIG_STATUS <<_ACEOF
30357 if \$ac_cs_recheck; then
30358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30364 cat >>$CONFIG_STATUS <<_ACEOF
30366 # INIT-COMMANDS section.
30369 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30370 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30372 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30373 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30374 LINGUAS="${LINGUAS-%UNSET%}"
30381 cat >>$CONFIG_STATUS <<\_ACEOF
30382 for ac_config_target in $ac_config_targets
30384 case "$ac_config_target" in
30385 # Handling of arguments.
30386 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30387 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30388 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30389 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30390 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30391 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30392 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30393 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30394 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30395 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30396 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30397 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30398 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30399 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30400 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30401 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30402 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30403 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30404 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30405 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30406 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30407 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30408 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30409 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30410 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30411 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30412 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30413 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30414 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30415 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30416 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30417 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30418 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30419 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30420 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30421 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30422 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30423 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30424 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30425 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30426 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30427 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30428 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30429 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30430 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30431 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30432 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30433 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30434 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30435 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30436 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30437 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30438 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30439 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30440 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30441 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30442 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30443 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30444 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30445 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30446 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30447 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30448 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30449 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30450 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30451 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30452 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30453 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30454 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30455 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30456 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30457 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30458 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30459 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30460 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30461 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30462 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30463 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30464 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30465 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30466 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30467 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30468 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30469 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30470 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30471 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30472 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30473 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30474 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30475 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30476 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30477 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30478 "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30479 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30480 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30481 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30482 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30483 "src/win32/Makefile.vcpp" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.vcpp" ;;
30484 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30485 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30486 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30487 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30488 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30489 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30490 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30491 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30492 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30493 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30494 { (exit 1); exit 1; }; };;
30498 # If the user did not use the arguments to specify the items to instantiate,
30499 # then the envvar interface is used. Set only those that are not.
30500 # We use the long form for the default assignment because of an extremely
30501 # bizarre bug on SunOS 4.1.3.
30502 if $ac_need_defaults; then
30503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30508 # Have a temporary directory for convenience. Make it in the build tree
30509 # simply because there is no reason to put it here, and in addition,
30510 # creating and moving files from /tmp can sometimes cause problems.
30511 # Create a temporary directory, and hook for its removal unless debugging.
30514 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30515 trap '{ (exit 1); exit 1; }' 1 2 13 15
30518 # Create a (secure) tmp directory for tmp files.
30521 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30522 test -n "$tmp" && test -d "$tmp"
30525 tmp=./confstat$$-$RANDOM
30526 (umask 077 && mkdir $tmp)
30529 echo "$me: cannot create a temporary directory in ." >&2
30530 { (exit 1); exit 1; }
30535 cat >>$CONFIG_STATUS <<_ACEOF
30538 # CONFIG_FILES section.
30541 # No need to generate the scripts if there are no CONFIG_FILES.
30542 # This happens for instance when ./config.status config.h
30543 if test -n "\$CONFIG_FILES"; then
30544 # Protect against being on the right side of a sed subst in config.status.
30545 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30546 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30547 s,@SHELL@,$SHELL,;t t
30548 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30549 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30550 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30551 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30552 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30553 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30554 s,@exec_prefix@,$exec_prefix,;t t
30555 s,@prefix@,$prefix,;t t
30556 s,@program_transform_name@,$program_transform_name,;t t
30557 s,@bindir@,$bindir,;t t
30558 s,@sbindir@,$sbindir,;t t
30559 s,@libexecdir@,$libexecdir,;t t
30560 s,@datadir@,$datadir,;t t
30561 s,@sysconfdir@,$sysconfdir,;t t
30562 s,@sharedstatedir@,$sharedstatedir,;t t
30563 s,@localstatedir@,$localstatedir,;t t
30564 s,@libdir@,$libdir,;t t
30565 s,@includedir@,$includedir,;t t
30566 s,@oldincludedir@,$oldincludedir,;t t
30567 s,@infodir@,$infodir,;t t
30568 s,@mandir@,$mandir,;t t
30569 s,@build_alias@,$build_alias,;t t
30570 s,@host_alias@,$host_alias,;t t
30571 s,@target_alias@,$target_alias,;t t
30572 s,@DEFS@,$DEFS,;t t
30573 s,@ECHO_C@,$ECHO_C,;t t
30574 s,@ECHO_N@,$ECHO_N,;t t
30575 s,@ECHO_T@,$ECHO_T,;t t
30576 s,@LIBS@,$LIBS,;t t
30577 s,@BUILD_DIR@,$BUILD_DIR,;t t
30578 s,@TOP_DIR@,$TOP_DIR,;t t
30579 s,@TRUEPRG@,$TRUEPRG,;t t
30580 s,@FALSEPRG@,$FALSEPRG,;t t
30581 s,@VERSION@,$VERSION,;t t
30582 s,@DATE@,$DATE,;t t
30583 s,@LSMDATE@,$LSMDATE,;t t
30585 s,@CFLAGS@,$CFLAGS,;t t
30586 s,@LDFLAGS@,$LDFLAGS,;t t
30587 s,@CPPFLAGS@,$CPPFLAGS,;t t
30588 s,@ac_ct_CC@,$ac_ct_CC,;t t
30589 s,@EXEEXT@,$EXEEXT,;t t
30590 s,@OBJEXT@,$OBJEXT,;t t
30592 s,@CXXFLAGS@,$CXXFLAGS,;t t
30593 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30595 s,@EGREP@,$EGREP,;t t
30596 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30597 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30598 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30599 s,@RANLIB@,$RANLIB,;t t
30600 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30605 s,@ECHO@,$ECHO,;t t
30609 s,@OPENSSL@,$OPENSSL,;t t
30612 s,@MKISOFS@,$MKISOFS,;t t
30613 s,@PYTHON@,$PYTHON,;t t
30614 s,@GROWISOFS@,$GROWISOFS,;t t
30615 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30616 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30617 s,@PKGCONFIG@,$PKGCONFIG,;t t
30618 s,@WXCONFIG@,$WXCONFIG,;t t
30619 s,@WXFLAGS@,$WXFLAGS,;t t
30620 s,@CDRECORD@,$CDRECORD,;t t
30621 s,@PIDOF@,$PIDOF,;t t
30623 s,@ARFLAGS@,$ARFLAGS,;t t
30624 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30625 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30626 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30627 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30628 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30629 s,@build@,$build,;t t
30630 s,@build_cpu@,$build_cpu,;t t
30631 s,@build_vendor@,$build_vendor,;t t
30632 s,@build_os@,$build_os,;t t
30633 s,@host@,$host,;t t
30634 s,@host_cpu@,$host_cpu,;t t
30635 s,@host_vendor@,$host_vendor,;t t
30636 s,@host_os@,$host_os,;t t
30637 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30638 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30639 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30640 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30641 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30642 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30643 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30644 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30645 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30646 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30647 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30648 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30649 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30650 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30651 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30652 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30653 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30654 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30655 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30656 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30657 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30658 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30659 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30660 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30661 s,@SET_MAKE@,$SET_MAKE,;t t
30662 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30663 s,@USE_NLS@,$USE_NLS,;t t
30664 s,@MSGFMT@,$MSGFMT,;t t
30665 s,@GMSGFMT@,$GMSGFMT,;t t
30666 s,@XGETTEXT@,$XGETTEXT,;t t
30667 s,@MSGMERGE@,$MSGMERGE,;t t
30668 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30669 s,@LIBICONV@,$LIBICONV,;t t
30670 s,@LTLIBICONV@,$LTLIBICONV,;t t
30671 s,@INTLLIBS@,$INTLLIBS,;t t
30672 s,@LIBINTL@,$LIBINTL,;t t
30673 s,@LTLIBINTL@,$LTLIBINTL,;t t
30674 s,@POSUB@,$POSUB,;t t
30675 s,@GLIBC2@,$GLIBC2,;t t
30676 s,@ALLOCA@,$ALLOCA,;t t
30677 s,@GLIBC21@,$GLIBC21,;t t
30678 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30679 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30680 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30681 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30682 s,@INTLBISON@,$INTLBISON,;t t
30683 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30684 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30685 s,@CATOBJEXT@,$CATOBJEXT,;t t
30686 s,@DATADIRNAME@,$DATADIRNAME,;t t
30687 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30688 s,@GENCAT@,$GENCAT,;t t
30689 s,@INTLOBJS@,$INTLOBJS,;t t
30690 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30691 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30692 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30693 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30694 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30695 s,@GNOME_DIR@,$GNOME_DIR,;t t
30696 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30697 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30698 s,@WX_DIR@,$WX_DIR,;t t
30699 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30700 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30701 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30702 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30703 s,@STATIC_FD@,$STATIC_FD,;t t
30704 s,@STATIC_SD@,$STATIC_SD,;t t
30705 s,@STATIC_DIR@,$STATIC_DIR,;t t
30706 s,@STATIC_CONS@,$STATIC_CONS,;t t
30707 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30708 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30709 s,@ALL_DIRS@,$ALL_DIRS,;t t
30710 s,@DIRD_DIR@,$DIRD_DIR,;t t
30711 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30712 s,@STORED_DIR@,$STORED_DIR,;t t
30713 s,@CONS_INC@,$CONS_INC,;t t
30714 s,@CONS_OBJ@,$CONS_OBJ,;t t
30715 s,@CONS_SRC@,$CONS_SRC,;t t
30716 s,@CONS_LIBS@,$CONS_LIBS,;t t
30717 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30718 s,@READLINE_SRC@,$READLINE_SRC,;t t
30719 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30720 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30721 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30722 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30723 s,@working_dir@,$working_dir,;t t
30724 s,@scriptdir@,$scriptdir,;t t
30725 s,@dump_email@,$dump_email,;t t
30726 s,@job_email@,$job_email,;t t
30727 s,@smtp_host@,$smtp_host,;t t
30728 s,@piddir@,$piddir,;t t
30729 s,@subsysdir@,$subsysdir,;t t
30730 s,@baseport@,$baseport,;t t
30731 s,@dir_port@,$dir_port,;t t
30732 s,@fd_port@,$fd_port,;t t
30733 s,@sd_port@,$sd_port,;t t
30734 s,@dir_password@,$dir_password,;t t
30735 s,@fd_password@,$fd_password,;t t
30736 s,@sd_password@,$sd_password,;t t
30737 s,@mon_dir_password@,$mon_dir_password,;t t
30738 s,@mon_fd_password@,$mon_fd_password,;t t
30739 s,@mon_sd_password@,$mon_sd_password,;t t
30740 s,@dir_user@,$dir_user,;t t
30741 s,@dir_group@,$dir_group,;t t
30742 s,@sd_user@,$sd_user,;t t
30743 s,@sd_group@,$sd_group,;t t
30744 s,@fd_user@,$fd_user,;t t
30745 s,@fd_group@,$fd_group,;t t
30746 s,@SBINPERM@,$SBINPERM,;t t
30747 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30748 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30749 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30750 s,@cats@,$cats,;t t
30751 s,@DB_NAME@,$DB_NAME,;t t
30752 s,@GETCONF@,$GETCONF,;t t
30753 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30754 s,@X_CFLAGS@,$X_CFLAGS,;t t
30755 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30756 s,@X_LIBS@,$X_LIBS,;t t
30757 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30758 s,@LIBOBJS@,$LIBOBJS,;t t
30759 s,@FDLIBS@,$FDLIBS,;t t
30760 s,@DEBUG@,$DEBUG,;t t
30761 s,@DINCLUDE@,$DINCLUDE,;t t
30762 s,@DLIB@,$DLIB,;t t
30763 s,@DB_LIBS@,$DB_LIBS,;t t
30764 s,@WCFLAGS@,$WCFLAGS,;t t
30765 s,@WLDFLAGS@,$WLDFLAGS,;t t
30766 s,@WRAPLIBS@,$WRAPLIBS,;t t
30767 s,@OBJLIST@,$OBJLIST,;t t
30768 s,@hostname@,$hostname,;t t
30769 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30770 s,@PSCMD@,$PSCMD,;t t
30771 s,@WIN32@,$WIN32,;t t
30772 s,@MACOSX@,$MACOSX,;t t
30773 s,@DISTNAME@,$DISTNAME,;t t
30774 s,@DISTVER@,$DISTVER,;t t
30775 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30776 /@MCOMMON@/r $MCOMMON
30782 cat >>$CONFIG_STATUS <<\_ACEOF
30783 # Split the substitutions into bite-sized pieces for seds with
30784 # small command number limits, like on Digital OSF/1 and HP-UX.
30785 ac_max_sed_lines=48
30786 ac_sed_frag=1 # Number of current file.
30787 ac_beg=1 # First line for current file.
30788 ac_end=$ac_max_sed_lines # Line after last line for current file.
30791 while $ac_more_lines; do
30792 if test $ac_beg -gt 1; then
30793 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30795 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30797 if test ! -s $tmp/subs.frag; then
30798 ac_more_lines=false
30800 # The purpose of the label and of the branching condition is to
30801 # speed up the sed processing (if there are no `@' at all, there
30802 # is no need to browse any of the substitutions).
30803 # These are the two extra sed commands mentioned above.
30805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30806 if test -z "$ac_sed_cmds"; then
30807 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30809 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30811 ac_sed_frag=`expr $ac_sed_frag + 1`
30813 ac_end=`expr $ac_end + $ac_max_sed_lines`
30816 if test -z "$ac_sed_cmds"; then
30819 fi # test -n "$CONFIG_FILES"
30822 cat >>$CONFIG_STATUS <<\_ACEOF
30823 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30826 - | *:- | *:-:* ) # input from stdin
30828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30832 * ) ac_file_in=$ac_file.in ;;
30835 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30838 X"$ac_file" : 'X\(//\)[^/]' \| \
30839 X"$ac_file" : 'X\(//\)$' \| \
30840 X"$ac_file" : 'X\(/\)' \| \
30841 . : '\(.\)' 2>/dev/null ||
30843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30845 /^X\(\/\/\)$/{ s//\1/; q; }
30846 /^X\(\/\).*/{ s//\1/; q; }
30848 { if $as_mkdir_p; then
30853 while test ! -d "$as_dir"; do
30854 as_dirs="$as_dir $as_dirs"
30855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30857 X"$as_dir" : 'X\(//\)[^/]' \| \
30858 X"$as_dir" : 'X\(//\)$' \| \
30859 X"$as_dir" : 'X\(/\)' \| \
30860 . : '\(.\)' 2>/dev/null ||
30862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30864 /^X\(\/\/\)$/{ s//\1/; q; }
30865 /^X\(\/\).*/{ s//\1/; q; }
30868 test ! -n "$as_dirs" || mkdir $as_dirs
30869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30870 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30871 { (exit 1); exit 1; }; }; }
30875 if test "$ac_dir" != .; then
30876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30877 # A "../" for each directory in $ac_dir_suffix.
30878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30880 ac_dir_suffix= ac_top_builddir=
30884 .) # No --srcdir option. We are building in place.
30886 if test -z "$ac_top_builddir"; then
30889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30891 [\\/]* | ?:[\\/]* ) # Absolute path.
30892 ac_srcdir=$srcdir$ac_dir_suffix;
30893 ac_top_srcdir=$srcdir ;;
30894 *) # Relative path.
30895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30899 # Do not use `cd foo && pwd` to compute absolute paths, because
30900 # the directories may not exist.
30902 .) ac_abs_builddir="$ac_dir";;
30905 .) ac_abs_builddir=`pwd`;;
30906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30910 case $ac_abs_builddir in
30911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30913 case ${ac_top_builddir}. in
30914 .) ac_abs_top_builddir=$ac_abs_builddir;;
30915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30919 case $ac_abs_builddir in
30920 .) ac_abs_srcdir=$ac_srcdir;;
30923 .) ac_abs_srcdir=$ac_abs_builddir;;
30924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30928 case $ac_abs_builddir in
30929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30931 case $ac_top_srcdir in
30932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30941 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30944 if test x"$ac_file" != x-; then
30945 { echo "$as_me:$LINENO: creating $ac_file" >&5
30946 echo "$as_me: creating $ac_file" >&6;}
30949 # Let's still pretend it is `configure' which instantiates (i.e., don't
30950 # use $as_me), people would be surprised to read:
30951 # /* config.h. Generated by config.status. */
30952 if test x"$ac_file" = x-; then
30955 configure_input="$ac_file. "
30957 configure_input=$configure_input"Generated from `echo $ac_file_in |
30958 sed 's,.*/,,'` by configure."
30960 # First look for the input files in the build tree, otherwise in the
30962 ac_file_inputs=`IFS=:
30963 for f in $ac_file_in; do
30965 -) echo $tmp/stdin ;;
30967 # Absolute (can't be DOS-style, as IFS=:)
30968 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30969 echo "$as_me: error: cannot find input file: $f" >&2;}
30970 { (exit 1); exit 1; }; }
30973 if test -f "$f"; then
30976 elif test -f "$srcdir/$f"; then
30981 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30982 echo "$as_me: error: cannot find input file: $f" >&2;}
30983 { (exit 1); exit 1; }; }
30986 done` || { (exit 1); exit 1; }
30988 cat >>$CONFIG_STATUS <<_ACEOF
30992 cat >>$CONFIG_STATUS <<\_ACEOF
30994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30995 s,@configure_input@,$configure_input,;t t
30996 s,@srcdir@,$ac_srcdir,;t t
30997 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30998 s,@top_srcdir@,$ac_top_srcdir,;t t
30999 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31000 s,@builddir@,$ac_builddir,;t t
31001 s,@abs_builddir@,$ac_abs_builddir,;t t
31002 s,@top_builddir@,$ac_top_builddir,;t t
31003 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31004 s,@INSTALL@,$ac_INSTALL,;t t
31005 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31007 if test x"$ac_file" != x-; then
31008 mv $tmp/out $ac_file
31016 cat >>$CONFIG_STATUS <<\_ACEOF
31019 # CONFIG_HEADER section.
31022 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31023 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31025 # ac_d sets the value in "#define NAME VALUE" lines.
31026 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31027 ac_dB='[ ].*$,\1#\2'
31030 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31031 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31032 ac_uB='$,\1#\2define\3'
31036 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31039 - | *:- | *:-:* ) # input from stdin
31041 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31042 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31043 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31045 * ) ac_file_in=$ac_file.in ;;
31048 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31049 echo "$as_me: creating $ac_file" >&6;}
31051 # First look for the input files in the build tree, otherwise in the
31053 ac_file_inputs=`IFS=:
31054 for f in $ac_file_in; do
31056 -) echo $tmp/stdin ;;
31058 # Absolute (can't be DOS-style, as IFS=:)
31059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31060 echo "$as_me: error: cannot find input file: $f" >&2;}
31061 { (exit 1); exit 1; }; }
31062 # Do quote $f, to prevent DOS paths from being IFS'd.
31065 if test -f "$f"; then
31068 elif test -f "$srcdir/$f"; then
31073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31074 echo "$as_me: error: cannot find input file: $f" >&2;}
31075 { (exit 1); exit 1; }; }
31078 done` || { (exit 1); exit 1; }
31079 # Remove the trailing spaces.
31080 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31084 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31085 # `conftest.undefs', that substitutes the proper values into
31086 # config.h.in to produce config.h. The first handles `#define'
31087 # templates, and the second `#undef' templates.
31088 # And first: Protect against being on the right side of a sed subst in
31089 # config.status. Protect against being in an unquoted here document
31090 # in config.status.
31091 rm -f conftest.defines conftest.undefs
31092 # Using a here document instead of a string reduces the quoting nightmare.
31093 # Putting comments in sed scripts is not portable.
31095 # `end' is used to avoid that the second main sed command (meant for
31096 # 0-ary CPP macros) applies to n-ary macro definitions.
31097 # See the Autoconf documentation for `clear'.
31098 cat >confdef2sed.sed <<\_ACEOF
31103 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31105 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31108 # If some macros were called several times there might be several times
31109 # the same #defines, which is useless. Nevertheless, we may not want to
31110 # sort them, since we want the *last* AC-DEFINE to be honored.
31111 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31112 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31113 rm -f confdef2sed.sed
31115 # This sed command replaces #undef with comments. This is necessary, for
31116 # example, in the case of _POSIX_SOURCE, which is predefined and required
31117 # on some systems where configure will not decide to define it.
31118 cat >>conftest.undefs <<\_ACEOF
31119 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31122 # Break up conftest.defines because some shells have a limit on the size
31123 # of here documents, and old seds have small limits too (100 cmds).
31124 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31125 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31126 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31127 echo ' :' >>$CONFIG_STATUS
31128 rm -f conftest.tail
31129 while grep . conftest.defines >/dev/null
31131 # Write a limited-size here document to $tmp/defines.sed.
31132 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31133 # Speed up: don't consider the non `#define' lines.
31134 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31135 # Work around the forget-to-reset-the-flag bug.
31136 echo 't clr' >>$CONFIG_STATUS
31137 echo ': clr' >>$CONFIG_STATUS
31138 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31140 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31142 mv $tmp/out $tmp/in
31144 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31145 rm -f conftest.defines
31146 mv conftest.tail conftest.defines
31148 rm -f conftest.defines
31149 echo ' fi # grep' >>$CONFIG_STATUS
31150 echo >>$CONFIG_STATUS
31152 # Break up conftest.undefs because some shells have a limit on the size
31153 # of here documents, and old seds have small limits too (100 cmds).
31154 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31155 rm -f conftest.tail
31156 while grep . conftest.undefs >/dev/null
31158 # Write a limited-size here document to $tmp/undefs.sed.
31159 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31160 # Speed up: don't consider the non `#undef'
31161 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31162 # Work around the forget-to-reset-the-flag bug.
31163 echo 't clr' >>$CONFIG_STATUS
31164 echo ': clr' >>$CONFIG_STATUS
31165 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31167 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31169 mv $tmp/out $tmp/in
31171 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31172 rm -f conftest.undefs
31173 mv conftest.tail conftest.undefs
31175 rm -f conftest.undefs
31177 cat >>$CONFIG_STATUS <<\_ACEOF
31178 # Let's still pretend it is `configure' which instantiates (i.e., don't
31179 # use $as_me), people would be surprised to read:
31180 # /* config.h. Generated by config.status. */
31181 if test x"$ac_file" = x-; then
31182 echo "/* Generated by configure. */" >$tmp/config.h
31184 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31186 cat $tmp/in >>$tmp/config.h
31188 if test x"$ac_file" != x-; then
31189 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31190 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31191 echo "$as_me: $ac_file is unchanged" >&6;}
31193 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31195 X"$ac_file" : 'X\(//\)[^/]' \| \
31196 X"$ac_file" : 'X\(//\)$' \| \
31197 X"$ac_file" : 'X\(/\)' \| \
31198 . : '\(.\)' 2>/dev/null ||
31200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31202 /^X\(\/\/\)$/{ s//\1/; q; }
31203 /^X\(\/\).*/{ s//\1/; q; }
31205 { if $as_mkdir_p; then
31210 while test ! -d "$as_dir"; do
31211 as_dirs="$as_dir $as_dirs"
31212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31214 X"$as_dir" : 'X\(//\)[^/]' \| \
31215 X"$as_dir" : 'X\(//\)$' \| \
31216 X"$as_dir" : 'X\(/\)' \| \
31217 . : '\(.\)' 2>/dev/null ||
31219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31221 /^X\(\/\/\)$/{ s//\1/; q; }
31222 /^X\(\/\).*/{ s//\1/; q; }
31225 test ! -n "$as_dirs" || mkdir $as_dirs
31226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31228 { (exit 1); exit 1; }; }; }
31231 mv $tmp/config.h $ac_file
31235 rm -f $tmp/config.h
31239 cat >>$CONFIG_STATUS <<\_ACEOF
31242 # CONFIG_COMMANDS section.
31244 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31245 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31246 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31247 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31248 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31249 X"$ac_dest" : 'X\(//\)[^/]' \| \
31250 X"$ac_dest" : 'X\(//\)$' \| \
31251 X"$ac_dest" : 'X\(/\)' \| \
31252 . : '\(.\)' 2>/dev/null ||
31254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31256 /^X\(\/\/\)$/{ s//\1/; q; }
31257 /^X\(\/\).*/{ s//\1/; q; }
31259 { if $as_mkdir_p; then
31264 while test ! -d "$as_dir"; do
31265 as_dirs="$as_dir $as_dirs"
31266 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31268 X"$as_dir" : 'X\(//\)[^/]' \| \
31269 X"$as_dir" : 'X\(//\)$' \| \
31270 X"$as_dir" : 'X\(/\)' \| \
31271 . : '\(.\)' 2>/dev/null ||
31273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31275 /^X\(\/\/\)$/{ s//\1/; q; }
31276 /^X\(\/\).*/{ s//\1/; q; }
31279 test ! -n "$as_dirs" || mkdir $as_dirs
31280 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31281 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31282 { (exit 1); exit 1; }; }; }
31286 if test "$ac_dir" != .; then
31287 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31288 # A "../" for each directory in $ac_dir_suffix.
31289 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31291 ac_dir_suffix= ac_top_builddir=
31295 .) # No --srcdir option. We are building in place.
31297 if test -z "$ac_top_builddir"; then
31300 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31302 [\\/]* | ?:[\\/]* ) # Absolute path.
31303 ac_srcdir=$srcdir$ac_dir_suffix;
31304 ac_top_srcdir=$srcdir ;;
31305 *) # Relative path.
31306 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31307 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31310 # Do not use `cd foo && pwd` to compute absolute paths, because
31311 # the directories may not exist.
31313 .) ac_abs_builddir="$ac_dir";;
31316 .) ac_abs_builddir=`pwd`;;
31317 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31318 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31321 case $ac_abs_builddir in
31322 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31324 case ${ac_top_builddir}. in
31325 .) ac_abs_top_builddir=$ac_abs_builddir;;
31326 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31327 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31330 case $ac_abs_builddir in
31331 .) ac_abs_srcdir=$ac_srcdir;;
31334 .) ac_abs_srcdir=$ac_abs_builddir;;
31335 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31336 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31339 case $ac_abs_builddir in
31340 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31342 case $ac_top_srcdir in
31343 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31344 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31345 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31350 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31351 echo "$as_me: executing $ac_dest commands" >&6;}
31354 for ac_file in $CONFIG_FILES; do
31355 # Support "outfile[:infile[:infile...]]"
31357 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31359 # PO directories have a Makefile.in generated from Makefile.in.in.
31360 case "$ac_file" in */Makefile.in)
31361 # Adjust a relative srcdir.
31362 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31363 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31364 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31365 # In autoconf-2.13 it is called $ac_given_srcdir.
31366 # In autoconf-2.50 it is called $srcdir.
31367 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31368 case "$ac_given_srcdir" in
31369 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31370 /*) top_srcdir="$ac_given_srcdir" ;;
31371 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31373 # Treat a directory as a PO directory if and only if it has a
31374 # POTFILES.in file. This allows packages to have multiple PO
31375 # directories under different names or in different locations.
31376 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31377 rm -f "$ac_dir/POTFILES"
31378 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31379 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31380 POMAKEFILEDEPS="POTFILES.in"
31381 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31382 # on $ac_dir but don't depend on user-specified configuration
31384 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31385 # The LINGUAS file contains the set of available languages.
31386 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31387 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31389 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31390 # Hide the ALL_LINGUAS assigment from automake.
31391 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31392 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31394 # The set of available languages was given in configure.in.
31395 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31398 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31399 # Compute UPDATEPOFILES
31400 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31401 # Compute DUMMYPOFILES
31402 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31404 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31405 case "$ac_given_srcdir" in
31407 *) srcdirpre='$(srcdir)/' ;;
31413 for lang in $ALL_LINGUAS; do
31414 POFILES="$POFILES $srcdirpre$lang.po"
31415 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31416 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31417 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31419 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31420 # environment variable.
31422 if test -n "$ALL_LINGUAS"; then
31423 for presentlang in $ALL_LINGUAS; do
31425 if test "%UNSET%" != "$LINGUAS"; then
31426 desiredlanguages="$LINGUAS"
31428 desiredlanguages="$ALL_LINGUAS"
31430 for desiredlang in $desiredlanguages; do
31431 # Use the presentlang catalog if desiredlang is
31432 # a. equal to presentlang, or
31433 # b. a variant of presentlang (because in this case,
31434 # presentlang can be used as a fallback for messages
31435 # which are not translated in the desiredlang catalog).
31436 case "$desiredlang" in
31437 "$presentlang"*) useit=yes;;
31440 if test $useit = yes; then
31441 INST_LINGUAS="$INST_LINGUAS $presentlang"
31446 if test -n "$INST_LINGUAS"; then
31447 for lang in $INST_LINGUAS; do
31448 CATALOGS="$CATALOGS $lang.gmo"
31451 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31452 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"
31453 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31454 if test -f "$f"; then
31456 *.orig | *.bak | *~) ;;
31457 *) cat "$f" >> "$ac_dir/Makefile" ;;
31465 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31471 cat >>$CONFIG_STATUS <<\_ACEOF
31473 { (exit 0); exit 0; }
31475 chmod +x $CONFIG_STATUS
31476 ac_clean_files=$ac_clean_files_save
31479 # configure is writing to config.log, and then calls config.status.
31480 # config.status does its own redirection, appending to config.log.
31481 # Unfortunately, on DOS this fails, as config.log is still kept open
31482 # by configure, so config.status won't be able to write to it; its
31483 # output is simply discarded. So we exec the FD to /dev/null,
31484 # effectively closing config.log, so it can be properly (re)opened and
31485 # appended to by config.status. When coming back to configure, we
31486 # need to make the FD available again.
31487 if test "$no_create" != yes; then
31489 ac_config_status_args=
31490 test "$silent" = yes &&
31491 ac_config_status_args="$ac_config_status_args --quiet"
31493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31496 # would make configure fail if this is the last instruction.
31497 $ac_cs_success || { (exit 1); exit 1; }
31502 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31503 chmod 755 dvd-handler
31504 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31509 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31510 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31512 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31513 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31515 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31516 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31518 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31519 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31521 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31522 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31524 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31525 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31527 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31528 chmod 755 $c/sqlite
31531 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31532 largefile_support="yes"
31536 # A whole lot of hand springs to get the compiler version.
31537 # This is because gcc changed the output in version 3.0
31539 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31540 if test "x${CCVERSION}" = "x" ; then
31541 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31543 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31544 if test x"${CXXVERSION}" = x ; then
31545 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31548 if test "x${subsysdir}" = "x${sbindir}" ; then
31551 echo "You have set --sbindir and --with-subsys-dir"
31552 echo " both equal to: ${subsysdir} "
31553 echo " This is not permitted. Please reconfigure."
31555 echo "Aborting configuration ..."
31561 if test "x${db_name}" = "xInternal" ; then
31564 echo "You have not specified either --enable-client-only or one of the"
31565 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31566 echo " This is not permitted. Please reconfigure."
31568 echo "Aborting the configuration ..."
31575 Configuration on `date`:
31577 Host: $host -- ${DISTNAME} ${DISTVER}
31578 Bacula version: ${VERSION} (${DATE})
31579 Source code location: ${srcdir}
31580 Install binaries: ${sbindir}
31581 Install config files: ${sysconfdir}
31582 Scripts directory: ${scriptdir}
31583 Working directory: ${working_dir}
31584 PID directory: ${piddir}
31585 Subsys directory: ${subsysdir}
31586 Man directory: ${mandir}
31587 Data directory: ${datadir}
31588 C Compiler: ${CC} ${CCVERSION}
31589 C++ Compiler: ${CXX} ${CXXVERSION}
31590 Compiler flags: ${WCFLAGS} ${CFLAGS}
31591 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31593 Statically Linked Tools: ${support_static_tools}
31594 Statically Linked FD: ${support_static_fd}
31595 Statically Linked SD: ${support_static_sd}
31596 Statically Linked DIR: ${support_static_dir}
31597 Statically Linked CONS: ${support_static_cons}
31598 Database type: ${db_name}
31599 Database lib: ${DB_LIBS}
31601 Job Output Email: ${job_email}
31602 Traceback Email: ${dump_email}
31603 SMTP Host Address: ${smtp_host}
31605 Director Port: ${dir_port}
31606 File daemon Port: ${fd_port}
31607 Storage daemon Port: ${sd_port}
31609 Director User: ${dir_user}
31610 Director Group: ${dir_group}
31611 Storage Daemon User: ${sd_user}
31612 Storage DaemonGroup: ${sd_group}
31613 File Daemon User: ${fd_user}
31614 File Daemon Group: ${fd_group}
31616 SQL binaries Directory ${SQL_BINDIR}
31618 Large file support: $largefile_support
31619 Bacula conio support: ${got_conio} ${CONS_LIBS}
31620 readline support: ${got_readline} ${PRTREADLINE_SRC}
31621 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31622 TLS support: ${support_tls}
31623 Encryption support: ${support_crypto}
31624 ZLIB support: ${have_zlib}
31625 enable-smartalloc: ${support_smartalloc}
31626 enable-gnome: ${support_gnome} ${gnome_version}
31627 enable-wx-console: ${support_wx_console} ${wx_version}
31628 enable-tray-monitor: ${support_tray_monitor}
31629 client-only: ${build_client_only}
31630 build-dird: ${build_dird}
31631 build-stored: ${build_stored}
31632 ACL support: ${have_acl}
31633 Python support: ${support_python} ${PYTHON_LIBS}