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 BASECC=`basename $CC`
3211 if test "x$BASECC" = xgcc; then
3212 cat >>confdefs.h <<\_ACEOF
3218 # Extract the first word of "$CXX", so it can be a program name with args.
3219 set dummy $CXX; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_CXX+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3250 if test -n "$CXX"; then
3251 echo "$as_me:$LINENO: result: $CXX" >&5
3252 echo "${ECHO_T}$CXX" >&6
3254 echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3258 if test ! -e $CXX; then
3259 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3260 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3261 { (exit 1); exit 1; }; }
3264 # Find a good install program. We prefer a C program (faster),
3265 # so one script is as good as another. But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # OS/2's system install, which has a completely different semantic
3276 # ./install, which can be erroneously created by make from ./install.sh.
3277 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3278 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3279 if test -z "$INSTALL"; then
3280 if test "${ac_cv_path_install+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 # Account for people who put trailing slashes in PATH elements.
3290 ./ | .// | /cC/* | \
3291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3295 # OSF1 and SCO ODT 3.0 have their own names for install.
3296 # Don't use installbsd from OSF since it installs stuff as root
3298 for ac_prog in ginstall scoinst install; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3301 if test $ac_prog = install &&
3302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # AIX install. It has an incompatible calling convention.
3305 elif test $ac_prog = install &&
3306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307 # program-specific install script used by HP pwplus--don't use.
3310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3322 if test "${ac_cv_path_install+set}" = set; then
3323 INSTALL=$ac_cv_path_install
3325 # As a last resort, use the slow shell script. We don't cache a
3326 # path for INSTALL within a source directory, because that will
3327 # break other packages using the cache if that directory is
3328 # removed, or if the path is relative.
3329 INSTALL=$ac_install_sh
3332 echo "$as_me:$LINENO: result: $INSTALL" >&5
3333 echo "${ECHO_T}$INSTALL" >&6
3335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3336 # It thinks the first close brace ends the variable substitution.
3337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_RANLIB+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$RANLIB"; then
3352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 RANLIB=$ac_cv_prog_RANLIB
3371 if test -n "$RANLIB"; then
3372 echo "$as_me:$LINENO: result: $RANLIB" >&5
3373 echo "${ECHO_T}$RANLIB" >&6
3375 echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3380 if test -z "$ac_cv_prog_RANLIB"; then
3381 ac_ct_RANLIB=$RANLIB
3382 # Extract the first word of "ranlib", so it can be a program name with args.
3383 set dummy ranlib; ac_word=$2
3384 echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$ac_ct_RANLIB"; then
3390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_RANLIB="ranlib"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3410 if test -n "$ac_ct_RANLIB"; then
3411 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 RANLIB=$ac_ct_RANLIB
3420 RANLIB="$ac_cv_prog_RANLIB"
3423 # Extract the first word of "mv", so it can be a program name with args.
3424 set dummy mv; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_path_MV+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3455 if test -n "$MV"; then
3456 echo "$as_me:$LINENO: result: $MV" >&5
3457 echo "${ECHO_T}$MV" >&6
3459 echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3463 # Extract the first word of "rm", so it can be a program name with args.
3464 set dummy rm; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_RM+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3495 if test -n "$RM"; then
3496 echo "$as_me:$LINENO: result: $RM" >&5
3497 echo "${ECHO_T}$RM" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3503 # Extract the first word of "cp", so it can be a program name with args.
3504 set dummy cp; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_path_CP+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3535 if test -n "$CP"; then
3536 echo "$as_me:$LINENO: result: $CP" >&5
3537 echo "${ECHO_T}$CP" >&6
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3543 # Extract the first word of "sed", so it can be a program name with args.
3544 set dummy sed; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_path_SED+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3575 if test -n "$SED"; then
3576 echo "$as_me:$LINENO: result: $SED" >&5
3577 echo "${ECHO_T}$SED" >&6
3579 echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3583 # Extract the first word of "echo", so it can be a program name with args.
3584 set dummy echo; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_ECHO+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3613 ECHO=$ac_cv_path_ECHO
3615 if test -n "$ECHO"; then
3616 echo "$as_me:$LINENO: result: $ECHO" >&5
3617 echo "${ECHO_T}$ECHO" >&6
3619 echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3623 # Extract the first word of "cmp", so it can be a program name with args.
3624 set dummy cmp; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_path_CMP+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3655 if test -n "$CMP"; then
3656 echo "$as_me:$LINENO: result: $CMP" >&5
3657 echo "${ECHO_T}$CMP" >&6
3659 echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3663 # Extract the first word of "tbl", so it can be a program name with args.
3664 set dummy tbl; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_path_TBL+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3695 if test -n "$TBL"; then
3696 echo "$as_me:$LINENO: result: $TBL" >&5
3697 echo "${ECHO_T}$TBL" >&6
3699 echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3703 # Extract the first word of "ar", so it can be a program name with args.
3704 set dummy ar; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_path_AR+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3735 if test -n "$AR"; then
3736 echo "$as_me:$LINENO: result: $AR" >&5
3737 echo "${ECHO_T}$AR" >&6
3739 echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3743 # Extract the first word of "openssl", so it can be a program name with args.
3744 set dummy openssl; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_path_OPENSSL+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3773 OPENSSL=$ac_cv_path_OPENSSL
3775 if test -n "$OPENSSL"; then
3776 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3777 echo "${ECHO_T}$OPENSSL" >&6
3779 echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3783 # Extract the first word of "mtx", so it can be a program name with args.
3784 set dummy mtx; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_path_MTX+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3815 if test -n "$MTX"; then
3816 echo "$as_me:$LINENO: result: $MTX" >&5
3817 echo "${ECHO_T}$MTX" >&6
3819 echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3823 # Extract the first word of "dd", so it can be a program name with args.
3824 set dummy dd; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_DD+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3855 if test -n "$DD"; then
3856 echo "$as_me:$LINENO: result: $DD" >&5
3857 echo "${ECHO_T}$DD" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3863 # Extract the first word of "mkisofs", so it can be a program name with args.
3864 set dummy mkisofs; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_path_MKISOFS+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3893 MKISOFS=$ac_cv_path_MKISOFS
3895 if test -n "$MKISOFS"; then
3896 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3897 echo "${ECHO_T}$MKISOFS" >&6
3899 echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 # Extract the first word of "python", so it can be a program name with args.
3904 set dummy python; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_path_PYTHON+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3933 PYTHON=$ac_cv_path_PYTHON
3935 if test -n "$PYTHON"; then
3936 echo "$as_me:$LINENO: result: $PYTHON" >&5
3937 echo "${ECHO_T}$PYTHON" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 # Extract the first word of "growisofs", so it can be a program name with args.
3944 set dummy growisofs; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3973 GROWISOFS=$ac_cv_path_GROWISOFS
3975 if test -n "$GROWISOFS"; then
3976 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3977 echo "${ECHO_T}$GROWISOFS" >&6
3979 echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3983 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3984 set dummy dvd+rw-mediainfo; ac_word=$2
3985 echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 case $DVDRWMEDIAINFO in
3992 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4013 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4015 if test -n "$DVDRWMEDIAINFO"; then
4016 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4017 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4023 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4024 set dummy dvd+rw-format; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 case $DVDRWFORMAT in
4032 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4053 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4055 if test -n "$DVDRWFORMAT"; then
4056 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4057 echo "${ECHO_T}$DVDRWFORMAT" >&6
4059 echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4063 # Extract the first word of "pkg-config", so it can be a program name with args.
4064 set dummy pkg-config; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4093 PKGCONFIG=$ac_cv_path_PKGCONFIG
4095 if test -n "$PKGCONFIG"; then
4096 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4097 echo "${ECHO_T}$PKGCONFIG" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4104 if test "x$WXCONFIG" = x; then
4107 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4108 set dummy ${WXCONFIG}; ac_word=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4137 WXCONFIG=$ac_cv_path_WXCONFIG
4139 if test -n "$WXCONFIG"; then
4140 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4141 echo "${ECHO_T}$WXCONFIG" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4148 # Extract the first word of "cdrecord", so it can be a program name with args.
4149 set dummy cdrecord; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_CDRECORD+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4178 CDRECORD=$ac_cv_path_CDRECORD
4180 if test -n "$CDRECORD"; then
4181 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4182 echo "${ECHO_T}$CDRECORD" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4188 # Extract the first word of "pidof", so it can be a program name with args.
4189 set dummy pidof; ac_word=$2
4190 echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192 if test "${ac_cv_path_PIDOF+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4218 PIDOF=$ac_cv_path_PIDOF
4220 if test -n "$PIDOF"; then
4221 echo "$as_me:$LINENO: result: $PIDOF" >&5
4222 echo "${ECHO_T}$PIDOF" >&6
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4228 for ac_prog in gawk mawk nawk awk
4230 # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_AWK+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 if test -n "$AWK"; then
4238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_AWK="$ac_prog"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test -n "$AWK"; then
4258 echo "$as_me:$LINENO: result: $AWK" >&5
4259 echo "${ECHO_T}$AWK" >&6
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4265 test -n "$AWK" && break
4268 # Some AWK programs fail, so test it and warn the user
4269 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4270 { if ((prog == $2) || (("(" prog ")") == $2) ||
4271 (("" prog "") == $2) ||
4272 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4274 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4275 The regex engine of $AWK is too broken to be used you
4276 might want to install GNU AWK.
4277 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4278 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4279 The regex engine of $AWK is too broken to be used you
4280 might want to install GNU AWK.
4281 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4282 { (exit 1); exit 1; }; }
4285 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4286 set dummy $THE_AWK; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_path_AWK+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4317 if test -n "$AWK"; then
4318 echo "$as_me:$LINENO: result: $AWK" >&5
4319 echo "${ECHO_T}$AWK" >&6
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4326 test -n "$ARFLAG" || ARFLAGS="cr"
4337 # Make sure we can run config.sub.
4338 $ac_config_sub sun4 >/dev/null 2>&1 ||
4339 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4340 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4341 { (exit 1); exit 1; }; }
4343 echo "$as_me:$LINENO: checking build system type" >&5
4344 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4345 if test "${ac_cv_build+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 ac_cv_build_alias=$build_alias
4349 test -z "$ac_cv_build_alias" &&
4350 ac_cv_build_alias=`$ac_config_guess`
4351 test -z "$ac_cv_build_alias" &&
4352 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4354 { (exit 1); exit 1; }; }
4355 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4356 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4357 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4358 { (exit 1); exit 1; }; }
4361 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4362 echo "${ECHO_T}$ac_cv_build" >&6
4364 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4365 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4366 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4370 echo "$as_me:$LINENO: checking host system type" >&5
4371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4372 if test "${ac_cv_host+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_cv_host_alias=$host_alias
4376 test -z "$ac_cv_host_alias" &&
4377 ac_cv_host_alias=$ac_cv_build_alias
4378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4381 { (exit 1); exit 1; }; }
4384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4385 echo "${ECHO_T}$ac_cv_host" >&6
4387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4393 *cygwin* ) CYGWIN=yes;;
4397 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4403 HAVE_SUN_OS_FALSE='#'
4405 HAVE_SUN_OS_TRUE='#'
4408 cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_SUN_OS 1
4417 HAVE_SUN_OS_FALSE='#'
4419 HAVE_SUN_OS_TRUE='#'
4424 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4430 HAVE_OSF1_OS_FALSE='#'
4432 HAVE_OSF1_OS_TRUE='#'
4435 cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_OSF1_OS 1
4444 HAVE_OSF1_OS_FALSE='#'
4446 HAVE_OSF1_OS_TRUE='#'
4451 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4457 HAVE_AIX_OS_FALSE='#'
4459 HAVE_AIX_OS_TRUE='#'
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_AIX_OS 1
4471 HAVE_AIX_OS_FALSE='#'
4473 HAVE_AIX_OS_TRUE='#'
4478 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4484 HAVE_HPUX_OS_FALSE='#'
4486 HAVE_HPUX_OS_TRUE='#'
4489 cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_HPUX_OS 1
4498 HAVE_HPUX_OS_FALSE='#'
4500 HAVE_HPUX_OS_TRUE='#'
4505 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4511 HAVE_LINUX_OS_FALSE='#'
4513 HAVE_LINUX_OS_TRUE='#'
4514 HAVE_LINUX_OS_FALSE=
4516 cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_LINUX_OS 1
4525 HAVE_LINUX_OS_FALSE='#'
4527 HAVE_LINUX_OS_TRUE='#'
4528 HAVE_LINUX_OS_FALSE=
4532 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4537 HAVE_FREEBSD_OS_TRUE=
4538 HAVE_FREEBSD_OS_FALSE='#'
4540 HAVE_FREEBSD_OS_TRUE='#'
4541 HAVE_FREEBSD_OS_FALSE=
4543 cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_FREEBSD_OS 1
4551 HAVE_FREEBSD_OS_TRUE=
4552 HAVE_FREEBSD_OS_FALSE='#'
4554 HAVE_FREEBSD_OS_TRUE='#'
4555 HAVE_FREEBSD_OS_FALSE=
4559 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4564 HAVE_NETBSD_OS_TRUE=
4565 HAVE_NETBSD_OS_FALSE='#'
4567 HAVE_NETBSD_OS_TRUE='#'
4568 HAVE_NETBSD_OS_FALSE=
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_NETBSD_OS 1
4578 HAVE_NETBSD_OS_TRUE=
4579 HAVE_NETBSD_OS_FALSE='#'
4581 HAVE_NETBSD_OS_TRUE='#'
4582 HAVE_NETBSD_OS_FALSE=
4586 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4591 HAVE_OPENBSD_OS_TRUE=
4592 HAVE_OPENBSD_OS_FALSE='#'
4594 HAVE_OPENBSD_OS_TRUE='#'
4595 HAVE_OPENBSD_OS_FALSE=
4597 cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_OPENBSD_OS 1
4605 HAVE_OPENBSD_OS_TRUE=
4606 HAVE_OPENBSD_OS_FALSE='#'
4608 HAVE_OPENBSD_OS_TRUE='#'
4609 HAVE_OPENBSD_OS_FALSE=
4613 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4619 HAVE_BSDI_OS_FALSE='#'
4621 HAVE_BSDI_OS_TRUE='#'
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_BSDI_OS 1
4633 HAVE_BSDI_OS_FALSE='#'
4635 HAVE_BSDI_OS_TRUE='#'
4640 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4646 HAVE_SGI_OS_FALSE='#'
4648 HAVE_SGI_OS_TRUE='#'
4651 cat >>confdefs.h <<\_ACEOF
4652 #define HAVE_SGI_OS 1
4660 HAVE_SGI_OS_FALSE='#'
4662 HAVE_SGI_OS_TRUE='#'
4667 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4673 HAVE_IRIX_OS_FALSE='#'
4675 HAVE_IRIX_OS_TRUE='#'
4678 cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_IRIX_OS 1
4687 HAVE_IRIX_OS_FALSE='#'
4689 HAVE_IRIX_OS_TRUE='#'
4694 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4699 HAVE_DARWIN_OS_TRUE=
4700 HAVE_DARWIN_OS_FALSE='#'
4702 HAVE_DARWIN_OS_TRUE='#'
4703 HAVE_DARWIN_OS_FALSE=
4705 cat >>confdefs.h <<\_ACEOF
4706 #define HAVE_DARWIN_OS 1
4713 HAVE_DARWIN_OS_TRUE=
4714 HAVE_DARWIN_OS_FALSE='#'
4716 HAVE_DARWIN_OS_TRUE='#'
4717 HAVE_DARWIN_OS_FALSE=
4722 # -----------------------------------------------------------
4723 # ----------------------------------------------------------
4724 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4725 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4726 if test "x$DISTNAME" != "x"
4728 echo "distname set to $DISTNAME"
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4753 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4756 elif test -f /etc/SuSE-release
4759 elif test -d /etc/SuSEconfig
4762 elif test -f /etc/mandrake-release
4765 elif test -f /etc/whitebox-release
4768 elif test -f /etc/redhat-release
4771 elif test -f /etc/gentoo-release
4774 elif test -f /etc/debian_version
4777 elif test -f /etc/slackware-version
4780 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4783 elif test -f /etc/engarde-version
4786 elif test "$CYGWIN" = yes
4789 cat >>confdefs.h <<\_ACEOF
4790 #define HAVE_CYGWIN 1
4796 echo "$as_me:$LINENO: result: done" >&5
4797 echo "${ECHO_T}done" >&6
4800 # --------------------------------------------------
4801 # Suppport for gettext (translations)
4802 # By default, $datadir is ${prefix}/share
4803 # --------------------------------------------------
4804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 cat >conftest.make <<\_ACEOF
4812 @echo 'ac_maketemp="$(MAKE)"'
4814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4816 if test -n "$ac_maketemp"; then
4817 eval ac_cv_prog_make_${ac_make}_set=yes
4819 eval ac_cv_prog_make_${ac_make}_set=no
4823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4824 echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6
4828 echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4830 SET_MAKE="MAKE=${MAKE-make}"
4836 if test -n "$ac_aux_dir"; then
4837 case "$ac_aux_dir" in
4838 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4839 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4842 if test -z "$MKINSTALLDIRS"; then
4843 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4848 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4850 # Check whether --enable-nls or --disable-nls was given.
4851 if test "${enable_nls+set}" = set; then
4852 enableval="$enable_nls"
4857 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4858 echo "${ECHO_T}$USE_NLS" >&6
4865 # Prepare PATH_SEPARATOR.
4866 # The user is always right.
4867 if test "${PATH_SEPARATOR+set}" != set; then
4868 echo "#! /bin/sh" >conf$$.sh
4869 echo "exit 0" >>conf$$.sh
4871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879 # Find out how to test for executable files. Don't use a zero-byte file,
4880 # as systems may use methods other than mode bits to determine executability.
4881 cat >conf$$.file <<_ASEOF
4885 chmod +x conf$$.file
4886 if test -x conf$$.file >/dev/null 2>&1; then
4887 ac_executable_p="test -x"
4889 ac_executable_p="test -f"
4893 # Extract the first word of "msgfmt", so it can be a program name with args.
4894 set dummy msgfmt; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_MSGFMT+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4905 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4906 for ac_dir in $PATH; do
4908 test -z "$ac_dir" && ac_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4911 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4912 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4913 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4914 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4921 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4925 MSGFMT="$ac_cv_path_MSGFMT"
4926 if test "$MSGFMT" != ":"; then
4927 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4928 echo "${ECHO_T}$MSGFMT" >&6
4930 echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4934 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4935 set dummy gmsgfmt; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4964 GMSGFMT=$ac_cv_path_GMSGFMT
4966 if test -n "$GMSGFMT"; then
4967 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4968 echo "${ECHO_T}$GMSGFMT" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4976 # Prepare PATH_SEPARATOR.
4977 # The user is always right.
4978 if test "${PATH_SEPARATOR+set}" != set; then
4979 echo "#! /bin/sh" >conf$$.sh
4980 echo "exit 0" >>conf$$.sh
4982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990 # Find out how to test for executable files. Don't use a zero-byte file,
4991 # as systems may use methods other than mode bits to determine executability.
4992 cat >conf$$.file <<_ASEOF
4996 chmod +x conf$$.file
4997 if test -x conf$$.file >/dev/null 2>&1; then
4998 ac_executable_p="test -x"
5000 ac_executable_p="test -f"
5004 # Extract the first word of "xgettext", so it can be a program name with args.
5005 set dummy xgettext; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5016 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5017 for ac_dir in $PATH; do
5019 test -z "$ac_dir" && ac_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5022 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5023 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5024 (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
5025 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5032 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5036 XGETTEXT="$ac_cv_path_XGETTEXT"
5037 if test "$XGETTEXT" != ":"; then
5038 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5039 echo "${ECHO_T}$XGETTEXT" >&6
5041 echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5048 # Prepare PATH_SEPARATOR.
5049 # The user is always right.
5050 if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5062 # Find out how to test for executable files. Don't use a zero-byte file,
5063 # as systems may use methods other than mode bits to determine executability.
5064 cat >conf$$.file <<_ASEOF
5068 chmod +x conf$$.file
5069 if test -x conf$$.file >/dev/null 2>&1; then
5070 ac_executable_p="test -x"
5072 ac_executable_p="test -f"
5076 # Extract the first word of "msgmerge", so it can be a program name with args.
5077 set dummy msgmerge; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5088 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5089 for ac_dir in $PATH; do
5091 test -z "$ac_dir" && ac_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5094 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5095 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5096 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5103 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5107 MSGMERGE="$ac_cv_path_MSGMERGE"
5108 if test "$MSGMERGE" != ":"; then
5109 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5110 echo "${ECHO_T}$MSGMERGE" >&6
5112 echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5117 if test "$GMSGFMT" != ":"; then
5118 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5119 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5122 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5123 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5124 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5129 if test "$XGETTEXT" != ":"; then
5130 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5131 (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
5134 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5135 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5141 ac_config_commands="$ac_config_commands default-1"
5145 if test "X$prefix" = "XNONE"; then
5146 acl_final_prefix="$ac_default_prefix"
5148 acl_final_prefix="$prefix"
5150 if test "X$exec_prefix" = "XNONE"; then
5151 acl_final_exec_prefix='${prefix}'
5153 acl_final_exec_prefix="$exec_prefix"
5155 acl_save_prefix="$prefix"
5156 prefix="$acl_final_prefix"
5157 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5158 prefix="$acl_save_prefix"
5161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then
5163 withval="$with_gnu_ld"
5164 test "$withval" = no || with_gnu_ld=yes
5168 # Prepare PATH_SEPARATOR.
5169 # The user is always right.
5170 if test "${PATH_SEPARATOR+set}" != set; then
5171 echo "#! /bin/sh" >conf$$.sh
5172 echo "exit 0" >>conf$$.sh
5174 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182 if test "$GCC" = yes; then
5183 # Check if gcc -print-prog-name=ld gives a path.
5184 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5185 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5188 # gcc leaves a trailing carriage return which upsets mingw
5189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5194 # Accept absolute paths.
5195 [\\/]* | [A-Za-z]:[\\/]*)
5196 re_direlt='/[^/][^/]*/\.\./'
5197 # Canonicalize the path of ld
5198 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5200 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5202 test -z "$LD" && LD="$ac_prog"
5205 # If it fails, then pretend we aren't using GCC.
5209 # If it is relative, then search for the first ld in PATH.
5213 elif test "$with_gnu_ld" = yes; then
5214 echo "$as_me:$LINENO: checking for GNU ld" >&5
5215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5217 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5220 if test "${acl_cv_path_LD+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 if test -z "$LD"; then
5224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5225 for ac_dir in $PATH; do
5226 test -z "$ac_dir" && ac_dir=.
5227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5228 acl_cv_path_LD="$ac_dir/$ac_prog"
5229 # Check to see if the program is GNU ld. I'd rather use --version,
5230 # but apparently some GNU ld's only accept -v.
5231 # Break only if it was the GNU/non-GNU ld that we prefer.
5232 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5233 *GNU* | *'with BFD'*)
5234 test "$with_gnu_ld" != no && break ;;
5236 test "$with_gnu_ld" != yes && break ;;
5242 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5246 LD="$acl_cv_path_LD"
5247 if test -n "$LD"; then
5248 echo "$as_me:$LINENO: result: $LD" >&5
5249 echo "${ECHO_T}$LD" >&6
5251 echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5256 { (exit 1); exit 1; }; }
5257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5259 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5263 case `$LD -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265 acl_cv_prog_gnu_ld=yes ;;
5267 acl_cv_prog_gnu_ld=no ;;
5270 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5271 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5272 with_gnu_ld=$acl_cv_prog_gnu_ld
5277 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5278 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5279 if test "${acl_cv_rpath+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5284 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5290 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5291 echo "${ECHO_T}$acl_cv_rpath" >&6
5293 libext="$acl_cv_libext"
5294 shlibext="$acl_cv_shlibext"
5295 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5296 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5297 hardcode_direct="$acl_cv_hardcode_direct"
5298 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5299 # Check whether --enable-rpath or --disable-rpath was given.
5300 if test "${enable_rpath+set}" = set; then
5301 enableval="$enable_rpath"
5315 acl_save_prefix="$prefix"
5316 prefix="$acl_final_prefix"
5317 acl_save_exec_prefix="$exec_prefix"
5318 exec_prefix="$acl_final_exec_prefix"
5320 eval additional_includedir=\"$includedir\"
5321 eval additional_libdir=\"$libdir\"
5323 exec_prefix="$acl_save_exec_prefix"
5324 prefix="$acl_save_prefix"
5327 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5328 if test "${with_libiconv_prefix+set}" = set; then
5329 withval="$with_libiconv_prefix"
5331 if test "X$withval" = "Xno"; then
5334 if test "X$withval" = "X"; then
5336 acl_save_prefix="$prefix"
5337 prefix="$acl_final_prefix"
5338 acl_save_exec_prefix="$exec_prefix"
5339 exec_prefix="$acl_final_exec_prefix"
5341 eval additional_includedir=\"$includedir\"
5342 eval additional_libdir=\"$libdir\"
5344 exec_prefix="$acl_save_exec_prefix"
5345 prefix="$acl_save_prefix"
5348 additional_includedir="$withval/include"
5349 additional_libdir="$withval/lib"
5359 names_already_handled=
5360 names_next_round='iconv '
5361 while test -n "$names_next_round"; do
5362 names_this_round="$names_next_round"
5364 for name in $names_this_round; do
5366 for n in $names_already_handled; do
5367 if test "$n" = "$name"; then
5372 if test -z "$already_handled"; then
5373 names_already_handled="$names_already_handled $name"
5374 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5375 eval value=\"\$HAVE_LIB$uppername\"
5376 if test -n "$value"; then
5377 if test "$value" = yes; then
5378 eval value=\"\$LIB$uppername\"
5379 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5380 eval value=\"\$LTLIB$uppername\"
5381 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5390 if test $use_additional = yes; then
5391 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5392 found_dir="$additional_libdir"
5393 found_so="$additional_libdir/lib$name.$shlibext"
5394 if test -f "$additional_libdir/lib$name.la"; then
5395 found_la="$additional_libdir/lib$name.la"
5398 if test -f "$additional_libdir/lib$name.$libext"; then
5399 found_dir="$additional_libdir"
5400 found_a="$additional_libdir/lib$name.$libext"
5401 if test -f "$additional_libdir/lib$name.la"; then
5402 found_la="$additional_libdir/lib$name.la"
5407 if test "X$found_dir" = "X"; then
5408 for x in $LDFLAGS $LTLIBICONV; do
5410 acl_save_prefix="$prefix"
5411 prefix="$acl_final_prefix"
5412 acl_save_exec_prefix="$exec_prefix"
5413 exec_prefix="$acl_final_exec_prefix"
5415 exec_prefix="$acl_save_exec_prefix"
5416 prefix="$acl_save_prefix"
5420 dir=`echo "X$x" | sed -e 's/^X-L//'`
5421 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5423 found_so="$dir/lib$name.$shlibext"
5424 if test -f "$dir/lib$name.la"; then
5425 found_la="$dir/lib$name.la"
5428 if test -f "$dir/lib$name.$libext"; then
5430 found_a="$dir/lib$name.$libext"
5431 if test -f "$dir/lib$name.la"; then
5432 found_la="$dir/lib$name.la"
5438 if test "X$found_dir" != "X"; then
5443 if test "X$found_dir" != "X"; then
5444 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5445 if test "X$found_so" != "X"; then
5446 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5447 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5450 for x in $ltrpathdirs; do
5451 if test "X$x" = "X$found_dir"; then
5456 if test -z "$haveit"; then
5457 ltrpathdirs="$ltrpathdirs $found_dir"
5459 if test "$hardcode_direct" = yes; then
5460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5462 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5465 for x in $rpathdirs; do
5466 if test "X$x" = "X$found_dir"; then
5471 if test -z "$haveit"; then
5472 rpathdirs="$rpathdirs $found_dir"
5476 for x in $LDFLAGS $LIBICONV; do
5478 acl_save_prefix="$prefix"
5479 prefix="$acl_final_prefix"
5480 acl_save_exec_prefix="$exec_prefix"
5481 exec_prefix="$acl_final_exec_prefix"
5483 exec_prefix="$acl_save_exec_prefix"
5484 prefix="$acl_save_prefix"
5486 if test "X$x" = "X-L$found_dir"; then
5491 if test -z "$haveit"; then
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5494 if test "$hardcode_minus_L" != no; then
5495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5497 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5503 if test "X$found_a" != "X"; then
5504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5506 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5509 additional_includedir=
5510 case "$found_dir" in
5512 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5513 additional_includedir="$basedir/include"
5516 if test "X$additional_includedir" != "X"; then
5517 if test "X$additional_includedir" != "X/usr/include"; then
5519 if test "X$additional_includedir" = "X/usr/local/include"; then
5520 if test -n "$GCC"; then
5522 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5526 if test -z "$haveit"; then
5527 for x in $CPPFLAGS $INCICONV; do
5529 acl_save_prefix="$prefix"
5530 prefix="$acl_final_prefix"
5531 acl_save_exec_prefix="$exec_prefix"
5532 exec_prefix="$acl_final_exec_prefix"
5534 exec_prefix="$acl_save_exec_prefix"
5535 prefix="$acl_save_prefix"
5537 if test "X$x" = "X-I$additional_includedir"; then
5542 if test -z "$haveit"; then
5543 if test -d "$additional_includedir"; then
5544 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5550 if test -n "$found_la"; then
5551 save_libdir="$libdir"
5553 */* | *\\*) . "$found_la" ;;
5554 *) . "./$found_la" ;;
5556 libdir="$save_libdir"
5557 for dep in $dependency_libs; do
5560 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5561 if test "X$additional_libdir" != "X/usr/lib"; then
5563 if test "X$additional_libdir" = "X/usr/local/lib"; then
5564 if test -n "$GCC"; then
5566 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5570 if test -z "$haveit"; then
5572 for x in $LDFLAGS $LIBICONV; do
5574 acl_save_prefix="$prefix"
5575 prefix="$acl_final_prefix"
5576 acl_save_exec_prefix="$exec_prefix"
5577 exec_prefix="$acl_final_exec_prefix"
5579 exec_prefix="$acl_save_exec_prefix"
5580 prefix="$acl_save_prefix"
5582 if test "X$x" = "X-L$additional_libdir"; then
5587 if test -z "$haveit"; then
5588 if test -d "$additional_libdir"; then
5589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5593 for x in $LDFLAGS $LTLIBICONV; do
5595 acl_save_prefix="$prefix"
5596 prefix="$acl_final_prefix"
5597 acl_save_exec_prefix="$exec_prefix"
5598 exec_prefix="$acl_final_exec_prefix"
5600 exec_prefix="$acl_save_exec_prefix"
5601 prefix="$acl_save_prefix"
5603 if test "X$x" = "X-L$additional_libdir"; then
5608 if test -z "$haveit"; then
5609 if test -d "$additional_libdir"; then
5610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5617 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5618 if test "$enable_rpath" != no; then
5620 for x in $rpathdirs; do
5621 if test "X$x" = "X$dir"; then
5626 if test -z "$haveit"; then
5627 rpathdirs="$rpathdirs $dir"
5630 for x in $ltrpathdirs; do
5631 if test "X$x" = "X$dir"; then
5636 if test -z "$haveit"; then
5637 ltrpathdirs="$ltrpathdirs $dir"
5642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5645 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5648 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5655 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5656 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5662 if test "X$rpathdirs" != "X"; then
5663 if test -n "$hardcode_libdir_separator"; then
5665 for found_dir in $rpathdirs; do
5666 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5668 acl_save_libdir="$libdir"
5670 eval flag=\"$hardcode_libdir_flag_spec\"
5671 libdir="$acl_save_libdir"
5672 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5674 for found_dir in $rpathdirs; do
5675 acl_save_libdir="$libdir"
5677 eval flag=\"$hardcode_libdir_flag_spec\"
5678 libdir="$acl_save_libdir"
5679 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5683 if test "X$ltrpathdirs" != "X"; then
5684 for found_dir in $ltrpathdirs; do
5685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5706 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5707 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5708 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 gt_save_CPPFLAGS="$CPPFLAGS"
5712 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5713 gt_save_LIBS="$LIBS"
5714 LIBS="$LIBS -framework CoreFoundation"
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <CFPreferences.h>
5725 CFPreferencesCopyAppValue(NULL, NULL)
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>conftest.er1
5734 grep -v '^ *+' conftest.er1 >conftest.err
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 gt_cv_func_CFPreferencesCopyAppValue=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 gt_cv_func_CFPreferencesCopyAppValue=no
5759 rm -f conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 CPPFLAGS="$gt_save_CPPFLAGS"
5762 LIBS="$gt_save_LIBS"
5764 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5765 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5766 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5773 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5774 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5775 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 gt_save_CPPFLAGS="$CPPFLAGS"
5779 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5780 gt_save_LIBS="$LIBS"
5781 LIBS="$LIBS -framework CoreFoundation"
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <CFLocale.h>
5792 CFLocaleCopyCurrent();
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799 (eval $ac_link) 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_c_werror_flag"
5807 || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 gt_cv_func_CFLocaleCopyCurrent=yes
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 gt_cv_func_CFLocaleCopyCurrent=no
5826 rm -f conftest.err conftest.$ac_objext \
5827 conftest$ac_exeext conftest.$ac_ext
5828 CPPFLAGS="$gt_save_CPPFLAGS"
5829 LIBS="$gt_save_LIBS"
5831 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5833 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_CFLOCALECOPYCURRENT 1
5841 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5842 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5848 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5850 # Check whether --enable-nls or --disable-nls was given.
5851 if test "${enable_nls+set}" = set; then
5852 enableval="$enable_nls"
5857 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5858 echo "${ECHO_T}$USE_NLS" >&6
5867 if test "$USE_NLS" = "yes"; then
5868 gt_use_preinstalled_gnugettext=no
5875 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <libintl.h>
5887 extern int _nl_msg_cat_cntr;
5888 extern int *_nl_domain_bindings;
5892 bindtextdomain ("", "");
5893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 gt_cv_func_gnugettext1_libc=yes
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 gt_cv_func_gnugettext1_libc=no
5927 rm -f conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5930 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5931 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5933 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5939 am_save_CPPFLAGS="$CPPFLAGS"
5941 for element in $INCICONV; do
5943 for x in $CPPFLAGS; do
5945 acl_save_prefix="$prefix"
5946 prefix="$acl_final_prefix"
5947 acl_save_exec_prefix="$exec_prefix"
5948 exec_prefix="$acl_final_exec_prefix"
5950 exec_prefix="$acl_save_exec_prefix"
5951 prefix="$acl_save_prefix"
5953 if test "X$x" = "X$element"; then
5958 if test -z "$haveit"; then
5959 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5964 echo "$as_me:$LINENO: checking for iconv" >&5
5965 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5966 if test "${am_cv_func_iconv+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 am_cv_func_iconv="no, consider installing GNU libiconv"
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5983 iconv_t cd = iconv_open("","");
5984 iconv(cd,NULL,NULL,NULL,NULL);
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992 (eval $ac_link) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest$ac_exeext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 am_cv_func_iconv=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 if test "$am_cv_func_iconv" != yes; then
6021 am_save_LIBS="$LIBS"
6022 LIBS="$LIBS $LIBICONV"
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6034 iconv_t cd = iconv_open("","");
6035 iconv(cd,NULL,NULL,NULL,NULL);
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -z "$ac_c_werror_flag"
6051 || test ! -s conftest.err'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest$ac_exeext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6064 am_cv_func_iconv=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6070 rm -f conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 LIBS="$am_save_LIBS"
6076 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6077 echo "${ECHO_T}$am_cv_func_iconv" >&6
6078 if test "$am_cv_func_iconv" = yes; then
6080 cat >>confdefs.h <<\_ACEOF
6081 #define HAVE_ICONV 1
6085 if test "$am_cv_lib_iconv" = yes; then
6086 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6087 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6088 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6089 echo "${ECHO_T}$LIBICONV" >&6
6091 CPPFLAGS="$am_save_CPPFLAGS"
6103 acl_save_prefix="$prefix"
6104 prefix="$acl_final_prefix"
6105 acl_save_exec_prefix="$exec_prefix"
6106 exec_prefix="$acl_final_exec_prefix"
6108 eval additional_includedir=\"$includedir\"
6109 eval additional_libdir=\"$libdir\"
6111 exec_prefix="$acl_save_exec_prefix"
6112 prefix="$acl_save_prefix"
6115 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6116 if test "${with_libintl_prefix+set}" = set; then
6117 withval="$with_libintl_prefix"
6119 if test "X$withval" = "Xno"; then
6122 if test "X$withval" = "X"; then
6124 acl_save_prefix="$prefix"
6125 prefix="$acl_final_prefix"
6126 acl_save_exec_prefix="$exec_prefix"
6127 exec_prefix="$acl_final_exec_prefix"
6129 eval additional_includedir=\"$includedir\"
6130 eval additional_libdir=\"$libdir\"
6132 exec_prefix="$acl_save_exec_prefix"
6133 prefix="$acl_save_prefix"
6136 additional_includedir="$withval/include"
6137 additional_libdir="$withval/lib"
6147 names_already_handled=
6148 names_next_round='intl '
6149 while test -n "$names_next_round"; do
6150 names_this_round="$names_next_round"
6152 for name in $names_this_round; do
6154 for n in $names_already_handled; do
6155 if test "$n" = "$name"; then
6160 if test -z "$already_handled"; then
6161 names_already_handled="$names_already_handled $name"
6162 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6163 eval value=\"\$HAVE_LIB$uppername\"
6164 if test -n "$value"; then
6165 if test "$value" = yes; then
6166 eval value=\"\$LIB$uppername\"
6167 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6168 eval value=\"\$LTLIB$uppername\"
6169 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6178 if test $use_additional = yes; then
6179 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6180 found_dir="$additional_libdir"
6181 found_so="$additional_libdir/lib$name.$shlibext"
6182 if test -f "$additional_libdir/lib$name.la"; then
6183 found_la="$additional_libdir/lib$name.la"
6186 if test -f "$additional_libdir/lib$name.$libext"; then
6187 found_dir="$additional_libdir"
6188 found_a="$additional_libdir/lib$name.$libext"
6189 if test -f "$additional_libdir/lib$name.la"; then
6190 found_la="$additional_libdir/lib$name.la"
6195 if test "X$found_dir" = "X"; then
6196 for x in $LDFLAGS $LTLIBINTL; do
6198 acl_save_prefix="$prefix"
6199 prefix="$acl_final_prefix"
6200 acl_save_exec_prefix="$exec_prefix"
6201 exec_prefix="$acl_final_exec_prefix"
6203 exec_prefix="$acl_save_exec_prefix"
6204 prefix="$acl_save_prefix"
6208 dir=`echo "X$x" | sed -e 's/^X-L//'`
6209 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6211 found_so="$dir/lib$name.$shlibext"
6212 if test -f "$dir/lib$name.la"; then
6213 found_la="$dir/lib$name.la"
6216 if test -f "$dir/lib$name.$libext"; then
6218 found_a="$dir/lib$name.$libext"
6219 if test -f "$dir/lib$name.la"; then
6220 found_la="$dir/lib$name.la"
6226 if test "X$found_dir" != "X"; then
6231 if test "X$found_dir" != "X"; then
6232 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6233 if test "X$found_so" != "X"; then
6234 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6235 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6238 for x in $ltrpathdirs; do
6239 if test "X$x" = "X$found_dir"; then
6244 if test -z "$haveit"; then
6245 ltrpathdirs="$ltrpathdirs $found_dir"
6247 if test "$hardcode_direct" = yes; then
6248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6250 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6251 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6253 for x in $rpathdirs; do
6254 if test "X$x" = "X$found_dir"; then
6259 if test -z "$haveit"; then
6260 rpathdirs="$rpathdirs $found_dir"
6264 for x in $LDFLAGS $LIBINTL; do
6266 acl_save_prefix="$prefix"
6267 prefix="$acl_final_prefix"
6268 acl_save_exec_prefix="$exec_prefix"
6269 exec_prefix="$acl_final_exec_prefix"
6271 exec_prefix="$acl_save_exec_prefix"
6272 prefix="$acl_save_prefix"
6274 if test "X$x" = "X-L$found_dir"; then
6279 if test -z "$haveit"; then
6280 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6282 if test "$hardcode_minus_L" != no; then
6283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6285 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6291 if test "X$found_a" != "X"; then
6292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6294 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6297 additional_includedir=
6298 case "$found_dir" in
6300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6301 additional_includedir="$basedir/include"
6304 if test "X$additional_includedir" != "X"; then
6305 if test "X$additional_includedir" != "X/usr/include"; then
6307 if test "X$additional_includedir" = "X/usr/local/include"; then
6308 if test -n "$GCC"; then
6310 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6314 if test -z "$haveit"; then
6315 for x in $CPPFLAGS $INCINTL; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6325 if test "X$x" = "X-I$additional_includedir"; then
6330 if test -z "$haveit"; then
6331 if test -d "$additional_includedir"; then
6332 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6338 if test -n "$found_la"; then
6339 save_libdir="$libdir"
6341 */* | *\\*) . "$found_la" ;;
6342 *) . "./$found_la" ;;
6344 libdir="$save_libdir"
6345 for dep in $dependency_libs; do
6348 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6349 if test "X$additional_libdir" != "X/usr/lib"; then
6351 if test "X$additional_libdir" = "X/usr/local/lib"; then
6352 if test -n "$GCC"; then
6354 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6358 if test -z "$haveit"; then
6360 for x in $LDFLAGS $LIBINTL; do
6362 acl_save_prefix="$prefix"
6363 prefix="$acl_final_prefix"
6364 acl_save_exec_prefix="$exec_prefix"
6365 exec_prefix="$acl_final_exec_prefix"
6367 exec_prefix="$acl_save_exec_prefix"
6368 prefix="$acl_save_prefix"
6370 if test "X$x" = "X-L$additional_libdir"; then
6375 if test -z "$haveit"; then
6376 if test -d "$additional_libdir"; then
6377 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6381 for x in $LDFLAGS $LTLIBINTL; do
6383 acl_save_prefix="$prefix"
6384 prefix="$acl_final_prefix"
6385 acl_save_exec_prefix="$exec_prefix"
6386 exec_prefix="$acl_final_exec_prefix"
6388 exec_prefix="$acl_save_exec_prefix"
6389 prefix="$acl_save_prefix"
6391 if test "X$x" = "X-L$additional_libdir"; then
6396 if test -z "$haveit"; then
6397 if test -d "$additional_libdir"; then
6398 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6405 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6406 if test "$enable_rpath" != no; then
6408 for x in $rpathdirs; do
6409 if test "X$x" = "X$dir"; then
6414 if test -z "$haveit"; then
6415 rpathdirs="$rpathdirs $dir"
6418 for x in $ltrpathdirs; do
6419 if test "X$x" = "X$dir"; then
6424 if test -z "$haveit"; then
6425 ltrpathdirs="$ltrpathdirs $dir"
6430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6433 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6436 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6437 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6443 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6450 if test "X$rpathdirs" != "X"; then
6451 if test -n "$hardcode_libdir_separator"; then
6453 for found_dir in $rpathdirs; do
6454 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6456 acl_save_libdir="$libdir"
6458 eval flag=\"$hardcode_libdir_flag_spec\"
6459 libdir="$acl_save_libdir"
6460 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6462 for found_dir in $rpathdirs; do
6463 acl_save_libdir="$libdir"
6465 eval flag=\"$hardcode_libdir_flag_spec\"
6466 libdir="$acl_save_libdir"
6467 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6471 if test "X$ltrpathdirs" != "X"; then
6472 for found_dir in $ltrpathdirs; do
6473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6477 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6478 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6479 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 gt_save_CPPFLAGS="$CPPFLAGS"
6483 CPPFLAGS="$CPPFLAGS $INCINTL"
6484 gt_save_LIBS="$LIBS"
6485 LIBS="$LIBS $LIBINTL"
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 #include <libintl.h>
6493 extern int _nl_msg_cat_cntr;
6498 const char *_nl_expand_alias (const char *);
6502 bindtextdomain ("", "");
6503 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510 (eval $ac_link) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 gt_cv_func_gnugettext1_libintl=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 gt_cv_func_gnugettext1_libintl=no
6537 rm -f conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext conftest.$ac_ext
6539 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6540 LIBS="$LIBS $LIBICONV"
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <libintl.h>
6548 extern int _nl_msg_cat_cntr;
6553 const char *_nl_expand_alias (const char *);
6557 bindtextdomain ("", "");
6558 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>conftest.er1
6567 grep -v '^ *+' conftest.er1 >conftest.err
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest$ac_exeext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 LIBINTL="$LIBINTL $LIBICONV"
6586 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6587 gt_cv_func_gnugettext1_libintl=yes
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6594 rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6597 CPPFLAGS="$gt_save_CPPFLAGS"
6598 LIBS="$gt_save_LIBS"
6600 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6601 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6604 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6605 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6606 && test "$PACKAGE" != gettext-runtime \
6607 && test "$PACKAGE" != gettext-tools; }; then
6608 gt_use_preinstalled_gnugettext=yes
6617 if test -n "$INTL_MACOSX_LIBS"; then
6618 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6619 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6620 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6621 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6628 cat >>confdefs.h <<\_ACEOF
6629 #define ENABLE_NLS 1
6637 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6638 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6639 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6640 echo "${ECHO_T}$USE_NLS" >&6
6641 if test "$USE_NLS" = "yes"; then
6642 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6643 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6644 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6645 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6646 gt_source="external libintl"
6651 gt_source="included intl directory"
6653 echo "$as_me:$LINENO: result: $gt_source" >&5
6654 echo "${ECHO_T}$gt_source" >&6
6657 if test "$USE_NLS" = "yes"; then
6659 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6660 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6661 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6662 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6663 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6664 echo "${ECHO_T}$LIBINTL" >&6
6666 for element in $INCINTL; do
6668 for x in $CPPFLAGS; do
6670 acl_save_prefix="$prefix"
6671 prefix="$acl_final_prefix"
6672 acl_save_exec_prefix="$exec_prefix"
6673 exec_prefix="$acl_final_exec_prefix"
6675 exec_prefix="$acl_save_exec_prefix"
6676 prefix="$acl_save_prefix"
6678 if test "X$x" = "X$element"; then
6683 if test -z "$haveit"; then
6684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_GETTEXT 1
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_DCGETTEXT 1
6714 if test x${prefix} = xNONE ; then
6715 if test `eval echo ${datadir}` = NONE/share ; then
6720 # ------------------------------------------------------------------
6721 # If the user has not set --prefix, we set our default to nothing.
6722 # In this case, if the user has not set --sysconfdir, we set it
6723 # to the package default of /etc/bacula. If either --prefix or
6724 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6725 # ------------------------------------------------------------------
6726 if test x${prefix} = xNONE ; then
6727 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6728 sysconfdir=/etc/bacula
6732 sysconfdir=`eval echo ${sysconfdir}`
6733 datadir=`eval echo ${datadir}`
6734 localedir=`eval echo ${datadir}/locale`
6735 cat >>confdefs.h <<_ACEOF
6736 #define LOCALEDIR "$localedir"
6740 # -------------------------------------------------------------------------
6741 # If the user has not set --exec-prefix, we default to ${prefix}
6742 # -------------------------------------------------------------------------
6743 if test x${exec_prefix} = xNONE ; then
6744 exec_prefix=${prefix}
6747 # ------------------------------------------------------------------
6748 # If the user has not set --sbindir, we set our default as /sbin
6749 # ------------------------------------------------------------------
6750 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6751 sbindir=${exec_prefix}/sbin
6753 sbindir=`eval echo ${sbindir}`
6755 # -------------------------------------------------------------------------
6756 # If the user has not set --mandir, we default to /usr/share/man
6757 # -------------------------------------------------------------------------
6758 if test x$mandir = x'${prefix}/man' ; then
6759 mandir=/usr/share/man
6763 # ------------------------------------------------------------------
6764 # All list of languages for which a translation exist. Each
6765 # language is separated by a space.
6766 # ------------------------------------------------------------------
6769 for ac_prog in msgfmt
6771 # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_path_MSGFMT+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 MSGFMT=$ac_cv_path_MSGFMT
6802 if test -n "$MSGFMT"; then
6803 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6804 echo "${ECHO_T}$MSGFMT" >&6
6806 echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6
6810 test -n "$MSGFMT" && break
6812 test -n "$MSGFMT" || MSGFMT="no"
6814 if test "$MSGFMT" = "no"
6816 echo 'msgfmt program not found, disabling NLS !'
6818 USE_INCLUDED_LIBINTL=no
6821 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6822 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6823 if test "${ac_cv_gnu_library_2+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6833 #include <features.h>
6834 #ifdef __GNU_LIBRARY__
6835 #if (__GLIBC__ >= 2)
6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6843 ac_cv_gnu_library_2=yes
6845 ac_cv_gnu_library_2=no
6852 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6853 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6855 GLIBC2="$ac_cv_gnu_library_2"
6858 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6859 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6860 if test "${ac_cv_search_strerror+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_func_search_save_LIBS=$LIBS
6864 ac_cv_search_strerror=no
6865 cat >conftest.$ac_ext <<_ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6872 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_search_strerror="none required"
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6915 rm -f conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6917 if test "$ac_cv_search_strerror" = no; then
6918 for ac_lib in cposix; do
6919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6920 cat >conftest.$ac_ext <<_ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6927 /* Override any gcc2 internal prototype to avoid an error. */
6931 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944 (eval $ac_link) 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -z "$ac_c_werror_flag"
6952 || test ! -s conftest.err'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; } &&
6958 { ac_try='test -s conftest$ac_exeext'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 ac_cv_search_strerror="-l$ac_lib"
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6971 rm -f conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6975 LIBS=$ac_func_search_save_LIBS
6977 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6978 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6979 if test "$ac_cv_search_strerror" != no; then
6980 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6984 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6986 if test "${ac_cv_header_stdc+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } &&
7017 { ac_try='test -z "$ac_c_werror_flag"
7018 || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_header_stdc=yes
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_header_stdc=no
7037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 if test $ac_cv_header_stdc = yes; then
7040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7051 $EGREP "memchr" >/dev/null 2>&1; then
7054 ac_cv_header_stdc=no
7060 if test $ac_cv_header_stdc = yes; then
7061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "free" >/dev/null 2>&1; then
7075 ac_cv_header_stdc=no
7081 if test $ac_cv_header_stdc = yes; then
7082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7083 if test "$cross_compiling" = yes; then
7086 cat >conftest.$ac_ext <<_ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7093 #if ((' ' & 0x0FF) == 0x020)
7094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097 # define ISLOWER(c) \
7098 (('a' <= (c) && (c) <= 'i') \
7099 || ('j' <= (c) && (c) <= 'r') \
7100 || ('s' <= (c) && (c) <= 'z'))
7101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7109 for (i = 0; i < 256; i++)
7110 if (XOR (islower (i), ISLOWER (i))
7111 || toupper (i) != TOUPPER (i))
7116 rm -f conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7129 echo "$as_me: program exited with status $ac_status" >&5
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_cv_header_stdc=no
7136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7140 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7141 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7142 if test $ac_cv_header_stdc = yes; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define STDC_HEADERS 1
7150 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7151 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7152 if test "${ac_cv_c_const+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7165 /* FIXME: Include the comments suggested by Paul. */
7167 /* Ultrix mips cc rejects this. */
7168 typedef int charset[2];
7170 /* SunOS 4.1.1 cc rejects this. */
7171 char const *const *ccp;
7173 /* NEC SVR4.0.2 mips cc rejects this. */
7174 struct point {int x, y;};
7175 static struct point const zero = {0,0};
7176 /* AIX XL C 1.02.0.0 rejects this.
7177 It does not let you subtract one const X* pointer from another in
7178 an arm of an if-expression whose if-part is not a constant
7180 const char *g = "string";
7181 ccp = &g + (g ? g-g : 0);
7182 /* HPUX 7.0 cc rejects these. */
7185 ccp = (char const *const *) p;
7186 { /* SCO 3.2v4 cc rejects this. */
7188 char const *s = 0 ? (char *) 0 : (char const *) 0;
7192 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7194 const int *foo = &x[0];
7197 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7198 typedef const int *iptr;
7202 { /* AIX XL C 1.02.0.0 rejects this saying
7203 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7204 struct s { int j; const int *ap[3]; };
7205 struct s *b; b->j = 5;
7207 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7216 rm -f conftest.$ac_objext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7220 grep -v '^ *+' conftest.er1 >conftest.err
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7247 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7248 echo "${ECHO_T}$ac_cv_c_const" >&6
7249 if test $ac_cv_c_const = no; then
7251 cat >>confdefs.h <<\_ACEOF
7258 echo "$as_me:$LINENO: checking for signed" >&5
7259 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7260 if test "${bh_cv_c_signed+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7310 echo "${ECHO_T}$bh_cv_c_signed" >&6
7311 if test $bh_cv_c_signed = no; then
7313 cat >>confdefs.h <<\_ACEOF
7319 echo "$as_me:$LINENO: checking for inline" >&5
7320 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7321 if test "${ac_cv_c_inline+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 for ac_kw in inline __inline__ __inline; do
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7334 static $ac_kw foo_t static_foo () {return 0; }
7335 $ac_kw foo_t foo () {return 0; }
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_c_inline=$ac_kw; break
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7372 echo "${ECHO_T}$ac_cv_c_inline" >&6
7375 case $ac_cv_c_inline in
7378 case $ac_cv_c_inline in
7380 *) ac_val=$ac_cv_c_inline;;
7382 cat >>confdefs.h <<_ACEOF
7384 #define inline $ac_val
7390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7401 inttypes.h stdint.h unistd.h
7403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404 echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7417 #include <$ac_header>
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 eval "$as_ac_Header=yes"
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 eval "$as_ac_Header=no"
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7453 cat >>confdefs.h <<_ACEOF
7454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7462 echo "$as_me:$LINENO: checking for off_t" >&5
7463 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7464 if test "${ac_cv_type_off_t+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 cat >conftest.$ac_ext <<_ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 $ac_includes_default
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487 (eval $ac_compile) 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -z "$ac_c_werror_flag"
7495 || test ! -s conftest.err'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_cv_type_off_t=yes
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7516 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7517 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7518 if test $ac_cv_type_off_t = yes; then
7522 cat >>confdefs.h <<_ACEOF
7528 echo "$as_me:$LINENO: checking for size_t" >&5
7529 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7530 if test "${ac_cv_type_size_t+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7545 if (sizeof (size_t))
7551 rm -f conftest.$ac_objext
7552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553 (eval $ac_compile) 2>conftest.er1
7555 grep -v '^ *+' conftest.er1 >conftest.err
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try='test -s conftest.$ac_objext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 ac_cv_type_size_t=yes
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7578 ac_cv_type_size_t=no
7580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7582 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7583 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7584 if test $ac_cv_type_size_t = yes; then
7588 cat >>confdefs.h <<_ACEOF
7589 #define size_t unsigned
7595 echo "$as_me:$LINENO: checking for long long" >&5
7596 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7597 if test "${ac_cv_type_long_long+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 long long ll = 1LL; int i = 63;
7610 long long llmax = (long long) -1;
7611 return ll << i | ll >> i | llmax / ll | llmax % ll;
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_type_long_long=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_cv_type_long_long=no
7645 rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7648 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7649 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7650 if test $ac_cv_type_long_long = yes; then
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_LONG_LONG 1
7659 echo "$as_me:$LINENO: checking for long double" >&5
7660 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7661 if test "${gt_cv_c_long_double+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 if test "$GCC" = yes; then
7665 gt_cv_c_long_double=yes
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7674 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7675 long double foo = 0.0;
7676 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7677 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689 (eval $ac_compile) 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest.$ac_objext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 gt_cv_c_long_double=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 gt_cv_c_long_double=no
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7719 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7720 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7721 if test $gt_cv_c_long_double = yes; then
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_LONG_DOUBLE 1
7730 echo "$as_me:$LINENO: checking for wchar_t" >&5
7731 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7732 if test "${gt_cv_c_wchar_t+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7742 wchar_t foo = (wchar_t)'\0';
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest.$ac_objext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7783 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7784 if test $gt_cv_c_wchar_t = yes; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define HAVE_WCHAR_T 1
7793 echo "$as_me:$LINENO: checking for wint_t" >&5
7794 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7795 if test "${gt_cv_c_wint_t+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 cat >conftest.$ac_ext <<_ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 wint_t foo = (wchar_t)'\0';
7814 rm -f conftest.$ac_objext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7816 (eval $ac_compile) 2>conftest.er1
7818 grep -v '^ *+' conftest.er1 >conftest.err
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7845 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7846 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7847 if test $gt_cv_c_wint_t = yes; then
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_WINT_T 1
7856 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7857 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7858 if test "${gl_cv_header_inttypes_h+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <sys/types.h>
7868 #include <inttypes.h>
7872 uintmax_t i = (uintmax_t) -1;
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest.$ac_objext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7899 gl_cv_header_inttypes_h=yes
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 gl_cv_header_inttypes_h=no
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7909 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7910 if test $gl_cv_header_inttypes_h = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7919 echo "$as_me:$LINENO: checking for stdint.h" >&5
7920 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7921 if test "${gl_cv_header_stdint_h+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #include <sys/types.h>
7935 uintmax_t i = (uintmax_t) -1;
7940 rm -f conftest.$ac_objext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942 (eval $ac_compile) 2>conftest.er1
7944 grep -v '^ *+' conftest.er1 >conftest.err
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -z "$ac_c_werror_flag"
7950 || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try='test -s conftest.$ac_objext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 gl_cv_header_stdint_h=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 gl_cv_header_stdint_h=no
7969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7971 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7972 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7973 if test $gl_cv_header_stdint_h = yes; then
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_STDINT_H_WITH_UINTMAX 1
7984 echo "$as_me:$LINENO: checking for intmax_t" >&5
7985 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7986 if test "${gt_cv_c_intmax_t+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 cat >conftest.$ac_ext <<_ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h. */
7998 #if HAVE_STDINT_H_WITH_UINTMAX
8001 #if HAVE_INTTYPES_H_WITH_UINTMAX
8002 #include <inttypes.h>
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag"
8023 || test ! -s conftest.err'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try='test -s conftest.$ac_objext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 gt_cv_c_intmax_t=yes
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8045 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8046 if test $gt_cv_c_intmax_t = yes; then
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_INTMAX_T 1
8056 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8057 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8058 if test "${gt_cv_func_printf_posix+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 if test "$cross_compiling" = yes; then
8064 cat >conftest.$ac_ext <<_ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "notposix" >/dev/null 2>&1; then
8078 gt_cv_func_printf_posix="guessing no"
8080 gt_cv_func_printf_posix="guessing yes"
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8095 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8096 dollar expansion (possibly an autoconf bug). */
8097 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8098 static char buf[100];
8101 sprintf (buf, format, 33, 55);
8102 return (strcmp (buf, "55 33") != 0);
8105 rm -f conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 gt_cv_func_printf_posix=yes
8118 echo "$as_me: program exited with status $ac_status" >&5
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8123 gt_cv_func_printf_posix=no
8125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8129 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8130 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8131 case $gt_cv_func_printf_posix in
8134 cat >>confdefs.h <<\_ACEOF
8135 #define HAVE_POSIX_PRINTF 1
8141 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8142 # for constant arguments. Useless!
8143 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8144 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8145 if test "${ac_cv_working_alloca_h+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8158 char *p = (char *) alloca (2 * sizeof (int));
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165 (eval $ac_link) 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -z "$ac_c_werror_flag"
8173 || test ! -s conftest.err'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 ac_cv_working_alloca_h=yes
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 ac_cv_working_alloca_h=no
8192 rm -f conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8195 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8196 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8197 if test $ac_cv_working_alloca_h = yes; then
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_ALLOCA_H 1
8205 echo "$as_me:$LINENO: checking for alloca" >&5
8206 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8207 if test "${ac_cv_func_alloca_works+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 # define alloca __builtin_alloca
8220 # include <malloc.h>
8221 # define alloca _alloca
8224 # include <alloca.h>
8229 # ifndef alloca /* predefined by HP cc +Olibcalls */
8240 char *p = (char *) alloca (1);
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest$ac_exeext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_func_alloca_works=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_func_alloca_works=no
8274 rm -f conftest.err conftest.$ac_objext \
8275 conftest$ac_exeext conftest.$ac_ext
8277 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8278 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8280 if test $ac_cv_func_alloca_works = yes; then
8282 cat >>confdefs.h <<\_ACEOF
8283 #define HAVE_ALLOCA 1
8287 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8288 # that cause trouble. Some versions do not even contain alloca or
8289 # contain a buggy version. If you still want to use their alloca,
8290 # use ar to extract alloca.o from them instead of compiling alloca.c.
8292 ALLOCA=alloca.$ac_objext
8294 cat >>confdefs.h <<\_ACEOF
8299 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8300 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8301 if test "${ac_cv_os_cray+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 #if defined(CRAY) && ! defined(CRAY2)
8317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8318 $EGREP "webecray" >/dev/null 2>&1; then
8326 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8327 echo "${ECHO_T}$ac_cv_os_cray" >&6
8328 if test $ac_cv_os_cray = yes; then
8329 for ac_func in _getb67 GETB67 getb67; do
8330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331 echo "$as_me:$LINENO: checking for $ac_func" >&5
8332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8333 if eval "test \"\${$as_ac_var+set}\" = set"; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8344 #define $ac_func innocuous_$ac_func
8346 /* System header to define __stub macros and hopefully few prototypes,
8347 which can conflict with char $ac_func (); below.
8348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349 <limits.h> exists even on freestanding compilers. */
8352 # include <limits.h>
8354 # include <assert.h>
8359 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8367 /* The GNU C library defines this for functions which it implements
8368 to always fail with ENOSYS. Some functions are actually named
8369 something starting with __ and the normal name is an alias. */
8370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8373 char (*f) () = $ac_func;
8382 return f != $ac_func;
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8391 grep -v '^ *+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 eval "$as_ac_var=yes"
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 eval "$as_ac_var=no"
8416 rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8421 if test `eval echo '${'$as_ac_var'}'` = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define CRAY_STACKSEG_END $ac_func
8433 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8434 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8435 if test "${ac_cv_c_stack_direction+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 if test "$cross_compiling" = yes; then
8439 ac_cv_c_stack_direction=0
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 find_stack_direction ()
8450 static char *addr = 0;
8455 return find_stack_direction ();
8458 return (&dummy > addr) ? 1 : -1;
8464 exit (find_stack_direction () < 0);
8467 rm -f conftest$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_c_stack_direction=1
8480 echo "$as_me: program exited with status $ac_status" >&5
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_cv_c_stack_direction=-1
8487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8491 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8493 cat >>confdefs.h <<_ACEOF
8494 #define STACK_DIRECTION $ac_cv_c_stack_direction
8502 for ac_header in stdlib.h unistd.h
8504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo "$as_me:$LINENO: checking for $ac_header" >&5
8507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514 # Is the header compilable?
8515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8526 rm -f conftest.$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_header_compiler=no
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <$ac_header>
8570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } >/dev/null; then
8578 if test -s conftest.err; then
8579 ac_cpp_err=$ac_c_preproc_warn_flag
8580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8587 if test -z "$ac_cpp_err"; then
8588 ac_header_preproc=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_header_preproc=no
8595 rm -f conftest.err conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597 echo "${ECHO_T}$ac_header_preproc" >&6
8599 # So? What about this header?
8600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8623 ## ------------------------------------------ ##
8624 ## Report this to the AC_PACKAGE_NAME lists. ##
8625 ## ------------------------------------------ ##
8628 sed "s/^/$as_me: WARNING: /" >&2
8631 echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 eval "$as_ac_Header=\$ac_header_preproc"
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8652 for ac_func in getpagesize
8654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8655 echo "$as_me:$LINENO: checking for $ac_func" >&5
8656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_var+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8668 #define $ac_func innocuous_$ac_func
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char $ac_func (); below.
8672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 <limits.h> exists even on freestanding compilers. */
8676 # include <limits.h>
8678 # include <assert.h>
8683 /* Override any gcc2 internal prototype to avoid an error. */
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8691 /* The GNU C library defines this for functions which it implements
8692 to always fail with ENOSYS. Some functions are actually named
8693 something starting with __ and the normal name is an alias. */
8694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8697 char (*f) () = $ac_func;
8706 return f != $ac_func;
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_var=yes"
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 eval "$as_ac_var=no"
8740 rm -f conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8753 echo "$as_me:$LINENO: checking for working mmap" >&5
8754 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8755 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then
8759 ac_cv_func_mmap_fixed_mapped=no
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 /* malloc might have been renamed as rpl_malloc. */
8771 /* Thanks to Mike Haertel and Jim Avera for this test.
8772 Here is a matrix of mmap possibilities:
8773 mmap private not fixed
8774 mmap private fixed at somewhere currently unmapped
8775 mmap private fixed at somewhere already mapped
8776 mmap shared not fixed
8777 mmap shared fixed at somewhere currently unmapped
8778 mmap shared fixed at somewhere already mapped
8779 For private mappings, we should verify that changes cannot be read()
8780 back from the file, nor mmap's back from the file at a different
8781 address. (There have been systems where private was not correctly
8782 implemented like the infamous i386 svr4.0, and systems where the
8783 VM page cache was not coherent with the file system buffer cache
8784 like early versions of FreeBSD and possibly contemporary NetBSD.)
8785 For shared mappings, we should conversely verify that changes get
8786 propagated back to all the places they're supposed to be.
8788 Grep wants private fixed already mapped.
8789 The main things grep needs to know about mmap are:
8790 * does it exist and is it safe to write into the mmap'd area
8791 * how to use it (BSD variants) */
8794 #include <sys/mman.h>
8796 #if !STDC_HEADERS && !HAVE_STDLIB_H
8800 /* This mess was copied from the GNU getpagesize.h. */
8801 #if !HAVE_GETPAGESIZE
8802 /* Assume that all systems that can run configure have sys/param.h. */
8803 # if !HAVE_SYS_PARAM_H
8804 # define HAVE_SYS_PARAM_H 1
8807 # ifdef _SC_PAGESIZE
8808 # define getpagesize() sysconf(_SC_PAGESIZE)
8809 # else /* no _SC_PAGESIZE */
8810 # if HAVE_SYS_PARAM_H
8811 # include <sys/param.h>
8812 # ifdef EXEC_PAGESIZE
8813 # define getpagesize() EXEC_PAGESIZE
8814 # else /* no EXEC_PAGESIZE */
8816 # define getpagesize() NBPG * CLSIZE
8819 # endif /* no CLSIZE */
8820 # else /* no NBPG */
8822 # define getpagesize() NBPC
8823 # else /* no NBPC */
8825 # define getpagesize() PAGESIZE
8826 # endif /* PAGESIZE */
8827 # endif /* no NBPC */
8828 # endif /* no NBPG */
8829 # endif /* no EXEC_PAGESIZE */
8830 # else /* no HAVE_SYS_PARAM_H */
8831 # define getpagesize() 8192 /* punt totally */
8832 # endif /* no HAVE_SYS_PARAM_H */
8833 # endif /* no _SC_PAGESIZE */
8835 #endif /* no HAVE_GETPAGESIZE */
8840 char *data, *data2, *data3;
8844 pagesize = getpagesize ();
8846 /* First, make a file with some known garbage in it. */
8847 data = (char *) malloc (pagesize);
8850 for (i = 0; i < pagesize; ++i)
8851 *(data + i) = rand ();
8853 fd = creat ("conftest.mmap", 0600);
8856 if (write (fd, data, pagesize) != pagesize)
8860 /* Next, try to mmap the file at a fixed address which already has
8861 something else allocated at it. If we can, also make sure that
8862 we see the same garbage. */
8863 fd = open ("conftest.mmap", O_RDWR);
8866 data2 = (char *) malloc (2 * pagesize);
8869 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8870 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8871 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8873 for (i = 0; i < pagesize; ++i)
8874 if (*(data + i) != *(data2 + i))
8877 /* Finally, make sure that changes to the mapped area do not
8878 percolate back to the file as seen by read(). (This is a bug on
8879 some variants of i386 svr4.0.) */
8880 for (i = 0; i < pagesize; ++i)
8881 *(data2 + i) = *(data2 + i) + 1;
8882 data3 = (char *) malloc (pagesize);
8885 if (read (fd, data3, pagesize) != pagesize)
8887 for (i = 0; i < pagesize; ++i)
8888 if (*(data + i) != *(data3 + i))
8894 rm -f conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_func_mmap_fixed_mapped=yes
8907 echo "$as_me: program exited with status $ac_status" >&5
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_cv_func_mmap_fixed_mapped=no
8914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8921 cat >>confdefs.h <<\_ACEOF
8929 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8930 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8931 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8941 #include <features.h>
8942 #ifdef __GNU_LIBRARY__
8943 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8950 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8951 ac_cv_gnu_library_2_1=yes
8953 ac_cv_gnu_library_2_1=no
8960 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8961 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8963 GLIBC21="$ac_cv_gnu_library_2_1"
8968 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8969 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8970 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 if test "$cross_compiling" = yes; then
8976 # Guess based on the CPU.
8978 alpha* | i3456786 | m68k | s390*)
8979 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8981 gt_cv_int_divbyzero_sigfpe="guessing no";;
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8997 sigfpe_handler (int sig)
8999 sigfpe_handler (sig) int sig;
9002 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9003 exit (sig != SIGFPE);
9013 signal (SIGFPE, sigfpe_handler);
9014 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9015 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9016 signal (SIGTRAP, sigfpe_handler);
9018 /* Linux/SPARC yields signal SIGILL. */
9019 #if defined (__sparc__) && defined (__linux__)
9020 signal (SIGILL, sigfpe_handler);
9029 rm -f conftest$ac_exeext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 gt_cv_int_divbyzero_sigfpe=yes
9042 echo "$as_me: program exited with status $ac_status" >&5
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9047 gt_cv_int_divbyzero_sigfpe=no
9049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9053 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9054 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9055 case "$gt_cv_int_divbyzero_sigfpe" in
9060 cat >>confdefs.h <<_ACEOF
9061 #define INTDIV0_RAISES_SIGFPE $value
9066 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9067 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9068 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 unsigned long long ull = 1ULL; int i = 63;
9081 unsigned long long ullmax = (unsigned long long) -1;
9082 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_type_unsigned_long_long=yes
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_cv_type_unsigned_long_long=no
9116 rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9119 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9120 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9121 if test $ac_cv_type_unsigned_long_long = yes; then
9123 cat >>confdefs.h <<\_ACEOF
9124 #define HAVE_UNSIGNED_LONG_LONG 1
9132 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9134 test $ac_cv_type_unsigned_long_long = yes \
9135 && ac_type='unsigned long long' \
9136 || ac_type='unsigned long'
9138 cat >>confdefs.h <<_ACEOF
9139 #define uintmax_t $ac_type
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_UINTMAX_T 1
9151 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9152 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9153 if test "${gt_cv_header_inttypes_h+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9164 #include <inttypes.h>
9173 rm -f conftest.$ac_objext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9175 (eval $ac_compile) 2>conftest.er1
9177 grep -v '^ *+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag"
9183 || test ! -s conftest.err'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; } &&
9189 { ac_try='test -s conftest.$ac_objext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 gt_cv_header_inttypes_h=yes
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 gt_cv_header_inttypes_h=no
9202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9205 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9206 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9207 if test $gt_cv_header_inttypes_h = yes; then
9209 cat >>confdefs.h <<_ACEOF
9210 #define HAVE_INTTYPES_H 1
9217 if test $gt_cv_header_inttypes_h = yes; then
9218 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9219 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9220 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 #include <inttypes.h>
9243 rm -f conftest.$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245 (eval $ac_compile) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest.$ac_objext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 gt_cv_inttypes_pri_broken=no
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 gt_cv_inttypes_pri_broken=yes
9272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9275 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9276 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9278 if test "$gt_cv_inttypes_pri_broken" = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define PRI_MACROS_BROKEN 1
9288 for ac_header in stdint.h
9290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9300 # Is the header compilable?
9301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 #include <$ac_header>
9312 rm -f conftest.$ac_objext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest.$ac_objext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_header_compiler=yes
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_header_compiler=no
9341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343 echo "${ECHO_T}$ac_header_compiler" >&6
9345 # Is the header present?
9346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 #include <$ac_header>
9356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } >/dev/null; then
9364 if test -s conftest.err; then
9365 ac_cpp_err=$ac_c_preproc_warn_flag
9366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9373 if test -z "$ac_cpp_err"; then
9374 ac_header_preproc=yes
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_header_preproc=no
9381 rm -f conftest.err conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9383 echo "${ECHO_T}$ac_header_preproc" >&6
9385 # So? What about this header?
9386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9392 ac_header_preproc=yes
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9409 ## ------------------------------------------ ##
9410 ## Report this to the AC_PACKAGE_NAME lists. ##
9411 ## ------------------------------------------ ##
9414 sed "s/^/$as_me: WARNING: /" >&2
9417 echo "$as_me:$LINENO: checking for $ac_header" >&5
9418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 eval "$as_ac_Header=\$ac_header_preproc"
9424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9429 cat >>confdefs.h <<_ACEOF
9430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9438 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9440 cat >conftest.$ac_ext <<_ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9457 $EGREP "Found it" >/dev/null 2>&1; then
9462 if test -z "$result"; then
9463 if test "$cross_compiling" = yes; then
9464 # Depending upon the size, compute the lo and hi bounds.
9465 cat >conftest.$ac_ext <<_ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9475 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9482 rm -f conftest.$ac_objext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9484 (eval $ac_compile) 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_c_werror_flag"
9492 || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest.$ac_objext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9516 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_hi=$ac_mid; break
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_lo=`expr $ac_mid + 1`
9551 if test $ac_lo -le $ac_mid; then
9555 ac_mid=`expr 2 '*' $ac_mid + 1`
9557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9573 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag"
9590 || test ! -s conftest.err'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; } &&
9596 { ac_try='test -s conftest.$ac_objext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9614 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag"
9631 || test ! -s conftest.err'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; } &&
9637 { ac_try='test -s conftest.$ac_objext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_lo=$ac_mid; break
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9648 ac_hi=`expr '(' $ac_mid ')' - 1`
9649 if test $ac_mid -le $ac_hi; then
9653 ac_mid=`expr 2 '*' $ac_mid`
9655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9666 # Binary search between lo and hi bounds.
9667 while test "x$ac_lo" != "x$ac_hi"; do
9668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9679 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9686 rm -f conftest.$ac_objext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -z "$ac_c_werror_flag"
9696 || test ! -s conftest.err'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest.$ac_objext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_lo=`expr '(' $ac_mid ')' + 1`
9715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9722 if test "$cross_compiling" = yes; then
9723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9724 See \`config.log' for more details." >&5
9725 echo "$as_me: error: cannot run test program while cross compiling
9726 See \`config.log' for more details." >&2;}
9727 { (exit 1); exit 1; }; }
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 long longval () { return ~(size_t)0 / 10; }
9737 unsigned long ulongval () { return ~(size_t)0 / 10; }
9744 FILE *f = fopen ("conftest.val", "w");
9747 if ((~(size_t)0 / 10) < 0)
9749 long i = longval ();
9750 if (i != (~(size_t)0 / 10))
9752 fprintf (f, "%ld\n", i);
9756 unsigned long i = ulongval ();
9757 if (i != (~(size_t)0 / 10))
9759 fprintf (f, "%lu\n", i);
9761 exit (ferror (f) || fclose (f) != 0);
9767 rm -f conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 res_hi=`cat conftest.val`
9780 echo "$as_me: program exited with status $ac_status" >&5
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9791 if test "$cross_compiling" = yes; then
9792 # Depending upon the size, compute the lo and hi bounds.
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9803 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9810 rm -f conftest.$ac_objext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9812 (eval $ac_compile) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9834 cat >conftest.$ac_ext <<_ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9844 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9851 rm -f conftest.$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_hi=$ac_mid; break
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_lo=`expr $ac_mid + 1`
9879 if test $ac_lo -le $ac_mid; then
9883 ac_mid=`expr 2 '*' $ac_mid + 1`
9885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9901 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9908 rm -f conftest.$ac_objext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9910 (eval $ac_compile) 2>conftest.er1
9912 grep -v '^ *+' conftest.er1 >conftest.err
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag"
9918 || test ! -s conftest.err'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest.$ac_objext'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9942 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9949 rm -f conftest.$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_lo=$ac_mid; break
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 ac_hi=`expr '(' $ac_mid ')' - 1`
9977 if test $ac_mid -le $ac_hi; then
9981 ac_mid=`expr 2 '*' $ac_mid`
9983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 # Binary search between lo and hi bounds.
9995 while test "x$ac_lo" != "x$ac_hi"; do
9996 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9997 cat >conftest.$ac_ext <<_ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 #include <stddef.h>
10007 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_lo=`expr '(' $ac_mid ')' + 1`
10043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10046 ?*) res_lo=$ac_lo;;
10050 if test "$cross_compiling" = yes; then
10051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10052 See \`config.log' for more details." >&5
10053 echo "$as_me: error: cannot run test program while cross compiling
10054 See \`config.log' for more details." >&2;}
10055 { (exit 1); exit 1; }; }
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <stddef.h>
10064 long longval () { return ~(size_t)0 % 10; }
10065 unsigned long ulongval () { return ~(size_t)0 % 10; }
10067 #include <stdlib.h>
10072 FILE *f = fopen ("conftest.val", "w");
10075 if ((~(size_t)0 % 10) < 0)
10077 long i = longval ();
10078 if (i != (~(size_t)0 % 10))
10080 fprintf (f, "%ld\n", i);
10084 unsigned long i = ulongval ();
10085 if (i != (~(size_t)0 % 10))
10087 fprintf (f, "%lu\n", i);
10089 exit (ferror (f) || fclose (f) != 0);
10095 rm -f conftest$ac_exeext
10096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; }; then
10106 res_lo=`cat conftest.val`
10108 echo "$as_me: program exited with status $ac_status" >&5
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 ( exit $ac_status )
10115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10119 if test "$cross_compiling" = yes; then
10120 # Depending upon the size, compute the lo and hi bounds.
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <stddef.h>
10131 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10162 cat >conftest.$ac_ext <<_ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <stddef.h>
10172 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_hi=$ac_mid; break
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_lo=`expr $ac_mid + 1`
10207 if test $ac_lo -le $ac_mid; then
10211 ac_mid=`expr 2 '*' $ac_mid + 1`
10213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <stddef.h>
10229 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10236 rm -f conftest.$ac_objext
10237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238 (eval $ac_compile) 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag"
10246 || test ! -s conftest.err'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; } &&
10252 { ac_try='test -s conftest.$ac_objext'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10260 cat >conftest.$ac_ext <<_ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 #include <stddef.h>
10270 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_lo=$ac_mid; break
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_hi=`expr '(' $ac_mid ')' - 1`
10305 if test $ac_mid -le $ac_hi; then
10309 ac_mid=`expr 2 '*' $ac_mid`
10311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 # Binary search between lo and hi bounds.
10323 while test "x$ac_lo" != "x$ac_hi"; do
10324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 #include <stddef.h>
10335 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344 (eval $ac_compile) 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_lo=`expr '(' $ac_mid ')' + 1`
10371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374 ?*) fits_in_uint=$ac_lo;;
10378 if test "$cross_compiling" = yes; then
10379 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10380 See \`config.log' for more details." >&5
10381 echo "$as_me: error: cannot run test program while cross compiling
10382 See \`config.log' for more details." >&2;}
10383 { (exit 1); exit 1; }; }
10385 cat >conftest.$ac_ext <<_ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <stddef.h>
10392 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10393 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10395 #include <stdlib.h>
10400 FILE *f = fopen ("conftest.val", "w");
10403 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10405 long i = longval ();
10406 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10408 fprintf (f, "%ld\n", i);
10412 unsigned long i = ulongval ();
10413 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10415 fprintf (f, "%lu\n", i);
10417 exit (ferror (f) || fclose (f) != 0);
10423 rm -f conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 fits_in_uint=`cat conftest.val`
10436 echo "$as_me: program exited with status $ac_status" >&5
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ( exit $ac_status )
10443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10447 if test "$fits_in_uint" = 1; then
10448 cat >conftest.$ac_ext <<_ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 #include <stddef.h>
10456 extern unsigned long foo;
10466 rm -f conftest.$ac_objext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10470 grep -v '^ *+' conftest.er1 >conftest.err
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496 if test -z "$result"; then
10497 if test "$fits_in_uint" = 1; then
10498 result="$res_hi$res_lo"U
10500 result="$res_hi$res_lo"UL
10503 result='~(size_t)0'
10506 echo "$as_me:$LINENO: result: $result" >&5
10507 echo "${ECHO_T}$result" >&6
10508 if test "$result" != yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define SIZE_MAX $result
10520 for ac_header in stdint.h
10522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524 echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10532 # Is the header compilable?
10533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 $ac_includes_default
10542 #include <$ac_header>
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
10548 grep -v '^ *+' conftest.er1 >conftest.err
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_header_compiler=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_header_compiler=no
10573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575 echo "${ECHO_T}$ac_header_compiler" >&6
10577 # Is the header present?
10578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <$ac_header>
10588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } >/dev/null; then
10596 if test -s conftest.err; then
10597 ac_cpp_err=$ac_c_preproc_warn_flag
10598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10605 if test -z "$ac_cpp_err"; then
10606 ac_header_preproc=yes
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ac_header_preproc=no
10613 rm -f conftest.err conftest.$ac_ext
10614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10615 echo "${ECHO_T}$ac_header_preproc" >&6
10617 # So? What about this header?
10618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10624 ac_header_preproc=yes
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10641 ## ------------------------------------------ ##
10642 ## Report this to the AC_PACKAGE_NAME lists. ##
10643 ## ------------------------------------------ ##
10646 sed "s/^/$as_me: WARNING: /" >&2
10649 echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 eval "$as_ac_Header=\$ac_header_preproc"
10656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10661 cat >>confdefs.h <<_ACEOF
10662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10677 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10678 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 cat >conftest.$ac_ext <<_ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 $ac_includes_default
10691 if ((ptrdiff_t *) 0)
10693 if (sizeof (ptrdiff_t))
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701 (eval $ac_compile) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest.$ac_objext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_type_ptrdiff_t=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_type_ptrdiff_t=no
10728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10730 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10731 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10732 if test $ac_cv_type_ptrdiff_t = yes; then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define ptrdiff_t long
10753 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10754 stdlib.h string.h unistd.h sys/param.h
10756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758 echo "$as_me:$LINENO: checking for $ac_header" >&5
10759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10766 # Is the header compilable?
10767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 $ac_includes_default
10776 #include <$ac_header>
10778 rm -f conftest.$ac_objext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10780 (eval $ac_compile) 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag"
10788 || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest.$ac_objext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_header_compiler=yes
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_header_compiler=no
10807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10809 echo "${ECHO_T}$ac_header_compiler" >&6
10811 # Is the header present?
10812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 #include <$ac_header>
10822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } >/dev/null; then
10830 if test -s conftest.err; then
10831 ac_cpp_err=$ac_c_preproc_warn_flag
10832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10839 if test -z "$ac_cpp_err"; then
10840 ac_header_preproc=yes
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 ac_header_preproc=no
10847 rm -f conftest.err conftest.$ac_ext
10848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10849 echo "${ECHO_T}$ac_header_preproc" >&6
10851 # So? What about this header?
10852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10858 ac_header_preproc=yes
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10875 ## ------------------------------------------ ##
10876 ## Report this to the AC_PACKAGE_NAME lists. ##
10877 ## ------------------------------------------ ##
10880 sed "s/^/$as_me: WARNING: /" >&2
10883 echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 eval "$as_ac_Header=\$ac_header_preproc"
10890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10895 cat >>confdefs.h <<_ACEOF
10896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10926 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10927 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10928 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10932 echo "$as_me:$LINENO: checking for $ac_func" >&5
10933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10934 if eval "test \"\${$as_ac_var+set}\" = set"; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10945 #define $ac_func innocuous_$ac_func
10947 /* System header to define __stub macros and hopefully few prototypes,
10948 which can conflict with char $ac_func (); below.
10949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950 <limits.h> exists even on freestanding compilers. */
10953 # include <limits.h>
10955 # include <assert.h>
10960 /* Override any gcc2 internal prototype to avoid an error. */
10965 /* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10968 /* The GNU C library defines this for functions which it implements
10969 to always fail with ENOSYS. Some functions are actually named
10970 something starting with __ and the normal name is an alias. */
10971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10974 char (*f) () = $ac_func;
10983 return f != $ac_func;
10988 rm -f conftest.$ac_objext conftest$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>conftest.er1
10992 grep -v '^ *+' conftest.er1 >conftest.err
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag"
10998 || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try='test -s conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 eval "$as_ac_var=yes"
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 eval "$as_ac_var=no"
11017 rm -f conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11033 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11034 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11049 char *p = (char *) _snprintf;
11056 rm -f conftest.$ac_objext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058 (eval $ac_compile) 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_have_decl__snprintf=yes
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_have_decl__snprintf=no
11085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11087 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11088 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11089 if test $ac_cv_have_decl__snprintf = yes; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define HAVE_DECL__SNPRINTF $gt_value
11101 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11102 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11103 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11118 char *p = (char *) _snwprintf;
11125 rm -f conftest.$ac_objext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11127 (eval $ac_compile) 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_cv_have_decl__snwprintf=yes
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 ac_cv_have_decl__snwprintf=no
11154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11156 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11157 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11158 if test $ac_cv_have_decl__snwprintf = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define HAVE_DECL__SNWPRINTF $gt_value
11171 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11172 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11173 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 cat >conftest.$ac_ext <<_ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11187 #ifndef feof_unlocked
11188 char *p = (char *) feof_unlocked;
11195 rm -f conftest.$ac_objext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11197 (eval $ac_compile) 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } &&
11204 { ac_try='test -z "$ac_c_werror_flag"
11205 || test ! -s conftest.err'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; } &&
11211 { ac_try='test -s conftest.$ac_objext'
11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; }; then
11217 ac_cv_have_decl_feof_unlocked=yes
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11222 ac_cv_have_decl_feof_unlocked=no
11224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11226 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11227 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11228 if test $ac_cv_have_decl_feof_unlocked = yes; then
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11240 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11241 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11242 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11256 #ifndef fgets_unlocked
11257 char *p = (char *) fgets_unlocked;
11264 rm -f conftest.$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_have_decl_fgets_unlocked=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_have_decl_fgets_unlocked=no
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11296 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11297 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11303 cat >>confdefs.h <<_ACEOF
11304 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11309 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11310 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11311 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11325 #ifndef getc_unlocked
11326 char *p = (char *) getc_unlocked;
11333 rm -f conftest.$ac_objext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag"
11343 || test ! -s conftest.err'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_have_decl_getc_unlocked=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_cv_have_decl_getc_unlocked=no
11362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11365 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11366 if test $ac_cv_have_decl_getc_unlocked = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11378 case $gt_cv_func_printf_posix in
11379 *yes) HAVE_POSIX_PRINTF=1 ;;
11380 *) HAVE_POSIX_PRINTF=0 ;;
11383 if test "$ac_cv_func_asprintf" = yes; then
11389 if test "$ac_cv_func_snprintf" = yes; then
11395 if test "$ac_cv_func_wprintf" = yes; then
11407 am_save_CPPFLAGS="$CPPFLAGS"
11409 for element in $INCICONV; do
11411 for x in $CPPFLAGS; do
11413 acl_save_prefix="$prefix"
11414 prefix="$acl_final_prefix"
11415 acl_save_exec_prefix="$exec_prefix"
11416 exec_prefix="$acl_final_exec_prefix"
11418 exec_prefix="$acl_save_exec_prefix"
11419 prefix="$acl_save_prefix"
11421 if test "X$x" = "X$element"; then
11426 if test -z "$haveit"; then
11427 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11432 echo "$as_me:$LINENO: checking for iconv" >&5
11433 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11434 if test "${am_cv_func_iconv+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 am_cv_func_iconv="no, consider installing GNU libiconv"
11440 cat >conftest.$ac_ext <<_ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 #include <stdlib.h>
11451 iconv_t cd = iconv_open("","");
11452 iconv(cd,NULL,NULL,NULL,NULL);
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11460 (eval $ac_link) 2>conftest.er1
11462 grep -v '^ *+' conftest.er1 >conftest.err
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 am_cv_func_iconv=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11486 rm -f conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 if test "$am_cv_func_iconv" != yes; then
11489 am_save_LIBS="$LIBS"
11490 LIBS="$LIBS $LIBICONV"
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <stdlib.h>
11502 iconv_t cd = iconv_open("","");
11503 iconv(cd,NULL,NULL,NULL,NULL);
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511 (eval $ac_link) 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 am_cv_lib_iconv=yes
11532 am_cv_func_iconv=yes
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11538 rm -f conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS="$am_save_LIBS"
11544 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11545 echo "${ECHO_T}$am_cv_func_iconv" >&6
11546 if test "$am_cv_func_iconv" = yes; then
11548 cat >>confdefs.h <<\_ACEOF
11549 #define HAVE_ICONV 1
11553 if test "$am_cv_lib_iconv" = yes; then
11554 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11555 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11556 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11557 echo "${ECHO_T}$LIBICONV" >&6
11559 CPPFLAGS="$am_save_CPPFLAGS"
11566 if test "$am_cv_func_iconv" = yes; then
11567 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11568 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11569 if test "${am_cv_proto_iconv+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11580 #include <stdlib.h>
11586 #if defined(__STDC__) || defined(__cplusplus)
11587 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag"
11610 || test ! -s conftest.err'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 am_cv_proto_iconv_arg1=""
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 am_cv_proto_iconv_arg1="const"
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 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);"
11633 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11634 echo "$as_me:$LINENO: result: ${ac_t:-
11635 }$am_cv_proto_iconv" >&5
11636 echo "${ECHO_T}${ac_t:-
11637 }$am_cv_proto_iconv" >&6
11639 cat >>confdefs.h <<_ACEOF
11640 #define ICONV_CONST $am_cv_proto_iconv_arg1
11646 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11647 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11648 if test "${am_cv_langinfo_codeset+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 #include <langinfo.h>
11661 char* cs = nl_langinfo(CODESET);
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 am_cv_langinfo_codeset=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 am_cv_langinfo_codeset=no
11695 rm -f conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11699 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11700 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11701 if test $am_cv_langinfo_codeset = yes; then
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_LANGINFO_CODESET 1
11709 if test $ac_cv_header_locale_h = yes; then
11711 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11712 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11713 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 #include <locale.h>
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 gt_cv_val_LC_MESSAGES=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 gt_cv_val_LC_MESSAGES=no
11760 rm -f conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11763 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11764 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11765 if test $gt_cv_val_LC_MESSAGES = yes; then
11767 cat >>confdefs.h <<\_ACEOF
11768 #define HAVE_LC_MESSAGES 1
11775 if test -n "$INTL_MACOSX_LIBS"; then
11776 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11779 for ac_prog in bison
11781 # Extract the first word of "$ac_prog", so it can be a program name with args.
11782 set dummy $ac_prog; ac_word=$2
11783 echo "$as_me:$LINENO: checking for $ac_word" >&5
11784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11785 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 if test -n "$INTLBISON"; then
11789 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798 ac_cv_prog_INTLBISON="$ac_prog"
11799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 INTLBISON=$ac_cv_prog_INTLBISON
11808 if test -n "$INTLBISON"; then
11809 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11810 echo "${ECHO_T}$INTLBISON" >&6
11812 echo "$as_me:$LINENO: result: no" >&5
11813 echo "${ECHO_T}no" >&6
11816 test -n "$INTLBISON" && break
11819 if test -z "$INTLBISON"; then
11822 echo "$as_me:$LINENO: checking version of bison" >&5
11823 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11824 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11825 case $ac_prog_version in
11826 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11827 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11828 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11829 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11831 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11832 echo "${ECHO_T}$ac_prog_version" >&6
11834 if test $ac_verc_fail = yes; then
11853 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11854 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11855 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 gt_save_CPPFLAGS="$CPPFLAGS"
11859 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11860 gt_save_LIBS="$LIBS"
11861 LIBS="$LIBS -framework CoreFoundation"
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include <CFPreferences.h>
11872 CFPreferencesCopyAppValue(NULL, NULL)
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879 (eval $ac_link) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 gt_cv_func_CFPreferencesCopyAppValue=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11904 gt_cv_func_CFPreferencesCopyAppValue=no
11906 rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 CPPFLAGS="$gt_save_CPPFLAGS"
11909 LIBS="$gt_save_LIBS"
11911 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11912 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11913 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11920 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11921 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11922 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 gt_save_CPPFLAGS="$CPPFLAGS"
11926 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11927 gt_save_LIBS="$LIBS"
11928 LIBS="$LIBS -framework CoreFoundation"
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <CFLocale.h>
11939 CFLocaleCopyCurrent();
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>conftest.er1
11948 grep -v '^ *+' conftest.er1 >conftest.err
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag"
11954 || test ! -s conftest.err'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; } &&
11960 { ac_try='test -s conftest$ac_exeext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 gt_cv_func_CFLocaleCopyCurrent=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 gt_cv_func_CFLocaleCopyCurrent=no
11973 rm -f conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 CPPFLAGS="$gt_save_CPPFLAGS"
11976 LIBS="$gt_save_LIBS"
11978 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11979 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11980 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_CFLOCALECOPYCURRENT 1
11988 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11989 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11995 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11996 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11997 # Check whether --enable-nls or --disable-nls was given.
11998 if test "${enable_nls+set}" = set; then
11999 enableval="$enable_nls"
12004 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12005 echo "${ECHO_T}$USE_NLS" >&6
12010 BUILD_INCLUDED_LIBINTL=no
12011 USE_INCLUDED_LIBINTL=no
12017 if test "$USE_NLS" = "yes"; then
12018 gt_use_preinstalled_gnugettext=no
12020 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12021 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12023 # Check whether --with-included-gettext or --without-included-gettext was given.
12024 if test "${with_included_gettext+set}" = set; then
12025 withval="$with_included_gettext"
12026 nls_cv_force_use_gnu_gettext=$withval
12028 nls_cv_force_use_gnu_gettext=no
12030 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12031 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12033 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12034 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12041 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12042 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12043 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <libintl.h>
12053 extern int _nl_msg_cat_cntr;
12054 extern int *_nl_domain_bindings;
12058 bindtextdomain ("", "");
12059 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12064 rm -f conftest.$ac_objext conftest$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066 (eval $ac_link) 2>conftest.er1
12068 grep -v '^ *+' conftest.er1 >conftest.err
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 gt_cv_func_gnugettext1_libc=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 gt_cv_func_gnugettext1_libc=no
12093 rm -f conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12096 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12097 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12099 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12105 acl_save_prefix="$prefix"
12106 prefix="$acl_final_prefix"
12107 acl_save_exec_prefix="$exec_prefix"
12108 exec_prefix="$acl_final_exec_prefix"
12110 eval additional_includedir=\"$includedir\"
12111 eval additional_libdir=\"$libdir\"
12113 exec_prefix="$acl_save_exec_prefix"
12114 prefix="$acl_save_prefix"
12117 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12118 if test "${with_libintl_prefix+set}" = set; then
12119 withval="$with_libintl_prefix"
12121 if test "X$withval" = "Xno"; then
12124 if test "X$withval" = "X"; then
12126 acl_save_prefix="$prefix"
12127 prefix="$acl_final_prefix"
12128 acl_save_exec_prefix="$exec_prefix"
12129 exec_prefix="$acl_final_exec_prefix"
12131 eval additional_includedir=\"$includedir\"
12132 eval additional_libdir=\"$libdir\"
12134 exec_prefix="$acl_save_exec_prefix"
12135 prefix="$acl_save_prefix"
12138 additional_includedir="$withval/include"
12139 additional_libdir="$withval/lib"
12149 names_already_handled=
12150 names_next_round='intl '
12151 while test -n "$names_next_round"; do
12152 names_this_round="$names_next_round"
12154 for name in $names_this_round; do
12156 for n in $names_already_handled; do
12157 if test "$n" = "$name"; then
12158 already_handled=yes
12162 if test -z "$already_handled"; then
12163 names_already_handled="$names_already_handled $name"
12164 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12165 eval value=\"\$HAVE_LIB$uppername\"
12166 if test -n "$value"; then
12167 if test "$value" = yes; then
12168 eval value=\"\$LIB$uppername\"
12169 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12170 eval value=\"\$LTLIB$uppername\"
12171 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12180 if test $use_additional = yes; then
12181 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12182 found_dir="$additional_libdir"
12183 found_so="$additional_libdir/lib$name.$shlibext"
12184 if test -f "$additional_libdir/lib$name.la"; then
12185 found_la="$additional_libdir/lib$name.la"
12188 if test -f "$additional_libdir/lib$name.$libext"; then
12189 found_dir="$additional_libdir"
12190 found_a="$additional_libdir/lib$name.$libext"
12191 if test -f "$additional_libdir/lib$name.la"; then
12192 found_la="$additional_libdir/lib$name.la"
12197 if test "X$found_dir" = "X"; then
12198 for x in $LDFLAGS $LTLIBINTL; do
12200 acl_save_prefix="$prefix"
12201 prefix="$acl_final_prefix"
12202 acl_save_exec_prefix="$exec_prefix"
12203 exec_prefix="$acl_final_exec_prefix"
12205 exec_prefix="$acl_save_exec_prefix"
12206 prefix="$acl_save_prefix"
12210 dir=`echo "X$x" | sed -e 's/^X-L//'`
12211 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12213 found_so="$dir/lib$name.$shlibext"
12214 if test -f "$dir/lib$name.la"; then
12215 found_la="$dir/lib$name.la"
12218 if test -f "$dir/lib$name.$libext"; then
12220 found_a="$dir/lib$name.$libext"
12221 if test -f "$dir/lib$name.la"; then
12222 found_la="$dir/lib$name.la"
12228 if test "X$found_dir" != "X"; then
12233 if test "X$found_dir" != "X"; then
12234 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12235 if test "X$found_so" != "X"; then
12236 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12237 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12240 for x in $ltrpathdirs; do
12241 if test "X$x" = "X$found_dir"; then
12246 if test -z "$haveit"; then
12247 ltrpathdirs="$ltrpathdirs $found_dir"
12249 if test "$hardcode_direct" = yes; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12252 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12253 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12255 for x in $rpathdirs; do
12256 if test "X$x" = "X$found_dir"; then
12261 if test -z "$haveit"; then
12262 rpathdirs="$rpathdirs $found_dir"
12266 for x in $LDFLAGS $LIBINTL; do
12268 acl_save_prefix="$prefix"
12269 prefix="$acl_final_prefix"
12270 acl_save_exec_prefix="$exec_prefix"
12271 exec_prefix="$acl_final_exec_prefix"
12273 exec_prefix="$acl_save_exec_prefix"
12274 prefix="$acl_save_prefix"
12276 if test "X$x" = "X-L$found_dir"; then
12281 if test -z "$haveit"; then
12282 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12284 if test "$hardcode_minus_L" != no; then
12285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12287 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12293 if test "X$found_a" != "X"; then
12294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12296 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12299 additional_includedir=
12300 case "$found_dir" in
12302 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12303 additional_includedir="$basedir/include"
12306 if test "X$additional_includedir" != "X"; then
12307 if test "X$additional_includedir" != "X/usr/include"; then
12309 if test "X$additional_includedir" = "X/usr/local/include"; then
12310 if test -n "$GCC"; then
12312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12316 if test -z "$haveit"; then
12317 for x in $CPPFLAGS $INCINTL; do
12319 acl_save_prefix="$prefix"
12320 prefix="$acl_final_prefix"
12321 acl_save_exec_prefix="$exec_prefix"
12322 exec_prefix="$acl_final_exec_prefix"
12324 exec_prefix="$acl_save_exec_prefix"
12325 prefix="$acl_save_prefix"
12327 if test "X$x" = "X-I$additional_includedir"; then
12332 if test -z "$haveit"; then
12333 if test -d "$additional_includedir"; then
12334 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12340 if test -n "$found_la"; then
12341 save_libdir="$libdir"
12342 case "$found_la" in
12343 */* | *\\*) . "$found_la" ;;
12344 *) . "./$found_la" ;;
12346 libdir="$save_libdir"
12347 for dep in $dependency_libs; do
12350 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12351 if test "X$additional_libdir" != "X/usr/lib"; then
12353 if test "X$additional_libdir" = "X/usr/local/lib"; then
12354 if test -n "$GCC"; then
12356 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12360 if test -z "$haveit"; then
12362 for x in $LDFLAGS $LIBINTL; do
12364 acl_save_prefix="$prefix"
12365 prefix="$acl_final_prefix"
12366 acl_save_exec_prefix="$exec_prefix"
12367 exec_prefix="$acl_final_exec_prefix"
12369 exec_prefix="$acl_save_exec_prefix"
12370 prefix="$acl_save_prefix"
12372 if test "X$x" = "X-L$additional_libdir"; then
12377 if test -z "$haveit"; then
12378 if test -d "$additional_libdir"; then
12379 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12383 for x in $LDFLAGS $LTLIBINTL; do
12385 acl_save_prefix="$prefix"
12386 prefix="$acl_final_prefix"
12387 acl_save_exec_prefix="$exec_prefix"
12388 exec_prefix="$acl_final_exec_prefix"
12390 exec_prefix="$acl_save_exec_prefix"
12391 prefix="$acl_save_prefix"
12393 if test "X$x" = "X-L$additional_libdir"; then
12398 if test -z "$haveit"; then
12399 if test -d "$additional_libdir"; then
12400 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12407 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12408 if test "$enable_rpath" != no; then
12410 for x in $rpathdirs; do
12411 if test "X$x" = "X$dir"; then
12416 if test -z "$haveit"; then
12417 rpathdirs="$rpathdirs $dir"
12420 for x in $ltrpathdirs; do
12421 if test "X$x" = "X$dir"; then
12426 if test -z "$haveit"; then
12427 ltrpathdirs="$ltrpathdirs $dir"
12432 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12435 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12438 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12439 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12445 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12452 if test "X$rpathdirs" != "X"; then
12453 if test -n "$hardcode_libdir_separator"; then
12455 for found_dir in $rpathdirs; do
12456 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12458 acl_save_libdir="$libdir"
12460 eval flag=\"$hardcode_libdir_flag_spec\"
12461 libdir="$acl_save_libdir"
12462 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12464 for found_dir in $rpathdirs; do
12465 acl_save_libdir="$libdir"
12466 libdir="$found_dir"
12467 eval flag=\"$hardcode_libdir_flag_spec\"
12468 libdir="$acl_save_libdir"
12469 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12473 if test "X$ltrpathdirs" != "X"; then
12474 for found_dir in $ltrpathdirs; do
12475 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12479 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12480 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12481 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 gt_save_CPPFLAGS="$CPPFLAGS"
12485 CPPFLAGS="$CPPFLAGS $INCINTL"
12486 gt_save_LIBS="$LIBS"
12487 LIBS="$LIBS $LIBINTL"
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 #include <libintl.h>
12495 extern int _nl_msg_cat_cntr;
12500 const char *_nl_expand_alias (const char *);
12504 bindtextdomain ("", "");
12505 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>conftest.er1
12514 grep -v '^ *+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -z "$ac_c_werror_flag"
12520 || test ! -s conftest.err'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; } &&
12526 { ac_try='test -s conftest$ac_exeext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 gt_cv_func_gnugettext1_libintl=yes
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 gt_cv_func_gnugettext1_libintl=no
12539 rm -f conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12542 LIBS="$LIBS $LIBICONV"
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 #include <libintl.h>
12550 extern int _nl_msg_cat_cntr;
12555 const char *_nl_expand_alias (const char *);
12559 bindtextdomain ("", "");
12560 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>conftest.er1
12569 grep -v '^ *+' conftest.er1 >conftest.err
12571 cat conftest.err >&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -z "$ac_c_werror_flag"
12575 || test ! -s conftest.err'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 LIBINTL="$LIBINTL $LIBICONV"
12588 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12589 gt_cv_func_gnugettext1_libintl=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12596 rm -f conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12599 CPPFLAGS="$gt_save_CPPFLAGS"
12600 LIBS="$gt_save_LIBS"
12602 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12603 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12606 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12607 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12608 && test "$PACKAGE" != gettext-runtime \
12609 && test "$PACKAGE" != gettext-tools; }; then
12610 gt_use_preinstalled_gnugettext=yes
12618 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12619 nls_cv_use_gnu_gettext=yes
12623 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12624 BUILD_INCLUDED_LIBINTL=yes
12625 USE_INCLUDED_LIBINTL=yes
12626 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12627 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12628 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12633 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638 if test -n "$INTL_MACOSX_LIBS"; then
12639 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12640 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12641 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12642 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12646 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12647 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define ENABLE_NLS 1
12658 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12659 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12660 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12661 echo "${ECHO_T}$USE_NLS" >&6
12662 if test "$USE_NLS" = "yes"; then
12663 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12664 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12665 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12666 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12667 gt_source="external libintl"
12672 gt_source="included intl directory"
12674 echo "$as_me:$LINENO: result: $gt_source" >&5
12675 echo "${ECHO_T}$gt_source" >&6
12678 if test "$USE_NLS" = "yes"; then
12680 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12681 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12682 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12683 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12684 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12685 echo "${ECHO_T}$LIBINTL" >&6
12687 for element in $INCINTL; do
12689 for x in $CPPFLAGS; do
12691 acl_save_prefix="$prefix"
12692 prefix="$acl_final_prefix"
12693 acl_save_exec_prefix="$exec_prefix"
12694 exec_prefix="$acl_final_exec_prefix"
12696 exec_prefix="$acl_save_exec_prefix"
12697 prefix="$acl_save_prefix"
12699 if test "X$x" = "X$element"; then
12704 if test -z "$haveit"; then
12705 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_GETTEXT 1
12717 cat >>confdefs.h <<\_ACEOF
12718 #define HAVE_DCGETTEXT 1
12727 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12728 BUILD_INCLUDED_LIBINTL=yes
12735 nls_cv_header_intl=
12736 nls_cv_header_libgt=
12748 if test "$USE_INCLUDED_LIBINTL" = yes; then
12749 INTLOBJS="\$(GETTOBJS)"
12753 INTL_LIBTOOL_SUFFIX_PREFIX=
12757 INTLLIBS="$LIBINTL"
12770 support_postgresql=no
12771 support_smartalloc=yes
12772 support_readline=yes
12775 support_wx_console=no
12780 support_static_tools=no
12781 support_static_fd=no
12782 support_static_sd=no
12783 support_static_dir=no
12784 support_static_cons=no
12786 build_client_only=no
12794 # -------------------------------------------
12795 # gnome (default off)
12796 # -------------------------------------------
12797 # Check whether --enable-gnome or --disable-gnome was given.
12798 if test "${enable_gnome+set}" = set; then
12799 enableval="$enable_gnome"
12800 if test x$enableval = xyes; then
12806 if test x$support_gnome = xyes; then
12807 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12809 if test $pkg = 0; then
12810 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12811 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12812 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12813 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12818 GNOME_DIR=src/gnome2-console
12819 gnome_version="Version 2.x"
12821 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12822 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12823 { (exit 1); exit 1; }; }
12829 # -------------------------------------------
12830 # wx-console (default off)
12831 # -------------------------------------------
12832 # Check whether --enable-wx-console or --disable-wx-console was given.
12833 if test "${enable_wx_console+set}" = set; then
12834 enableval="$enable_wx_console"
12835 if test x$enableval = xyes; then
12836 support_wx_console=yes
12841 if test x$support_wx_console = xyes; then
12842 abc=`$WXCONFIG $WXFLAGS --cppflags`
12844 if test $pkg = 0; then
12845 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12846 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12847 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12851 WX_DIR=src/wx-console
12854 echo "wx-config program not found. wx-console disabled."
12856 support_wx_console=no
12862 # -------------------------------------------
12863 # tray-monitor (default off)
12864 # -------------------------------------------
12865 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12866 if test "${enable_tray_monitor+set}" = set; then
12867 enableval="$enable_tray_monitor"
12868 if test x$enableval = xyes; then
12869 support_tray_monitor=yes
12874 if test x$support_tray_monitor = xyes; then
12875 abc=`$PKGCONFIG --exists gtk+-2.0`
12877 if test $pkg = 0; then
12878 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12879 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12882 TRAY_MONITOR_DIR=src/tray-monitor
12883 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12885 if test $pkg = 0; then
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_GTK_2_4 1
12895 # -------------------------------------------
12896 # smartalloc (default off)
12897 # -------------------------------------------
12898 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12899 if test "${enable_smartalloc+set}" = set; then
12900 enableval="$enable_smartalloc"
12901 if test x$enableval = xno; then
12902 support_smartalloc=no
12906 if test x$support_smartalloc = xyes; then
12907 cat >>confdefs.h <<\_ACEOF
12908 #define SMARTALLOC 1
12913 # -------------------------------------------
12914 # static-tools (default off)
12915 # -------------------------------------------
12916 # Check whether --enable-static-tools or --disable-static-tools was given.
12917 if test "${enable_static_tools+set}" = set; then
12918 enableval="$enable_static_tools"
12919 if test x$enableval = xyes; then
12920 support_static_tools=yes
12925 if test x$support_static_tools = xyes; then
12926 TTOOL_LDFLAGS="-static"
12930 # -------------------------------------------
12931 # static-fd (default off)
12932 # -------------------------------------------
12933 # Check whether --enable-static-fd or --disable-static-fd was given.
12934 if test "${enable_static_fd+set}" = set; then
12935 enableval="$enable_static_fd"
12936 if test x$enableval = xyes; then
12937 support_static_fd=yes
12942 if test x$support_static_fd = xyes; then
12943 STATIC_FD="static-bacula-fd"
12947 # -------------------------------------------
12948 # static-sd (default off)
12949 # -------------------------------------------
12950 # Check whether --enable-static-sd or --disable-static-sd was given.
12951 if test "${enable_static_sd+set}" = set; then
12952 enableval="$enable_static_sd"
12953 if test x$enableval = xyes; then
12954 support_static_sd=yes
12959 if test x$support_static_sd = xyes; then
12960 STATIC_SD="static-bacula-sd"
12964 # -------------------------------------------
12965 # static-dir (default off)
12966 # -------------------------------------------
12967 # Check whether --enable-static-dir or --disable-static-dir was given.
12968 if test "${enable_static_dir+set}" = set; then
12969 enableval="$enable_static_dir"
12970 if test x$enableval = xyes; then
12971 support_static_dir=yes
12976 if test x$support_static_dir = xyes; then
12977 STATIC_DIR="static-bacula-dir"
12981 # -------------------------------------------
12982 # static-cons (default off)
12983 # -------------------------------------------
12984 # Check whether --enable-static-cons or --disable-static-cons was given.
12985 if test "${enable_static_cons+set}" = set; then
12986 enableval="$enable_static_cons"
12987 if test x$enableval = xyes; then
12988 support_static_cons=yes
12995 if test x$support_static_cons = xyes; then
12996 STATIC_CONS="static-bconsole"
12997 STATIC_GNOME_CONS="static-gnome-console"
12998 STATIC_WX_CONS="static-wx-console"
13004 # -------------------------------------------
13005 # client_only (default off)
13006 # -------------------------------------------
13007 # Check whether --enable-client-only or --disable-client-only was given.
13008 if test "${enable_client_only+set}" = set; then
13009 enableval="$enable_client_only"
13010 if test x$enableval = xyes; then
13011 build_client_only=yes
13016 if test x$build_client_only = xno; then
13023 # -------------------------------------------
13024 # director (default on)
13025 # -------------------------------------------
13026 # Check whether --enable-build-dird or --disable-build-dird was given.
13027 if test "${enable_build_dird+set}" = set; then
13028 enableval="$enable_build_dird"
13029 if test x$enableval = xno; then
13033 if test x$build_dird = xyes; then
13034 DIRD_DIR="src/dird"
13035 DIR_TOOLS="DIRTOOLS"
13038 DIR_TOOLS="NODIRTOOLS"
13043 # -------------------------------------------
13044 # stored (default on)
13045 # -------------------------------------------
13046 # Check whether --enable-build-stored or --disable-build-stored was given.
13047 if test "${enable_build_stored+set}" = set; then
13048 enableval="$enable_build_stored"
13049 if test x$enableval = xno; then
13053 if test x$build_stored = xyes; then
13054 STORED_DIR="src/stored"
13060 # ---------------------------------------------------
13061 # Check for conio (Bacula readline substitute)(
13062 # ---------------------------------------------------
13063 # this allows you to turn it completely off
13064 # Check whether --enable-conio or --disable-conio was given.
13065 if test "${enable_conio+set}" = set; then
13066 enableval="$enable_conio"
13067 if test x$enableval = xno; then
13073 if test x$support_conio = xyes; then
13074 if test "${ac_cv_header_termcap_h+set}" = set; then
13075 echo "$as_me:$LINENO: checking for termcap.h" >&5
13076 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13077 if test "${ac_cv_header_termcap_h+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13081 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13083 # Is the header compilable?
13084 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13085 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092 $ac_includes_default
13093 #include <termcap.h>
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_header_compiler=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_header_compiler=no
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13126 echo "${ECHO_T}$ac_header_compiler" >&6
13128 # Is the header present?
13129 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13130 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13131 cat >conftest.$ac_ext <<_ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <termcap.h>
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13142 grep -v '^ *+' conftest.er1 >conftest.err
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } >/dev/null; then
13147 if test -s conftest.err; then
13148 ac_cpp_err=$ac_c_preproc_warn_flag
13149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13156 if test -z "$ac_cpp_err"; then
13157 ac_header_preproc=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_header_preproc=no
13164 rm -f conftest.err conftest.$ac_ext
13165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166 echo "${ECHO_T}$ac_header_preproc" >&6
13168 # So? What about this header?
13169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13171 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13172 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13174 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13175 ac_header_preproc=yes
13178 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13183 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13185 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13187 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13189 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13192 ## ------------------------------------------ ##
13193 ## Report this to the AC_PACKAGE_NAME lists. ##
13194 ## ------------------------------------------ ##
13197 sed "s/^/$as_me: WARNING: /" >&2
13200 echo "$as_me:$LINENO: checking for termcap.h" >&5
13201 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13202 if test "${ac_cv_header_termcap_h+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_cv_header_termcap_h=$ac_header_preproc
13207 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13208 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13211 if test $ac_cv_header_termcap_h = yes; then
13212 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13213 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13214 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ltermcap $LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13226 /* Override any gcc2 internal prototype to avoid an error. */
13230 /* We use char because int might match the return type of a gcc2
13231 builtin and then its argument prototype would still apply. */
13241 rm -f conftest.$ac_objext conftest$ac_exeext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13243 (eval $ac_link) 2>conftest.er1
13245 grep -v '^ *+' conftest.er1 >conftest.err
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_cv_lib_termcap_tgetent=yes
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 ac_cv_lib_termcap_tgetent=no
13270 rm -f conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13275 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13276 if test $ac_cv_lib_termcap_tgetent = yes; then
13277 CONS_LIBS="-ltermcap"
13281 support_readline=no
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_CONIO 1
13289 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13290 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13291 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 ac_check_lib_save_LIBS=$LIBS
13295 LIBS="-lncurses $LIBS"
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13303 /* Override any gcc2 internal prototype to avoid an error. */
13307 /* We use char because int might match the return type of a gcc2
13308 builtin and then its argument prototype would still apply. */
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag"
13328 || test ! -s conftest.err'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_lib_ncurses_tgetent=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_cv_lib_ncurses_tgetent=no
13347 rm -f conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13349 LIBS=$ac_check_lib_save_LIBS
13351 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13352 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13353 if test $ac_cv_lib_ncurses_tgetent = yes; then
13354 CONS_LIBS="-lncurses"
13358 support_readline=no
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_CONIO 1
13374 for ac_header in curses.h
13376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378 echo "$as_me:$LINENO: checking for $ac_header" >&5
13379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13386 # Is the header compilable?
13387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 $ac_includes_default
13396 #include <$ac_header>
13398 rm -f conftest.$ac_objext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13400 (eval $ac_compile) 2>conftest.er1
13402 grep -v '^ *+' conftest.er1 >conftest.err
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag"
13408 || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest.$ac_objext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_header_compiler=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_header_compiler=no
13427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13429 echo "${ECHO_T}$ac_header_compiler" >&6
13431 # Is the header present?
13432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 #include <$ac_header>
13442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } >/dev/null; then
13450 if test -s conftest.err; then
13451 ac_cpp_err=$ac_c_preproc_warn_flag
13452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13459 if test -z "$ac_cpp_err"; then
13460 ac_header_preproc=yes
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ac_header_preproc=no
13467 rm -f conftest.err conftest.$ac_ext
13468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13469 echo "${ECHO_T}$ac_header_preproc" >&6
13471 # So? What about this header?
13472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13478 ac_header_preproc=yes
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13495 ## ------------------------------------------ ##
13496 ## Report this to the AC_PACKAGE_NAME lists. ##
13497 ## ------------------------------------------ ##
13500 sed "s/^/$as_me: WARNING: /" >&2
13503 echo "$as_me:$LINENO: checking for $ac_header" >&5
13504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 eval "$as_ac_Header=\$ac_header_preproc"
13510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13515 cat >>confdefs.h <<_ACEOF
13516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13523 echo "$as_me:$LINENO: checking for term.h" >&5
13524 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13525 if test "${ac_cv_header_term_h+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13535 #include <curses.h>
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_header_term_h=yes
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ac_cv_header_term_h=no
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13572 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13573 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13574 if test $ac_cv_header_term_h = yes; then
13575 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13576 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13577 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 ac_check_lib_save_LIBS=$LIBS
13581 LIBS="-lcurses $LIBS"
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13589 /* Override any gcc2 internal prototype to avoid an error. */
13593 /* We use char because int might match the return type of a gcc2
13594 builtin and then its argument prototype would still apply. */
13604 rm -f conftest.$ac_objext conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606 (eval $ac_link) 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag"
13614 || test ! -s conftest.err'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; } &&
13620 { ac_try='test -s conftest$ac_exeext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_lib_curses_tgetent=yes
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_cv_lib_curses_tgetent=no
13633 rm -f conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13638 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13639 if test $ac_cv_lib_curses_tgetent = yes; then
13640 CONS_LIBS="-lcurses"
13644 support_readline=no
13646 cat >>confdefs.h <<\_ACEOF
13647 #define HAVE_CONIO 1
13655 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13666 # ---------------------------------------------------
13667 # Check for readline support/directory (default off)
13668 # ---------------------------------------------------
13669 # this allows you to turn it completely off
13670 # Check whether --enable-readline or --disable-readline was given.
13671 if test "${enable_readline+set}" = set; then
13672 enableval="$enable_readline"
13673 if test x$enableval = xno; then
13674 support_readline=no
13680 if test x$support_readline = xyes; then
13682 # Check whether --with-readline or --without-readline was given.
13683 if test "${with_readline+set}" = set; then
13684 withval="$with_readline"
13686 case "$with_readline" in
13689 if test -f ${with_readline}/readline.h; then
13690 CONS_INC="-I${with_readline}"
13691 CONS_LDFLAGS="-L$with_readline"
13692 elif test -f ${with_readline}/include/readline/readline.h; then
13693 CONS_INC="-I${with_readline}/include/readline"
13694 CONS_LDFLAGS="-L${with_readline}/lib"
13695 with_readline="${with_readline}/include/readline"
13697 with_readline="/usr/include/readline"
13699 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13702 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13709 # Is the header compilable?
13710 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13711 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 $ac_includes_default
13719 #include <${with_readline}/readline.h>
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag"
13731 || test ! -s conftest.err'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_header_compiler=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_header_compiler=no
13750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 echo "${ECHO_T}$ac_header_compiler" >&6
13754 # Is the header present?
13755 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13756 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <${with_readline}/readline.h>
13765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } >/dev/null; then
13773 if test -s conftest.err; then
13774 ac_cpp_err=$ac_c_preproc_warn_flag
13775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13782 if test -z "$ac_cpp_err"; then
13783 ac_header_preproc=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_header_preproc=no
13790 rm -f conftest.err conftest.$ac_ext
13791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 echo "${ECHO_T}$ac_header_preproc" >&6
13794 # So? What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13797 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13798 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13800 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13801 ac_header_preproc=yes
13804 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13805 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13807 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13813 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13815 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13818 ## ------------------------------------------ ##
13819 ## Report this to the AC_PACKAGE_NAME lists. ##
13820 ## ------------------------------------------ ##
13823 sed "s/^/$as_me: WARNING: /" >&2
13826 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13827 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 eval "$as_ac_Header=\$ac_header_preproc"
13833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_READLINE 1
13842 CONS_LIBS="-lreadline -lhistory -ltermcap"
13847 echo "readline.h not found. readline turned off ..."
13859 # check for standard readline library
13860 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13861 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13862 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13863 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13867 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13869 # Is the header compilable?
13870 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13871 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 $ac_includes_default
13879 #include </usr/include/readline/readline.h>
13881 rm -f conftest.$ac_objext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13883 (eval $ac_compile) 2>conftest.er1
13885 grep -v '^ *+' conftest.er1 >conftest.err
13887 cat conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
13890 { ac_try='test -z "$ac_c_werror_flag"
13891 || test ! -s conftest.err'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest.$ac_objext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_header_compiler=yes
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_header_compiler=no
13910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13912 echo "${ECHO_T}$ac_header_compiler" >&6
13914 # Is the header present?
13915 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13916 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 #include </usr/include/readline/readline.h>
13925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } >/dev/null; then
13933 if test -s conftest.err; then
13934 ac_cpp_err=$ac_c_preproc_warn_flag
13935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13942 if test -z "$ac_cpp_err"; then
13943 ac_header_preproc=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13948 ac_header_preproc=no
13950 rm -f conftest.err conftest.$ac_ext
13951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13952 echo "${ECHO_T}$ac_header_preproc" >&6
13954 # So? What about this header?
13955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13957 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13958 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13960 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13961 ac_header_preproc=yes
13964 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13965 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13967 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13968 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13973 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13975 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13978 ## ------------------------------------------ ##
13979 ## Report this to the AC_PACKAGE_NAME lists. ##
13980 ## ------------------------------------------ ##
13983 sed "s/^/$as_me: WARNING: /" >&2
13986 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13987 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13988 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13993 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13994 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13997 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13998 cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_READLINE 1
14003 CONS_INC="-I/usr/include/readline"
14004 CONS_LIBS="-lreadline -ltermcap"
14008 # Did not find standard library, so try Bacula's default
14009 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14012 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14019 # Is the header compilable?
14020 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14021 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14029 #include <${TOP_DIR}/depkgs/readline/readline.h>
14031 rm -f conftest.$ac_objext
14032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033 (eval $ac_compile) 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_header_compiler=yes
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_header_compiler=no
14060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6
14064 # Is the header present?
14065 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14066 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <${TOP_DIR}/depkgs/readline/readline.h>
14075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev/null; then
14083 if test -s conftest.err; then
14084 ac_cpp_err=$ac_c_preproc_warn_flag
14085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14092 if test -z "$ac_cpp_err"; then
14093 ac_header_preproc=yes
14095 echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14098 ac_header_preproc=no
14100 rm -f conftest.err conftest.$ac_ext
14101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14102 echo "${ECHO_T}$ac_header_preproc" >&6
14104 # So? What about this header?
14105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14107 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14108 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14110 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14111 ac_header_preproc=yes
14114 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14115 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14117 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14123 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14125 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14128 ## ------------------------------------------ ##
14129 ## Report this to the AC_PACKAGE_NAME lists. ##
14130 ## ------------------------------------------ ##
14133 sed "s/^/$as_me: WARNING: /" >&2
14136 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14137 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 eval "$as_ac_Header=\$ac_header_preproc"
14143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14148 cat >>confdefs.h <<\_ACEOF
14149 #define HAVE_READLINE 1
14153 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14154 CONS_LIBS="-lreadline -lhistory -ltermcap"
14155 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14156 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14160 echo "readline.h not found. readline turned off ..."
14186 # Minimal stuff for readline Makefile configuration
14189 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14190 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14191 if test "${ac_cv_header_stat_broken+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 cat >conftest.$ac_ext <<_ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 #include <sys/types.h>
14201 #include <sys/stat.h>
14203 #if defined(S_ISBLK) && defined(S_IFDIR)
14204 # if S_ISBLK (S_IFDIR)
14209 #if defined(S_ISBLK) && defined(S_IFCHR)
14210 # if S_ISBLK (S_IFCHR)
14215 #if defined(S_ISLNK) && defined(S_IFREG)
14216 # if S_ISLNK (S_IFREG)
14221 #if defined(S_ISSOCK) && defined(S_IFREG)
14222 # if S_ISSOCK (S_IFREG)
14228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14229 $EGREP "You lose" >/dev/null 2>&1; then
14230 ac_cv_header_stat_broken=yes
14232 ac_cv_header_stat_broken=no
14237 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14238 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14239 if test $ac_cv_header_stat_broken = yes; then
14241 cat >>confdefs.h <<\_ACEOF
14242 #define STAT_MACROS_BROKEN 1
14252 ac_header_dirent=no
14253 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14254 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14255 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14256 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #include <sys/types.h>
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 eval "$as_ac_Header=yes"
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 eval "$as_ac_Header=no"
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14312 cat >>confdefs.h <<_ACEOF
14313 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14316 ac_header_dirent=$ac_hdr; break
14320 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14321 if test $ac_header_dirent = dirent.h; then
14322 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14323 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14324 if test "${ac_cv_search_opendir+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 ac_func_search_save_LIBS=$LIBS
14328 ac_cv_search_opendir=no
14329 cat >conftest.$ac_ext <<_ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14336 /* Override any gcc2 internal prototype to avoid an error. */
14340 /* We use char because int might match the return type of a gcc2
14341 builtin and then its argument prototype would still apply. */
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14353 (eval $ac_link) 2>conftest.er1
14355 grep -v '^ *+' conftest.er1 >conftest.err
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag"
14361 || test ! -s conftest.err'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest$ac_exeext'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 ac_cv_search_opendir="none required"
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14379 rm -f conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 if test "$ac_cv_search_opendir" = no; then
14382 for ac_lib in dir; do
14383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14384 cat >conftest.$ac_ext <<_ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14408 (eval $ac_link) 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_search_opendir="-l$ac_lib"
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14435 rm -f conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14439 LIBS=$ac_func_search_save_LIBS
14441 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14442 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14443 if test "$ac_cv_search_opendir" != no; then
14444 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14449 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14450 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14451 if test "${ac_cv_search_opendir+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 ac_func_search_save_LIBS=$LIBS
14455 ac_cv_search_opendir=no
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14463 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest$ac_exeext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_cv_search_opendir="none required"
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14506 rm -f conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 if test "$ac_cv_search_opendir" = no; then
14509 for ac_lib in x; do
14510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14518 /* Override any gcc2 internal prototype to avoid an error. */
14522 /* We use char because int might match the return type of a gcc2
14523 builtin and then its argument prototype would still apply. */
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14535 (eval $ac_link) 2>conftest.er1
14537 grep -v '^ *+' conftest.er1 >conftest.err
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -z "$ac_c_werror_flag"
14543 || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_search_opendir="-l$ac_lib"
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14562 rm -f conftest.err conftest.$ac_objext \
14563 conftest$ac_exeext conftest.$ac_ext
14566 LIBS=$ac_func_search_save_LIBS
14568 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14569 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14570 if test "$ac_cv_search_opendir" != no; then
14571 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14584 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14587 echo "$as_me:$LINENO: checking for $ac_func" >&5
14588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14589 if eval "test \"\${$as_ac_var+set}\" = set"; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 cat >conftest.$ac_ext <<_ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14600 #define $ac_func innocuous_$ac_func
14602 /* System header to define __stub macros and hopefully few prototypes,
14603 which can conflict with char $ac_func (); below.
14604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14605 <limits.h> exists even on freestanding compilers. */
14608 # include <limits.h>
14610 # include <assert.h>
14615 /* Override any gcc2 internal prototype to avoid an error. */
14620 /* We use char because int might match the return type of a gcc2
14621 builtin and then its argument prototype would still apply. */
14623 /* The GNU C library defines this for functions which it implements
14624 to always fail with ENOSYS. Some functions are actually named
14625 something starting with __ and the normal name is an alias. */
14626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14629 char (*f) () = $ac_func;
14638 return f != $ac_func;
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
14652 { ac_try='test -z "$ac_c_werror_flag"
14653 || test ! -s conftest.err'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest$ac_exeext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 eval "$as_ac_var=yes"
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 eval "$as_ac_var=no"
14672 rm -f conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14677 if test `eval echo '${'$as_ac_var'}'` = yes; then
14678 cat >>confdefs.h <<_ACEOF
14679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14687 for ac_func in nanosleep nl_langinfo
14689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14690 echo "$as_me:$LINENO: checking for $ac_func" >&5
14691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14692 if eval "test \"\${$as_ac_var+set}\" = set"; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14703 #define $ac_func innocuous_$ac_func
14705 /* System header to define __stub macros and hopefully few prototypes,
14706 which can conflict with char $ac_func (); below.
14707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14708 <limits.h> exists even on freestanding compilers. */
14711 # include <limits.h>
14713 # include <assert.h>
14718 /* Override any gcc2 internal prototype to avoid an error. */
14723 /* We use char because int might match the return type of a gcc2
14724 builtin and then its argument prototype would still apply. */
14726 /* The GNU C library defines this for functions which it implements
14727 to always fail with ENOSYS. Some functions are actually named
14728 something starting with __ and the normal name is an alias. */
14729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14732 char (*f) () = $ac_func;
14741 return f != $ac_func;
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748 (eval $ac_link) 2>conftest.er1
14750 grep -v '^ *+' conftest.er1 >conftest.err
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -z "$ac_c_werror_flag"
14756 || test ! -s conftest.err'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest$ac_exeext'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 eval "$as_ac_var=yes"
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 eval "$as_ac_var=no"
14775 rm -f conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14780 if test `eval echo '${'$as_ac_var'}'` = yes; then
14781 cat >>confdefs.h <<_ACEOF
14782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14789 for ac_header in varargs.h
14791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14793 echo "$as_me:$LINENO: checking for $ac_header" >&5
14794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14801 # Is the header compilable?
14802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 $ac_includes_default
14811 #include <$ac_header>
14813 rm -f conftest.$ac_objext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14815 (eval $ac_compile) 2>conftest.er1
14817 grep -v '^ *+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest.$ac_objext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_header_compiler=yes
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_header_compiler=no
14842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14844 echo "${ECHO_T}$ac_header_compiler" >&6
14846 # Is the header present?
14847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14849 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 #include <$ac_header>
14857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14860 grep -v '^ *+' conftest.er1 >conftest.err
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } >/dev/null; then
14865 if test -s conftest.err; then
14866 ac_cpp_err=$ac_c_preproc_warn_flag
14867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14874 if test -z "$ac_cpp_err"; then
14875 ac_header_preproc=yes
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 ac_header_preproc=no
14882 rm -f conftest.err conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14884 echo "${ECHO_T}$ac_header_preproc" >&6
14886 # So? What about this header?
14887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14893 ac_header_preproc=yes
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14910 ## ------------------------------------------ ##
14911 ## Report this to the AC_PACKAGE_NAME lists. ##
14912 ## ------------------------------------------ ##
14915 sed "s/^/$as_me: WARNING: /" >&2
14918 echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 eval "$as_ac_Header=\$ac_header_preproc"
14925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14930 cat >>confdefs.h <<_ACEOF
14931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14939 # End of readline/conio stuff
14940 # -----------------------------------------------------------------------
14942 # -----------------------------------------------------------------------
14943 # Check for Python support
14945 echo "$as_me:$LINENO: checking for Python support" >&5
14946 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14948 # Check whether --with-python or --without-python was given.
14949 if test "${with_python+set}" = set; then
14950 withval="$with_python"
14954 if test "$withval" != "no"; then
14955 if test "$withval" = "yes"; then
14956 for python_root in /usr /usr/local /usr/sfw; do
14957 if test -f $python_root/include/python2.2/Python.h; then
14958 PYTHON_INCDIR=-I$python_root/include/python2.2
14959 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14961 elif test -f $python_root/include/python2.3/Python.h; then
14962 PYTHON_INCDIR=-I$python_root/include/python2.3
14963 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14965 elif test -f $python_root/include/python2.4/Python.h; then
14966 PYTHON_INCDIR=-I$python_root/include/python2.4
14967 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14971 if test x$PYTHON_INCDIR = x; then
14972 if test -f $prefix/include/Python.h; then
14973 PYTHON_INCDIR=-I$prefix/include
14974 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14976 echo "$as_me:$LINENO: result: no" >&5
14977 echo "${ECHO_T}no" >&6
14978 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14979 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14980 { (exit 1); exit 1; }; }
14984 if test -f $withval/Python.h; then
14985 PYTHON_INCDIR=-I$withval
14986 PYTHON_LIBS="-L$withval/config -lpython"
14987 elif test -f $withval/include/Python.h; then
14988 PYTHON_INCDIR=-I$withval/include
14989 PYTHON_LIBS="-L$withval/lib/config -lpython"
14990 elif test -f $withval/include/python/Python.h; then
14991 PYTHON_INCDIR=-I$withval/include/python
14992 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14994 echo "$as_me:$LINENO: result: no" >&5
14995 echo "${ECHO_T}no" >&6
14996 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14997 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14998 { (exit 1); exit 1; }; }
15001 cat >>confdefs.h <<\_ACEOF
15002 #define HAVE_PYTHON 1
15005 echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15008 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15009 echo "$as_me: checking for more Python libs" >&6;}
15010 saved_LIBS="$LIBS"; LIBS=
15011 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15012 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15013 if test "${ac_cv_search_shm_open+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 ac_func_search_save_LIBS=$LIBS
15017 ac_cv_search_shm_open=no
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15025 /* Override any gcc2 internal prototype to avoid an error. */
15029 /* We use char because int might match the return type of a gcc2
15030 builtin and then its argument prototype would still apply. */
15040 rm -f conftest.$ac_objext conftest$ac_exeext
15041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15042 (eval $ac_link) 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest$ac_exeext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_cv_search_shm_open="none required"
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15068 rm -f conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15070 if test "$ac_cv_search_shm_open" = no; then
15071 for ac_lib in rt; do
15072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15080 /* Override any gcc2 internal prototype to avoid an error. */
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } &&
15104 { ac_try='test -z "$ac_c_werror_flag"
15105 || test ! -s conftest.err'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest$ac_exeext'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
15117 ac_cv_search_shm_open="-l$ac_lib"
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15124 rm -f conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15128 LIBS=$ac_func_search_save_LIBS
15130 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15131 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15132 if test "$ac_cv_search_shm_open" != no; then
15133 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15138 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15139 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15140 if test "${ac_cv_lib_util_openpty+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 ac_check_lib_save_LIBS=$LIBS
15144 LIBS="-lutil $LIBS"
15145 cat >conftest.$ac_ext <<_ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15152 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_lib_util_openpty=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_cv_lib_util_openpty=no
15196 rm -f conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15200 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15201 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15202 if test $ac_cv_lib_util_openpty = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_LIBUTIL 1
15207 LIBS="-lutil $LIBS"
15211 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15214 echo "$as_me:$LINENO: result: no" >&5
15215 echo "${ECHO_T}no" >&6
15220 echo "$as_me:$LINENO: result: no" >&5
15221 echo "${ECHO_T}no" >&6
15229 # Find where sockets are (especially for Solaris)
15230 # Do this before the TCP Wrappers test since tcp wrappers
15231 # uses the socket library and some linkers are stupid.
15233 echo "$as_me:$LINENO: checking for socket" >&5
15234 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15235 if test "${ac_cv_func_socket+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15246 #define socket innocuous_socket
15248 /* System header to define __stub macros and hopefully few prototypes,
15249 which can conflict with char socket (); below.
15250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15251 <limits.h> exists even on freestanding compilers. */
15254 # include <limits.h>
15256 # include <assert.h>
15261 /* Override any gcc2 internal prototype to avoid an error. */
15266 /* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15269 /* The GNU C library defines this for functions which it implements
15270 to always fail with ENOSYS. Some functions are actually named
15271 something starting with __ and the normal name is an alias. */
15272 #if defined (__stub_socket) || defined (__stub___socket)
15275 char (*f) () = socket;
15284 return f != socket;
15289 rm -f conftest.$ac_objext conftest$ac_exeext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291 (eval $ac_link) 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -z "$ac_c_werror_flag"
15299 || test ! -s conftest.err'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest$ac_exeext'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_cv_func_socket=yes
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ac_cv_func_socket=no
15318 rm -f conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15321 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15322 echo "${ECHO_T}$ac_cv_func_socket" >&6
15323 if test $ac_cv_func_socket = yes; then
15324 echo "$as_me:$LINENO: result: using libc's socket" >&5
15325 echo "${ECHO_T}using libc's socket" >&6
15328 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15329 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15330 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 ac_check_lib_save_LIBS=$LIBS
15334 LIBS="-lxnet $LIBS"
15335 cat >conftest.$ac_ext <<_ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15342 /* Override any gcc2 internal prototype to avoid an error. */
15346 /* We use char because int might match the return type of a gcc2
15347 builtin and then its argument prototype would still apply. */
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -z "$ac_c_werror_flag"
15367 || test ! -s conftest.err'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest$ac_exeext'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_lib_xnet_socket=yes
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_cv_lib_xnet_socket=no
15386 rm -f conftest.err conftest.$ac_objext \
15387 conftest$ac_exeext conftest.$ac_ext
15388 LIBS=$ac_check_lib_save_LIBS
15390 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15391 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15392 if test $ac_cv_lib_xnet_socket = yes; then
15393 cat >>confdefs.h <<_ACEOF
15394 #define HAVE_LIBXNET 1
15397 LIBS="-lxnet $LIBS"
15402 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15403 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15404 if test "${ac_cv_lib_socket_socket+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 ac_check_lib_save_LIBS=$LIBS
15408 LIBS="-lsocket $LIBS"
15409 cat >conftest.$ac_ext <<_ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15416 /* Override any gcc2 internal prototype to avoid an error. */
15420 /* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15431 rm -f conftest.$ac_objext conftest$ac_exeext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try='test -z "$ac_c_werror_flag"
15441 || test ! -s conftest.err'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest$ac_exeext'
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; }; then
15453 ac_cv_lib_socket_socket=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_cv_lib_socket_socket=no
15460 rm -f conftest.err conftest.$ac_objext \
15461 conftest$ac_exeext conftest.$ac_ext
15462 LIBS=$ac_check_lib_save_LIBS
15464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15465 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15466 if test $ac_cv_lib_socket_socket = yes; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_LIBSOCKET 1
15471 LIBS="-lsocket $LIBS"
15476 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15477 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15478 if test "${ac_cv_lib_inet_socket+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_check_lib_save_LIBS=$LIBS
15482 LIBS="-linet $LIBS"
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15490 /* Override any gcc2 internal prototype to avoid an error. */
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag"
15515 || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_lib_inet_socket=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_cv_lib_inet_socket=no
15534 rm -f conftest.err conftest.$ac_objext \
15535 conftest$ac_exeext conftest.$ac_ext
15536 LIBS=$ac_check_lib_save_LIBS
15538 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15539 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15540 if test $ac_cv_lib_inet_socket = yes; then
15541 cat >>confdefs.h <<_ACEOF
15542 #define HAVE_LIBINET 1
15545 LIBS="-linet $LIBS"
15553 # -----------------------------------------------------------
15554 # Check whether user wants TCP wrappers support (default off)
15555 # -----------------------------------------------------------
15559 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15560 if test "${with_tcp_wrappers+set}" = set; then
15561 withval="$with_tcp_wrappers"
15563 if test "x$withval" != "xno" ; then
15565 LIBS="$saved_LIBS -lwrap"
15566 echo "$as_me:$LINENO: checking for libwrap" >&5
15567 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15568 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15569 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15570 if test "${ac_cv_search_nanosleep+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 ac_func_search_save_LIBS=$LIBS
15574 ac_cv_search_nanosleep=no
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15582 /* Override any gcc2 internal prototype to avoid an error. */
15586 /* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -z "$ac_c_werror_flag"
15607 || test ! -s conftest.err'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; } &&
15613 { ac_try='test -s conftest$ac_exeext'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_cv_search_nanosleep="none required"
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15625 rm -f conftest.err conftest.$ac_objext \
15626 conftest$ac_exeext conftest.$ac_ext
15627 if test "$ac_cv_search_nanosleep" = no; then
15628 for ac_lib in rt; do
15629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15654 (eval $ac_link) 2>conftest.er1
15656 grep -v '^ *+' conftest.er1 >conftest.err
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest$ac_exeext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_cv_search_nanosleep="-l$ac_lib"
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15681 rm -f conftest.err conftest.$ac_objext \
15682 conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_func_search_save_LIBS
15687 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15688 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15689 if test "$ac_cv_search_nanosleep" != no; then
15690 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15694 cat >conftest.$ac_ext <<_ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <sys/types.h>
15702 int deny_severity = 0;
15703 int allow_severity = 0;
15704 struct request_info *req;
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag"
15723 || test ! -s conftest.err'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15736 echo "$as_me:$LINENO: result: yes" >&5
15737 echo "${ECHO_T}yes" >&6
15738 cat >>confdefs.h <<\_ACEOF
15739 #define HAVE_LIBWRAP 1
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15751 LIBS="$saved_LIBS -lwrap -lnsl"
15752 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 #include <sys/types.h>
15761 int deny_severity = 0;
15762 int allow_severity = 0;
15763 struct request_info *req;
15772 rm -f conftest.$ac_objext conftest$ac_exeext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15774 (eval $ac_link) 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag"
15782 || test ! -s conftest.err'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest$ac_exeext'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15795 echo "$as_me:$LINENO: result: yes" >&5
15796 echo "${ECHO_T}yes" >&6
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE_LIBWRAP 1
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15810 echo "$as_me: error: *** libwrap missing" >&2;}
15811 { (exit 1); exit 1; }; }
15814 rm -f conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15818 rm -f conftest.err conftest.$ac_objext \
15819 conftest$ac_exeext conftest.$ac_ext
15825 # -----------------------------------------------------------
15826 # Check whether OpenSSL is available
15827 # -----------------------------------------------------------
15828 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15829 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15831 # Check whether --with-openssl or --without-openssl was given.
15832 if test "${with_openssl+set}" = set; then
15833 withval="$with_openssl"
15834 with_openssl_directory=${withval}
15837 if test "x$with_openssl_directory" != "x"; then
15838 OPENSSL_LIBS="-lssl -lcrypto"
15841 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15842 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15843 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15847 saved_CFLAGS="$CFLAGS"
15848 LIBS="$saved_LIBS $OPENSSL_LIBS"
15849 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <openssl/ssl.h>
15861 CRYPTO_set_id_callback(NULL);
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15868 (eval $ac_link) 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag"
15876 || test ! -s conftest.err'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest$ac_exeext'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15890 support_crypto="yes"
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15899 rm -f conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 #include <openssl/evp.h>
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -z "$ac_c_werror_flag"
15927 || test ! -s conftest.err'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest$ac_exeext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_cv_openssl_sha2="yes"
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_cv_openssl_sha2="no"
15947 rm -f conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15951 CFLAGS="$saved_CFLAGS"
15953 if test "$support_tls" = "yes"; then
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_OPENSSL 1
15960 cat >>confdefs.h <<\_ACEOF
15965 cat >>confdefs.h <<\_ACEOF
15966 #define HAVE_CRYPTO 1
15971 if test "$ac_cv_openssl_sha2" = "yes"; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE_SHA2 1
15980 support_crypto="no"
15985 echo "$as_me:$LINENO: result: $support_tls" >&5
15986 echo "${ECHO_T}$support_tls" >&6
15991 # -----------------------------------------------------------
15992 # Python and OpenSSL are using dlopen
15993 # -----------------------------------------------------------
15995 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15996 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15997 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15998 if test "${ac_cv_search_dlopen+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_func_search_save_LIBS=$LIBS
16002 ac_cv_search_dlopen=no
16003 cat >conftest.$ac_ext <<_ACEOF
16006 cat confdefs.h >>conftest.$ac_ext
16007 cat >>conftest.$ac_ext <<_ACEOF
16008 /* end confdefs.h. */
16010 /* Override any gcc2 internal prototype to avoid an error. */
16014 /* We use char because int might match the return type of a gcc2
16015 builtin and then its argument prototype would still apply. */
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_search_dlopen="none required"
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16053 rm -f conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 if test "$ac_cv_search_dlopen" = no; then
16056 for ac_lib in dl; do
16057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16058 cat >conftest.$ac_ext <<_ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16065 /* Override any gcc2 internal prototype to avoid an error. */
16069 /* We use char because int might match the return type of a gcc2
16070 builtin and then its argument prototype would still apply. */
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16082 (eval $ac_link) 2>conftest.er1
16084 grep -v '^ *+' conftest.er1 >conftest.err
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -z "$ac_c_werror_flag"
16090 || test ! -s conftest.err'
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest$ac_exeext'
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_cv_search_dlopen="-l$ac_lib"
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16109 rm -f conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16113 LIBS=$ac_func_search_save_LIBS
16115 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16116 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16117 if test "$ac_cv_search_dlopen" != no; then
16118 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16124 # ------------------------------------------
16125 # Where to place working dir
16126 # ------------------------------------------
16127 working_dir=`eval echo ${prefix}/var/bacula/working`
16129 # Check whether --with-working-dir or --without-working-dir was given.
16130 if test "${with_working_dir+set}" = set; then
16131 withval="$with_working_dir"
16133 if test "x$withval" != "xno" ; then
16134 working_dir=$withval
16143 # ------------------------------------------
16144 # Where to place scriptdir (script files)
16145 # ------------------------------------------
16146 scriptdir=`eval echo ${sysconfdir}`
16148 # Check whether --with-scriptdir or --without-scriptdir was given.
16149 if test "${with_scriptdir+set}" = set; then
16150 withval="$with_scriptdir"
16152 if test "x$withval" != "xno" ; then
16162 # ------------------------------------------
16163 # Where to send dump email
16164 # ------------------------------------------
16165 dump_email=root@localhost
16167 # Check whether --with-dump-email or --without-dump-email was given.
16168 if test "${with_dump_email+set}" = set; then
16169 withval="$with_dump_email"
16171 if test "x$withval" != "xno" ; then
16172 dump_email=$withval
16180 # ------------------------------------------
16181 # Where to send job email
16182 # ------------------------------------------
16183 job_email=root@localhost
16185 # Check whether --with-job-email or --without-job-email was given.
16186 if test "${with_job_email+set}" = set; then
16187 withval="$with_job_email"
16189 if test "x$withval" != "xno" ; then
16198 # ------------------------------------------
16199 # Where to find smtp host
16200 # ------------------------------------------
16201 smtp_host=localhost
16203 # Check whether --with-smtp_host or --without-smtp_host was given.
16204 if test "${with_smtp_host+set}" = set; then
16205 withval="$with_smtp_host"
16207 if test "x$withval" != "xno" ; then
16217 # ------------------------------------
16218 # Where to place pid files
16219 # ------------------------------------
16222 # Check whether --with-pid-dir or --without-pid-dir was given.
16223 if test "${with_pid_dir+set}" = set; then
16224 withval="$with_pid_dir"
16226 if test "x$withval" != "xno" ; then
16233 cat >>confdefs.h <<_ACEOF
16234 #define _PATH_BACULA_PIDDIR "$piddir"
16240 # ------------------------------------
16241 # Where to place subsys "lock file"
16242 # ------------------------------------
16243 subsysdir=/var/run/subsys
16245 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16246 if test "${with_subsys_dir+set}" = set; then
16247 withval="$with_subsys_dir"
16249 if test "x$withval" != "xno" ; then
16260 # ------------------------------------
16261 # Where to start assigning ports
16262 # ------------------------------------
16265 # Check whether --with-baseport or --without-baseport was given.
16266 if test "${with_baseport+set}" = set; then
16267 withval="$with_baseport"
16269 if test "x$withval" != "xno" ; then
16277 dir_port=`expr $baseport`
16278 fd_port=`expr $baseport + 1`
16279 sd_port=`expr $fd_port + 1`
16286 # ------------------------------------------
16287 # Generate passwords
16288 # ------------------------------------------
16291 # Check whether --with-dir-password or --without-dir-password was given.
16292 if test "${with_dir_password+set}" = set; then
16293 withval="$with_dir_password"
16295 if test "x$withval" != "xno" ; then
16296 dir_password=$withval
16302 if test "x$dir_password" = "x" ; then
16303 if test "x$OPENSSL" = "xnone" ; then
16304 key=`autoconf/randpass 33`
16306 key=`openssl rand -base64 33`
16313 # Check whether --with-fd-password or --without-fd-password was given.
16314 if test "${with_fd_password+set}" = set; then
16315 withval="$with_fd_password"
16317 if test "x$withval" != "xno" ; then
16318 fd_password=$withval
16324 if test "x$fd_password" = "x" ; then
16325 if test "x$OPENSSL" = "xnone" ; then
16326 key=`autoconf/randpass 37`
16328 key=`openssl rand -base64 33`
16335 # Check whether --with-sd-password or --without-sd-password was given.
16336 if test "${with_sd_password+set}" = set; then
16337 withval="$with_sd_password"
16339 if test "x$withval" != "xno" ; then
16340 sd_password=$withval
16346 if test "x$sd_password" = "x" ; then
16347 if test "x$OPENSSL" = "xnone" ; then
16348 key=`autoconf/randpass 41`
16350 key=`openssl rand -base64 33`
16357 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16358 if test "${with_mon_dir_password+set}" = set; then
16359 withval="$with_mon_dir_password"
16361 if test "x$withval" != "xno" ; then
16362 mon_dir_password=$withval
16368 if test "x$mon_dir_password" = "x" ; then
16369 if test "x$OPENSSL" = "xnone" ; then
16370 key=`autoconf/randpass 33`
16372 key=`openssl rand -base64 33`
16374 mon_dir_password=$key
16379 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16380 if test "${with_mon_fd_password+set}" = set; then
16381 withval="$with_mon_fd_password"
16383 if test "x$withval" != "xno" ; then
16384 mon_fd_password=$withval
16390 if test "x$mon_fd_password" = "x" ; then
16391 if test "x$OPENSSL" = "xnone" ; then
16392 key=`autoconf/randpass 37`
16394 key=`openssl rand -base64 33`
16396 mon_fd_password=$key
16401 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16402 if test "${with_mon_sd_password+set}" = set; then
16403 withval="$with_mon_sd_password"
16405 if test "x$withval" != "xno" ; then
16406 mon_sd_password=$withval
16412 if test "x$mon_sd_password" = "x" ; then
16413 if test "x$OPENSSL" = "xnone" ; then
16414 key=`autoconf/randpass 41`
16416 key=`openssl rand -base64 33`
16418 mon_sd_password=$key
16430 # Handle users and groups for each daemon
16434 # Check whether --with-dir_user or --without-dir_user was given.
16435 if test "${with_dir_user+set}" = set; then
16436 withval="$with_dir_user"
16438 if test "x$withval" != "x" ; then
16447 # Check whether --with-dir_group or --without-dir_group was given.
16448 if test "${with_dir_group+set}" = set; then
16449 withval="$with_dir_group"
16451 if test "x$withval" != "x" ; then
16460 # Check whether --with-sd_user or --without-sd_user was given.
16461 if test "${with_sd_user+set}" = set; then
16462 withval="$with_sd_user"
16464 if test "x$withval" != "x" ; then
16473 # Check whether --with-sd_group or --without-sd_group was given.
16474 if test "${with_sd_group+set}" = set; then
16475 withval="$with_sd_group"
16477 if test "x$withval" != "x" ; then
16486 # Check whether --with-fd_user or --without-fd_user was given.
16487 if test "${with_fd_user+set}" = set; then
16488 withval="$with_fd_user"
16490 if test "x$withval" != "x" ; then
16499 # Check whether --with-fd_group or --without-fd_group was given.
16500 if test "${with_fd_group+set}" = set; then
16501 withval="$with_fd_group"
16503 if test "x$withval" != "x" ; then
16521 # allow setting default executable permissions
16525 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16526 if test "${with_sbin_perm+set}" = set; then
16527 withval="$with_sbin_perm"
16529 if test "x$withval" != "x" ; then
16538 # ------------------------------------------------
16539 # Bacula check for various SQL database engines
16540 # ------------------------------------------------
16543 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16544 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16546 # Check whether --with-postgresql or --without-postgresql was given.
16547 if test "${with_postgresql+set}" = set; then
16548 withval="$with_postgresql"
16550 if test "$withval" != "no"; then
16551 if test "$db_found" = "yes"; then
16552 echo "$as_me:$LINENO: result: error" >&5
16553 echo "${ECHO_T}error" >&6
16554 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16555 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16556 { (exit 1); exit 1; }; };
16558 if test "$withval" = "yes"; then
16559 PG_CONFIG=`which pg_config`
16560 if test -n "$PG_CONFIG";then
16561 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16562 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16563 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16564 elif test -f /usr/local/include/libpq-fe.h; then
16565 POSTGRESQL_INCDIR=/usr/local/include
16566 POSTGRESQL_LIBDIR=/usr/local/lib
16567 POSTGRESQL_BINDIR=/usr/local/bin
16568 elif test -f /usr/include/libpq-fe.h; then
16569 POSTGRESQL_INCDIR=/usr/include
16570 POSTGRESQL_LIBDIR=/usr/lib
16571 POSTGRESQL_BINDIR=/usr/bin
16572 elif test -f /usr/include/pgsql/libpq-fe.h; then
16573 POSTGRESQL_INCDIR=/usr/include/pgsql
16574 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16575 POSTGRESQL_BINDIR=/usr/bin
16576 elif test -f /usr/include/postgresql/libpq-fe.h; then
16577 POSTGRESQL_INCDIR=/usr/include/postgresql
16578 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16579 POSTGRESQL_BINDIR=/usr/bin
16581 echo "$as_me:$LINENO: result: no" >&5
16582 echo "${ECHO_T}no" >&6
16583 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16584 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16585 { (exit 1); exit 1; }; }
16587 elif test -f $withval/include/libpq-fe.h; then
16588 POSTGRESQL_INCDIR=$withval/include
16589 POSTGRESQL_LIBDIR=$withval/lib
16590 POSTGRESQL_BINDIR=$withval/bin
16591 elif test -f $withval/include/postgresql/libpq-fe.h; then
16592 POSTGRESQL_INCDIR=$withval/include/postgresql
16593 POSTGRESQL_LIBDIR=$withval/lib
16594 POSTGRESQL_BINDIR=$withval/bin
16596 echo "$as_me:$LINENO: result: no" >&5
16597 echo "${ECHO_T}no" >&6
16598 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16599 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16600 { (exit 1); exit 1; }; }
16602 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16603 echo "$as_me:$LINENO: checking for crypt" >&5
16604 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16605 if test "${ac_cv_func_crypt+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16616 #define crypt innocuous_crypt
16618 /* System header to define __stub macros and hopefully few prototypes,
16619 which can conflict with char crypt (); below.
16620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16621 <limits.h> exists even on freestanding compilers. */
16624 # include <limits.h>
16626 # include <assert.h>
16631 /* Override any gcc2 internal prototype to avoid an error. */
16636 /* We use char because int might match the return type of a gcc2
16637 builtin and then its argument prototype would still apply. */
16639 /* The GNU C library defines this for functions which it implements
16640 to always fail with ENOSYS. Some functions are actually named
16641 something starting with __ and the normal name is an alias. */
16642 #if defined (__stub_crypt) || defined (__stub___crypt)
16645 char (*f) () = crypt;
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661 (eval $ac_link) 2>conftest.er1
16663 grep -v '^ *+' conftest.er1 >conftest.err
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag"
16669 || test ! -s conftest.err'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest$ac_exeext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ac_cv_func_crypt=yes
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ac_cv_func_crypt=no
16688 rm -f conftest.err conftest.$ac_objext \
16689 conftest$ac_exeext conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16692 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16693 if test $ac_cv_func_crypt = yes; then
16696 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16697 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16698 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-lcrypt $LIBS"
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16710 /* Override any gcc2 internal prototype to avoid an error. */
16714 /* We use char because int might match the return type of a gcc2
16715 builtin and then its argument prototype would still apply. */
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>conftest.er1
16729 grep -v '^ *+' conftest.er1 >conftest.err
16731 cat conftest.err >&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_lib_crypt_crypt=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_lib_crypt_crypt=no
16754 rm -f conftest.err conftest.$ac_objext \
16755 conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16758 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16759 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16760 if test $ac_cv_lib_crypt_crypt = yes; then
16761 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16766 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16767 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16768 SQL_BINDIR=$POSTGRESQL_BINDIR
16769 cat >>confdefs.h <<\_ACEOF
16770 #define HAVE_POSTGRESQL 1
16773 echo "$as_me:$LINENO: result: yes" >&5
16774 echo "${ECHO_T}yes" >&6
16776 support_postgresql=yes
16780 echo "$as_me:$LINENO: result: no" >&5
16781 echo "${ECHO_T}no" >&6
16786 echo "$as_me:$LINENO: result: no" >&5
16787 echo "${ECHO_T}no" >&6
16798 echo "$as_me:$LINENO: checking for MySQL support" >&5
16799 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16801 # Check whether --with-mysql or --without-mysql was given.
16802 if test "${with_mysql+set}" = set; then
16803 withval="$with_mysql"
16805 if test "$withval" != "no"; then
16806 if test "$withval" = "yes"; then
16807 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16808 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16809 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16810 MYSQL_BINDIR=/usr/local/mysql/bin
16811 elif test -f /usr/include/mysql/mysql.h; then
16812 MYSQL_INCDIR=/usr/include/mysql
16813 MYSQL_LIBDIR=/usr/lib/mysql
16814 MYSQL_BINDIR=/usr/bin
16815 elif test -f /usr/include/mysql.h; then
16816 MYSQL_INCDIR=/usr/include
16817 MYSQL_LIBDIR=/usr/lib
16818 MYSQL_BINDIR=/usr/bin
16819 elif test -f /usr/local/include/mysql/mysql.h; then
16820 MYSQL_INCDIR=/usr/local/include/mysql
16821 MYSQL_LIBDIR=/usr/local/lib/mysql
16822 MYSQL_BINDIR=/usr/local/bin
16823 elif test -f /usr/local/include/mysql.h; then
16824 MYSQL_INCDIR=/usr/local/include
16825 MYSQL_LIBDIR=/usr/local/lib
16826 MYSQL_BINDIR=/usr/local/bin
16828 echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6
16830 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16831 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16832 { (exit 1); exit 1; }; }
16835 if test -f $withval/include/mysql/mysql.h; then
16836 MYSQL_INCDIR=$withval/include/mysql
16837 MYSQL_LIBDIR=$withval/lib/mysql
16838 MYSQL_BINDIR=$withval/bin
16839 elif test -f $withval/include/mysql.h; then
16840 MYSQL_INCDIR=$withval/include
16841 MYSQL_LIBDIR=$withval/lib
16842 MYSQL_BINDIR=$withval/bin
16844 echo "$as_me:$LINENO: result: no" >&5
16845 echo "${ECHO_T}no" >&6
16846 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16847 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16848 { (exit 1); exit 1; }; }
16851 SQL_INCLUDE=-I$MYSQL_INCDIR
16852 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16853 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16854 cat >>confdefs.h <<\_ACEOF
16855 #define HAVE_THREAD_SAFE_MYSQL 1
16859 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16861 SQL_BINDIR=$MYSQL_BINDIR
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_MYSQL 1
16867 echo "$as_me:$LINENO: result: yes" >&5
16868 echo "${ECHO_T}yes" >&6
16875 echo "$as_me:$LINENO: result: no" >&5
16876 echo "${ECHO_T}no" >&6
16883 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16884 if test "${with_embedded_mysql+set}" = set; then
16885 withval="$with_embedded_mysql"
16887 if test "$withval" != "no"; then
16888 if test "$withval" = "yes"; then
16889 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16890 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16891 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16892 MYSQL_BINDIR=/usr/local/mysql/bin
16893 elif test -f /usr/include/mysql/mysql.h; then
16894 MYSQL_INCDIR=/usr/include/mysql
16895 MYSQL_LIBDIR=/usr/lib/mysql
16896 MYSQL_BINDIR=/usr/bin
16897 elif test -f /usr/include/mysql.h; then
16898 MYSQL_INCDIR=/usr/include
16899 MYSQL_LIBDIR=/usr/lib
16900 MYSQL_BINDIR=/usr/bin
16901 elif test -f /usr/local/include/mysql/mysql.h; then
16902 MYSQL_INCDIR=/usr/local/include/mysql
16903 MYSQL_LIBDIR=/usr/local/lib/mysql
16904 MYSQL_BINDIR=/usr/local/bin
16905 elif test -f /usr/local/include/mysql.h; then
16906 MYSQL_INCDIR=/usr/local/include
16907 MYSQL_LIBDIR=/usr/local/lib
16908 MYSQL_BINDIR=/usr/local/bin
16910 echo "$as_me:$LINENO: result: no" >&5
16911 echo "${ECHO_T}no" >&6
16912 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16913 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16914 { (exit 1); exit 1; }; }
16917 if test -f $withval/include/mysql/mysql.h; then
16918 MYSQL_INCDIR=$withval/include/mysql
16919 MYSQL_LIBDIR=$withval/lib/mysql
16920 MYSQL_BINDIR=$withval/bin
16921 elif test -f $withval/include/mysql.h; then
16922 MYSQL_INCDIR=$withval/include
16923 MYSQL_LIBDIR=$withval/lib
16924 MYSQL_BINDIR=$withval/bin
16926 echo "$as_me:$LINENO: result: no" >&5
16927 echo "${ECHO_T}no" >&6
16928 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16929 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16930 { (exit 1); exit 1; }; }
16933 SQL_INCLUDE=-I$MYSQL_INCDIR
16934 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16935 SQL_BINDIR=$MYSQL_BINDIR
16937 cat >>confdefs.h <<\_ACEOF
16938 #define HAVE_MYSQL 1
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE_EMBEDDED_MYSQL 1
16945 echo "$as_me:$LINENO: result: yes" >&5
16946 echo "${ECHO_T}yes" >&6
16953 echo "$as_me:$LINENO: result: no" >&5
16954 echo "${ECHO_T}no" >&6
16969 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16970 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16972 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16973 if test "${with_sqlite3+set}" = set; then
16974 withval="$with_sqlite3"
16976 if test "$withval" != "no"; then
16977 if test "$withval" = "yes"; then
16978 if test -f /usr/local/include/sqlite3.h; then
16979 SQLITE_INCDIR=/usr/local/include
16980 SQLITE_LIBDIR=/usr/local/lib
16981 SQLITE_BINDIR=/usr/local/bin
16982 elif test -f /usr/include/sqlite3.h; then
16983 SQLITE_INCDIR=/usr/include
16984 SQLITE_LIBDIR=/usr/lib
16985 SQLITE_BINDIR=/usr/bin
16986 elif test -f $prefix/include/sqlite3.h; then
16987 SQLITE_INCDIR=$prefix/include
16988 SQLITE_LIBDIR=$prefix/lib
16989 SQLITE_BINDIR=$prefix/bin
16991 echo "$as_me:$LINENO: result: no" >&5
16992 echo "${ECHO_T}no" >&6
16993 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16994 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16995 { (exit 1); exit 1; }; }
16998 if test -f $withval/sqlite3.h; then
16999 SQLITE_INCDIR=$withval
17000 SQLITE_LIBDIR=$withval
17001 SQLITE_BINDIR=$withval
17002 elif test -f $withval/include/sqlite3.h; then
17003 SQLITE_INCDIR=$withval/include
17004 SQLITE_LIBDIR=$withval/lib
17005 SQLITE_BINDIR=$withval/bin
17007 echo "$as_me:$LINENO: result: no" >&5
17008 echo "${ECHO_T}no" >&6
17009 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17010 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17011 { (exit 1); exit 1; }; }
17014 SQL_INCLUDE=-I$SQLITE_INCDIR
17015 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17016 SQL_BINDIR=$SQLITE_BINDIR
17018 cat >>confdefs.h <<\_ACEOF
17019 #define HAVE_SQLITE3 1
17022 echo "$as_me:$LINENO: result: yes" >&5
17023 echo "${ECHO_T}yes" >&6
17025 support_sqlite3=yes
17030 echo "$as_me:$LINENO: result: no" >&5
17031 echo "${ECHO_T}no" >&6
17036 echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6
17048 echo "$as_me:$LINENO: checking for SQLite support" >&5
17049 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17051 # Check whether --with-sqlite or --without-sqlite was given.
17052 if test "${with_sqlite+set}" = set; then
17053 withval="$with_sqlite"
17055 if test "$withval" != "no"; then
17056 if test "$withval" = "yes"; then
17057 if test -f /usr/local/include/sqlite.h; then
17058 SQLITE_INCDIR=/usr/local/include
17059 SQLITE_LIBDIR=/usr/local/lib
17060 SQLITE_BINDIR=/usr/local/bin
17061 elif test -f /usr/include/sqlite.h; then
17062 SQLITE_INCDIR=/usr/include
17063 SQLITE_LIBDIR=/usr/lib
17064 SQLITE_BINDIR=/usr/bin
17065 elif test -f $prefix/include/sqlite.h; then
17066 SQLITE_INCDIR=$prefix/include
17067 SQLITE_LIBDIR=$prefix/lib
17068 SQLITE_BINDIR=$prefix/bin
17070 echo "$as_me:$LINENO: result: no" >&5
17071 echo "${ECHO_T}no" >&6
17072 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17073 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17074 { (exit 1); exit 1; }; }
17077 if test -f $withval/sqlite.h; then
17078 SQLITE_INCDIR=$withval
17079 SQLITE_LIBDIR=$withval
17080 SQLITE_BINDIR=$withval
17081 elif test -f $withval/include/sqlite.h; then
17082 SQLITE_INCDIR=$withval/include
17083 SQLITE_LIBDIR=$withval/lib
17084 SQLITE_BINDIR=$withval/bin
17086 echo "$as_me:$LINENO: result: no" >&5
17087 echo "${ECHO_T}no" >&6
17088 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17089 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17090 { (exit 1); exit 1; }; }
17093 SQL_INCLUDE=-I$SQLITE_INCDIR
17094 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17095 SQL_BINDIR=$SQLITE_BINDIR
17097 cat >>confdefs.h <<\_ACEOF
17098 #define HAVE_SQLITE 1
17101 echo "$as_me:$LINENO: result: yes" >&5
17102 echo "${ECHO_T}yes" >&6
17109 echo "$as_me:$LINENO: result: no" >&5
17110 echo "${ECHO_T}no" >&6
17115 echo "$as_me:$LINENO: result: no" >&5
17116 echo "${ECHO_T}no" >&6
17128 cat >>confdefs.h <<\_ACEOF
17129 #define PROTOTYPES 1
17133 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17134 if test -z "$CCOPTS"; then
17135 CCOPTS='-g -O2 -Wall'
17143 largefile_support="no"
17145 # Check whether --enable-largefile or --disable-largefile was given.
17146 if test "${enable_largefile+set}" = set; then
17147 enableval="$enable_largefile"
17150 if test "$enable_largefile" != no; then
17151 if test -n "$ac_tool_prefix"; then
17152 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17153 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17154 echo "$as_me:$LINENO: checking for $ac_word" >&5
17155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17156 if test "${ac_cv_prog_GETCONF+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 if test -n "$GETCONF"; then
17160 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163 for as_dir in $PATH
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17178 GETCONF=$ac_cv_prog_GETCONF
17179 if test -n "$GETCONF"; then
17180 echo "$as_me:$LINENO: result: $GETCONF" >&5
17181 echo "${ECHO_T}$GETCONF" >&6
17183 echo "$as_me:$LINENO: result: no" >&5
17184 echo "${ECHO_T}no" >&6
17188 if test -z "$ac_cv_prog_GETCONF"; then
17189 ac_ct_GETCONF=$GETCONF
17190 # Extract the first word of "getconf", so it can be a program name with args.
17191 set dummy getconf; ac_word=$2
17192 echo "$as_me:$LINENO: checking for $ac_word" >&5
17193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17194 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 if test -n "$ac_ct_GETCONF"; then
17198 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17201 for as_dir in $PATH
17204 test -z "$as_dir" && as_dir=.
17205 for ac_exec_ext in '' $ac_executable_extensions; do
17206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17207 ac_cv_prog_ac_ct_GETCONF="getconf"
17208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17216 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17217 if test -n "$ac_ct_GETCONF"; then
17218 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17219 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17221 echo "$as_me:$LINENO: result: no" >&5
17222 echo "${ECHO_T}no" >&6
17225 GETCONF=$ac_ct_GETCONF
17227 GETCONF="$ac_cv_prog_GETCONF"
17230 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17231 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17232 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17236 ac_cv_sys_largefile_CFLAGS=no
17238 # IRIX 6.2 and later require cc -n32.
17239 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17240 if test "$GCC" != yes; then
17241 ac_cv_sys_largefile_CFLAGS=-n32
17244 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17260 rm -f conftest.$ac_objext conftest$ac_exeext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262 (eval $ac_link) 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag"
17270 || test ! -s conftest.err'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_cv_sys_largefile_CFLAGS=no
17289 rm -f conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17295 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17296 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17297 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17298 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17299 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17303 ac_cv_sys_largefile_LDFLAGS=no
17307 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17308 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17309 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17310 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17311 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17315 ac_cv_sys_largefile_LIBS=no
17319 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17320 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17322 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17325 -D_FILE_OFFSET_BITS=*) ;;
17326 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17327 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17332 case "$CPPFLAGS" in
17333 '') CPPFLAGS="$ac_flag" ;;
17334 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17342 '') CFLAGS="$ac_flag" ;;
17343 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17348 case "$ac_cv_sys_largefile_LDFLAGS" in
17352 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17353 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17356 case "$ac_cv_sys_largefile_LIBS" in
17360 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17361 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17364 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17365 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17366 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 ac_cv_sys_file_offset_bits=no
17370 ac_cv_sys_file_offset_bits=64
17371 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17373 -D_FILE_OFFSET_BITS)
17374 ac_cv_sys_file_offset_bits=1 ;;
17375 -D_FILE_OFFSET_BITS=*)
17376 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17381 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17382 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17383 if test "$ac_cv_sys_file_offset_bits" != no; then
17385 cat >>confdefs.h <<_ACEOF
17386 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17390 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17391 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17392 if test "${ac_cv_sys_largefile_source+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 ac_cv_sys_largefile_source=no
17396 ac_cv_sys_largefile_source=1
17397 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17399 -D_LARGEFILE_SOURCE)
17400 ac_cv_sys_largefile_source=1 ;;
17401 -D_LARGEFILE_SOURCE=*)
17402 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17407 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17408 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17409 if test "$ac_cv_sys_largefile_source" != no; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17416 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17417 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17418 if test "${ac_cv_sys_large_files+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 ac_cv_sys_large_files=no
17422 ac_cv_sys_large_files=1
17423 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17426 ac_cv_sys_large_files=1 ;;
17428 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17433 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17434 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17435 if test "$ac_cv_sys_large_files" != no; then
17437 cat >>confdefs.h <<_ACEOF
17438 #define _LARGE_FILES $ac_cv_sys_large_files
17446 echo "$as_me:$LINENO: checking for X" >&5
17447 echo $ECHO_N "checking for X... $ECHO_C" >&6
17450 # Check whether --with-x or --without-x was given.
17451 if test "${with_x+set}" = set; then
17455 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17456 if test "x$with_x" = xno; then
17457 # The user explicitly disabled X.
17460 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17461 # Both variables are already set.
17464 if test "${ac_cv_have_x+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 # One or both of the vars are not set, and there is no cached value.
17468 ac_x_includes=no ac_x_libraries=no
17469 rm -fr conftest.dir
17470 if mkdir conftest.dir; then
17472 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17473 cat >Imakefile <<'_ACEOF'
17475 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17477 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17478 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17479 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17480 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17481 for ac_extension in a so sl; do
17482 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17483 test -f $ac_im_libdir/libX11.$ac_extension; then
17484 ac_im_usrlibdir=$ac_im_libdir; break
17487 # Screen out bogus values from the imake configuration. They are
17488 # bogus both because they are the default anyway, and because
17489 # using them would break gcc on systems where it needs fixed includes.
17490 case $ac_im_incroot in
17492 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17494 case $ac_im_usrlibdir in
17495 /usr/lib | /lib) ;;
17496 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17500 rm -fr conftest.dir
17503 # Standard set of common directories for X headers.
17504 # Check X11 before X11Rn because it is often a symlink to the current release.
17516 /usr/local/X11/include
17517 /usr/local/X11R6/include
17518 /usr/local/X11R5/include
17519 /usr/local/X11R4/include
17521 /usr/local/include/X11
17522 /usr/local/include/X11R6
17523 /usr/local/include/X11R5
17524 /usr/local/include/X11R4
17528 /usr/XFree86/include/X11
17532 /usr/unsupported/include
17533 /usr/athena/include
17534 /usr/local/x11r5/include
17535 /usr/lpp/Xamples/include
17537 /usr/openwin/include
17538 /usr/openwin/share/include'
17540 if test "$ac_x_includes" = no; then
17541 # Guess where to find include files, by looking for Xlib.h.
17542 # First, try using that file with no special directory specified.
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <X11/Xlib.h>
17551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } >/dev/null; then
17559 if test -s conftest.err; then
17560 ac_cpp_err=$ac_c_preproc_warn_flag
17561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17568 if test -z "$ac_cpp_err"; then
17569 # We can compile using X headers with no special include directory.
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 for ac_dir in $ac_x_header_dirs; do
17576 if test -r "$ac_dir/X11/Xlib.h"; then
17577 ac_x_includes=$ac_dir
17582 rm -f conftest.err conftest.$ac_ext
17583 fi # $ac_x_includes = no
17585 if test "$ac_x_libraries" = no; then
17586 # Check for the libraries.
17587 # See if we find them without any special options.
17588 # Don't add to $LIBS permanently.
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <X11/Xlib.h>
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17608 (eval $ac_link) 2>conftest.er1
17610 grep -v '^ *+' conftest.er1 >conftest.err
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } &&
17615 { ac_try='test -z "$ac_c_werror_flag"
17616 || test ! -s conftest.err'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; } &&
17622 { ac_try='test -s conftest$ac_exeext'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17629 # We can link X programs with no special library path.
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17636 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17638 # Don't even attempt the hair of trying to link an X program!
17639 for ac_extension in a so sl; do
17640 if test -r $ac_dir/libXt.$ac_extension; then
17641 ac_x_libraries=$ac_dir
17647 rm -f conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17649 fi # $ac_x_libraries = no
17651 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17652 # Didn't find X anywhere. Cache the known absence of X.
17653 ac_cv_have_x="have_x=no"
17655 # Record where we found X for the cache.
17656 ac_cv_have_x="have_x=yes \
17657 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17662 eval "$ac_cv_have_x"
17665 if test "$have_x" != yes; then
17666 echo "$as_me:$LINENO: result: $have_x" >&5
17667 echo "${ECHO_T}$have_x" >&6
17670 # If each of the values was on the command line, it overrides each guess.
17671 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17672 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17673 # Update the cache value to reflect the command line values.
17674 ac_cv_have_x="have_x=yes \
17675 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17676 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17677 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17680 if test "$no_x" = yes; then
17681 # Not all programs may use this symbol, but it does not hurt to define it.
17683 cat >>confdefs.h <<\_ACEOF
17684 #define X_DISPLAY_MISSING 1
17687 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17689 if test -n "$x_includes"; then
17690 X_CFLAGS="$X_CFLAGS -I$x_includes"
17693 # It would also be nice to do this for all -L options, not just this one.
17694 if test -n "$x_libraries"; then
17695 X_LIBS="$X_LIBS -L$x_libraries"
17696 # For Solaris; some versions of Sun CC require a space after -R and
17697 # others require no space. Words are not sufficient . . . .
17698 case `(uname -sr) 2>/dev/null` in
17700 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17701 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17702 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17703 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17747 rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 if test $ac_R_nospace = yes; then
17750 echo "$as_me:$LINENO: result: no" >&5
17751 echo "${ECHO_T}no" >&6
17752 X_LIBS="$X_LIBS -R$x_libraries"
17754 LIBS="$ac_xsave_LIBS -R $x_libraries"
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772 (eval $ac_link) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag"
17780 || test ! -s conftest.err'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; } &&
17786 { ac_try='test -s conftest$ac_exeext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17794 echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17799 rm -f conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17801 if test $ac_R_space = yes; then
17802 echo "$as_me:$LINENO: result: yes" >&5
17803 echo "${ECHO_T}yes" >&6
17804 X_LIBS="$X_LIBS -R $x_libraries"
17806 echo "$as_me:$LINENO: result: neither works" >&5
17807 echo "${ECHO_T}neither works" >&6
17810 LIBS=$ac_xsave_LIBS
17814 # Check for system-dependent libraries X programs must link with.
17815 # Do this before checking for the system-independent R6 libraries
17816 # (-lICE), since we may need -lsocket or whatever for X linking.
17818 if test "$ISC" = yes; then
17819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17821 # Martyn Johnson says this is needed for Ultrix, if the X
17822 # libraries were built with DECnet support. And Karl Berry says
17823 # the Alpha needs dnet_stub (dnet does not exist).
17824 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17832 /* Override any gcc2 internal prototype to avoid an error. */
17836 /* We use char because int might match the return type of a gcc2
17837 builtin and then its argument prototype would still apply. */
17838 char XOpenDisplay ();
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849 (eval $ac_link) 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag"
17857 || test ! -s conftest.err'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest$ac_exeext'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17875 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17876 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-ldnet $LIBS"
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 /* Override any gcc2 internal prototype to avoid an error. */
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17903 rm -f conftest.$ac_objext conftest$ac_exeext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest$ac_exeext'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17925 ac_cv_lib_dnet_dnet_ntoa=yes
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17930 ac_cv_lib_dnet_dnet_ntoa=no
17932 rm -f conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17936 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17937 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17938 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17939 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17942 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17943 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17944 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17945 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 ac_check_lib_save_LIBS=$LIBS
17949 LIBS="-ldnet_stub $LIBS"
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17957 /* Override any gcc2 internal prototype to avoid an error. */
17961 /* We use char because int might match the return type of a gcc2
17962 builtin and then its argument prototype would still apply. */
17972 rm -f conftest.$ac_objext conftest$ac_exeext
17973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17974 (eval $ac_link) 2>conftest.er1
17976 grep -v '^ *+' conftest.er1 >conftest.err
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -z "$ac_c_werror_flag"
17982 || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest$ac_exeext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_cv_lib_dnet_stub_dnet_ntoa=no
18001 rm -f conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
18003 LIBS=$ac_check_lib_save_LIBS
18005 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18006 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18007 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18008 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18013 rm -f conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015 LIBS="$ac_xsave_LIBS"
18017 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18018 # to get the SysV transport functions.
18019 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18021 # The nsl library prevents programs from opening the X display
18022 # on Irix 5.2, according to T.E. Dickey.
18023 # The functions gethostbyname, getservbyname, and inet_addr are
18024 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18025 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18026 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18027 if test "${ac_cv_func_gethostbyname+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18030 cat >conftest.$ac_ext <<_ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18038 #define gethostbyname innocuous_gethostbyname
18040 /* System header to define __stub macros and hopefully few prototypes,
18041 which can conflict with char gethostbyname (); below.
18042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18043 <limits.h> exists even on freestanding compilers. */
18046 # include <limits.h>
18048 # include <assert.h>
18051 #undef gethostbyname
18053 /* Override any gcc2 internal prototype to avoid an error. */
18058 /* We use char because int might match the return type of a gcc2
18059 builtin and then its argument prototype would still apply. */
18060 char gethostbyname ();
18061 /* The GNU C library defines this for functions which it implements
18062 to always fail with ENOSYS. Some functions are actually named
18063 something starting with __ and the normal name is an alias. */
18064 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18067 char (*f) () = gethostbyname;
18076 return f != gethostbyname;
18081 rm -f conftest.$ac_objext conftest$ac_exeext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18083 (eval $ac_link) 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag"
18091 || test ! -s conftest.err'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_func_gethostbyname=yes
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_cv_func_gethostbyname=no
18110 rm -f conftest.err conftest.$ac_objext \
18111 conftest$ac_exeext conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18114 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18116 if test $ac_cv_func_gethostbyname = no; then
18117 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18118 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18119 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 ac_check_lib_save_LIBS=$LIBS
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18131 /* Override any gcc2 internal prototype to avoid an error. */
18135 /* We use char because int might match the return type of a gcc2
18136 builtin and then its argument prototype would still apply. */
18137 char gethostbyname ();
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag"
18156 || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_lib_nsl_gethostbyname=yes
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_lib_nsl_gethostbyname=no
18175 rm -f conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18179 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18180 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18181 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18182 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18185 if test $ac_cv_lib_nsl_gethostbyname = no; then
18186 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18187 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18188 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 ac_check_lib_save_LIBS=$LIBS
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18200 /* Override any gcc2 internal prototype to avoid an error. */
18204 /* We use char because int might match the return type of a gcc2
18205 builtin and then its argument prototype would still apply. */
18206 char gethostbyname ();
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>conftest.er1
18219 grep -v '^ *+' conftest.er1 >conftest.err
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_lib_bsd_gethostbyname=yes
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_cv_lib_bsd_gethostbyname=no
18244 rm -f conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246 LIBS=$ac_check_lib_save_LIBS
18248 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18249 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18250 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18257 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18258 # socket/setsockopt and other routines are undefined under SCO ODT
18259 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18260 # on later versions), says Simon Leinen: it contains gethostby*
18261 # variants that don't use the name server (or something). -lsocket
18262 # must be given before -lnsl if both are needed. We assume that
18263 # if connect needs -lnsl, so does gethostbyname.
18264 echo "$as_me:$LINENO: checking for connect" >&5
18265 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18266 if test "${ac_cv_func_connect+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18277 #define connect innocuous_connect
18279 /* System header to define __stub macros and hopefully few prototypes,
18280 which can conflict with char connect (); below.
18281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18282 <limits.h> exists even on freestanding compilers. */
18285 # include <limits.h>
18287 # include <assert.h>
18292 /* Override any gcc2 internal prototype to avoid an error. */
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18300 /* The GNU C library defines this for functions which it implements
18301 to always fail with ENOSYS. Some functions are actually named
18302 something starting with __ and the normal name is an alias. */
18303 #if defined (__stub_connect) || defined (__stub___connect)
18306 char (*f) () = connect;
18315 return f != connect;
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18322 (eval $ac_link) 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 { ac_try='test -z "$ac_c_werror_flag"
18330 || test ! -s conftest.err'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; } &&
18336 { ac_try='test -s conftest$ac_exeext'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; }; then
18342 ac_cv_func_connect=yes
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_cv_func_connect=no
18349 rm -f conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18352 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18353 echo "${ECHO_T}$ac_cv_func_connect" >&6
18355 if test $ac_cv_func_connect = no; then
18356 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18357 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18358 if test "${ac_cv_lib_socket_connect+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 ac_check_lib_save_LIBS=$LIBS
18362 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18363 cat >conftest.$ac_ext <<_ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18370 /* Override any gcc2 internal prototype to avoid an error. */
18374 /* We use char because int might match the return type of a gcc2
18375 builtin and then its argument prototype would still apply. */
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>conftest.er1
18389 grep -v '^ *+' conftest.er1 >conftest.err
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_lib_socket_connect=yes
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_lib_socket_connect=no
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18419 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18420 if test $ac_cv_lib_socket_connect = yes; then
18421 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18426 # Guillermo Gomez says -lposix is necessary on A/UX.
18427 echo "$as_me:$LINENO: checking for remove" >&5
18428 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18429 if test "${ac_cv_func_remove+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18440 #define remove innocuous_remove
18442 /* System header to define __stub macros and hopefully few prototypes,
18443 which can conflict with char remove (); below.
18444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18445 <limits.h> exists even on freestanding compilers. */
18448 # include <limits.h>
18450 # include <assert.h>
18455 /* Override any gcc2 internal prototype to avoid an error. */
18460 /* We use char because int might match the return type of a gcc2
18461 builtin and then its argument prototype would still apply. */
18463 /* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
18466 #if defined (__stub_remove) || defined (__stub___remove)
18469 char (*f) () = remove;
18478 return f != remove;
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485 (eval $ac_link) 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_c_werror_flag"
18493 || test ! -s conftest.err'
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; } &&
18499 { ac_try='test -s conftest$ac_exeext'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_cv_func_remove=yes
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 ac_cv_func_remove=no
18512 rm -f conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18515 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18516 echo "${ECHO_T}$ac_cv_func_remove" >&6
18518 if test $ac_cv_func_remove = no; then
18519 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18520 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18521 if test "${ac_cv_lib_posix_remove+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 ac_check_lib_save_LIBS=$LIBS
18525 LIBS="-lposix $LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h. */
18533 /* Override any gcc2 internal prototype to avoid an error. */
18537 /* We use char because int might match the return type of a gcc2
18538 builtin and then its argument prototype would still apply. */
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18550 (eval $ac_link) 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest$ac_exeext'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 ac_cv_lib_posix_remove=yes
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 ac_cv_lib_posix_remove=no
18577 rm -f conftest.err conftest.$ac_objext \
18578 conftest$ac_exeext conftest.$ac_ext
18579 LIBS=$ac_check_lib_save_LIBS
18581 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18582 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18583 if test $ac_cv_lib_posix_remove = yes; then
18584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18589 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18590 echo "$as_me:$LINENO: checking for shmat" >&5
18591 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18592 if test "${ac_cv_func_shmat+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18603 #define shmat innocuous_shmat
18605 /* System header to define __stub macros and hopefully few prototypes,
18606 which can conflict with char shmat (); below.
18607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18608 <limits.h> exists even on freestanding compilers. */
18611 # include <limits.h>
18613 # include <assert.h>
18618 /* Override any gcc2 internal prototype to avoid an error. */
18623 /* We use char because int might match the return type of a gcc2
18624 builtin and then its argument prototype would still apply. */
18626 /* The GNU C library defines this for functions which it implements
18627 to always fail with ENOSYS. Some functions are actually named
18628 something starting with __ and the normal name is an alias. */
18629 #if defined (__stub_shmat) || defined (__stub___shmat)
18632 char (*f) () = shmat;
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18648 (eval $ac_link) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_cv_func_shmat=yes
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18673 ac_cv_func_shmat=no
18675 rm -f conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18678 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18679 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18681 if test $ac_cv_func_shmat = no; then
18682 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18683 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18684 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 ac_check_lib_save_LIBS=$LIBS
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18696 /* Override any gcc2 internal prototype to avoid an error. */
18700 /* We use char because int might match the return type of a gcc2
18701 builtin and then its argument prototype would still apply. */
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713 (eval $ac_link) 2>conftest.er1
18715 grep -v '^ *+' conftest.er1 >conftest.err
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag"
18721 || test ! -s conftest.err'
18722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723 (eval $ac_try) 2>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest$ac_exeext'
18728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729 (eval $ac_try) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); }; }; then
18733 ac_cv_lib_ipc_shmat=yes
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_cv_lib_ipc_shmat=no
18740 rm -f conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18744 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18745 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18746 if test $ac_cv_lib_ipc_shmat = yes; then
18747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18753 # Check for libraries that X11R6 Xt/Xaw programs need.
18754 ac_save_LDFLAGS=$LDFLAGS
18755 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18756 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18757 # check for ICE first), but we must link in the order -lSM -lICE or
18758 # we get undefined symbols. So assume we have SM if we have ICE.
18759 # These have to be linked with before -lX11, unlike the other
18760 # libraries we check for below, so use a different variable.
18761 # John Interrante, Karl Berry
18762 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18763 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18764 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 ac_check_lib_save_LIBS=$LIBS
18768 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18776 /* Override any gcc2 internal prototype to avoid an error. */
18780 /* We use char because int might match the return type of a gcc2
18781 builtin and then its argument prototype would still apply. */
18782 char IceConnectionNumber ();
18786 IceConnectionNumber ();
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18793 (eval $ac_link) 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_cv_lib_ICE_IceConnectionNumber=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_cv_lib_ICE_IceConnectionNumber=no
18820 rm -f conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18824 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18825 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18826 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18827 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18830 LDFLAGS=$ac_save_LDFLAGS
18892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18894 echo "$as_me:$LINENO: checking for $ac_header" >&5
18895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18902 # Is the header compilable?
18903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18905 cat >conftest.$ac_ext <<_ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 $ac_includes_default
18912 #include <$ac_header>
18914 rm -f conftest.$ac_objext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18916 (eval $ac_compile) 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
18923 { ac_try='test -z "$ac_c_werror_flag"
18924 || test ! -s conftest.err'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest.$ac_objext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_header_compiler=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_header_compiler=no
18943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18945 echo "${ECHO_T}$ac_header_compiler" >&6
18947 # Is the header present?
18948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 #include <$ac_header>
18958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18961 grep -v '^ *+' conftest.er1 >conftest.err
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } >/dev/null; then
18966 if test -s conftest.err; then
18967 ac_cpp_err=$ac_c_preproc_warn_flag
18968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18975 if test -z "$ac_cpp_err"; then
18976 ac_header_preproc=yes
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18981 ac_header_preproc=no
18983 rm -f conftest.err conftest.$ac_ext
18984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18985 echo "${ECHO_T}$ac_header_preproc" >&6
18987 # So? What about this header?
18988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18994 ac_header_preproc=yes
18997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19011 ## ------------------------------------------ ##
19012 ## Report this to the AC_PACKAGE_NAME lists. ##
19013 ## ------------------------------------------ ##
19016 sed "s/^/$as_me: WARNING: /" >&2
19019 echo "$as_me:$LINENO: checking for $ac_header" >&5
19020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 eval "$as_ac_Header=\$ac_header_preproc"
19026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19031 cat >>confdefs.h <<_ACEOF
19032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19039 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19041 if test "${ac_cv_header_stdc+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <stdlib.h>
19051 #include <stdarg.h>
19052 #include <string.h>
19063 rm -f conftest.$ac_objext
19064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19065 (eval $ac_compile) 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
19072 { ac_try='test -z "$ac_c_werror_flag"
19073 || test ! -s conftest.err'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest.$ac_objext'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_cv_header_stdc=yes
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 ac_cv_header_stdc=no
19092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19094 if test $ac_cv_header_stdc = yes; then
19095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19096 cat >conftest.$ac_ext <<_ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h. */
19102 #include <string.h>
19105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19106 $EGREP "memchr" >/dev/null 2>&1; then
19109 ac_cv_header_stdc=no
19115 if test $ac_cv_header_stdc = yes; then
19116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 #include <stdlib.h>
19126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19127 $EGREP "free" >/dev/null 2>&1; then
19130 ac_cv_header_stdc=no
19136 if test $ac_cv_header_stdc = yes; then
19137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19138 if test "$cross_compiling" = yes; then
19141 cat >conftest.$ac_ext <<_ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19148 #if ((' ' & 0x0FF) == 0x020)
19149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19152 # define ISLOWER(c) \
19153 (('a' <= (c) && (c) <= 'i') \
19154 || ('j' <= (c) && (c) <= 'r') \
19155 || ('s' <= (c) && (c) <= 'z'))
19156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19164 for (i = 0; i < 256; i++)
19165 if (XOR (islower (i), ISLOWER (i))
19166 || toupper (i) != TOUPPER (i))
19171 rm -f conftest$ac_exeext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19173 (eval $ac_link) 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19184 echo "$as_me: program exited with status $ac_status" >&5
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ( exit $ac_status )
19189 ac_cv_header_stdc=no
19191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19195 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19196 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19197 if test $ac_cv_header_stdc = yes; then
19199 cat >>confdefs.h <<\_ACEOF
19200 #define STDC_HEADERS 1
19205 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19206 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19207 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19208 echo $ECHO_N "(cached) $ECHO_C" >&6
19210 cat >conftest.$ac_ext <<_ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19216 #include <sys/types.h>
19220 return makedev(0, 0);
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227 (eval $ac_link) 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_c_werror_flag"
19235 || test ! -s conftest.err'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest$ac_exeext'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 ac_cv_header_sys_types_h_makedev=yes
19249 echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19252 ac_cv_header_sys_types_h_makedev=no
19254 rm -f conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
19258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19259 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19261 if test $ac_cv_header_sys_types_h_makedev = no; then
19262 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19263 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19264 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19265 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19269 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19271 # Is the header compilable?
19272 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19273 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 $ac_includes_default
19281 #include <sys/mkdev.h>
19283 rm -f conftest.$ac_objext
19284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19285 (eval $ac_compile) 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag"
19293 || test ! -s conftest.err'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest.$ac_objext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 ac_header_compiler=yes
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19310 ac_header_compiler=no
19312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19314 echo "${ECHO_T}$ac_header_compiler" >&6
19316 # Is the header present?
19317 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19318 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <sys/mkdev.h>
19327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } >/dev/null; then
19335 if test -s conftest.err; then
19336 ac_cpp_err=$ac_c_preproc_warn_flag
19337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19344 if test -z "$ac_cpp_err"; then
19345 ac_header_preproc=yes
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_header_preproc=no
19352 rm -f conftest.err conftest.$ac_ext
19353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19354 echo "${ECHO_T}$ac_header_preproc" >&6
19356 # So? What about this header?
19357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19359 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19360 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19362 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19363 ac_header_preproc=yes
19366 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19367 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19368 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19369 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19370 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19371 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19372 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19373 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19374 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19375 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19376 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19377 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19380 ## ------------------------------------------ ##
19381 ## Report this to the AC_PACKAGE_NAME lists. ##
19382 ## ------------------------------------------ ##
19385 sed "s/^/$as_me: WARNING: /" >&2
19388 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19389 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19390 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19396 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19399 if test $ac_cv_header_sys_mkdev_h = yes; then
19401 cat >>confdefs.h <<\_ACEOF
19402 #define MAJOR_IN_MKDEV 1
19409 if test $ac_cv_header_sys_mkdev_h = no; then
19410 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19411 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19412 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19413 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19417 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19419 # Is the header compilable?
19420 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19421 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 $ac_includes_default
19429 #include <sys/sysmacros.h>
19431 rm -f conftest.$ac_objext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19433 (eval $ac_compile) 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -z "$ac_c_werror_flag"
19441 || test ! -s conftest.err'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_header_compiler=yes
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_header_compiler=no
19460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19462 echo "${ECHO_T}$ac_header_compiler" >&6
19464 # Is the header present?
19465 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19466 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <sys/sysmacros.h>
19475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } >/dev/null; then
19483 if test -s conftest.err; then
19484 ac_cpp_err=$ac_c_preproc_warn_flag
19485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19492 if test -z "$ac_cpp_err"; then
19493 ac_header_preproc=yes
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 ac_header_preproc=no
19500 rm -f conftest.err conftest.$ac_ext
19501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19502 echo "${ECHO_T}$ac_header_preproc" >&6
19504 # So? What about this header?
19505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19507 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19508 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19509 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19510 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19511 ac_header_preproc=yes
19514 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19515 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19517 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19519 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19520 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19521 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19522 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19523 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19525 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19528 ## ------------------------------------------ ##
19529 ## Report this to the AC_PACKAGE_NAME lists. ##
19530 ## ------------------------------------------ ##
19533 sed "s/^/$as_me: WARNING: /" >&2
19536 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19537 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19538 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19544 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19547 if test $ac_cv_header_sys_sysmacros_h = yes; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define MAJOR_IN_SYSMACROS 1
19564 ac_header_dirent=no
19565 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19566 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19567 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19568 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 #include <sys/types.h>
19590 rm -f conftest.$ac_objext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 eval "$as_ac_Header=yes"
19614 echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 eval "$as_ac_Header=no"
19619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19624 cat >>confdefs.h <<_ACEOF
19625 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19628 ac_header_dirent=$ac_hdr; break
19632 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19633 if test $ac_header_dirent = dirent.h; then
19634 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19635 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19636 if test "${ac_cv_search_opendir+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 ac_func_search_save_LIBS=$LIBS
19640 ac_cv_search_opendir=no
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19648 /* Override any gcc2 internal prototype to avoid an error. */
19652 /* We use char because int might match the return type of a gcc2
19653 builtin and then its argument prototype would still apply. */
19663 rm -f conftest.$ac_objext conftest$ac_exeext
19664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19665 (eval $ac_link) 2>conftest.er1
19667 grep -v '^ *+' conftest.er1 >conftest.err
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
19672 { ac_try='test -z "$ac_c_werror_flag"
19673 || test ! -s conftest.err'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; } &&
19679 { ac_try='test -s conftest$ac_exeext'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 ac_cv_search_opendir="none required"
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19691 rm -f conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
19693 if test "$ac_cv_search_opendir" = no; then
19694 for ac_lib in dir; do
19695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any gcc2 internal prototype to avoid an error. */
19707 /* We use char because int might match the return type of a gcc2
19708 builtin and then its argument prototype would still apply. */
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19720 (eval $ac_link) 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } &&
19727 { ac_try='test -z "$ac_c_werror_flag"
19728 || test ! -s conftest.err'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest$ac_exeext'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_cv_search_opendir="-l$ac_lib"
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19747 rm -f conftest.err conftest.$ac_objext \
19748 conftest$ac_exeext conftest.$ac_ext
19751 LIBS=$ac_func_search_save_LIBS
19753 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19754 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19755 if test "$ac_cv_search_opendir" != no; then
19756 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19761 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19763 if test "${ac_cv_search_opendir+set}" = set; then
19764 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 ac_func_search_save_LIBS=$LIBS
19767 ac_cv_search_opendir=no
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19775 /* Override any gcc2 internal prototype to avoid an error. */
19779 /* We use char because int might match the return type of a gcc2
19780 builtin and then its argument prototype would still apply. */
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19792 (eval $ac_link) 2>conftest.er1
19794 grep -v '^ *+' conftest.er1 >conftest.err
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag"
19800 || test ! -s conftest.err'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest$ac_exeext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 ac_cv_search_opendir="none required"
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19818 rm -f conftest.err conftest.$ac_objext \
19819 conftest$ac_exeext conftest.$ac_ext
19820 if test "$ac_cv_search_opendir" = no; then
19821 for ac_lib in x; do
19822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19823 cat >conftest.$ac_ext <<_ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19830 /* Override any gcc2 internal prototype to avoid an error. */
19834 /* We use char because int might match the return type of a gcc2
19835 builtin and then its argument prototype would still apply. */
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19847 (eval $ac_link) 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest$ac_exeext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_search_opendir="-l$ac_lib"
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19874 rm -f conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_func_search_save_LIBS
19880 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19881 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19882 if test "$ac_cv_search_opendir" != no; then
19883 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19889 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19890 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19891 if test "${ac_cv_header_stat_broken+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 cat >conftest.$ac_ext <<_ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 #include <sys/types.h>
19901 #include <sys/stat.h>
19903 #if defined(S_ISBLK) && defined(S_IFDIR)
19904 # if S_ISBLK (S_IFDIR)
19909 #if defined(S_ISBLK) && defined(S_IFCHR)
19910 # if S_ISBLK (S_IFCHR)
19915 #if defined(S_ISLNK) && defined(S_IFREG)
19916 # if S_ISLNK (S_IFREG)
19921 #if defined(S_ISSOCK) && defined(S_IFREG)
19922 # if S_ISSOCK (S_IFREG)
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929 $EGREP "You lose" >/dev/null 2>&1; then
19930 ac_cv_header_stat_broken=yes
19932 ac_cv_header_stat_broken=no
19937 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19938 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19939 if test $ac_cv_header_stat_broken = yes; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define STAT_MACROS_BROKEN 1
19947 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19948 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19949 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 cat >conftest.$ac_ext <<_ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #include <sys/types.h>
19959 #include <sys/wait.h>
19960 #ifndef WEXITSTATUS
19961 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19964 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19972 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979 (eval $ac_compile) 2>conftest.er1
19981 grep -v '^ *+' conftest.er1 >conftest.err
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
19986 { ac_try='test -z "$ac_c_werror_flag"
19987 || test ! -s conftest.err'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_header_sys_wait_h=yes
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_header_sys_wait_h=no
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20008 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20010 if test $ac_cv_header_sys_wait_h = yes; then
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_SYS_WAIT_H 1
20018 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20019 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20020 if test "${ac_cv_header_time+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <sys/types.h>
20030 #include <sys/time.h>
20036 if ((struct tm *) 0)
20042 rm -f conftest.$ac_objext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044 (eval $ac_compile) 2>conftest.er1
20046 grep -v '^ *+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -z "$ac_c_werror_flag"
20052 || test ! -s conftest.err'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest.$ac_objext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20064 ac_cv_header_time=yes
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_cv_header_time=no
20071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20073 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20074 echo "${ECHO_T}$ac_cv_header_time" >&6
20075 if test $ac_cv_header_time = yes; then
20077 cat >>confdefs.h <<\_ACEOF
20078 #define TIME_WITH_SYS_TIME 1
20084 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20085 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20086 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 $ac_includes_default
20099 static struct stat ac_aggr;
20100 if (ac_aggr.st_blksize)
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try='test -z "$ac_c_werror_flag"
20116 || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_member_struct_stat_st_blksize=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 $ac_includes_default
20143 static struct stat ac_aggr;
20144 if (sizeof ac_aggr.st_blksize)
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_c_werror_flag"
20160 || test ! -s conftest.err'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_cv_member_struct_stat_st_blksize=yes
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 ac_cv_member_struct_stat_st_blksize=no
20179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20184 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20185 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20192 cat >>confdefs.h <<\_ACEOF
20193 #define HAVE_ST_BLKSIZE 1
20199 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20200 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20201 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 cat >conftest.$ac_ext <<_ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 $ac_includes_default
20214 static struct stat ac_aggr;
20215 if (ac_aggr.st_blocks)
20221 rm -f conftest.$ac_objext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20223 (eval $ac_compile) 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag"
20231 || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest.$ac_objext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_member_struct_stat_st_blocks=yes
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 $ac_includes_default
20258 static struct stat ac_aggr;
20259 if (sizeof ac_aggr.st_blocks)
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag"
20275 || test ! -s conftest.err'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest.$ac_objext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 ac_cv_member_struct_stat_st_blocks=yes
20289 echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_cv_member_struct_stat_st_blocks=no
20294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20299 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20300 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20302 cat >>confdefs.h <<_ACEOF
20303 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE_ST_BLOCKS 1
20313 "fileblocks.$ac_objext" | \
20314 *" fileblocks.$ac_objext" | \
20315 "fileblocks.$ac_objext "* | \
20316 *" fileblocks.$ac_objext "* ) ;;
20317 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20323 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20324 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20325 if test "${ac_cv_struct_tm+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <sys/types.h>
20340 struct tm *tp; tp->tm_sec;
20345 rm -f conftest.$ac_objext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347 (eval $ac_compile) 2>conftest.er1
20349 grep -v '^ *+' conftest.er1 >conftest.err
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -z "$ac_c_werror_flag"
20355 || test ! -s conftest.err'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest.$ac_objext'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367 ac_cv_struct_tm=time.h
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ac_cv_struct_tm=sys/time.h
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20376 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20377 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20378 if test $ac_cv_struct_tm = sys/time.h; then
20380 cat >>confdefs.h <<\_ACEOF
20381 #define TM_IN_SYS_TIME 1
20386 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20387 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20388 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 #include <sys/types.h>
20398 #include <$ac_cv_struct_tm>
20404 static struct tm ac_aggr;
20405 if (ac_aggr.tm_zone)
20411 rm -f conftest.$ac_objext
20412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20413 (eval $ac_compile) 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -z "$ac_c_werror_flag"
20421 || test ! -s conftest.err'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest.$ac_objext'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 ac_cv_member_struct_tm_tm_zone=yes
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 cat >conftest.$ac_ext <<_ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 #include <sys/types.h>
20445 #include <$ac_cv_struct_tm>
20451 static struct tm ac_aggr;
20452 if (sizeof ac_aggr.tm_zone)
20458 rm -f conftest.$ac_objext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest.$ac_objext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_member_struct_tm_tm_zone=yes
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_member_struct_tm_tm_zone=no
20487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20492 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20493 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20495 cat >>confdefs.h <<_ACEOF
20496 #define HAVE_STRUCT_TM_TM_ZONE 1
20502 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20504 cat >>confdefs.h <<\_ACEOF
20505 #define HAVE_TM_ZONE 1
20509 echo "$as_me:$LINENO: checking for tzname" >&5
20510 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20511 if test "${ac_cv_var_tzname+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20521 #ifndef tzname /* For SGI. */
20522 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20535 (eval $ac_link) 2>conftest.er1
20537 grep -v '^ *+' conftest.er1 >conftest.err
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } &&
20542 { ac_try='test -z "$ac_c_werror_flag"
20543 || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest$ac_exeext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_var_tzname=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_cv_var_tzname=no
20562 rm -f conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20565 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20566 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20567 if test $ac_cv_var_tzname = yes; then
20569 cat >>confdefs.h <<\_ACEOF
20570 #define HAVE_TZNAME 1
20577 echo "$as_me:$LINENO: checking for utime.h" >&5
20578 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20579 if test "${ba_cv_header_utime_h+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20589 #include <sys/types.h>
20599 rm -f conftest.$ac_objext
20600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20601 (eval $ac_compile) 2>conftest.er1
20603 grep -v '^ *+' conftest.er1 >conftest.err
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
20608 { ac_try='test -z "$ac_c_werror_flag"
20609 || test ! -s conftest.err'
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; } &&
20615 { ac_try='test -s conftest.$ac_objext'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ba_cv_header_utime_h=yes
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ba_cv_header_utime_h=no
20628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20631 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20632 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20633 #define HAVE_UTIME_H 1
20637 echo "$as_me:$LINENO: checking for socklen_t" >&5
20638 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20639 if test "${ba_cv_header_socklen_t+set}" = set; then
20640 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 cat >conftest.$ac_ext <<_ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20649 #include <sys/types.h>
20650 #include <sys/socket.h>
20659 rm -f conftest.$ac_objext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661 (eval $ac_compile) 2>conftest.er1
20663 grep -v '^ *+' conftest.er1 >conftest.err
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
20668 { ac_try='test -z "$ac_c_werror_flag"
20669 || test ! -s conftest.err'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681 ba_cv_header_socklen_t=yes
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ba_cv_header_socklen_t=no
20688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20690 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20691 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20692 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20693 #define HAVE_SOCKLEN_T 1
20697 echo "$as_me:$LINENO: checking for bigendian" >&5
20698 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20699 if test "${ba_cv_bigendian+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 if test "$cross_compiling" = yes; then
20705 cat >conftest.$ac_ext <<_ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20711 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20713 rm -f conftest$ac_exeext
20714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715 (eval $ac_link) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ba_cv_bigendian=yes
20726 echo "$as_me: program exited with status $ac_status" >&5
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ( exit $ac_status )
20733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20736 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20737 echo "${ECHO_T}$ba_cv_bigendian" >&6
20738 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20739 #define HAVE_BIGENDIAN 1
20744 ac_cpp='$CXXCPP $CPPFLAGS'
20745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20750 echo "$as_me:$LINENO: checking for typeof" >&5
20751 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20752 if test "${ba_cv_have_typeof+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 if test "$cross_compiling" = yes; then
20756 ba_cv_have_typeof=no
20758 cat >conftest.$ac_ext <<_ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 main(){char *a = 0; a = (typeof a)a;}
20766 rm -f conftest$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768 (eval $ac_link) 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 ba_cv_have_typeof=yes
20779 echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ( exit $ac_status )
20784 ba_cv_have_typeof=no
20786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20789 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20790 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20791 test $ba_cv_have_typeof = yes &&
20792 cat >>confdefs.h <<\_ACEOF
20793 #define HAVE_TYPEOF 1
20797 ac_cpp='$CPP $CPPFLAGS'
20798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20803 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20804 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20805 if test "${ac_cv_c_const+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20818 /* FIXME: Include the comments suggested by Paul. */
20819 #ifndef __cplusplus
20820 /* Ultrix mips cc rejects this. */
20821 typedef int charset[2];
20823 /* SunOS 4.1.1 cc rejects this. */
20824 char const *const *ccp;
20826 /* NEC SVR4.0.2 mips cc rejects this. */
20827 struct point {int x, y;};
20828 static struct point const zero = {0,0};
20829 /* AIX XL C 1.02.0.0 rejects this.
20830 It does not let you subtract one const X* pointer from another in
20831 an arm of an if-expression whose if-part is not a constant
20833 const char *g = "string";
20834 ccp = &g + (g ? g-g : 0);
20835 /* HPUX 7.0 cc rejects these. */
20838 ccp = (char const *const *) p;
20839 { /* SCO 3.2v4 cc rejects this. */
20841 char const *s = 0 ? (char *) 0 : (char const *) 0;
20845 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20846 int x[] = {25, 17};
20847 const int *foo = &x[0];
20850 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20851 typedef const int *iptr;
20855 { /* AIX XL C 1.02.0.0 rejects this saying
20856 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20857 struct s { int j; const int *ap[3]; };
20858 struct s *b; b->j = 5;
20860 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20861 const int foo = 10;
20869 rm -f conftest.$ac_objext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871 (eval $ac_compile) 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } &&
20878 { ac_try='test -z "$ac_c_werror_flag"
20879 || test ! -s conftest.err'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20900 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20901 echo "${ECHO_T}$ac_cv_c_const" >&6
20902 if test $ac_cv_c_const = no; then
20904 cat >>confdefs.h <<\_ACEOF
20912 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20913 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20915 # The order of these tests is important.
20916 cat >conftest.$ac_ext <<_ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20922 #include <sys/statvfs.h>
20923 #include <sys/fstyp.h>
20925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } >/dev/null; then
20933 if test -s conftest.err; then
20934 ac_cpp_err=$ac_c_preproc_warn_flag
20935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20942 if test -z "$ac_cpp_err"; then
20943 cat >>confdefs.h <<\_ACEOF
20944 #define FSTYPE_STATVFS 1
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20953 rm -f conftest.err conftest.$ac_ext
20954 if test $fstype = no; then
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <sys/statfs.h>
20962 #include <sys/fstyp.h>
20964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20967 grep -v '^ *+' conftest.er1 >conftest.err
20969 cat conftest.err >&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } >/dev/null; then
20972 if test -s conftest.err; then
20973 ac_cpp_err=$ac_c_preproc_warn_flag
20974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20981 if test -z "$ac_cpp_err"; then
20982 cat >>confdefs.h <<\_ACEOF
20983 #define FSTYPE_USG_STATFS 1
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20992 rm -f conftest.err conftest.$ac_ext
20994 if test $fstype = no; then
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 #include <sys/statfs.h>
21002 #include <sys/vmount.h>
21004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } >/dev/null; then
21012 if test -s conftest.err; then
21013 ac_cpp_err=$ac_c_preproc_warn_flag
21014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21021 if test -z "$ac_cpp_err"; then
21022 cat >>confdefs.h <<\_ACEOF
21023 #define FSTYPE_AIX_STATFS 1
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21032 rm -f conftest.err conftest.$ac_ext
21034 if test $fstype = no; then
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <mntent.h>
21043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } >/dev/null; then
21051 if test -s conftest.err; then
21052 ac_cpp_err=$ac_c_preproc_warn_flag
21053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21060 if test -z "$ac_cpp_err"; then
21061 cat >>confdefs.h <<\_ACEOF
21062 #define FSTYPE_MNTENT 1
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21071 rm -f conftest.err conftest.$ac_ext
21073 if test $fstype = no; then
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 #include <sys/mount.h>
21083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21084 $EGREP "f_type;" >/dev/null 2>&1; then
21085 cat >>confdefs.h <<\_ACEOF
21086 #define FSTYPE_STATFS 1
21093 if test $fstype = no; then
21094 cat >conftest.$ac_ext <<_ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21100 #include <sys/mount.h>
21101 #include <sys/fs_types.h>
21103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21106 grep -v '^ *+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } >/dev/null; then
21111 if test -s conftest.err; then
21112 ac_cpp_err=$ac_c_preproc_warn_flag
21113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21120 if test -z "$ac_cpp_err"; then
21121 cat >>confdefs.h <<\_ACEOF
21122 #define FSTYPE_GETMNT 1
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21131 rm -f conftest.err conftest.$ac_ext
21133 echo "$as_me:$LINENO: result: $fstype" >&5
21134 echo "${ECHO_T}$fstype" >&6
21136 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21137 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21138 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21139 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21143 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21145 # Is the header compilable?
21146 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21147 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 $ac_includes_default
21155 #include <sys/statvfs.h>
21157 rm -f conftest.$ac_objext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21159 (eval $ac_compile) 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } &&
21166 { ac_try='test -z "$ac_c_werror_flag"
21167 || test ! -s conftest.err'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try='test -s conftest.$ac_objext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 ac_header_compiler=yes
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 ac_header_compiler=no
21186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21188 echo "${ECHO_T}$ac_header_compiler" >&6
21190 # Is the header present?
21191 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21192 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <sys/statvfs.h>
21201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } >/dev/null; then
21209 if test -s conftest.err; then
21210 ac_cpp_err=$ac_c_preproc_warn_flag
21211 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21218 if test -z "$ac_cpp_err"; then
21219 ac_header_preproc=yes
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 ac_header_preproc=no
21226 rm -f conftest.err conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21228 echo "${ECHO_T}$ac_header_preproc" >&6
21230 # So? What about this header?
21231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21233 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21234 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21236 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21237 ac_header_preproc=yes
21240 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21241 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21242 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21243 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21244 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21245 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21246 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21247 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21248 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21249 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21251 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21254 ## ------------------------------------------ ##
21255 ## Report this to the AC_PACKAGE_NAME lists. ##
21256 ## ------------------------------------------ ##
21259 sed "s/^/$as_me: WARNING: /" >&2
21262 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21263 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21264 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21269 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21270 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21273 if test $ac_cv_header_sys_statvfs_h = yes; then
21275 cat >>confdefs.h <<\_ACEOF
21276 #define HAVE_SYS_STATVFS_H 1
21283 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21284 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21285 if test "${ac_cv_type_signal+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h. */
21294 #include <sys/types.h>
21295 #include <signal.h>
21300 extern "C" void (*signal (int, void (*)(int)))(int);
21302 void (*signal ()) ();
21313 rm -f conftest.$ac_objext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21315 (eval $ac_compile) 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
21322 { ac_try='test -z "$ac_c_werror_flag"
21323 || test ! -s conftest.err'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; } &&
21329 { ac_try='test -s conftest.$ac_objext'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 ac_cv_type_signal=void
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_cv_type_signal=int
21342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21344 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21345 echo "${ECHO_T}$ac_cv_type_signal" >&6
21347 cat >>confdefs.h <<_ACEOF
21348 #define RETSIGTYPE $ac_cv_type_signal
21353 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21354 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21355 if test "${bash_cv_signal_vintage+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 #include <signal.h>
21371 struct sigaction sa;
21372 sigemptyset(&ss); sigsuspend(&ss);
21373 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21374 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21380 rm -f conftest.$ac_objext conftest$ac_exeext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } &&
21389 { ac_try='test -z "$ac_c_werror_flag"
21390 || test ! -s conftest.err'
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest$ac_exeext'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21402 bash_cv_signal_vintage="posix"
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 #include <signal.h>
21419 int mask = sigmask(SIGINT);
21420 sigsetmask(mask); sigblock(mask); sigpause(mask);
21426 rm -f conftest.$ac_objext conftest$ac_exeext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21428 (eval $ac_link) 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } &&
21435 { ac_try='test -z "$ac_c_werror_flag"
21436 || test ! -s conftest.err'
21437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438 (eval $ac_try) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); }; } &&
21442 { ac_try='test -s conftest$ac_exeext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 bash_cv_signal_vintage="4.2bsd"
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21461 #include <signal.h>
21462 RETSIGTYPE foo() { }
21467 int mask = sigmask(SIGINT);
21468 sigset(SIGINT, foo); sigrelse(SIGINT);
21469 sighold(SIGINT); sigpause(SIGINT);
21475 rm -f conftest.$ac_objext conftest$ac_exeext
21476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21477 (eval $ac_link) 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } &&
21484 { ac_try='test -z "$ac_c_werror_flag"
21485 || test ! -s conftest.err'
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; } &&
21491 { ac_try='test -s conftest$ac_exeext'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
21497 bash_cv_signal_vintage="svr3"
21499 echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21502 bash_cv_signal_vintage="v7"
21505 rm -f conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
21509 rm -f conftest.err conftest.$ac_objext \
21510 conftest$ac_exeext conftest.$ac_ext
21513 rm -f conftest.err conftest.$ac_objext \
21514 conftest$ac_exeext conftest.$ac_ext
21518 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21519 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21520 if test "$bash_cv_signal_vintage" = "posix"; then
21521 cat >>confdefs.h <<\_ACEOF
21522 #define HAVE_POSIX_SIGNALS 1
21525 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21526 cat >>confdefs.h <<\_ACEOF
21527 #define HAVE_BSD_SIGNALS 1
21530 elif test "$bash_cv_signal_vintage" = "svr3"; then
21531 cat >>confdefs.h <<\_ACEOF
21532 #define HAVE_USG_SIGHOLD 1
21537 echo "$as_me:$LINENO: checking for mode_t" >&5
21538 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21539 if test "${ac_cv_type_mode_t+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 $ac_includes_default
21554 if (sizeof (mode_t))
21560 rm -f conftest.$ac_objext
21561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21562 (eval $ac_compile) 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } &&
21569 { ac_try='test -z "$ac_c_werror_flag"
21570 || test ! -s conftest.err'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; } &&
21576 { ac_try='test -s conftest.$ac_objext'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 ac_cv_type_mode_t=yes
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 ac_cv_type_mode_t=no
21589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21591 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21592 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21593 if test $ac_cv_type_mode_t = yes; then
21597 cat >>confdefs.h <<_ACEOF
21603 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21604 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21605 if test "${ac_cv_type_uid_t+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #include <sys/types.h>
21617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21618 $EGREP "uid_t" >/dev/null 2>&1; then
21619 ac_cv_type_uid_t=yes
21621 ac_cv_type_uid_t=no
21626 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21627 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21628 if test $ac_cv_type_uid_t = no; then
21630 cat >>confdefs.h <<\_ACEOF
21635 cat >>confdefs.h <<\_ACEOF
21641 echo "$as_me:$LINENO: checking for size_t" >&5
21642 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21643 if test "${ac_cv_type_size_t+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 cat >conftest.$ac_ext <<_ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21652 $ac_includes_default
21658 if (sizeof (size_t))
21664 rm -f conftest.$ac_objext
21665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21666 (eval $ac_compile) 2>conftest.er1
21668 grep -v '^ *+' conftest.er1 >conftest.err
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } &&
21673 { ac_try='test -z "$ac_c_werror_flag"
21674 || test ! -s conftest.err'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_type_size_t=yes
21688 echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21691 ac_cv_type_size_t=no
21693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21695 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21696 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21697 if test $ac_cv_type_size_t = yes; then
21701 cat >>confdefs.h <<_ACEOF
21702 #define size_t unsigned
21707 echo "$as_me:$LINENO: checking for pid_t" >&5
21708 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21709 if test "${ac_cv_type_pid_t+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21724 if (sizeof (pid_t))
21730 rm -f conftest.$ac_objext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732 (eval $ac_compile) 2>conftest.er1
21734 grep -v '^ *+' conftest.er1 >conftest.err
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -z "$ac_c_werror_flag"
21740 || test ! -s conftest.err'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; } &&
21746 { ac_try='test -s conftest.$ac_objext'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752 ac_cv_type_pid_t=yes
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_type_pid_t=no
21759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21762 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21763 if test $ac_cv_type_pid_t = yes; then
21767 cat >>confdefs.h <<_ACEOF
21773 echo "$as_me:$LINENO: checking for off_t" >&5
21774 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21775 if test "${ac_cv_type_off_t+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 $ac_includes_default
21790 if (sizeof (off_t))
21796 rm -f conftest.$ac_objext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798 (eval $ac_compile) 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -z "$ac_c_werror_flag"
21806 || test ! -s conftest.err'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; } &&
21812 { ac_try='test -s conftest.$ac_objext'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ac_cv_type_off_t=yes
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_cv_type_off_t=no
21825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21827 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21828 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21829 if test $ac_cv_type_off_t = yes; then
21833 cat >>confdefs.h <<_ACEOF
21839 echo "$as_me:$LINENO: checking for ino_t" >&5
21840 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21841 if test "${ac_cv_type_ino_t+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 cat >conftest.$ac_ext <<_ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 $ac_includes_default
21856 if (sizeof (ino_t))
21862 rm -f conftest.$ac_objext
21863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21864 (eval $ac_compile) 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
21871 { ac_try='test -z "$ac_c_werror_flag"
21872 || test ! -s conftest.err'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; } &&
21878 { ac_try='test -s conftest.$ac_objext'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; }; then
21884 ac_cv_type_ino_t=yes
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ac_cv_type_ino_t=no
21891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21893 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21894 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21895 if test $ac_cv_type_ino_t = yes; then
21899 cat >>confdefs.h <<_ACEOF
21900 #define ino_t unsigned long
21905 echo "$as_me:$LINENO: checking for dev_t" >&5
21906 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21907 if test "${ac_cv_type_dev_t+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21922 if (sizeof (dev_t))
21928 rm -f conftest.$ac_objext
21929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21930 (eval $ac_compile) 2>conftest.er1
21932 grep -v '^ *+' conftest.er1 >conftest.err
21934 cat conftest.err >&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); } &&
21937 { ac_try='test -z "$ac_c_werror_flag"
21938 || test ! -s conftest.err'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; } &&
21944 { ac_try='test -s conftest.$ac_objext'
21945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946 (eval $ac_try) 2>&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); }; }; then
21950 ac_cv_type_dev_t=yes
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_cv_type_dev_t=no
21957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21960 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21961 if test $ac_cv_type_dev_t = yes; then
21965 cat >>confdefs.h <<_ACEOF
21966 #define dev_t unsigned long
21971 echo "$as_me:$LINENO: checking for daddr_t" >&5
21972 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21973 if test "${ac_cv_type_daddr_t+set}" = set; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 $ac_includes_default
21988 if (sizeof (daddr_t))
21994 rm -f conftest.$ac_objext
21995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21996 (eval $ac_compile) 2>conftest.er1
21998 grep -v '^ *+' conftest.er1 >conftest.err
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
22003 { ac_try='test -z "$ac_c_werror_flag"
22004 || test ! -s conftest.err'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_type_daddr_t=yes
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 ac_cv_type_daddr_t=no
22023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22025 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22026 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22027 if test $ac_cv_type_daddr_t = yes; then
22031 cat >>confdefs.h <<_ACEOF
22032 #define daddr_t long
22037 echo "$as_me:$LINENO: checking for major_t" >&5
22038 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22039 if test "${ac_cv_type_major_t+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 $ac_includes_default
22054 if (sizeof (major_t))
22060 rm -f conftest.$ac_objext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22062 (eval $ac_compile) 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest.$ac_objext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ac_cv_type_major_t=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_cv_type_major_t=no
22089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22092 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22093 if test $ac_cv_type_major_t = yes; then
22097 cat >>confdefs.h <<_ACEOF
22098 #define major_t int
22103 echo "$as_me:$LINENO: checking for minor_t" >&5
22104 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22105 if test "${ac_cv_type_minor_t+set}" = set; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 $ac_includes_default
22120 if (sizeof (minor_t))
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128 (eval $ac_compile) 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag"
22136 || test ! -s conftest.err'
22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138 (eval $ac_try) 2>&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; } &&
22142 { ac_try='test -s conftest.$ac_objext'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148 ac_cv_type_minor_t=yes
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_cv_type_minor_t=no
22155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22157 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22158 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22159 if test $ac_cv_type_minor_t = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define minor_t int
22169 echo "$as_me:$LINENO: checking for ssize_t" >&5
22170 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22171 if test "${ac_cv_type_ssize_t+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 $ac_includes_default
22186 if (sizeof (ssize_t))
22192 rm -f conftest.$ac_objext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194 (eval $ac_compile) 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
22201 { ac_try='test -z "$ac_c_werror_flag"
22202 || test ! -s conftest.err'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest.$ac_objext'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; }; then
22214 ac_cv_type_ssize_t=yes
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 ac_cv_type_ssize_t=no
22221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22223 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22224 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22225 if test $ac_cv_type_ssize_t = yes; then
22229 cat >>confdefs.h <<_ACEOF
22230 #define ssize_t int
22235 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22236 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22237 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
22240 cat >conftest.$ac_ext <<_ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h. */
22246 $ac_includes_default
22250 static struct stat ac_aggr;
22251 if (ac_aggr.st_blocks)
22257 rm -f conftest.$ac_objext
22258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22259 (eval $ac_compile) 2>conftest.er1
22261 grep -v '^ *+' conftest.er1 >conftest.err
22263 cat conftest.err >&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } &&
22266 { ac_try='test -z "$ac_c_werror_flag"
22267 || test ! -s conftest.err'
22268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269 (eval $ac_try) 2>&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); }; } &&
22273 { ac_try='test -s conftest.$ac_objext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_member_struct_stat_st_blocks=yes
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 cat >conftest.$ac_ext <<_ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 $ac_includes_default
22294 static struct stat ac_aggr;
22295 if (sizeof ac_aggr.st_blocks)
22301 rm -f conftest.$ac_objext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22303 (eval $ac_compile) 2>conftest.er1
22305 grep -v '^ *+' conftest.er1 >conftest.err
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } &&
22310 { ac_try='test -z "$ac_c_werror_flag"
22311 || test ! -s conftest.err'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; } &&
22317 { ac_try='test -s conftest.$ac_objext'
22318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319 (eval $ac_try) 2>&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 ac_cv_member_struct_stat_st_blocks=yes
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ac_cv_member_struct_stat_st_blocks=no
22330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22335 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22336 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22343 cat >>confdefs.h <<\_ACEOF
22344 #define HAVE_ST_BLOCKS 1
22349 "fileblocks.$ac_objext" | \
22350 *" fileblocks.$ac_objext" | \
22351 "fileblocks.$ac_objext "* | \
22352 *" fileblocks.$ac_objext "* ) ;;
22353 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22360 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22361 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22362 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22371 $ac_includes_default
22375 static struct stat ac_aggr;
22376 if (ac_aggr.st_rdev)
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -z "$ac_c_werror_flag"
22392 || test ! -s conftest.err'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest.$ac_objext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 ac_cv_member_struct_stat_st_rdev=yes
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 cat >conftest.$ac_ext <<_ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 $ac_includes_default
22419 static struct stat ac_aggr;
22420 if (sizeof ac_aggr.st_rdev)
22426 rm -f conftest.$ac_objext
22427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22428 (eval $ac_compile) 2>conftest.er1
22430 grep -v '^ *+' conftest.er1 >conftest.err
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
22435 { ac_try='test -z "$ac_c_werror_flag"
22436 || test ! -s conftest.err'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; } &&
22442 { ac_try='test -s conftest.$ac_objext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ac_cv_member_struct_stat_st_rdev=yes
22450 echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22453 ac_cv_member_struct_stat_st_rdev=no
22455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22460 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22461 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22463 cat >>confdefs.h <<_ACEOF
22464 #define HAVE_STRUCT_STAT_ST_RDEV 1
22468 cat >>confdefs.h <<\_ACEOF
22469 #define HAVE_ST_RDEV 1
22475 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22476 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22477 if test "${ac_cv_struct_tm+set}" = set; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 #include <sys/types.h>
22492 struct tm *tp; tp->tm_sec;
22497 rm -f conftest.$ac_objext
22498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22499 (eval $ac_compile) 2>conftest.er1
22501 grep -v '^ *+' conftest.er1 >conftest.err
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try='test -z "$ac_c_werror_flag"
22507 || test ! -s conftest.err'
22508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509 (eval $ac_try) 2>&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); }; } &&
22513 { ac_try='test -s conftest.$ac_objext'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; }; then
22519 ac_cv_struct_tm=time.h
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 ac_cv_struct_tm=sys/time.h
22526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22528 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22529 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22530 if test $ac_cv_struct_tm = sys/time.h; then
22532 cat >>confdefs.h <<\_ACEOF
22533 #define TM_IN_SYS_TIME 1
22538 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22539 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22540 if test "${ac_cv_c_const+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 cat >conftest.$ac_ext <<_ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22553 /* FIXME: Include the comments suggested by Paul. */
22554 #ifndef __cplusplus
22555 /* Ultrix mips cc rejects this. */
22556 typedef int charset[2];
22558 /* SunOS 4.1.1 cc rejects this. */
22559 char const *const *ccp;
22561 /* NEC SVR4.0.2 mips cc rejects this. */
22562 struct point {int x, y;};
22563 static struct point const zero = {0,0};
22564 /* AIX XL C 1.02.0.0 rejects this.
22565 It does not let you subtract one const X* pointer from another in
22566 an arm of an if-expression whose if-part is not a constant
22568 const char *g = "string";
22569 ccp = &g + (g ? g-g : 0);
22570 /* HPUX 7.0 cc rejects these. */
22573 ccp = (char const *const *) p;
22574 { /* SCO 3.2v4 cc rejects this. */
22576 char const *s = 0 ? (char *) 0 : (char const *) 0;
22580 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22581 int x[] = {25, 17};
22582 const int *foo = &x[0];
22585 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22586 typedef const int *iptr;
22590 { /* AIX XL C 1.02.0.0 rejects this saying
22591 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22592 struct s { int j; const int *ap[3]; };
22593 struct s *b; b->j = 5;
22595 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22596 const int foo = 10;
22604 rm -f conftest.$ac_objext
22605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22606 (eval $ac_compile) 2>conftest.er1
22608 grep -v '^ *+' conftest.er1 >conftest.err
22610 cat conftest.err >&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } &&
22613 { ac_try='test -z "$ac_c_werror_flag"
22614 || test ! -s conftest.err'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; } &&
22620 { ac_try='test -s conftest.$ac_objext'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22635 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22636 echo "${ECHO_T}$ac_cv_c_const" >&6
22637 if test $ac_cv_c_const = no; then
22639 cat >>confdefs.h <<\_ACEOF
22647 echo "$as_me:$LINENO: checking for char" >&5
22648 echo $ECHO_N "checking for char... $ECHO_C" >&6
22649 if test "${ac_cv_type_char+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22670 rm -f conftest.$ac_objext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672 (eval $ac_compile) 2>conftest.er1
22674 grep -v '^ *+' conftest.er1 >conftest.err
22676 cat conftest.err >&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
22679 { ac_try='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
22686 { ac_try='test -s conftest.$ac_objext'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692 ac_cv_type_char=yes
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22701 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22702 echo "${ECHO_T}$ac_cv_type_char" >&6
22704 echo "$as_me:$LINENO: checking size of char" >&5
22705 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22706 if test "${ac_cv_sizeof_char+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22709 if test "$ac_cv_type_char" = yes; then
22710 # The cast to unsigned long works around a bug in the HP C Compiler
22711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22713 # This bug is HP SR number 8606223364.
22714 if test "$cross_compiling" = yes; then
22715 # Depending upon the size, compute the lo and hi bounds.
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22726 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22733 rm -f conftest.$ac_objext
22734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22735 (eval $ac_compile) 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } &&
22742 { ac_try='test -z "$ac_c_werror_flag"
22743 || test ! -s conftest.err'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; } &&
22749 { ac_try='test -s conftest.$ac_objext'
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 $ac_includes_default
22767 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22774 rm -f conftest.$ac_objext
22775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22776 (eval $ac_compile) 2>conftest.er1
22778 grep -v '^ *+' conftest.er1 >conftest.err
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } &&
22783 { ac_try='test -z "$ac_c_werror_flag"
22784 || test ! -s conftest.err'
22785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786 (eval $ac_try) 2>&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); }; } &&
22790 { ac_try='test -s conftest.$ac_objext'
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; }; then
22796 ac_hi=$ac_mid; break
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22801 ac_lo=`expr $ac_mid + 1`
22802 if test $ac_lo -le $ac_mid; then
22806 ac_mid=`expr 2 '*' $ac_mid + 1`
22808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.$ac_ext >&5
22814 cat >conftest.$ac_ext <<_ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820 $ac_includes_default
22824 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22831 rm -f conftest.$ac_objext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22833 (eval $ac_compile) 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -z "$ac_c_werror_flag"
22841 || test ! -s conftest.err'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest.$ac_objext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22855 cat >conftest.$ac_ext <<_ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 $ac_includes_default
22865 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22872 rm -f conftest.$ac_objext
22873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22874 (eval $ac_compile) 2>conftest.er1
22876 grep -v '^ *+' conftest.er1 >conftest.err
22878 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } &&
22881 { ac_try='test -z "$ac_c_werror_flag"
22882 || test ! -s conftest.err'
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; } &&
22888 { ac_try='test -s conftest.$ac_objext'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; }; then
22894 ac_lo=$ac_mid; break
22896 echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_hi=`expr '(' $ac_mid ')' - 1`
22900 if test $ac_mid -le $ac_hi; then
22904 ac_mid=`expr 2 '*' $ac_mid`
22906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22917 # Binary search between lo and hi bounds.
22918 while test "x$ac_lo" != "x$ac_hi"; do
22919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 $ac_includes_default
22930 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22937 rm -f conftest.$ac_objext
22938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22939 (eval $ac_compile) 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } &&
22946 { ac_try='test -z "$ac_c_werror_flag"
22947 || test ! -s conftest.err'
22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; } &&
22953 { ac_try='test -s conftest.$ac_objext'
22954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955 (eval $ac_try) 2>&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); }; }; then
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 ac_lo=`expr '(' $ac_mid ')' + 1`
22966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22969 ?*) ac_cv_sizeof_char=$ac_lo;;
22970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22971 See \`config.log' for more details." >&5
22972 echo "$as_me: error: cannot compute sizeof (char), 77
22973 See \`config.log' for more details." >&2;}
22974 { (exit 1); exit 1; }; } ;;
22977 if test "$cross_compiling" = yes; then
22978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22979 See \`config.log' for more details." >&5
22980 echo "$as_me: error: cannot run test program while cross compiling
22981 See \`config.log' for more details." >&2;}
22982 { (exit 1); exit 1; }; }
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 $ac_includes_default
22991 long longval () { return (long) (sizeof (char)); }
22992 unsigned long ulongval () { return (long) (sizeof (char)); }
22994 #include <stdlib.h>
22999 FILE *f = fopen ("conftest.val", "w");
23002 if (((long) (sizeof (char))) < 0)
23004 long i = longval ();
23005 if (i != ((long) (sizeof (char))))
23007 fprintf (f, "%ld\n", i);
23011 unsigned long i = ulongval ();
23012 if (i != ((long) (sizeof (char))))
23014 fprintf (f, "%lu\n", i);
23016 exit (ferror (f) || fclose (f) != 0);
23022 rm -f conftest$ac_exeext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23024 (eval $ac_link) 2>&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_sizeof_char=`cat conftest.val`
23035 echo "$as_me: program exited with status $ac_status" >&5
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ( exit $ac_status )
23040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23041 See \`config.log' for more details." >&5
23042 echo "$as_me: error: cannot compute sizeof (char), 77
23043 See \`config.log' for more details." >&2;}
23044 { (exit 1); exit 1; }; }
23046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23051 ac_cv_sizeof_char=0
23054 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23055 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23056 cat >>confdefs.h <<_ACEOF
23057 #define SIZEOF_CHAR $ac_cv_sizeof_char
23061 echo "$as_me:$LINENO: checking for short int" >&5
23062 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23063 if test "${ac_cv_type_short_int+set}" = set; then
23064 echo $ECHO_N "(cached) $ECHO_C" >&6
23066 cat >conftest.$ac_ext <<_ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h. */
23072 $ac_includes_default
23076 if ((short int *) 0)
23078 if (sizeof (short int))
23084 rm -f conftest.$ac_objext
23085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23086 (eval $ac_compile) 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } &&
23093 { ac_try='test -z "$ac_c_werror_flag"
23094 || test ! -s conftest.err'
23095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096 (eval $ac_try) 2>&5
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); }; } &&
23100 { ac_try='test -s conftest.$ac_objext'
23101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23102 (eval $ac_try) 2>&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); }; }; then
23106 ac_cv_type_short_int=yes
23108 echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23111 ac_cv_type_short_int=no
23113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23115 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23116 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23118 echo "$as_me:$LINENO: checking size of short int" >&5
23119 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23120 if test "${ac_cv_sizeof_short_int+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 if test "$ac_cv_type_short_int" = yes; then
23124 # The cast to unsigned long works around a bug in the HP C Compiler
23125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23127 # This bug is HP SR number 8606223364.
23128 if test "$cross_compiling" = yes; then
23129 # Depending upon the size, compute the lo and hi bounds.
23130 cat >conftest.$ac_ext <<_ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 $ac_includes_default
23140 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23147 rm -f conftest.$ac_objext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23149 (eval $ac_compile) 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
23156 { ac_try='test -z "$ac_c_werror_flag"
23157 || test ! -s conftest.err'
23158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159 (eval $ac_try) 2>&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); }; } &&
23163 { ac_try='test -s conftest.$ac_objext'
23164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165 (eval $ac_try) 2>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); }; }; then
23171 cat >conftest.$ac_ext <<_ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23177 $ac_includes_default
23181 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23188 rm -f conftest.$ac_objext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23190 (eval $ac_compile) 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } &&
23197 { ac_try='test -z "$ac_c_werror_flag"
23198 || test ! -s conftest.err'
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; } &&
23204 { ac_try='test -s conftest.$ac_objext'
23205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); }; }; then
23210 ac_hi=$ac_mid; break
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23215 ac_lo=`expr $ac_mid + 1`
23216 if test $ac_lo -le $ac_mid; then
23220 ac_mid=`expr 2 '*' $ac_mid + 1`
23222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 $ac_includes_default
23238 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23245 rm -f conftest.$ac_objext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23247 (eval $ac_compile) 2>conftest.er1
23249 grep -v '^ *+' conftest.er1 >conftest.err
23251 cat conftest.err >&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } &&
23254 { ac_try='test -z "$ac_c_werror_flag"
23255 || test ! -s conftest.err'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; } &&
23261 { ac_try='test -s conftest.$ac_objext'
23262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23263 (eval $ac_try) 2>&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); }; }; then
23269 cat >conftest.$ac_ext <<_ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h. */
23275 $ac_includes_default
23279 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23286 rm -f conftest.$ac_objext
23287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23288 (eval $ac_compile) 2>conftest.er1
23290 grep -v '^ *+' conftest.er1 >conftest.err
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } &&
23295 { ac_try='test -z "$ac_c_werror_flag"
23296 || test ! -s conftest.err'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; } &&
23302 { ac_try='test -s conftest.$ac_objext'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; }; then
23308 ac_lo=$ac_mid; break
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 ac_hi=`expr '(' $ac_mid ')' - 1`
23314 if test $ac_mid -le $ac_hi; then
23318 ac_mid=`expr 2 '*' $ac_mid`
23320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23323 echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23331 # Binary search between lo and hi bounds.
23332 while test "x$ac_lo" != "x$ac_hi"; do
23333 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23334 cat >conftest.$ac_ext <<_ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 $ac_includes_default
23344 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23351 rm -f conftest.$ac_objext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23353 (eval $ac_compile) 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
23360 { ac_try='test -z "$ac_c_werror_flag"
23361 || test ! -s conftest.err'
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; } &&
23367 { ac_try='test -s conftest.$ac_objext'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 ac_lo=`expr '(' $ac_mid ')' + 1`
23380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23383 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23385 See \`config.log' for more details." >&5
23386 echo "$as_me: error: cannot compute sizeof (short int), 77
23387 See \`config.log' for more details." >&2;}
23388 { (exit 1); exit 1; }; } ;;
23391 if test "$cross_compiling" = yes; then
23392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23393 See \`config.log' for more details." >&5
23394 echo "$as_me: error: cannot run test program while cross compiling
23395 See \`config.log' for more details." >&2;}
23396 { (exit 1); exit 1; }; }
23398 cat >conftest.$ac_ext <<_ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 $ac_includes_default
23405 long longval () { return (long) (sizeof (short int)); }
23406 unsigned long ulongval () { return (long) (sizeof (short int)); }
23408 #include <stdlib.h>
23413 FILE *f = fopen ("conftest.val", "w");
23416 if (((long) (sizeof (short int))) < 0)
23418 long i = longval ();
23419 if (i != ((long) (sizeof (short int))))
23421 fprintf (f, "%ld\n", i);
23425 unsigned long i = ulongval ();
23426 if (i != ((long) (sizeof (short int))))
23428 fprintf (f, "%lu\n", i);
23430 exit (ferror (f) || fclose (f) != 0);
23436 rm -f conftest$ac_exeext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23438 (eval $ac_link) 2>&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443 (eval $ac_try) 2>&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); }; }; then
23447 ac_cv_sizeof_short_int=`cat conftest.val`
23449 echo "$as_me: program exited with status $ac_status" >&5
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 ( exit $ac_status )
23454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23455 See \`config.log' for more details." >&5
23456 echo "$as_me: error: cannot compute sizeof (short int), 77
23457 See \`config.log' for more details." >&2;}
23458 { (exit 1); exit 1; }; }
23460 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23465 ac_cv_sizeof_short_int=0
23468 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23469 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23470 cat >>confdefs.h <<_ACEOF
23471 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23475 echo "$as_me:$LINENO: checking for int" >&5
23476 echo $ECHO_N "checking for int... $ECHO_C" >&6
23477 if test "${ac_cv_type_int+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23480 cat >conftest.$ac_ext <<_ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 $ac_includes_default
23498 rm -f conftest.$ac_objext
23499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23500 (eval $ac_compile) 2>conftest.er1
23502 grep -v '^ *+' conftest.er1 >conftest.err
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } &&
23507 { ac_try='test -z "$ac_c_werror_flag"
23508 || test ! -s conftest.err'
23509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; } &&
23514 { ac_try='test -s conftest.$ac_objext'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; }; then
23522 echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23529 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23530 echo "${ECHO_T}$ac_cv_type_int" >&6
23532 echo "$as_me:$LINENO: checking size of int" >&5
23533 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23534 if test "${ac_cv_sizeof_int+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 if test "$ac_cv_type_int" = yes; then
23538 # The cast to unsigned long works around a bug in the HP C Compiler
23539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23541 # This bug is HP SR number 8606223364.
23542 if test "$cross_compiling" = yes; then
23543 # Depending upon the size, compute the lo and hi bounds.
23544 cat >conftest.$ac_ext <<_ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h. */
23550 $ac_includes_default
23554 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23561 rm -f conftest.$ac_objext
23562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23563 (eval $ac_compile) 2>conftest.er1
23565 grep -v '^ *+' conftest.er1 >conftest.err
23567 cat conftest.err >&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } &&
23570 { ac_try='test -z "$ac_c_werror_flag"
23571 || test ! -s conftest.err'
23572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23573 (eval $ac_try) 2>&5
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); }; } &&
23577 { ac_try='test -s conftest.$ac_objext'
23578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); }; }; then
23585 cat >conftest.$ac_ext <<_ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591 $ac_includes_default
23595 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23602 rm -f conftest.$ac_objext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23604 (eval $ac_compile) 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
23611 { ac_try='test -z "$ac_c_werror_flag"
23612 || test ! -s conftest.err'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; } &&
23618 { ac_try='test -s conftest.$ac_objext'
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_hi=$ac_mid; break
23626 echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23629 ac_lo=`expr $ac_mid + 1`
23630 if test $ac_lo -le $ac_mid; then
23634 ac_mid=`expr 2 '*' $ac_mid + 1`
23636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 cat >conftest.$ac_ext <<_ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23648 $ac_includes_default
23652 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23659 rm -f conftest.$ac_objext
23660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23661 (eval $ac_compile) 2>conftest.er1
23663 grep -v '^ *+' conftest.er1 >conftest.err
23665 cat conftest.err >&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } &&
23668 { ac_try='test -z "$ac_c_werror_flag"
23669 || test ! -s conftest.err'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest.$ac_objext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 $ac_includes_default
23693 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23700 rm -f conftest.$ac_objext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23702 (eval $ac_compile) 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest.$ac_objext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 ac_lo=$ac_mid; break
23724 echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23727 ac_hi=`expr '(' $ac_mid ')' - 1`
23728 if test $ac_mid -le $ac_hi; then
23732 ac_mid=`expr 2 '*' $ac_mid`
23734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23745 # Binary search between lo and hi bounds.
23746 while test "x$ac_lo" != "x$ac_hi"; do
23747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23748 cat >conftest.$ac_ext <<_ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23754 $ac_includes_default
23758 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23765 rm -f conftest.$ac_objext
23766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23767 (eval $ac_compile) 2>conftest.er1
23769 grep -v '^ *+' conftest.er1 >conftest.err
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } &&
23774 { ac_try='test -z "$ac_c_werror_flag"
23775 || test ! -s conftest.err'
23776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777 (eval $ac_try) 2>&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; } &&
23781 { ac_try='test -s conftest.$ac_objext'
23782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783 (eval $ac_try) 2>&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 ac_lo=`expr '(' $ac_mid ')' + 1`
23794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23797 ?*) ac_cv_sizeof_int=$ac_lo;;
23798 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23799 See \`config.log' for more details." >&5
23800 echo "$as_me: error: cannot compute sizeof (int), 77
23801 See \`config.log' for more details." >&2;}
23802 { (exit 1); exit 1; }; } ;;
23805 if test "$cross_compiling" = yes; then
23806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23807 See \`config.log' for more details." >&5
23808 echo "$as_me: error: cannot run test program while cross compiling
23809 See \`config.log' for more details." >&2;}
23810 { (exit 1); exit 1; }; }
23812 cat >conftest.$ac_ext <<_ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 $ac_includes_default
23819 long longval () { return (long) (sizeof (int)); }
23820 unsigned long ulongval () { return (long) (sizeof (int)); }
23822 #include <stdlib.h>
23827 FILE *f = fopen ("conftest.val", "w");
23830 if (((long) (sizeof (int))) < 0)
23832 long i = longval ();
23833 if (i != ((long) (sizeof (int))))
23835 fprintf (f, "%ld\n", i);
23839 unsigned long i = ulongval ();
23840 if (i != ((long) (sizeof (int))))
23842 fprintf (f, "%lu\n", i);
23844 exit (ferror (f) || fclose (f) != 0);
23850 rm -f conftest$ac_exeext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852 (eval $ac_link) 2>&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 ac_cv_sizeof_int=`cat conftest.val`
23863 echo "$as_me: program exited with status $ac_status" >&5
23864 echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23867 ( exit $ac_status )
23868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23869 See \`config.log' for more details." >&5
23870 echo "$as_me: error: cannot compute sizeof (int), 77
23871 See \`config.log' for more details." >&2;}
23872 { (exit 1); exit 1; }; }
23874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23882 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23883 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23884 cat >>confdefs.h <<_ACEOF
23885 #define SIZEOF_INT $ac_cv_sizeof_int
23889 echo "$as_me:$LINENO: checking for long int" >&5
23890 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23891 if test "${ac_cv_type_long_int+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23904 if ((long int *) 0)
23906 if (sizeof (long int))
23912 rm -f conftest.$ac_objext
23913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23914 (eval $ac_compile) 2>conftest.er1
23916 grep -v '^ *+' conftest.er1 >conftest.err
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } &&
23921 { ac_try='test -z "$ac_c_werror_flag"
23922 || test ! -s conftest.err'
23923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924 (eval $ac_try) 2>&5
23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927 (exit $ac_status); }; } &&
23928 { ac_try='test -s conftest.$ac_objext'
23929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23930 (eval $ac_try) 2>&5
23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); }; }; then
23934 ac_cv_type_long_int=yes
23936 echo "$as_me: failed program was:" >&5
23937 sed 's/^/| /' conftest.$ac_ext >&5
23939 ac_cv_type_long_int=no
23941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23943 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23944 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23946 echo "$as_me:$LINENO: checking size of long int" >&5
23947 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23948 if test "${ac_cv_sizeof_long_int+set}" = set; then
23949 echo $ECHO_N "(cached) $ECHO_C" >&6
23951 if test "$ac_cv_type_long_int" = yes; then
23952 # The cast to unsigned long works around a bug in the HP C Compiler
23953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23955 # This bug is HP SR number 8606223364.
23956 if test "$cross_compiling" = yes; then
23957 # Depending upon the size, compute the lo and hi bounds.
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23964 $ac_includes_default
23968 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23975 rm -f conftest.$ac_objext
23976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23977 (eval $ac_compile) 2>conftest.er1
23979 grep -v '^ *+' conftest.er1 >conftest.err
23981 cat conftest.err >&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } &&
23984 { ac_try='test -z "$ac_c_werror_flag"
23985 || test ! -s conftest.err'
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; } &&
23991 { ac_try='test -s conftest.$ac_objext'
23992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993 (eval $ac_try) 2>&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); }; }; then
23999 cat >conftest.$ac_ext <<_ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24005 $ac_includes_default
24009 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24016 rm -f conftest.$ac_objext
24017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24018 (eval $ac_compile) 2>conftest.er1
24020 grep -v '^ *+' conftest.er1 >conftest.err
24022 cat conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); } &&
24025 { ac_try='test -z "$ac_c_werror_flag"
24026 || test ! -s conftest.err'
24027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24028 (eval $ac_try) 2>&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); }; } &&
24032 { ac_try='test -s conftest.$ac_objext'
24033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034 (eval $ac_try) 2>&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; }; then
24038 ac_hi=$ac_mid; break
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24043 ac_lo=`expr $ac_mid + 1`
24044 if test $ac_lo -le $ac_mid; then
24048 ac_mid=`expr 2 '*' $ac_mid + 1`
24050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24053 echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24056 cat >conftest.$ac_ext <<_ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h. */
24062 $ac_includes_default
24066 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24073 rm -f conftest.$ac_objext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24075 (eval $ac_compile) 2>conftest.er1
24077 grep -v '^ *+' conftest.er1 >conftest.err
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
24082 { ac_try='test -z "$ac_c_werror_flag"
24083 || test ! -s conftest.err'
24084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); }; } &&
24089 { ac_try='test -s conftest.$ac_objext'
24090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091 (eval $ac_try) 2>&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 $ac_includes_default
24107 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24114 rm -f conftest.$ac_objext
24115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24116 (eval $ac_compile) 2>conftest.er1
24118 grep -v '^ *+' conftest.er1 >conftest.err
24120 cat conftest.err >&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } &&
24123 { ac_try='test -z "$ac_c_werror_flag"
24124 || test ! -s conftest.err'
24125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126 (eval $ac_try) 2>&5
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); }; } &&
24130 { ac_try='test -s conftest.$ac_objext'
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; }; then
24136 ac_lo=$ac_mid; break
24138 echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24141 ac_hi=`expr '(' $ac_mid ')' - 1`
24142 if test $ac_mid -le $ac_hi; then
24146 ac_mid=`expr 2 '*' $ac_mid`
24148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24151 echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24159 # Binary search between lo and hi bounds.
24160 while test "x$ac_lo" != "x$ac_hi"; do
24161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 $ac_includes_default
24172 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24179 rm -f conftest.$ac_objext
24180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24181 (eval $ac_compile) 2>conftest.er1
24183 grep -v '^ *+' conftest.er1 >conftest.err
24185 cat conftest.err >&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } &&
24188 { ac_try='test -z "$ac_c_werror_flag"
24189 || test ! -s conftest.err'
24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; } &&
24195 { ac_try='test -s conftest.$ac_objext'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; }; then
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 ac_lo=`expr '(' $ac_mid ')' + 1`
24208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24211 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24213 See \`config.log' for more details." >&5
24214 echo "$as_me: error: cannot compute sizeof (long int), 77
24215 See \`config.log' for more details." >&2;}
24216 { (exit 1); exit 1; }; } ;;
24219 if test "$cross_compiling" = yes; then
24220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24221 See \`config.log' for more details." >&5
24222 echo "$as_me: error: cannot run test program while cross compiling
24223 See \`config.log' for more details." >&2;}
24224 { (exit 1); exit 1; }; }
24226 cat >conftest.$ac_ext <<_ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h. */
24232 $ac_includes_default
24233 long longval () { return (long) (sizeof (long int)); }
24234 unsigned long ulongval () { return (long) (sizeof (long int)); }
24236 #include <stdlib.h>
24241 FILE *f = fopen ("conftest.val", "w");
24244 if (((long) (sizeof (long int))) < 0)
24246 long i = longval ();
24247 if (i != ((long) (sizeof (long int))))
24249 fprintf (f, "%ld\n", i);
24253 unsigned long i = ulongval ();
24254 if (i != ((long) (sizeof (long int))))
24256 fprintf (f, "%lu\n", i);
24258 exit (ferror (f) || fclose (f) != 0);
24264 rm -f conftest$ac_exeext
24265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24266 (eval $ac_link) 2>&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; }; then
24275 ac_cv_sizeof_long_int=`cat conftest.val`
24277 echo "$as_me: program exited with status $ac_status" >&5
24278 echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281 ( exit $ac_status )
24282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24283 See \`config.log' for more details." >&5
24284 echo "$as_me: error: cannot compute sizeof (long int), 77
24285 See \`config.log' for more details." >&2;}
24286 { (exit 1); exit 1; }; }
24288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24293 ac_cv_sizeof_long_int=0
24296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24297 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24298 cat >>confdefs.h <<_ACEOF
24299 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24303 echo "$as_me:$LINENO: checking for long long int" >&5
24304 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24305 if test "${ac_cv_type_long_long_int+set}" = set; then
24306 echo $ECHO_N "(cached) $ECHO_C" >&6
24308 cat >conftest.$ac_ext <<_ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 $ac_includes_default
24318 if ((long long int *) 0)
24320 if (sizeof (long long int))
24326 rm -f conftest.$ac_objext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24328 (eval $ac_compile) 2>conftest.er1
24330 grep -v '^ *+' conftest.er1 >conftest.err
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
24335 { ac_try='test -z "$ac_c_werror_flag"
24336 || test ! -s conftest.err'
24337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338 (eval $ac_try) 2>&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; } &&
24342 { ac_try='test -s conftest.$ac_objext'
24343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344 (eval $ac_try) 2>&5
24346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); }; }; then
24348 ac_cv_type_long_long_int=yes
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24353 ac_cv_type_long_long_int=no
24355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24357 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24358 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24360 echo "$as_me:$LINENO: checking size of long long int" >&5
24361 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24362 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 if test "$ac_cv_type_long_long_int" = yes; then
24366 # The cast to unsigned long works around a bug in the HP C Compiler
24367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24369 # This bug is HP SR number 8606223364.
24370 if test "$cross_compiling" = yes; then
24371 # Depending upon the size, compute the lo and hi bounds.
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24378 $ac_includes_default
24382 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24389 rm -f conftest.$ac_objext
24390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24391 (eval $ac_compile) 2>conftest.er1
24393 grep -v '^ *+' conftest.er1 >conftest.err
24395 cat conftest.err >&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } &&
24398 { ac_try='test -z "$ac_c_werror_flag"
24399 || test ! -s conftest.err'
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; } &&
24405 { ac_try='test -s conftest.$ac_objext'
24406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24413 cat >conftest.$ac_ext <<_ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h. */
24419 $ac_includes_default
24423 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24430 rm -f conftest.$ac_objext
24431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24432 (eval $ac_compile) 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } &&
24439 { ac_try='test -z "$ac_c_werror_flag"
24440 || test ! -s conftest.err'
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; } &&
24446 { ac_try='test -s conftest.$ac_objext'
24447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448 (eval $ac_try) 2>&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; }; then
24452 ac_hi=$ac_mid; break
24454 echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24457 ac_lo=`expr $ac_mid + 1`
24458 if test $ac_lo -le $ac_mid; then
24462 ac_mid=`expr 2 '*' $ac_mid + 1`
24464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24470 cat >conftest.$ac_ext <<_ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h. */
24476 $ac_includes_default
24480 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24487 rm -f conftest.$ac_objext
24488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24489 (eval $ac_compile) 2>conftest.er1
24491 grep -v '^ *+' conftest.er1 >conftest.err
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } &&
24496 { ac_try='test -z "$ac_c_werror_flag"
24497 || test ! -s conftest.err'
24498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24499 (eval $ac_try) 2>&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); }; } &&
24503 { ac_try='test -s conftest.$ac_objext'
24504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24505 (eval $ac_try) 2>&5
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); }; }; then
24511 cat >conftest.$ac_ext <<_ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h. */
24517 $ac_includes_default
24521 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24528 rm -f conftest.$ac_objext
24529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24530 (eval $ac_compile) 2>conftest.er1
24532 grep -v '^ *+' conftest.er1 >conftest.err
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } &&
24537 { ac_try='test -z "$ac_c_werror_flag"
24538 || test ! -s conftest.err'
24539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); }; } &&
24544 { ac_try='test -s conftest.$ac_objext'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24550 ac_lo=$ac_mid; break
24552 echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.$ac_ext >&5
24555 ac_hi=`expr '(' $ac_mid ')' - 1`
24556 if test $ac_mid -le $ac_hi; then
24560 ac_mid=`expr 2 '*' $ac_mid`
24562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24565 echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24573 # Binary search between lo and hi bounds.
24574 while test "x$ac_lo" != "x$ac_hi"; do
24575 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582 $ac_includes_default
24586 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24593 rm -f conftest.$ac_objext
24594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24595 (eval $ac_compile) 2>conftest.er1
24597 grep -v '^ *+' conftest.er1 >conftest.err
24599 cat conftest.err >&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); } &&
24602 { ac_try='test -z "$ac_c_werror_flag"
24603 || test ! -s conftest.err'
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; } &&
24609 { ac_try='test -s conftest.$ac_objext'
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; }; then
24617 echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24620 ac_lo=`expr '(' $ac_mid ')' + 1`
24622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24625 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24626 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24627 See \`config.log' for more details." >&5
24628 echo "$as_me: error: cannot compute sizeof (long long int), 77
24629 See \`config.log' for more details." >&2;}
24630 { (exit 1); exit 1; }; } ;;
24633 if test "$cross_compiling" = yes; then
24634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24635 See \`config.log' for more details." >&5
24636 echo "$as_me: error: cannot run test program while cross compiling
24637 See \`config.log' for more details." >&2;}
24638 { (exit 1); exit 1; }; }
24640 cat >conftest.$ac_ext <<_ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h. */
24646 $ac_includes_default
24647 long longval () { return (long) (sizeof (long long int)); }
24648 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24650 #include <stdlib.h>
24655 FILE *f = fopen ("conftest.val", "w");
24658 if (((long) (sizeof (long long int))) < 0)
24660 long i = longval ();
24661 if (i != ((long) (sizeof (long long int))))
24663 fprintf (f, "%ld\n", i);
24667 unsigned long i = ulongval ();
24668 if (i != ((long) (sizeof (long long int))))
24670 fprintf (f, "%lu\n", i);
24672 exit (ferror (f) || fclose (f) != 0);
24678 rm -f conftest$ac_exeext
24679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24680 (eval $ac_link) 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685 (eval $ac_try) 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_cv_sizeof_long_long_int=`cat conftest.val`
24691 echo "$as_me: program exited with status $ac_status" >&5
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ( exit $ac_status )
24696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24697 See \`config.log' for more details." >&5
24698 echo "$as_me: error: cannot compute sizeof (long long int), 77
24699 See \`config.log' for more details." >&2;}
24700 { (exit 1); exit 1; }; }
24702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24707 ac_cv_sizeof_long_long_int=0
24710 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24711 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24712 cat >>confdefs.h <<_ACEOF
24713 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24717 echo "$as_me:$LINENO: checking for int *" >&5
24718 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24719 if test "${ac_cv_type_int_p+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24728 $ac_includes_default
24734 if (sizeof (int *))
24740 rm -f conftest.$ac_objext
24741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24742 (eval $ac_compile) 2>conftest.er1
24744 grep -v '^ *+' conftest.er1 >conftest.err
24746 cat conftest.err >&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } &&
24749 { ac_try='test -z "$ac_c_werror_flag"
24750 || test ! -s conftest.err'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } &&
24756 { ac_try='test -s conftest.$ac_objext'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; }; then
24762 ac_cv_type_int_p=yes
24764 echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24767 ac_cv_type_int_p=no
24769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24771 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24772 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24774 echo "$as_me:$LINENO: checking size of int *" >&5
24775 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24776 if test "${ac_cv_sizeof_int_p+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 if test "$ac_cv_type_int_p" = yes; then
24780 # The cast to unsigned long works around a bug in the HP C Compiler
24781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24783 # This bug is HP SR number 8606223364.
24784 if test "$cross_compiling" = yes; then
24785 # Depending upon the size, compute the lo and hi bounds.
24786 cat >conftest.$ac_ext <<_ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 $ac_includes_default
24796 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24803 rm -f conftest.$ac_objext
24804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24805 (eval $ac_compile) 2>conftest.er1
24807 grep -v '^ *+' conftest.er1 >conftest.err
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } &&
24812 { ac_try='test -z "$ac_c_werror_flag"
24813 || test ! -s conftest.err'
24814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24815 (eval $ac_try) 2>&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); }; } &&
24819 { ac_try='test -s conftest.$ac_objext'
24820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821 (eval $ac_try) 2>&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; }; then
24827 cat >conftest.$ac_ext <<_ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24833 $ac_includes_default
24837 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24844 rm -f conftest.$ac_objext
24845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24846 (eval $ac_compile) 2>conftest.er1
24848 grep -v '^ *+' conftest.er1 >conftest.err
24850 cat conftest.err >&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } &&
24853 { ac_try='test -z "$ac_c_werror_flag"
24854 || test ! -s conftest.err'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest.$ac_objext'
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
24866 ac_hi=$ac_mid; break
24868 echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 ac_lo=`expr $ac_mid + 1`
24872 if test $ac_lo -le $ac_mid; then
24876 ac_mid=`expr 2 '*' $ac_mid + 1`
24878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24884 cat >conftest.$ac_ext <<_ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24890 $ac_includes_default
24894 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24901 rm -f conftest.$ac_objext
24902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24903 (eval $ac_compile) 2>conftest.er1
24905 grep -v '^ *+' conftest.er1 >conftest.err
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
24910 { ac_try='test -z "$ac_c_werror_flag"
24911 || test ! -s conftest.err'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; } &&
24917 { ac_try='test -s conftest.$ac_objext'
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; }; then
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931 $ac_includes_default
24935 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24942 rm -f conftest.$ac_objext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24944 (eval $ac_compile) 2>conftest.er1
24946 grep -v '^ *+' conftest.er1 >conftest.err
24948 cat conftest.err >&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } &&
24951 { ac_try='test -z "$ac_c_werror_flag"
24952 || test ! -s conftest.err'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; } &&
24958 { ac_try='test -s conftest.$ac_objext'
24959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960 (eval $ac_try) 2>&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); }; }; then
24964 ac_lo=$ac_mid; break
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24969 ac_hi=`expr '(' $ac_mid ')' - 1`
24970 if test $ac_mid -le $ac_hi; then
24974 ac_mid=`expr 2 '*' $ac_mid`
24976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24987 # Binary search between lo and hi bounds.
24988 while test "x$ac_lo" != "x$ac_hi"; do
24989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24996 $ac_includes_default
25000 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25007 rm -f conftest.$ac_objext
25008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25009 (eval $ac_compile) 2>conftest.er1
25011 grep -v '^ *+' conftest.er1 >conftest.err
25013 cat conftest.err >&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } &&
25016 { ac_try='test -z "$ac_c_werror_flag"
25017 || test ! -s conftest.err'
25018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; } &&
25023 { ac_try='test -s conftest.$ac_objext'
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; }; then
25031 echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25034 ac_lo=`expr '(' $ac_mid ')' + 1`
25036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25039 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25040 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25041 See \`config.log' for more details." >&5
25042 echo "$as_me: error: cannot compute sizeof (int *), 77
25043 See \`config.log' for more details." >&2;}
25044 { (exit 1); exit 1; }; } ;;
25047 if test "$cross_compiling" = yes; then
25048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25049 See \`config.log' for more details." >&5
25050 echo "$as_me: error: cannot run test program while cross compiling
25051 See \`config.log' for more details." >&2;}
25052 { (exit 1); exit 1; }; }
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 $ac_includes_default
25061 long longval () { return (long) (sizeof (int *)); }
25062 unsigned long ulongval () { return (long) (sizeof (int *)); }
25064 #include <stdlib.h>
25069 FILE *f = fopen ("conftest.val", "w");
25072 if (((long) (sizeof (int *))) < 0)
25074 long i = longval ();
25075 if (i != ((long) (sizeof (int *))))
25077 fprintf (f, "%ld\n", i);
25081 unsigned long i = ulongval ();
25082 if (i != ((long) (sizeof (int *))))
25084 fprintf (f, "%lu\n", i);
25086 exit (ferror (f) || fclose (f) != 0);
25092 rm -f conftest$ac_exeext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25094 (eval $ac_link) 2>&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_cv_sizeof_int_p=`cat conftest.val`
25105 echo "$as_me: program exited with status $ac_status" >&5
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ( exit $ac_status )
25110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25111 See \`config.log' for more details." >&5
25112 echo "$as_me: error: cannot compute sizeof (int *), 77
25113 See \`config.log' for more details." >&2;}
25114 { (exit 1); exit 1; }; }
25116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25121 ac_cv_sizeof_int_p=0
25124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25125 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25126 cat >>confdefs.h <<_ACEOF
25127 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25132 # Check for sys/types.h types
25133 echo "$as_me:$LINENO: checking for u_int type" >&5
25134 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25135 if test "${ac_cv_have_u_int+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145 #include <sys/types.h>
25154 rm -f conftest.$ac_objext
25155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25156 (eval $ac_compile) 2>conftest.er1
25158 grep -v '^ *+' conftest.er1 >conftest.err
25160 cat conftest.err >&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); } &&
25163 { ac_try='test -z "$ac_c_werror_flag"
25164 || test ! -s conftest.err'
25165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166 (eval $ac_try) 2>&5
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; } &&
25170 { ac_try='test -s conftest.$ac_objext'
25171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172 (eval $ac_try) 2>&5
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); }; }; then
25176 ac_cv_have_u_int="yes"
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25181 ac_cv_have_u_int="no"
25184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25187 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25188 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25189 if test "x$ac_cv_have_u_int" = "xyes" ; then
25190 cat >>confdefs.h <<\_ACEOF
25191 #define HAVE_U_INT 1
25197 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25198 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25199 if test "${ac_cv_have_intmax_t+set}" = set; then
25200 echo $ECHO_N "(cached) $ECHO_C" >&6
25203 cat >conftest.$ac_ext <<_ACEOF
25206 cat confdefs.h >>conftest.$ac_ext
25207 cat >>conftest.$ac_ext <<_ACEOF
25208 /* end confdefs.h. */
25209 #include <sys/types.h>
25218 rm -f conftest.$ac_objext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25220 (eval $ac_compile) 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest.$ac_objext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_have_intmax_t="yes"
25242 echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25246 cat >conftest.$ac_ext <<_ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h. */
25252 #include <stdint.h>
25261 rm -f conftest.$ac_objext
25262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25263 (eval $ac_compile) 2>conftest.er1
25265 grep -v '^ *+' conftest.er1 >conftest.err
25267 cat conftest.err >&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } &&
25270 { ac_try='test -z "$ac_c_werror_flag"
25271 || test ! -s conftest.err'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; } &&
25277 { ac_try='test -s conftest.$ac_objext'
25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279 (eval $ac_try) 2>&5
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; }; then
25283 ac_cv_have_intmax_t="yes"
25285 echo "$as_me: failed program was:" >&5
25286 sed 's/^/| /' conftest.$ac_ext >&5
25288 ac_cv_have_intmax_t="no"
25291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25299 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25300 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25301 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25302 cat >>confdefs.h <<\_ACEOF
25303 #define HAVE_INTMAX_T 1
25310 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25311 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25312 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25322 #include <sys/types.h>
25326 u_intmax_t a; a = 1;
25331 rm -f conftest.$ac_objext
25332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25333 (eval $ac_compile) 2>conftest.er1
25335 grep -v '^ *+' conftest.er1 >conftest.err
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); } &&
25340 { ac_try='test -z "$ac_c_werror_flag"
25341 || test ! -s conftest.err'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; } &&
25347 { ac_try='test -s conftest.$ac_objext'
25348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25349 (eval $ac_try) 2>&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_have_u_intmax_t="yes"
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25359 cat >conftest.$ac_ext <<_ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 #include <stdint.h>
25369 u_intmax_t a; a = 1;
25374 rm -f conftest.$ac_objext
25375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25376 (eval $ac_compile) 2>conftest.er1
25378 grep -v '^ *+' conftest.er1 >conftest.err
25380 cat conftest.err >&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } &&
25383 { ac_try='test -z "$ac_c_werror_flag"
25384 || test ! -s conftest.err'
25385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25386 (eval $ac_try) 2>&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; } &&
25390 { ac_try='test -s conftest.$ac_objext'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; }; then
25396 ac_cv_have_u_intmax_t="yes"
25398 echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 ac_cv_have_u_intmax_t="no"
25404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25411 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25412 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25413 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25414 cat >>confdefs.h <<\_ACEOF
25415 #define HAVE_U_INTMAX_T 1
25422 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25423 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25424 if test "${ac_cv_have_intxx_t+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 cat >conftest.$ac_ext <<_ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h. */
25434 #include <sys/types.h>
25438 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25443 rm -f conftest.$ac_objext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25445 (eval $ac_compile) 2>conftest.er1
25447 grep -v '^ *+' conftest.er1 >conftest.err
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
25452 { ac_try='test -z "$ac_c_werror_flag"
25453 || test ! -s conftest.err'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } &&
25459 { ac_try='test -s conftest.$ac_objext'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 ac_cv_have_intxx_t="yes"
25467 echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25470 ac_cv_have_intxx_t="no"
25473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25476 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25477 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25478 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25479 cat >>confdefs.h <<\_ACEOF
25480 #define HAVE_INTXX_T 1
25486 echo "$as_me:$LINENO: checking for int64_t type" >&5
25487 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25488 if test "${ac_cv_have_int64_t+set}" = set; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 cat >conftest.$ac_ext <<_ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 #include <sys/types.h>
25507 rm -f conftest.$ac_objext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>conftest.er1
25511 grep -v '^ *+' conftest.er1 >conftest.err
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } &&
25516 { ac_try='test -z "$ac_c_werror_flag"
25517 || test ! -s conftest.err'
25518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519 (eval $ac_try) 2>&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); }; } &&
25523 { ac_try='test -s conftest.$ac_objext'
25524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525 (eval $ac_try) 2>&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); }; }; then
25529 ac_cv_have_int64_t="yes"
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25534 ac_cv_have_int64_t="no"
25537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25540 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25541 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25542 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_INT64_T 1
25550 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25551 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25552 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25553 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 #include <sys/types.h>
25566 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25571 rm -f conftest.$ac_objext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25573 (eval $ac_compile) 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } &&
25580 { ac_try='test -z "$ac_c_werror_flag"
25581 || test ! -s conftest.err'
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; } &&
25587 { ac_try='test -s conftest.$ac_objext'
25588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); }; }; then
25593 ac_cv_have_u_intxx_t="yes"
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25598 ac_cv_have_u_intxx_t="no"
25601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25604 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25605 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25606 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25607 cat >>confdefs.h <<\_ACEOF
25608 #define HAVE_U_INTXX_T 1
25614 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25615 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25616 if test "${ac_cv_have_u_int64_t+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25620 cat >conftest.$ac_ext <<_ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */
25626 #include <sys/types.h>
25630 u_int64_t a; a = 1;
25635 rm -f conftest.$ac_objext
25636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25637 (eval $ac_compile) 2>conftest.er1
25639 grep -v '^ *+' conftest.er1 >conftest.err
25641 cat conftest.err >&5
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } &&
25644 { ac_try='test -z "$ac_c_werror_flag"
25645 || test ! -s conftest.err'
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; } &&
25651 { ac_try='test -s conftest.$ac_objext'
25652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653 (eval $ac_try) 2>&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; }; then
25657 ac_cv_have_u_int64_t="yes"
25659 echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.$ac_ext >&5
25662 ac_cv_have_u_int64_t="no"
25665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25668 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25669 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25670 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25671 cat >>confdefs.h <<\_ACEOF
25672 #define HAVE_U_INT64_T 1
25678 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25679 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25681 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25682 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25683 cat >conftest.$ac_ext <<_ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 #include <sys/bitypes.h>
25693 int8_t a; int16_t b; int32_t c;
25694 u_int8_t e; u_int16_t f; u_int32_t g;
25695 a = b = c = e = f = g = 1;
25700 rm -f conftest.$ac_objext
25701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25702 (eval $ac_compile) 2>conftest.er1
25704 grep -v '^ *+' conftest.er1 >conftest.err
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } &&
25709 { ac_try='test -z "$ac_c_werror_flag"
25710 || test ! -s conftest.err'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; } &&
25716 { ac_try='test -s conftest.$ac_objext'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; }; then
25722 cat >>confdefs.h <<\_ACEOF
25723 #define HAVE_U_INTXX_T 1
25726 cat >>confdefs.h <<\_ACEOF
25727 #define HAVE_INTXX_T 1
25730 cat >>confdefs.h <<\_ACEOF
25731 #define HAVE_SYS_BITYPES_H 1
25734 echo "$as_me:$LINENO: result: yes" >&5
25735 echo "${ECHO_T}yes" >&6
25737 echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25740 echo "$as_me:$LINENO: result: no" >&5
25741 echo "${ECHO_T}no" >&6
25744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25747 if test -z "$have_u_intxx_t" ; then
25748 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25749 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25750 if test "${ac_cv_have_uintxx_t+set}" = set; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 cat >conftest.$ac_ext <<_ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h. */
25760 #include <sys/types.h>
25764 uint8_t a; uint16_t b;
25765 uint32_t c; a = b = c = 1;
25770 rm -f conftest.$ac_objext
25771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25772 (eval $ac_compile) 2>conftest.er1
25774 grep -v '^ *+' conftest.er1 >conftest.err
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
25779 { ac_try='test -z "$ac_c_werror_flag"
25780 || test ! -s conftest.err'
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest.$ac_objext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 ac_cv_have_uintxx_t="yes"
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 ac_cv_have_uintxx_t="no"
25800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25803 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25804 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25805 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25806 cat >>confdefs.h <<\_ACEOF
25807 #define HAVE_UINTXX_T 1
25813 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25814 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25816 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25817 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25818 cat >conftest.$ac_ext <<_ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h. */
25824 #include <sys/bitypes.h>
25828 int64_t a; u_int64_t b;
25834 rm -f conftest.$ac_objext
25835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25836 (eval $ac_compile) 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } &&
25843 { ac_try='test -z "$ac_c_werror_flag"
25844 || test ! -s conftest.err'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; } &&
25850 { ac_try='test -s conftest.$ac_objext'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; }; then
25856 cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_U_INT64_T 1
25860 cat >>confdefs.h <<\_ACEOF
25861 #define HAVE_INT64_T 1
25864 echo "$as_me:$LINENO: result: yes" >&5
25865 echo "${ECHO_T}yes" >&6
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 echo "$as_me:$LINENO: result: no" >&5
25871 echo "${ECHO_T}no" >&6
25874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877 if (test -z "$have_uintxx_t" && \
25878 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25880 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25881 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25882 cat >conftest.$ac_ext <<_ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 #include <sys/bitypes.h>
25892 uint8_t a; uint16_t b;
25893 uint32_t c; a = b = c = 1;
25898 rm -f conftest.$ac_objext
25899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25900 (eval $ac_compile) 2>conftest.er1
25902 grep -v '^ *+' conftest.er1 >conftest.err
25904 cat conftest.err >&5
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); } &&
25907 { ac_try='test -z "$ac_c_werror_flag"
25908 || test ! -s conftest.err'
25909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25910 (eval $ac_try) 2>&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); }; } &&
25914 { ac_try='test -s conftest.$ac_objext'
25915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916 (eval $ac_try) 2>&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); }; }; then
25920 cat >>confdefs.h <<\_ACEOF
25921 #define HAVE_UINTXX_T 1
25924 echo "$as_me:$LINENO: result: yes" >&5
25925 echo "${ECHO_T}yes" >&6
25927 echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.$ac_ext >&5
25930 echo "$as_me:$LINENO: result: no" >&5
25931 echo "${ECHO_T}no" >&6
25934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25971 echo "$as_me:$LINENO: checking for $ac_func" >&5
25972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25973 if eval "test \"\${$as_ac_var+set}\" = set"; then
25974 echo $ECHO_N "(cached) $ECHO_C" >&6
25976 cat >conftest.$ac_ext <<_ACEOF
25979 cat confdefs.h >>conftest.$ac_ext
25980 cat >>conftest.$ac_ext <<_ACEOF
25981 /* end confdefs.h. */
25982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25984 #define $ac_func innocuous_$ac_func
25986 /* System header to define __stub macros and hopefully few prototypes,
25987 which can conflict with char $ac_func (); below.
25988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25989 <limits.h> exists even on freestanding compilers. */
25992 # include <limits.h>
25994 # include <assert.h>
25999 /* Override any gcc2 internal prototype to avoid an error. */
26004 /* We use char because int might match the return type of a gcc2
26005 builtin and then its argument prototype would still apply. */
26007 /* The GNU C library defines this for functions which it implements
26008 to always fail with ENOSYS. Some functions are actually named
26009 something starting with __ and the normal name is an alias. */
26010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26013 char (*f) () = $ac_func;
26022 return f != $ac_func;
26027 rm -f conftest.$ac_objext conftest$ac_exeext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029 (eval $ac_link) 2>conftest.er1
26031 grep -v '^ *+' conftest.er1 >conftest.err
26033 cat conftest.err >&5
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); } &&
26036 { ac_try='test -z "$ac_c_werror_flag"
26037 || test ! -s conftest.err'
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; } &&
26043 { ac_try='test -s conftest$ac_exeext'
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
26049 eval "$as_ac_var=yes"
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26054 eval "$as_ac_var=no"
26056 rm -f conftest.err conftest.$ac_objext \
26057 conftest$ac_exeext conftest.$ac_ext
26059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26061 if test `eval echo '${'$as_ac_var'}'` = yes; then
26062 cat >>confdefs.h <<_ACEOF
26063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26067 echo 'configure: cannot find needed function.'; exit 1
26074 for ac_func in fchdir
26076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26077 echo "$as_me:$LINENO: checking for $ac_func" >&5
26078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26079 if eval "test \"\${$as_ac_var+set}\" = set"; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26082 cat >conftest.$ac_ext <<_ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26090 #define $ac_func innocuous_$ac_func
26092 /* System header to define __stub macros and hopefully few prototypes,
26093 which can conflict with char $ac_func (); below.
26094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26095 <limits.h> exists even on freestanding compilers. */
26098 # include <limits.h>
26100 # include <assert.h>
26105 /* Override any gcc2 internal prototype to avoid an error. */
26110 /* We use char because int might match the return type of a gcc2
26111 builtin and then its argument prototype would still apply. */
26113 /* The GNU C library defines this for functions which it implements
26114 to always fail with ENOSYS. Some functions are actually named
26115 something starting with __ and the normal name is an alias. */
26116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26119 char (*f) () = $ac_func;
26128 return f != $ac_func;
26133 rm -f conftest.$ac_objext conftest$ac_exeext
26134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26135 (eval $ac_link) 2>conftest.er1
26137 grep -v '^ *+' conftest.er1 >conftest.err
26139 cat conftest.err >&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); } &&
26142 { ac_try='test -z "$ac_c_werror_flag"
26143 || test ! -s conftest.err'
26144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26145 (eval $ac_try) 2>&5
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; } &&
26149 { ac_try='test -s conftest$ac_exeext'
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; }; then
26155 eval "$as_ac_var=yes"
26157 echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26160 eval "$as_ac_var=no"
26162 rm -f conftest.err conftest.$ac_objext \
26163 conftest$ac_exeext conftest.$ac_ext
26165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26167 if test `eval echo '${'$as_ac_var'}'` = yes; then
26168 cat >>confdefs.h <<_ACEOF
26169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26171 cat >>confdefs.h <<\_ACEOF
26172 #define HAVE_FCHDIR 1
26179 for ac_func in strtoll
26181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26182 echo "$as_me:$LINENO: checking for $ac_func" >&5
26183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26184 if eval "test \"\${$as_ac_var+set}\" = set"; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26187 cat >conftest.$ac_ext <<_ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h. */
26193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26195 #define $ac_func innocuous_$ac_func
26197 /* System header to define __stub macros and hopefully few prototypes,
26198 which can conflict with char $ac_func (); below.
26199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26200 <limits.h> exists even on freestanding compilers. */
26203 # include <limits.h>
26205 # include <assert.h>
26210 /* Override any gcc2 internal prototype to avoid an error. */
26215 /* We use char because int might match the return type of a gcc2
26216 builtin and then its argument prototype would still apply. */
26218 /* The GNU C library defines this for functions which it implements
26219 to always fail with ENOSYS. Some functions are actually named
26220 something starting with __ and the normal name is an alias. */
26221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26224 char (*f) () = $ac_func;
26233 return f != $ac_func;
26238 rm -f conftest.$ac_objext conftest$ac_exeext
26239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26240 (eval $ac_link) 2>conftest.er1
26242 grep -v '^ *+' conftest.er1 >conftest.err
26244 cat conftest.err >&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); } &&
26247 { ac_try='test -z "$ac_c_werror_flag"
26248 || test ! -s conftest.err'
26249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250 (eval $ac_try) 2>&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); }; } &&
26254 { ac_try='test -s conftest$ac_exeext'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; }; then
26260 eval "$as_ac_var=yes"
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26265 eval "$as_ac_var=no"
26267 rm -f conftest.err conftest.$ac_objext \
26268 conftest$ac_exeext conftest.$ac_ext
26270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26272 if test `eval echo '${'$as_ac_var'}'` = yes; then
26273 cat >>confdefs.h <<_ACEOF
26274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26276 cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_STRTOLL 1
26285 for ac_func in chflags
26287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26288 echo "$as_me:$LINENO: checking for $ac_func" >&5
26289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26290 if eval "test \"\${$as_ac_var+set}\" = set"; then
26291 echo $ECHO_N "(cached) $ECHO_C" >&6
26293 cat >conftest.$ac_ext <<_ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26301 #define $ac_func innocuous_$ac_func
26303 /* System header to define __stub macros and hopefully few prototypes,
26304 which can conflict with char $ac_func (); below.
26305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26306 <limits.h> exists even on freestanding compilers. */
26309 # include <limits.h>
26311 # include <assert.h>
26316 /* Override any gcc2 internal prototype to avoid an error. */
26321 /* We use char because int might match the return type of a gcc2
26322 builtin and then its argument prototype would still apply. */
26324 /* The GNU C library defines this for functions which it implements
26325 to always fail with ENOSYS. Some functions are actually named
26326 something starting with __ and the normal name is an alias. */
26327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26330 char (*f) () = $ac_func;
26339 return f != $ac_func;
26344 rm -f conftest.$ac_objext conftest$ac_exeext
26345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26346 (eval $ac_link) 2>conftest.er1
26348 grep -v '^ *+' conftest.er1 >conftest.err
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } &&
26353 { ac_try='test -z "$ac_c_werror_flag"
26354 || test ! -s conftest.err'
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; } &&
26360 { ac_try='test -s conftest$ac_exeext'
26361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26362 (eval $ac_try) 2>&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); }; }; then
26366 eval "$as_ac_var=yes"
26368 echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26371 eval "$as_ac_var=no"
26373 rm -f conftest.err conftest.$ac_objext \
26374 conftest$ac_exeext conftest.$ac_ext
26376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26378 if test `eval echo '${'$as_ac_var'}'` = yes; then
26379 cat >>confdefs.h <<_ACEOF
26380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26391 for ac_func in snprintf vsnprintf gethostid fseeko
26393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26394 echo "$as_me:$LINENO: checking for $ac_func" >&5
26395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26396 if eval "test \"\${$as_ac_var+set}\" = set"; then
26397 echo $ECHO_N "(cached) $ECHO_C" >&6
26399 cat >conftest.$ac_ext <<_ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26407 #define $ac_func innocuous_$ac_func
26409 /* System header to define __stub macros and hopefully few prototypes,
26410 which can conflict with char $ac_func (); below.
26411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26412 <limits.h> exists even on freestanding compilers. */
26415 # include <limits.h>
26417 # include <assert.h>
26422 /* Override any gcc2 internal prototype to avoid an error. */
26427 /* We use char because int might match the return type of a gcc2
26428 builtin and then its argument prototype would still apply. */
26430 /* The GNU C library defines this for functions which it implements
26431 to always fail with ENOSYS. Some functions are actually named
26432 something starting with __ and the normal name is an alias. */
26433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26436 char (*f) () = $ac_func;
26445 return f != $ac_func;
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26452 (eval $ac_link) 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try='test -z "$ac_c_werror_flag"
26460 || test ! -s conftest.err'
26461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462 (eval $ac_try) 2>&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); }; } &&
26466 { ac_try='test -s conftest$ac_exeext'
26467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468 (eval $ac_try) 2>&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; }; then
26472 eval "$as_ac_var=yes"
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26477 eval "$as_ac_var=no"
26479 rm -f conftest.err conftest.$ac_objext \
26480 conftest$ac_exeext conftest.$ac_ext
26482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26484 if test `eval echo '${'$as_ac_var'}'` = yes; then
26485 cat >>confdefs.h <<_ACEOF
26486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26497 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26500 echo "$as_me:$LINENO: checking for $ac_func" >&5
26501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26502 if eval "test \"\${$as_ac_var+set}\" = set"; then
26503 echo $ECHO_N "(cached) $ECHO_C" >&6
26505 cat >conftest.$ac_ext <<_ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26513 #define $ac_func innocuous_$ac_func
26515 /* System header to define __stub macros and hopefully few prototypes,
26516 which can conflict with char $ac_func (); below.
26517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26518 <limits.h> exists even on freestanding compilers. */
26521 # include <limits.h>
26523 # include <assert.h>
26528 /* Override any gcc2 internal prototype to avoid an error. */
26533 /* We use char because int might match the return type of a gcc2
26534 builtin and then its argument prototype would still apply. */
26536 /* The GNU C library defines this for functions which it implements
26537 to always fail with ENOSYS. Some functions are actually named
26538 something starting with __ and the normal name is an alias. */
26539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26542 char (*f) () = $ac_func;
26551 return f != $ac_func;
26556 rm -f conftest.$ac_objext conftest$ac_exeext
26557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26558 (eval $ac_link) 2>conftest.er1
26560 grep -v '^ *+' conftest.er1 >conftest.err
26562 cat conftest.err >&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } &&
26565 { ac_try='test -z "$ac_c_werror_flag"
26566 || test ! -s conftest.err'
26567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568 (eval $ac_try) 2>&5
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; } &&
26572 { ac_try='test -s conftest$ac_exeext'
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 eval "$as_ac_var=yes"
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26583 eval "$as_ac_var=no"
26585 rm -f conftest.err conftest.$ac_objext \
26586 conftest$ac_exeext conftest.$ac_ext
26588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26590 if test `eval echo '${'$as_ac_var'}'` = yes; then
26591 cat >>confdefs.h <<_ACEOF
26592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26599 # If resolver functions are not in libc check for -lnsl or -lresolv.
26600 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26601 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26602 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26603 echo $ECHO_N "(cached) $ECHO_C" >&6
26605 cat >conftest.$ac_ext <<_ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h. */
26611 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26613 #define gethostbyname_r innocuous_gethostbyname_r
26615 /* System header to define __stub macros and hopefully few prototypes,
26616 which can conflict with char gethostbyname_r (); below.
26617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26618 <limits.h> exists even on freestanding compilers. */
26621 # include <limits.h>
26623 # include <assert.h>
26626 #undef gethostbyname_r
26628 /* Override any gcc2 internal prototype to avoid an error. */
26633 /* We use char because int might match the return type of a gcc2
26634 builtin and then its argument prototype would still apply. */
26635 char gethostbyname_r ();
26636 /* The GNU C library defines this for functions which it implements
26637 to always fail with ENOSYS. Some functions are actually named
26638 something starting with __ and the normal name is an alias. */
26639 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26642 char (*f) () = gethostbyname_r;
26651 return f != gethostbyname_r;
26656 rm -f conftest.$ac_objext conftest$ac_exeext
26657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26658 (eval $ac_link) 2>conftest.er1
26660 grep -v '^ *+' conftest.er1 >conftest.err
26662 cat conftest.err >&5
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); } &&
26665 { ac_try='test -z "$ac_c_werror_flag"
26666 || test ! -s conftest.err'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; } &&
26672 { ac_try='test -s conftest$ac_exeext'
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; }; then
26678 ac_cv_func_gethostbyname_r=yes
26680 echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26683 ac_cv_func_gethostbyname_r=no
26685 rm -f conftest.err conftest.$ac_objext \
26686 conftest$ac_exeext conftest.$ac_ext
26688 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26689 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26690 if test $ac_cv_func_gethostbyname_r = yes; then
26691 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26692 echo "${ECHO_T}using libc's resolver" >&6
26695 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26696 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26697 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 ac_check_lib_save_LIBS=$LIBS
26702 cat >conftest.$ac_ext <<_ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26709 /* Override any gcc2 internal prototype to avoid an error. */
26713 /* We use char because int might match the return type of a gcc2
26714 builtin and then its argument prototype would still apply. */
26715 char gethostbyname_r ();
26719 gethostbyname_r ();
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26726 (eval $ac_link) 2>conftest.er1
26728 grep -v '^ *+' conftest.er1 >conftest.err
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } &&
26733 { ac_try='test -z "$ac_c_werror_flag"
26734 || test ! -s conftest.err'
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; } &&
26740 { ac_try='test -s conftest$ac_exeext'
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_cv_lib_nsl_gethostbyname_r=yes
26748 echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26751 ac_cv_lib_nsl_gethostbyname_r=no
26753 rm -f conftest.err conftest.$ac_objext \
26754 conftest$ac_exeext conftest.$ac_ext
26755 LIBS=$ac_check_lib_save_LIBS
26757 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26758 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26759 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26760 cat >>confdefs.h <<_ACEOF
26761 #define HAVE_LIBNSL 1
26769 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26770 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26771 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26772 echo $ECHO_N "(cached) $ECHO_C" >&6
26774 ac_check_lib_save_LIBS=$LIBS
26775 LIBS="-lresolv $LIBS"
26776 cat >conftest.$ac_ext <<_ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26783 /* Override any gcc2 internal prototype to avoid an error. */
26787 /* We use char because int might match the return type of a gcc2
26788 builtin and then its argument prototype would still apply. */
26789 char gethostbyname_r ();
26793 gethostbyname_r ();
26798 rm -f conftest.$ac_objext conftest$ac_exeext
26799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26800 (eval $ac_link) 2>conftest.er1
26802 grep -v '^ *+' conftest.er1 >conftest.err
26804 cat conftest.err >&5
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); } &&
26807 { ac_try='test -z "$ac_c_werror_flag"
26808 || test ! -s conftest.err'
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; } &&
26814 { ac_try='test -s conftest$ac_exeext'
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ac_cv_lib_resolv_gethostbyname_r=yes
26822 echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26825 ac_cv_lib_resolv_gethostbyname_r=no
26827 rm -f conftest.err conftest.$ac_objext \
26828 conftest$ac_exeext conftest.$ac_ext
26829 LIBS=$ac_check_lib_save_LIBS
26831 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26832 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26833 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26834 cat >>confdefs.h <<_ACEOF
26835 #define HAVE_LIBRESOLV 1
26838 LIBS="-lresolv $LIBS"
26848 for ac_func in inet_pton
26850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26851 echo "$as_me:$LINENO: checking for $ac_func" >&5
26852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26853 if eval "test \"\${$as_ac_var+set}\" = set"; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26856 cat >conftest.$ac_ext <<_ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h. */
26862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26864 #define $ac_func innocuous_$ac_func
26866 /* System header to define __stub macros and hopefully few prototypes,
26867 which can conflict with char $ac_func (); below.
26868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26869 <limits.h> exists even on freestanding compilers. */
26872 # include <limits.h>
26874 # include <assert.h>
26879 /* Override any gcc2 internal prototype to avoid an error. */
26884 /* We use char because int might match the return type of a gcc2
26885 builtin and then its argument prototype would still apply. */
26887 /* The GNU C library defines this for functions which it implements
26888 to always fail with ENOSYS. Some functions are actually named
26889 something starting with __ and the normal name is an alias. */
26890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26893 char (*f) () = $ac_func;
26902 return f != $ac_func;
26907 rm -f conftest.$ac_objext conftest$ac_exeext
26908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26909 (eval $ac_link) 2>conftest.er1
26911 grep -v '^ *+' conftest.er1 >conftest.err
26913 cat conftest.err >&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); } &&
26916 { ac_try='test -z "$ac_c_werror_flag"
26917 || test ! -s conftest.err'
26918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919 (eval $ac_try) 2>&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; } &&
26923 { ac_try='test -s conftest$ac_exeext'
26924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26925 (eval $ac_try) 2>&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); }; }; then
26929 eval "$as_ac_var=yes"
26931 echo "$as_me: failed program was:" >&5
26932 sed 's/^/| /' conftest.$ac_ext >&5
26934 eval "$as_ac_var=no"
26936 rm -f conftest.err conftest.$ac_objext \
26937 conftest$ac_exeext conftest.$ac_ext
26939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26941 if test `eval echo '${'$as_ac_var'}'` = yes; then
26942 cat >>confdefs.h <<_ACEOF
26943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26945 cat >>confdefs.h <<\_ACEOF
26946 #define HAVE_INET_PTON 1
26953 for ac_func in inet_ntop
26955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26956 echo "$as_me:$LINENO: checking for $ac_func" >&5
26957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26958 if eval "test \"\${$as_ac_var+set}\" = set"; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26961 cat >conftest.$ac_ext <<_ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h. */
26967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26969 #define $ac_func innocuous_$ac_func
26971 /* System header to define __stub macros and hopefully few prototypes,
26972 which can conflict with char $ac_func (); below.
26973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26974 <limits.h> exists even on freestanding compilers. */
26977 # include <limits.h>
26979 # include <assert.h>
26984 /* Override any gcc2 internal prototype to avoid an error. */
26989 /* We use char because int might match the return type of a gcc2
26990 builtin and then its argument prototype would still apply. */
26992 /* The GNU C library defines this for functions which it implements
26993 to always fail with ENOSYS. Some functions are actually named
26994 something starting with __ and the normal name is an alias. */
26995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26998 char (*f) () = $ac_func;
27007 return f != $ac_func;
27012 rm -f conftest.$ac_objext conftest$ac_exeext
27013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27014 (eval $ac_link) 2>conftest.er1
27016 grep -v '^ *+' conftest.er1 >conftest.err
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
27021 { ac_try='test -z "$ac_c_werror_flag"
27022 || test ! -s conftest.err'
27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024 (eval $ac_try) 2>&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); }; } &&
27028 { ac_try='test -s conftest$ac_exeext'
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; }; then
27034 eval "$as_ac_var=yes"
27036 echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27039 eval "$as_ac_var=no"
27041 rm -f conftest.err conftest.$ac_objext \
27042 conftest$ac_exeext conftest.$ac_ext
27044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27046 if test `eval echo '${'$as_ac_var'}'` = yes; then
27047 cat >>confdefs.h <<_ACEOF
27048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27050 cat >>confdefs.h <<\_ACEOF
27051 #define HAVE_INET_NTOP 1
27058 for ac_func in gethostbyname2
27060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27061 echo "$as_me:$LINENO: checking for $ac_func" >&5
27062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27063 if eval "test \"\${$as_ac_var+set}\" = set"; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27066 cat >conftest.$ac_ext <<_ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h. */
27072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27074 #define $ac_func innocuous_$ac_func
27076 /* System header to define __stub macros and hopefully few prototypes,
27077 which can conflict with char $ac_func (); below.
27078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27079 <limits.h> exists even on freestanding compilers. */
27082 # include <limits.h>
27084 # include <assert.h>
27089 /* Override any gcc2 internal prototype to avoid an error. */
27094 /* We use char because int might match the return type of a gcc2
27095 builtin and then its argument prototype would still apply. */
27097 /* The GNU C library defines this for functions which it implements
27098 to always fail with ENOSYS. Some functions are actually named
27099 something starting with __ and the normal name is an alias. */
27100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27103 char (*f) () = $ac_func;
27112 return f != $ac_func;
27117 rm -f conftest.$ac_objext conftest$ac_exeext
27118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27119 (eval $ac_link) 2>conftest.er1
27121 grep -v '^ *+' conftest.er1 >conftest.err
27123 cat conftest.err >&5
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } &&
27126 { ac_try='test -z "$ac_c_werror_flag"
27127 || test ! -s conftest.err'
27128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27129 (eval $ac_try) 2>&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); }; } &&
27133 { ac_try='test -s conftest$ac_exeext'
27134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135 (eval $ac_try) 2>&5
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; }; then
27139 eval "$as_ac_var=yes"
27141 echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27144 eval "$as_ac_var=no"
27146 rm -f conftest.err conftest.$ac_objext \
27147 conftest$ac_exeext conftest.$ac_ext
27149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27151 if test `eval echo '${'$as_ac_var'}'` = yes; then
27152 cat >>confdefs.h <<_ACEOF
27153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27155 cat >>confdefs.h <<\_ACEOF
27156 #define HAVE_GETHOSTBYNAME2 1
27163 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27164 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27165 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27166 echo $ECHO_N "(cached) $ECHO_C" >&6
27168 cat >conftest.$ac_ext <<_ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h. */
27174 #include <sys/socket.h>
27178 struct sockaddr s; s.sa_len;
27183 rm -f conftest.$ac_objext
27184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27185 (eval $ac_compile) 2>conftest.er1
27187 grep -v '^ *+' conftest.er1 >conftest.err
27189 cat conftest.err >&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); } &&
27192 { ac_try='test -z "$ac_c_werror_flag"
27193 || test ! -s conftest.err'
27194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195 (eval $ac_try) 2>&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; } &&
27199 { ac_try='test -s conftest.$ac_objext'
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }; then
27205 ac_cv_struct_sockaddr_sa_len=yes
27207 echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27210 ac_cv_struct_sockaddr_sa_len=no
27212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27214 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27215 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27217 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27219 cat >>confdefs.h <<\_ACEOF
27220 #define HAVE_SA_LEN 1
27226 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27227 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27228 if test "${ac_cv_ipv6_support+set}" = set; then
27229 echo $ECHO_N "(cached) $ECHO_C" >&6
27231 cat >conftest.$ac_ext <<_ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27237 #include <sys/types.h>
27238 #include <sys/socket.h>
27239 #include <netinet/in.h>
27243 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27249 rm -f conftest.$ac_objext conftest$ac_exeext
27250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27251 (eval $ac_link) 2>conftest.er1
27253 grep -v '^ *+' conftest.er1 >conftest.err
27255 cat conftest.err >&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } &&
27258 { ac_try='test -z "$ac_c_werror_flag"
27259 || test ! -s conftest.err'
27260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261 (eval $ac_try) 2>&5
27263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); }; } &&
27265 { ac_try='test -s conftest$ac_exeext'
27266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27267 (eval $ac_try) 2>&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); }; }; then
27271 ac_cv_ipv6_support=yes
27273 echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27276 ac_cv_ipv6_support=no
27278 rm -f conftest.err conftest.$ac_objext \
27279 conftest$ac_exeext conftest.$ac_ext
27281 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27282 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27284 if test "$ac_cv_ipv6_support" = yes; then
27286 cat >>confdefs.h <<\_ACEOF
27287 #define HAVE_IPV6 1
27295 for ac_func in strftime
27297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27298 echo "$as_me:$LINENO: checking for $ac_func" >&5
27299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27300 if eval "test \"\${$as_ac_var+set}\" = set"; then
27301 echo $ECHO_N "(cached) $ECHO_C" >&6
27303 cat >conftest.$ac_ext <<_ACEOF
27306 cat confdefs.h >>conftest.$ac_ext
27307 cat >>conftest.$ac_ext <<_ACEOF
27308 /* end confdefs.h. */
27309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27311 #define $ac_func innocuous_$ac_func
27313 /* System header to define __stub macros and hopefully few prototypes,
27314 which can conflict with char $ac_func (); below.
27315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27316 <limits.h> exists even on freestanding compilers. */
27319 # include <limits.h>
27321 # include <assert.h>
27326 /* Override any gcc2 internal prototype to avoid an error. */
27331 /* We use char because int might match the return type of a gcc2
27332 builtin and then its argument prototype would still apply. */
27334 /* The GNU C library defines this for functions which it implements
27335 to always fail with ENOSYS. Some functions are actually named
27336 something starting with __ and the normal name is an alias. */
27337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27340 char (*f) () = $ac_func;
27349 return f != $ac_func;
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27356 (eval $ac_link) 2>conftest.er1
27358 grep -v '^ *+' conftest.er1 >conftest.err
27360 cat conftest.err >&5
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); } &&
27363 { ac_try='test -z "$ac_c_werror_flag"
27364 || test ! -s conftest.err'
27365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366 (eval $ac_try) 2>&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); }; } &&
27370 { ac_try='test -s conftest$ac_exeext'
27371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372 (eval $ac_try) 2>&5
27374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; }; then
27376 eval "$as_ac_var=yes"
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27381 eval "$as_ac_var=no"
27383 rm -f conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27388 if test `eval echo '${'$as_ac_var'}'` = yes; then
27389 cat >>confdefs.h <<_ACEOF
27390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27394 # strftime is in -lintl on SCO UNIX.
27395 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27396 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27397 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27398 echo $ECHO_N "(cached) $ECHO_C" >&6
27400 ac_check_lib_save_LIBS=$LIBS
27401 LIBS="-lintl $LIBS"
27402 cat >conftest.$ac_ext <<_ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27409 /* Override any gcc2 internal prototype to avoid an error. */
27413 /* We use char because int might match the return type of a gcc2
27414 builtin and then its argument prototype would still apply. */
27424 rm -f conftest.$ac_objext conftest$ac_exeext
27425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27426 (eval $ac_link) 2>conftest.er1
27428 grep -v '^ *+' conftest.er1 >conftest.err
27430 cat conftest.err >&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); } &&
27433 { ac_try='test -z "$ac_c_werror_flag"
27434 || test ! -s conftest.err'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; } &&
27440 { ac_try='test -s conftest$ac_exeext'
27441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442 (eval $ac_try) 2>&5
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); }; }; then
27446 ac_cv_lib_intl_strftime=yes
27448 echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27451 ac_cv_lib_intl_strftime=no
27453 rm -f conftest.err conftest.$ac_objext \
27454 conftest$ac_exeext conftest.$ac_ext
27455 LIBS=$ac_check_lib_save_LIBS
27457 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27458 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27459 if test $ac_cv_lib_intl_strftime = yes; then
27460 cat >>confdefs.h <<\_ACEOF
27461 #define HAVE_STRFTIME 1
27464 LIBS="-lintl $LIBS"
27471 for ac_func in vprintf
27473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27474 echo "$as_me:$LINENO: checking for $ac_func" >&5
27475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27476 if eval "test \"\${$as_ac_var+set}\" = set"; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 cat >conftest.$ac_ext <<_ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27487 #define $ac_func innocuous_$ac_func
27489 /* System header to define __stub macros and hopefully few prototypes,
27490 which can conflict with char $ac_func (); below.
27491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27492 <limits.h> exists even on freestanding compilers. */
27495 # include <limits.h>
27497 # include <assert.h>
27502 /* Override any gcc2 internal prototype to avoid an error. */
27507 /* We use char because int might match the return type of a gcc2
27508 builtin and then its argument prototype would still apply. */
27510 /* The GNU C library defines this for functions which it implements
27511 to always fail with ENOSYS. Some functions are actually named
27512 something starting with __ and the normal name is an alias. */
27513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27516 char (*f) () = $ac_func;
27525 return f != $ac_func;
27530 rm -f conftest.$ac_objext conftest$ac_exeext
27531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27532 (eval $ac_link) 2>conftest.er1
27534 grep -v '^ *+' conftest.er1 >conftest.err
27536 cat conftest.err >&5
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } &&
27539 { ac_try='test -z "$ac_c_werror_flag"
27540 || test ! -s conftest.err'
27541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27542 (eval $ac_try) 2>&5
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; } &&
27546 { ac_try='test -s conftest$ac_exeext'
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; }; then
27552 eval "$as_ac_var=yes"
27554 echo "$as_me: failed program was:" >&5
27555 sed 's/^/| /' conftest.$ac_ext >&5
27557 eval "$as_ac_var=no"
27559 rm -f conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext conftest.$ac_ext
27562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27564 if test `eval echo '${'$as_ac_var'}'` = yes; then
27565 cat >>confdefs.h <<_ACEOF
27566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27569 echo "$as_me:$LINENO: checking for _doprnt" >&5
27570 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27571 if test "${ac_cv_func__doprnt+set}" = set; then
27572 echo $ECHO_N "(cached) $ECHO_C" >&6
27574 cat >conftest.$ac_ext <<_ACEOF
27577 cat confdefs.h >>conftest.$ac_ext
27578 cat >>conftest.$ac_ext <<_ACEOF
27579 /* end confdefs.h. */
27580 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27582 #define _doprnt innocuous__doprnt
27584 /* System header to define __stub macros and hopefully few prototypes,
27585 which can conflict with char _doprnt (); below.
27586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27587 <limits.h> exists even on freestanding compilers. */
27590 # include <limits.h>
27592 # include <assert.h>
27597 /* Override any gcc2 internal prototype to avoid an error. */
27602 /* We use char because int might match the return type of a gcc2
27603 builtin and then its argument prototype would still apply. */
27605 /* The GNU C library defines this for functions which it implements
27606 to always fail with ENOSYS. Some functions are actually named
27607 something starting with __ and the normal name is an alias. */
27608 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27611 char (*f) () = _doprnt;
27620 return f != _doprnt;
27625 rm -f conftest.$ac_objext conftest$ac_exeext
27626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27627 (eval $ac_link) 2>conftest.er1
27629 grep -v '^ *+' conftest.er1 >conftest.err
27631 cat conftest.err >&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); } &&
27634 { ac_try='test -z "$ac_c_werror_flag"
27635 || test ! -s conftest.err'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; } &&
27641 { ac_try='test -s conftest$ac_exeext'
27642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27643 (eval $ac_try) 2>&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; }; then
27647 ac_cv_func__doprnt=yes
27649 echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27652 ac_cv_func__doprnt=no
27654 rm -f conftest.err conftest.$ac_objext \
27655 conftest$ac_exeext conftest.$ac_ext
27657 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27658 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27659 if test $ac_cv_func__doprnt = yes; then
27661 cat >>confdefs.h <<\_ACEOF
27662 #define HAVE_DOPRNT 1
27671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27672 # for constant arguments. Useless!
27673 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27674 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27675 if test "${ac_cv_working_alloca_h+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. */
27684 #include <alloca.h>
27688 char *p = (char *) alloca (2 * sizeof (int));
27693 rm -f conftest.$ac_objext conftest$ac_exeext
27694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27695 (eval $ac_link) 2>conftest.er1
27697 grep -v '^ *+' conftest.er1 >conftest.err
27699 cat conftest.err >&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); } &&
27702 { ac_try='test -z "$ac_c_werror_flag"
27703 || test ! -s conftest.err'
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; } &&
27709 { ac_try='test -s conftest$ac_exeext'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27715 ac_cv_working_alloca_h=yes
27717 echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27720 ac_cv_working_alloca_h=no
27722 rm -f conftest.err conftest.$ac_objext \
27723 conftest$ac_exeext conftest.$ac_ext
27725 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27726 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27727 if test $ac_cv_working_alloca_h = yes; then
27729 cat >>confdefs.h <<\_ACEOF
27730 #define HAVE_ALLOCA_H 1
27735 echo "$as_me:$LINENO: checking for alloca" >&5
27736 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27737 if test "${ac_cv_func_alloca_works+set}" = set; then
27738 echo $ECHO_N "(cached) $ECHO_C" >&6
27740 cat >conftest.$ac_ext <<_ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h. */
27747 # define alloca __builtin_alloca
27750 # include <malloc.h>
27751 # define alloca _alloca
27754 # include <alloca.h>
27759 # ifndef alloca /* predefined by HP cc +Olibcalls */
27770 char *p = (char *) alloca (1);
27775 rm -f conftest.$ac_objext conftest$ac_exeext
27776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27777 (eval $ac_link) 2>conftest.er1
27779 grep -v '^ *+' conftest.er1 >conftest.err
27781 cat conftest.err >&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } &&
27784 { ac_try='test -z "$ac_c_werror_flag"
27785 || test ! -s conftest.err'
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; } &&
27791 { ac_try='test -s conftest$ac_exeext'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
27797 ac_cv_func_alloca_works=yes
27799 echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.$ac_ext >&5
27802 ac_cv_func_alloca_works=no
27804 rm -f conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
27807 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27808 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27810 if test $ac_cv_func_alloca_works = yes; then
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_ALLOCA 1
27817 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27818 # that cause trouble. Some versions do not even contain alloca or
27819 # contain a buggy version. If you still want to use their alloca,
27820 # use ar to extract alloca.o from them instead of compiling alloca.c.
27822 ALLOCA=alloca.$ac_objext
27824 cat >>confdefs.h <<\_ACEOF
27829 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27830 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27831 if test "${ac_cv_os_cray+set}" = set; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27834 cat >conftest.$ac_ext <<_ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h. */
27840 #if defined(CRAY) && ! defined(CRAY2)
27847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27848 $EGREP "webecray" >/dev/null 2>&1; then
27856 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27857 echo "${ECHO_T}$ac_cv_os_cray" >&6
27858 if test $ac_cv_os_cray = yes; then
27859 for ac_func in _getb67 GETB67 getb67; do
27860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27861 echo "$as_me:$LINENO: checking for $ac_func" >&5
27862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27863 if eval "test \"\${$as_ac_var+set}\" = set"; then
27864 echo $ECHO_N "(cached) $ECHO_C" >&6
27866 cat >conftest.$ac_ext <<_ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27874 #define $ac_func innocuous_$ac_func
27876 /* System header to define __stub macros and hopefully few prototypes,
27877 which can conflict with char $ac_func (); below.
27878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27879 <limits.h> exists even on freestanding compilers. */
27882 # include <limits.h>
27884 # include <assert.h>
27889 /* Override any gcc2 internal prototype to avoid an error. */
27894 /* We use char because int might match the return type of a gcc2
27895 builtin and then its argument prototype would still apply. */
27897 /* The GNU C library defines this for functions which it implements
27898 to always fail with ENOSYS. Some functions are actually named
27899 something starting with __ and the normal name is an alias. */
27900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27903 char (*f) () = $ac_func;
27912 return f != $ac_func;
27917 rm -f conftest.$ac_objext conftest$ac_exeext
27918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27919 (eval $ac_link) 2>conftest.er1
27921 grep -v '^ *+' conftest.er1 >conftest.err
27923 cat conftest.err >&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
27926 { ac_try='test -z "$ac_c_werror_flag"
27927 || test ! -s conftest.err'
27928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929 (eval $ac_try) 2>&5
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; } &&
27933 { ac_try='test -s conftest$ac_exeext'
27934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; }; then
27939 eval "$as_ac_var=yes"
27941 echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.$ac_ext >&5
27944 eval "$as_ac_var=no"
27946 rm -f conftest.err conftest.$ac_objext \
27947 conftest$ac_exeext conftest.$ac_ext
27949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27951 if test `eval echo '${'$as_ac_var'}'` = yes; then
27953 cat >>confdefs.h <<_ACEOF
27954 #define CRAY_STACKSEG_END $ac_func
27963 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27964 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27965 if test "${ac_cv_c_stack_direction+set}" = set; then
27966 echo $ECHO_N "(cached) $ECHO_C" >&6
27968 if test "$cross_compiling" = yes; then
27969 ac_cv_c_stack_direction=0
27971 cat >conftest.$ac_ext <<_ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h. */
27978 find_stack_direction ()
27980 static char *addr = 0;
27985 return find_stack_direction ();
27988 return (&dummy > addr) ? 1 : -1;
27994 exit (find_stack_direction () < 0);
27997 rm -f conftest$ac_exeext
27998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27999 (eval $ac_link) 2>&5
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }; then
28008 ac_cv_c_stack_direction=1
28010 echo "$as_me: program exited with status $ac_status" >&5
28011 echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28014 ( exit $ac_status )
28015 ac_cv_c_stack_direction=-1
28017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28020 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28021 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28023 cat >>confdefs.h <<_ACEOF
28024 #define STACK_DIRECTION $ac_cv_c_stack_direction
28030 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28031 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28032 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28033 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 ac_check_lib_save_LIBS=$LIBS
28038 cat >conftest.$ac_ext <<_ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h. */
28045 /* Override any gcc2 internal prototype to avoid an error. */
28049 /* We use char because int might match the return type of a gcc2
28050 builtin and then its argument prototype would still apply. */
28060 rm -f conftest.$ac_objext conftest$ac_exeext
28061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28062 (eval $ac_link) 2>conftest.er1
28064 grep -v '^ *+' conftest.er1 >conftest.err
28066 cat conftest.err >&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); } &&
28069 { ac_try='test -z "$ac_c_werror_flag"
28070 || test ! -s conftest.err'
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078 (eval $ac_try) 2>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; }; then
28082 ac_cv_lib_sun_getmntent=yes
28084 echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28087 ac_cv_lib_sun_getmntent=no
28089 rm -f conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
28091 LIBS=$ac_check_lib_save_LIBS
28093 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28094 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28095 if test $ac_cv_lib_sun_getmntent = yes; then
28098 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28099 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28100 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28101 echo $ECHO_N "(cached) $ECHO_C" >&6
28103 ac_check_lib_save_LIBS=$LIBS
28105 cat >conftest.$ac_ext <<_ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28112 /* Override any gcc2 internal prototype to avoid an error. */
28116 /* We use char because int might match the return type of a gcc2
28117 builtin and then its argument prototype would still apply. */
28127 rm -f conftest.$ac_objext conftest$ac_exeext
28128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129 (eval $ac_link) 2>conftest.er1
28131 grep -v '^ *+' conftest.er1 >conftest.err
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag"
28137 || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 ac_cv_lib_seq_getmntent=yes
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 ac_cv_lib_seq_getmntent=no
28156 rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
28158 LIBS=$ac_check_lib_save_LIBS
28160 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28161 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28162 if test $ac_cv_lib_seq_getmntent = yes; then
28165 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28166 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28167 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28168 echo $ECHO_N "(cached) $ECHO_C" >&6
28170 ac_check_lib_save_LIBS=$LIBS
28172 cat >conftest.$ac_ext <<_ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h. */
28179 /* Override any gcc2 internal prototype to avoid an error. */
28183 /* We use char because int might match the return type of a gcc2
28184 builtin and then its argument prototype would still apply. */
28194 rm -f conftest.$ac_objext conftest$ac_exeext
28195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28196 (eval $ac_link) 2>conftest.er1
28198 grep -v '^ *+' conftest.er1 >conftest.err
28200 cat conftest.err >&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } &&
28203 { ac_try='test -z "$ac_c_werror_flag"
28204 || test ! -s conftest.err'
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; } &&
28210 { ac_try='test -s conftest$ac_exeext'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216 ac_cv_lib_gen_getmntent=yes
28218 echo "$as_me: failed program was:" >&5
28219 sed 's/^/| /' conftest.$ac_ext >&5
28221 ac_cv_lib_gen_getmntent=no
28223 rm -f conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
28225 LIBS=$ac_check_lib_save_LIBS
28227 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28228 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28229 if test $ac_cv_lib_gen_getmntent = yes; then
28238 for ac_func in getmntent
28240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28241 echo "$as_me:$LINENO: checking for $ac_func" >&5
28242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28243 if eval "test \"\${$as_ac_var+set}\" = set"; then
28244 echo $ECHO_N "(cached) $ECHO_C" >&6
28246 cat >conftest.$ac_ext <<_ACEOF
28249 cat confdefs.h >>conftest.$ac_ext
28250 cat >>conftest.$ac_ext <<_ACEOF
28251 /* end confdefs.h. */
28252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28254 #define $ac_func innocuous_$ac_func
28256 /* System header to define __stub macros and hopefully few prototypes,
28257 which can conflict with char $ac_func (); below.
28258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28259 <limits.h> exists even on freestanding compilers. */
28262 # include <limits.h>
28264 # include <assert.h>
28269 /* Override any gcc2 internal prototype to avoid an error. */
28274 /* We use char because int might match the return type of a gcc2
28275 builtin and then its argument prototype would still apply. */
28277 /* The GNU C library defines this for functions which it implements
28278 to always fail with ENOSYS. Some functions are actually named
28279 something starting with __ and the normal name is an alias. */
28280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28283 char (*f) () = $ac_func;
28292 return f != $ac_func;
28297 rm -f conftest.$ac_objext conftest$ac_exeext
28298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28299 (eval $ac_link) 2>conftest.er1
28301 grep -v '^ *+' conftest.er1 >conftest.err
28303 cat conftest.err >&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } &&
28306 { ac_try='test -z "$ac_c_werror_flag"
28307 || test ! -s conftest.err'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; } &&
28313 { ac_try='test -s conftest$ac_exeext'
28314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315 (eval $ac_try) 2>&5
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; }; then
28319 eval "$as_ac_var=yes"
28321 echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28324 eval "$as_ac_var=no"
28326 rm -f conftest.err conftest.$ac_objext \
28327 conftest$ac_exeext conftest.$ac_ext
28329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28331 if test `eval echo '${'$as_ac_var'}'` = yes; then
28332 cat >>confdefs.h <<_ACEOF
28333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28340 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28341 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28342 if test "${ac_cv_func_closedir_void+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 if test "$cross_compiling" = yes; then
28346 ac_cv_func_closedir_void=yes
28348 cat >conftest.$ac_ext <<_ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
28355 #include <$ac_header_dirent>
28356 #ifndef __cplusplus
28363 exit (closedir (opendir (".")) != 0);
28368 rm -f conftest$ac_exeext
28369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28370 (eval $ac_link) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28375 (eval $ac_try) 2>&5
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379 ac_cv_func_closedir_void=no
28381 echo "$as_me: program exited with status $ac_status" >&5
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28385 ( exit $ac_status )
28386 ac_cv_func_closedir_void=yes
28388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28391 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28392 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28393 if test $ac_cv_func_closedir_void = yes; then
28395 cat >>confdefs.h <<\_ACEOF
28396 #define CLOSEDIR_VOID 1
28401 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28402 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28403 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28406 if test "$cross_compiling" = yes; then
28407 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28408 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28409 { (exit 1); exit 1; }; }
28411 cat >conftest.$ac_ext <<_ACEOF
28414 cat confdefs.h >>conftest.$ac_ext
28415 cat >>conftest.$ac_ext <<_ACEOF
28416 /* end confdefs.h. */
28418 # include <unistd.h>
28424 /* If this system has a BSD-style setpgrp which takes arguments,
28425 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28426 exit successfully. */
28427 exit (setpgrp (1,1) == -1 ? 0 : 1);
28432 rm -f conftest$ac_exeext
28433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28434 (eval $ac_link) 2>&5
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439 (eval $ac_try) 2>&5
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; }; then
28443 ac_cv_func_setpgrp_void=no
28445 echo "$as_me: program exited with status $ac_status" >&5
28446 echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28449 ( exit $ac_status )
28450 ac_cv_func_setpgrp_void=yes
28452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28455 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28456 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28457 if test $ac_cv_func_setpgrp_void = yes; then
28459 cat >>confdefs.h <<\_ACEOF
28460 #define SETPGRP_VOID 1
28464 # AC_FUNC_FNMATCH dnl use local version
28467 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28468 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28469 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28472 ac_check_lib_save_LIBS=$LIBS
28473 LIBS="-lintl $LIBS"
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28481 /* Override any gcc2 internal prototype to avoid an error. */
28485 /* We use char because int might match the return type of a gcc2
28486 builtin and then its argument prototype would still apply. */
28496 rm -f conftest.$ac_objext conftest$ac_exeext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28498 (eval $ac_link) 2>conftest.er1
28500 grep -v '^ *+' conftest.er1 >conftest.err
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest$ac_exeext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_cv_lib_intl_gettext=yes
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28523 ac_cv_lib_intl_gettext=no
28525 rm -f conftest.err conftest.$ac_objext \
28526 conftest$ac_exeext conftest.$ac_ext
28527 LIBS=$ac_check_lib_save_LIBS
28529 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28530 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28531 if test $ac_cv_lib_intl_gettext = yes; then
28532 LIBS="$LIBS -lintl"
28538 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28539 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28540 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28543 ac_check_lib_save_LIBS=$LIBS
28545 cat >conftest.$ac_ext <<_ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h. */
28552 /* Override any gcc2 internal prototype to avoid an error. */
28556 /* We use char because int might match the return type of a gcc2
28557 builtin and then its argument prototype would still apply. */
28567 rm -f conftest.$ac_objext conftest$ac_exeext
28568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28569 (eval $ac_link) 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag"
28577 || test ! -s conftest.err'
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28589 ac_cv_lib_sun_getpwnam=yes
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 ac_cv_lib_sun_getpwnam=no
28596 rm -f conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
28598 LIBS=$ac_check_lib_save_LIBS
28600 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28601 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28602 if test $ac_cv_lib_sun_getpwnam = yes; then
28603 cat >>confdefs.h <<_ACEOF
28604 #define HAVE_LIBSUN 1
28613 for ac_header in zlib.h
28615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28617 echo "$as_me:$LINENO: checking for $ac_header" >&5
28618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28625 # Is the header compilable?
28626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28628 cat >conftest.$ac_ext <<_ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634 $ac_includes_default
28635 #include <$ac_header>
28637 rm -f conftest.$ac_objext
28638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28639 (eval $ac_compile) 2>conftest.er1
28641 grep -v '^ *+' conftest.er1 >conftest.err
28643 cat conftest.err >&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } &&
28646 { ac_try='test -z "$ac_c_werror_flag"
28647 || test ! -s conftest.err'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; } &&
28653 { ac_try='test -s conftest.$ac_objext'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; }; then
28659 ac_header_compiler=yes
28661 echo "$as_me: failed program was:" >&5
28662 sed 's/^/| /' conftest.$ac_ext >&5
28664 ac_header_compiler=no
28666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28668 echo "${ECHO_T}$ac_header_compiler" >&6
28670 # Is the header present?
28671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28679 #include <$ac_header>
28681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } >/dev/null; then
28689 if test -s conftest.err; then
28690 ac_cpp_err=$ac_c_preproc_warn_flag
28691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28698 if test -z "$ac_cpp_err"; then
28699 ac_header_preproc=yes
28701 echo "$as_me: failed program was:" >&5
28702 sed 's/^/| /' conftest.$ac_ext >&5
28704 ac_header_preproc=no
28706 rm -f conftest.err conftest.$ac_ext
28707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28708 echo "${ECHO_T}$ac_header_preproc" >&6
28710 # So? What about this header?
28711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28717 ac_header_preproc=yes
28720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28734 ## ------------------------------------------ ##
28735 ## Report this to the AC_PACKAGE_NAME lists. ##
28736 ## ------------------------------------------ ##
28739 sed "s/^/$as_me: WARNING: /" >&2
28742 echo "$as_me:$LINENO: checking for $ac_header" >&5
28743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28745 echo $ECHO_N "(cached) $ECHO_C" >&6
28747 eval "$as_ac_Header=\$ac_header_preproc"
28749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28754 cat >>confdefs.h <<_ACEOF
28755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28762 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28763 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28764 if test "${ac_cv_lib_z_deflate+set}" = set; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 ac_check_lib_save_LIBS=$LIBS
28769 cat >conftest.$ac_ext <<_ACEOF
28772 cat confdefs.h >>conftest.$ac_ext
28773 cat >>conftest.$ac_ext <<_ACEOF
28774 /* end confdefs.h. */
28776 /* Override any gcc2 internal prototype to avoid an error. */
28780 /* We use char because int might match the return type of a gcc2
28781 builtin and then its argument prototype would still apply. */
28791 rm -f conftest.$ac_objext conftest$ac_exeext
28792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793 (eval $ac_link) 2>conftest.er1
28795 grep -v '^ *+' conftest.er1 >conftest.err
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } &&
28800 { ac_try='test -z "$ac_c_werror_flag"
28801 || test ! -s conftest.err'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; } &&
28807 { ac_try='test -s conftest$ac_exeext'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; }; then
28813 ac_cv_lib_z_deflate=yes
28815 echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28818 ac_cv_lib_z_deflate=no
28820 rm -f conftest.err conftest.$ac_objext \
28821 conftest$ac_exeext conftest.$ac_ext
28822 LIBS=$ac_check_lib_save_LIBS
28824 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28825 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28826 if test $ac_cv_lib_z_deflate = yes; then
28831 if test x$FDLIBS = x-lz; then
28832 cat >>confdefs.h <<\_ACEOF
28833 #define HAVE_LIBZ 1
28840 # Check for ACL libraries
28843 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28844 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28845 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28846 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28850 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28852 # Is the header compilable?
28853 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28854 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28855 cat >conftest.$ac_ext <<_ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h. */
28861 $ac_includes_default
28862 #include <sys/acl.h>
28864 rm -f conftest.$ac_objext
28865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28866 (eval $ac_compile) 2>conftest.er1
28868 grep -v '^ *+' conftest.er1 >conftest.err
28870 cat conftest.err >&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } &&
28873 { ac_try='test -z "$ac_c_werror_flag"
28874 || test ! -s conftest.err'
28875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876 (eval $ac_try) 2>&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); }; } &&
28880 { ac_try='test -s conftest.$ac_objext'
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_header_compiler=yes
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28891 ac_header_compiler=no
28893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28895 echo "${ECHO_T}$ac_header_compiler" >&6
28897 # Is the header present?
28898 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28899 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28900 cat >conftest.$ac_ext <<_ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h. */
28906 #include <sys/acl.h>
28908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28911 grep -v '^ *+' conftest.er1 >conftest.err
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } >/dev/null; then
28916 if test -s conftest.err; then
28917 ac_cpp_err=$ac_c_preproc_warn_flag
28918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28925 if test -z "$ac_cpp_err"; then
28926 ac_header_preproc=yes
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 ac_header_preproc=no
28933 rm -f conftest.err conftest.$ac_ext
28934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28935 echo "${ECHO_T}$ac_header_preproc" >&6
28937 # So? What about this header?
28938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28940 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28941 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28943 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28944 ac_header_preproc=yes
28947 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28948 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
28950 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28952 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
28954 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28955 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28956 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28957 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28958 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28961 ## ------------------------------------------ ##
28962 ## Report this to the AC_PACKAGE_NAME lists. ##
28963 ## ------------------------------------------ ##
28966 sed "s/^/$as_me: WARNING: /" >&2
28969 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28970 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28971 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28974 ac_cv_header_sys_acl_h=$ac_header_preproc
28976 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28977 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28982 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28983 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28984 if test "${ac_cv_func_acl_get_file+set}" = set; then
28985 echo $ECHO_N "(cached) $ECHO_C" >&6
28987 cat >conftest.$ac_ext <<_ACEOF
28990 cat confdefs.h >>conftest.$ac_ext
28991 cat >>conftest.$ac_ext <<_ACEOF
28992 /* end confdefs.h. */
28993 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28995 #define acl_get_file innocuous_acl_get_file
28997 /* System header to define __stub macros and hopefully few prototypes,
28998 which can conflict with char acl_get_file (); below.
28999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29000 <limits.h> exists even on freestanding compilers. */
29003 # include <limits.h>
29005 # include <assert.h>
29008 #undef acl_get_file
29010 /* Override any gcc2 internal prototype to avoid an error. */
29015 /* We use char because int might match the return type of a gcc2
29016 builtin and then its argument prototype would still apply. */
29017 char acl_get_file ();
29018 /* The GNU C library defines this for functions which it implements
29019 to always fail with ENOSYS. Some functions are actually named
29020 something starting with __ and the normal name is an alias. */
29021 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29024 char (*f) () = acl_get_file;
29033 return f != acl_get_file;
29038 rm -f conftest.$ac_objext conftest$ac_exeext
29039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29040 (eval $ac_link) 2>conftest.er1
29042 grep -v '^ *+' conftest.er1 >conftest.err
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } &&
29047 { ac_try='test -z "$ac_c_werror_flag"
29048 || test ! -s conftest.err'
29049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29050 (eval $ac_try) 2>&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; } &&
29054 { ac_try='test -s conftest$ac_exeext'
29055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29056 (eval $ac_try) 2>&5
29058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059 (exit $ac_status); }; }; then
29060 ac_cv_func_acl_get_file=yes
29062 echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29065 ac_cv_func_acl_get_file=no
29067 rm -f conftest.err conftest.$ac_objext \
29068 conftest$ac_exeext conftest.$ac_ext
29070 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29071 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29072 if test $ac_cv_func_acl_get_file = yes; then
29075 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29076 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29077 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29078 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 ac_check_lib_save_LIBS=$LIBS
29082 cat >conftest.$ac_ext <<_ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h. */
29089 /* Override any gcc2 internal prototype to avoid an error. */
29093 /* We use char because int might match the return type of a gcc2
29094 builtin and then its argument prototype would still apply. */
29095 char acl_get_file ();
29104 rm -f conftest.$ac_objext conftest$ac_exeext
29105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29106 (eval $ac_link) 2>conftest.er1
29108 grep -v '^ *+' conftest.er1 >conftest.err
29110 cat conftest.err >&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); } &&
29113 { ac_try='test -z "$ac_c_werror_flag"
29114 || test ! -s conftest.err'
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; } &&
29120 { ac_try='test -s conftest$ac_exeext'
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
29126 ac_cv_lib_acl_acl_get_file=yes
29128 echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29131 ac_cv_lib_acl_acl_get_file=no
29133 rm -f conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
29135 LIBS=$ac_check_lib_save_LIBS
29137 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29138 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29139 if test $ac_cv_lib_acl_acl_get_file = yes; then
29140 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29142 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29143 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29144 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29147 ac_check_lib_save_LIBS=$LIBS
29149 cat >conftest.$ac_ext <<_ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h. */
29156 /* Override any gcc2 internal prototype to avoid an error. */
29160 /* We use char because int might match the return type of a gcc2
29161 builtin and then its argument prototype would still apply. */
29171 rm -f conftest.$ac_objext conftest$ac_exeext
29172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29173 (eval $ac_link) 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } &&
29180 { ac_try='test -z "$ac_c_werror_flag"
29181 || test ! -s conftest.err'
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; } &&
29187 { ac_try='test -s conftest$ac_exeext'
29188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29189 (eval $ac_try) 2>&5
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); }; }; then
29193 ac_cv_lib_sec_acltotext=yes
29195 echo "$as_me: failed program was:" >&5
29196 sed 's/^/| /' conftest.$ac_ext >&5
29198 ac_cv_lib_sec_acltotext=no
29200 rm -f conftest.err conftest.$ac_objext \
29201 conftest$ac_exeext conftest.$ac_ext
29202 LIBS=$ac_check_lib_save_LIBS
29204 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29205 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29206 if test $ac_cv_lib_sec_acltotext = yes; then
29207 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29216 if test $have_acl = yes; then
29217 cat >>confdefs.h <<\_ACEOF
29224 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29225 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29226 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29229 ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lpthread $LIBS"
29231 cat >conftest.$ac_ext <<_ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h. */
29238 /* Override any gcc2 internal prototype to avoid an error. */
29242 /* We use char because int might match the return type of a gcc2
29243 builtin and then its argument prototype would still apply. */
29244 char pthread_create ();
29253 rm -f conftest.$ac_objext conftest$ac_exeext
29254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29255 (eval $ac_link) 2>conftest.er1
29257 grep -v '^ *+' conftest.er1 >conftest.err
29259 cat conftest.err >&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } &&
29262 { ac_try='test -z "$ac_c_werror_flag"
29263 || test ! -s conftest.err'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } &&
29269 { ac_try='test -s conftest$ac_exeext'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
29275 ac_cv_lib_pthread_pthread_create=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_cv_lib_pthread_pthread_create=no
29282 rm -f conftest.err conftest.$ac_objext \
29283 conftest$ac_exeext conftest.$ac_ext
29284 LIBS=$ac_check_lib_save_LIBS
29286 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29287 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29288 if test $ac_cv_lib_pthread_pthread_create = yes; then
29289 PTHREAD_LIB="-lpthread"
29291 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29292 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29293 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29294 echo $ECHO_N "(cached) $ECHO_C" >&6
29296 ac_check_lib_save_LIBS=$LIBS
29297 LIBS="-lpthreads $LIBS"
29298 cat >conftest.$ac_ext <<_ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h. */
29305 /* Override any gcc2 internal prototype to avoid an error. */
29309 /* We use char because int might match the return type of a gcc2
29310 builtin and then its argument prototype would still apply. */
29311 char pthread_create ();
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29322 (eval $ac_link) 2>conftest.er1
29324 grep -v '^ *+' conftest.er1 >conftest.err
29326 cat conftest.err >&5
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); } &&
29329 { ac_try='test -z "$ac_c_werror_flag"
29330 || test ! -s conftest.err'
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; } &&
29336 { ac_try='test -s conftest$ac_exeext'
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; }; then
29342 ac_cv_lib_pthreads_pthread_create=yes
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29347 ac_cv_lib_pthreads_pthread_create=no
29349 rm -f conftest.err conftest.$ac_objext \
29350 conftest$ac_exeext conftest.$ac_ext
29351 LIBS=$ac_check_lib_save_LIBS
29353 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29354 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29355 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29356 PTHREAD_LIB="-lpthreads"
29358 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29359 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29360 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29363 ac_check_lib_save_LIBS=$LIBS
29365 cat >conftest.$ac_ext <<_ACEOF
29368 cat confdefs.h >>conftest.$ac_ext
29369 cat >>conftest.$ac_ext <<_ACEOF
29370 /* end confdefs.h. */
29372 /* Override any gcc2 internal prototype to avoid an error. */
29376 /* We use char because int might match the return type of a gcc2
29377 builtin and then its argument prototype would still apply. */
29378 char pthread_create ();
29387 rm -f conftest.$ac_objext conftest$ac_exeext
29388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29389 (eval $ac_link) 2>conftest.er1
29391 grep -v '^ *+' conftest.er1 >conftest.err
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } &&
29396 { ac_try='test -z "$ac_c_werror_flag"
29397 || test ! -s conftest.err'
29398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 (eval $ac_try) 2>&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 (exit $ac_status); }; } &&
29403 { ac_try='test -s conftest$ac_exeext'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
29409 ac_cv_lib_c_r_pthread_create=yes
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_cv_lib_c_r_pthread_create=no
29416 rm -f conftest.err conftest.$ac_objext \
29417 conftest$ac_exeext conftest.$ac_ext
29418 LIBS=$ac_check_lib_save_LIBS
29420 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29421 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29422 if test $ac_cv_lib_c_r_pthread_create = yes; then
29423 PTHREAD_LIB="-lc_r"
29425 echo "$as_me:$LINENO: checking for pthread_create" >&5
29426 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29427 if test "${ac_cv_func_pthread_create+set}" = set; then
29428 echo $ECHO_N "(cached) $ECHO_C" >&6
29430 cat >conftest.$ac_ext <<_ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h. */
29436 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29438 #define pthread_create innocuous_pthread_create
29440 /* System header to define __stub macros and hopefully few prototypes,
29441 which can conflict with char pthread_create (); below.
29442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29443 <limits.h> exists even on freestanding compilers. */
29446 # include <limits.h>
29448 # include <assert.h>
29451 #undef pthread_create
29453 /* Override any gcc2 internal prototype to avoid an error. */
29458 /* We use char because int might match the return type of a gcc2
29459 builtin and then its argument prototype would still apply. */
29460 char pthread_create ();
29461 /* The GNU C library defines this for functions which it implements
29462 to always fail with ENOSYS. Some functions are actually named
29463 something starting with __ and the normal name is an alias. */
29464 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29467 char (*f) () = pthread_create;
29476 return f != pthread_create;
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29483 (eval $ac_link) 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
29490 { ac_try='test -z "$ac_c_werror_flag"
29491 || test ! -s conftest.err'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest$ac_exeext'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; }; then
29503 ac_cv_func_pthread_create=yes
29505 echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29508 ac_cv_func_pthread_create=no
29510 rm -f conftest.err conftest.$ac_objext \
29511 conftest$ac_exeext conftest.$ac_ext
29513 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29514 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29527 cat >>confdefs.h <<\_ACEOF
29533 CFLAGS=${CFLAGS--O}
29535 if test x$have_gcc = xyes ; then
29536 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29537 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29539 LDFLAGS=${LDFLAGS--O}
29540 DB_LIBS="${SQL_LFLAGS}"
29541 CPPFLAGS="$CPPFLAGS"
29569 # Finally we set appropriate distribution specific
29570 # variables and defaults
29572 # PFILES are platform specific files
29573 PFILES="platforms/Makefile"
29577 hostname=`uname -n | cut -d '.' -f 1`
29578 if test x${hostname} = x ; then
29579 hostname="localhost"
29581 case "$DISTNAME" in
29584 PSCMD="ps -e -o pid,comm"
29585 PFILES="${PFILES} \
29586 platforms/aix/Makefile"
29587 TAPEDRIVE="/dev/rmt0.1"
29591 PTHREAD_LIB="-lpthread -lexc"
29592 if test "${CC}" = "gcc" ; then
29599 TAPEDRIVE="/dev/nrmt0"
29602 DISTVER=`uname -a |awk '{print $3}'`
29603 TAPEDRIVE="/dev/nrmt0"
29604 PTHREAD_LIB="-pthread"
29605 CFLAGS="${CFLAGS} -pthread"
29606 PSCMD="ps -ax -o pid,command"
29609 PFILES="${PFILES} \
29610 platforms/bsdi/Makefile \
29611 platforms/bsdi/bacula-fd \
29612 platforms/bsdi/bacula-sd \
29613 platforms/bsdi/bacula-dir"
29614 largefile_support="yes"
29617 DISTVER=`uname -a |awk '{print $3}'`
29618 TAPEDRIVE="/dev/nrst0"
29620 WCFLAGS="-mwindows"
29621 WLDFLAGS="-mwindows"
29625 TAPEDRIVE="/dev/nst0"
29626 PSCMD="ps -e -o pid,command"
29628 PFILES="${PFILES} \
29629 platforms/darwin/Makefile"
29632 DISTVER=`cat /etc/debian_version`
29633 TAPEDRIVE="/dev/nrst0"
29634 PSCMD="ps -e -o pid,command"
29637 DISTVER=`uname -a |awk '{print $3}'`
29638 VER=`echo $DISTVER | cut -c 1`
29639 if test x$VER = x4 ; then
29640 PTHREAD_LIB="${PTHREAD_LIBS}"
29641 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
29645 TAPEDRIVE="/dev/nrsa0"
29646 PSCMD="ps -ax -o pid,command"
29647 PFILES="${PFILES} \
29648 platforms/freebsd/Makefile \
29649 platforms/freebsd/bacula-fd \
29650 platforms/freebsd/bacula-sd \
29651 platforms/freebsd/bacula-dir"
29652 largefile_support="yes"
29655 PSCMD="UNIX95=1 ps -e -o pid,comm"
29656 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29658 TAPEDRIVE="/dev/rmt/0hnb"
29659 PTHREAD_LIB="-lpthread"
29660 cat >>confdefs.h <<\_ACEOF
29661 #define _INCLUDE_LONGLONG 1
29667 TAPEDRIVE="/dev/rmt/0cbn"
29668 PSCMD="ps -e -o pid,comm"
29669 PFILES="${PFILES} \
29670 platforms/irix/Makefile \
29671 platforms/irix/bacula-fd \
29672 platforms/irix/bacula-sd \
29673 platforms/irix/bacula-dir"
29676 DISTVER=`uname -a |awk '{print $3}'`
29679 TAPEDRIVE="/dev/nrst0"
29680 PSCMD="ps -ax -o pid,command"
29681 PTHREAD_LIB="-pthread"
29682 CFLAGS="${CFLAGS} -pthread"
29685 DISTVER=`uname -a |awk '{print $3}'`
29688 TAPEDRIVE="/dev/nrst0"
29689 PSCMD="ps -ax -o pid,command"
29690 PTHREAD_LIB="-pthread"
29691 CFLAGS="${CFLAGS} -pthread"
29692 PFILES="${PFILES} \
29693 platforms/openbsd/Makefile \
29694 platforms/openbsd/bacula-fd \
29695 platforms/openbsd/bacula-sd \
29696 platforms/openbsd/bacula-dir"
29699 if test -f /etc/whitebox-release ; then
29700 f=/etc/whitebox-release
29702 f=/etc/redhat-release
29704 if test `cat $f | grep release |\
29705 cut -f 3 -d ' '`x = "Enterprise"x ; then
29706 DISTVER="Enterprise "`cat $f | grep release |\
29709 DISTVER=`cat /etc/redhat-release | grep release |\
29712 TAPEDRIVE="/dev/nst0"
29713 PSCMD="ps -e -o pid,command"
29714 PFILES="${PFILES} \
29715 platforms/redhat/Makefile \
29716 platforms/redhat/bacula-fd \
29717 platforms/redhat/bacula-sd \
29718 platforms/redhat/bacula-dir \
29719 platforms/redhat/bacula.spec \
29723 DISTVER=`cat /etc/mandrake-release | grep release |\
29725 TAPEDRIVE="/dev/nst0"
29726 PSCMD="ps -e -o pid,command"
29727 PFILES="${PFILES} \
29728 platforms/mandrake/Makefile \
29729 platforms/mandrake/bacula-fd \
29730 platforms/mandrake/bacula-sd \
29731 platforms/mandrake/bacula-dir \
29732 platforms/mandrake/bacula.spec \
29736 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29737 TAPEDRIVE="/dev/nst0"
29738 PSCMD="ps -e -o pid,command"
29739 PFILES="${PFILES} \
29740 platforms/gentoo/Makefile \
29741 platforms/gentoo/bacula-init \
29742 platforms/gentoo/bacula-fd \
29743 platforms/gentoo/bacula-sd \
29744 platforms/gentoo/bacula-dir"
29747 DISTVER=`cat /etc/slackware-version`
29748 TAPEDRIVE="/dev/nst0"
29749 PSCMD="ps -e -o pid,command"
29750 PFILES="${PFILES} \
29751 platforms/slackware/Makefile \
29752 platforms/slackware/rc.bacula-fd \
29753 platforms/slackware/rc.bacula-sd \
29754 platforms/slackware/rc.bacula-dir\
29755 platforms/slackware/functions.bacula"
29759 TAPEDRIVE="/dev/rmt/0cbn"
29760 PSCMD="ps -e -o pid,comm"
29761 PFILES="${PFILES} \
29762 platforms/solaris/Makefile \
29763 platforms/solaris/bacula-fd \
29764 platforms/solaris/bacula-sd \
29765 platforms/solaris/bacula-dir"
29766 if test x$DISTVER = x5.6 ; then
29767 cat >>confdefs.h <<\_ACEOF
29768 #define HAVE_OLD_SOCKOPT 1
29772 LIBS="$LIBS -lresolv"
29775 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29777 TAPEDRIVE="/dev/nst0"
29778 PSCMD="ps -e -o pid,command"
29779 PFILES="${PFILES} \
29780 platforms/suse/Makefile \
29781 platforms/suse/bacula-fd \
29782 platforms/suse/bacula-sd \
29783 platforms/suse/bacula-dir \
29784 platforms/suse/bacula \
29785 platforms/suse/bacula.spec"
29790 TAPEDRIVE="/dev/nst0"
29791 PSCMD="ps -e -o pid,command"
29792 PFILES="${PFILES} \
29793 platforms/suse/Makefile \
29794 platforms/suse/bacula-fd \
29795 platforms/suse/bacula-sd \
29796 platforms/suse/bacula-dir"
29800 TAPEDRIVE="/dev/nst0"
29803 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29809 LIBS="$PTHREAD_LIB $LIBS"
29811 cat >>confdefs.h <<_ACEOF
29815 cat >>confdefs.h <<_ACEOF
29826 MCOMMON=./autoconf/Make.common
29829 if test "x${subsysdir}" = "x${sbindir}" ; then
29832 echo "You have set both --sbindir and --with-subsys-dir"
29833 echo " equal to: ${subsysdir} "
29834 echo "This is not permitted. Please reconfigure."
29836 echo "Aborting configuration ..."
29842 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/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"
29843 ac_config_commands="$ac_config_commands default"
29844 cat >confcache <<\_ACEOF
29845 # This file is a shell script that caches the results of configure
29846 # tests run on this system so they can be shared between configure
29847 # scripts and configure runs, see configure's option --config-cache.
29848 # It is not useful on other systems. If it contains results you don't
29849 # want to keep, you may remove or edit it.
29851 # config.status only pays attention to the cache file if you give it
29852 # the --recheck option to rerun configure.
29854 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29855 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29856 # following values.
29860 # The following way of writing the cache mishandles newlines in values,
29861 # but we know of no workaround that is simple, portable, and efficient.
29862 # So, don't put newlines in cache variables' values.
29863 # Ultrix sh set writes to stderr and can't be redirected directly,
29864 # and sets the high bit in the cache file unless we assign to the vars.
29867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29869 # `set' does not quote correctly, so add quotes (double-quote
29870 # substitution turns \\\\ into \\, and sed turns \\ into \).
29873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29876 # `set' quotes correctly as required by POSIX, so do not add quotes.
29878 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29887 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29889 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29890 if test -w $cache_file; then
29891 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29892 cat confcache >$cache_file
29894 echo "not updating unwritable cache $cache_file"
29899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29900 # Let make expand exec_prefix.
29901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29905 # trailing colons and then remove the whole line if VPATH becomes empty
29906 # (actually we leave an empty line to preserve line numbers).
29907 if test "x$srcdir" = x.; then
29908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29909 s/:*\$(srcdir):*/:/;
29910 s/:*\${srcdir}:*/:/;
29912 s/^\([^=]*=[ ]*\):*/\1/;
29918 DEFS=-DHAVE_CONFIG_H
29922 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29923 # 1. Remove the extension, and $U if already installed.
29924 ac_i=`echo "$ac_i" |
29925 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29927 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29928 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29930 LIBOBJS=$ac_libobjs
29932 LTLIBOBJS=$ac_ltlibobjs
29936 : ${CONFIG_STATUS=./config.status}
29937 ac_clean_files_save=$ac_clean_files
29938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29939 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29940 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29941 cat >$CONFIG_STATUS <<_ACEOF
29943 # Generated by $as_me.
29944 # Run this file to recreate the current configuration.
29945 # Compiler output produced by configure, useful for debugging
29946 # configure, is in config.log if it exists.
29949 ac_cs_recheck=false
29951 SHELL=\${CONFIG_SHELL-$SHELL}
29954 cat >>$CONFIG_STATUS <<\_ACEOF
29955 ## --------------------- ##
29956 ## M4sh Initialization. ##
29957 ## --------------------- ##
29959 # Be Bourne compatible
29960 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29963 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29964 # is contrary to our usage. Disable this feature.
29965 alias -g '${1+"$@"}'='"$@"'
29966 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29969 DUALCASE=1; export DUALCASE # for MKS sh
29971 # Support unset when possible.
29972 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29979 # Work around bugs in pre-3.0 UWIN ksh.
29980 $as_unset ENV MAIL MAILPATH
29987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29989 LC_TELEPHONE LC_TIME
29991 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29992 eval $as_var=C; export $as_var
29998 # Required to use basename.
29999 if expr a : '\(a\)' >/dev/null 2>&1; then
30005 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30006 as_basename=basename
30012 # Name of the executable.
30013 as_me=`$as_basename "$0" ||
30014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30015 X"$0" : 'X\(//\)$' \| \
30016 X"$0" : 'X\(/\)$' \| \
30017 . : '\(.\)' 2>/dev/null ||
30019 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30020 /^X\/\(\/\/\)$/{ s//\1/; q; }
30021 /^X\/\(\/\).*/{ s//\1/; q; }
30025 # PATH needs CR, and LINENO needs CR and PATH.
30026 # Avoid depending upon Character Ranges.
30027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30030 as_cr_digits='0123456789'
30031 as_cr_alnum=$as_cr_Letters$as_cr_digits
30033 # The user is always right.
30034 if test "${PATH_SEPARATOR+set}" != set; then
30035 echo "#! /bin/sh" >conf$$.sh
30036 echo "exit 0" >>conf$$.sh
30038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30047 as_lineno_1=$LINENO
30048 as_lineno_2=$LINENO
30049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30050 test "x$as_lineno_1" != "x$as_lineno_2" &&
30051 test "x$as_lineno_3" = "x$as_lineno_2" || {
30052 # Find who we are. Look in the path if we contain no path at all
30055 *[\\/]* ) as_myself=$0 ;;
30056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057 for as_dir in $PATH
30060 test -z "$as_dir" && as_dir=.
30061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30066 # We did not find ourselves, most probably we were run as `sh COMMAND'
30067 # in which case we are not to be found in the path.
30068 if test "x$as_myself" = x; then
30071 if test ! -f "$as_myself"; then
30072 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30073 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30074 { (exit 1); exit 1; }; }
30076 case $CONFIG_SHELL in
30078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30079 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30082 test -z "$as_dir" && as_dir=.
30083 for as_base in sh bash ksh sh5; do
30086 if ("$as_dir/$as_base" -c '
30087 as_lineno_1=$LINENO
30088 as_lineno_2=$LINENO
30089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30090 test "x$as_lineno_1" != "x$as_lineno_2" &&
30091 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30092 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30093 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30094 CONFIG_SHELL=$as_dir/$as_base
30095 export CONFIG_SHELL
30096 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30104 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30105 # uniformly replaced by the line number. The first 'sed' inserts a
30106 # line-number line before each line; the second 'sed' does the real
30107 # work. The second script uses 'N' to pair each line-number line
30108 # with the numbered line, and appends trailing '-' during
30109 # substitution so that $LINENO is not a special case at line end.
30110 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30111 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30112 sed '=' <$as_myself |
30117 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30120 s,^['$as_cr_digits']*\n,,
30121 ' >$as_me.lineno &&
30122 chmod +x $as_me.lineno ||
30123 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30124 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30125 { (exit 1); exit 1; }; }
30127 # Don't try to exec as it changes $[0], causing all sort of problems
30128 # (the dirname of $[0] is not the place where we might find the
30129 # original and so on. Autoconf is especially sensible to this).
30131 # Exit status is that of the last command.
30136 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30137 *c*,-n*) ECHO_N= ECHO_C='
30139 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30140 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30143 if expr a : '\(a\)' >/dev/null 2>&1; then
30149 rm -f conf$$ conf$$.exe conf$$.file
30151 if ln -s conf$$.file conf$$ 2>/dev/null; then
30152 # We could just check for DJGPP; but this test a) works b) is more generic
30153 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30154 if test -f conf$$.exe; then
30155 # Don't use ln at all; we don't have any links
30160 elif ln conf$$.file conf$$ 2>/dev/null; then
30165 rm -f conf$$ conf$$.exe conf$$.file
30167 if mkdir -p . 2>/dev/null; then
30170 test -d ./-p && rmdir ./-p
30174 as_executable_p="test -f"
30176 # Sed expression to map a string onto a valid CPP name.
30177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30179 # Sed expression to map a string onto a valid variable name.
30180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30184 # We need space, tab and new line, in precisely that order.
30194 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30195 # report actual input values of CONFIG_FILES etc. instead of their
30196 # values after options handling. Logging --version etc. is OK.
30200 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30201 ## Running $as_me. ##
30206 This file was extended by $as_me, which was
30207 generated by GNU Autoconf 2.59. Invocation command line was
30209 CONFIG_FILES = $CONFIG_FILES
30210 CONFIG_HEADERS = $CONFIG_HEADERS
30211 CONFIG_LINKS = $CONFIG_LINKS
30212 CONFIG_COMMANDS = $CONFIG_COMMANDS
30216 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30220 # Files that config.status was made for.
30221 if test -n "$ac_config_files"; then
30222 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30225 if test -n "$ac_config_headers"; then
30226 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30229 if test -n "$ac_config_links"; then
30230 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30233 if test -n "$ac_config_commands"; then
30234 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30237 cat >>$CONFIG_STATUS <<\_ACEOF
30240 \`$as_me' instantiates files from templates according to the
30241 current configuration.
30243 Usage: $0 [OPTIONS] [FILE]...
30245 -h, --help print this help, then exit
30246 -V, --version print version number, then exit
30247 -q, --quiet do not print progress messages
30248 -d, --debug don't remove temporary files
30249 --recheck update $as_me by reconfiguring in the same conditions
30250 --file=FILE[:TEMPLATE]
30251 instantiate the configuration file FILE
30252 --header=FILE[:TEMPLATE]
30253 instantiate the configuration header FILE
30255 Configuration files:
30258 Configuration headers:
30261 Configuration commands:
30264 Report bugs to <bug-autoconf@gnu.org>."
30267 cat >>$CONFIG_STATUS <<_ACEOF
30270 configured by $0, generated by GNU Autoconf 2.59,
30271 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30273 Copyright (C) 2003 Free Software Foundation, Inc.
30274 This config.status script is free software; the Free Software Foundation
30275 gives unlimited permission to copy, distribute and modify it."
30280 cat >>$CONFIG_STATUS <<\_ACEOF
30281 # If no file are specified by the user, then we need to provide default
30282 # value. By we need to know if files were specified by the user.
30288 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30289 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30297 *) # This is not an option, so the user has probably given explicit
30300 ac_need_defaults=false;;
30304 # Handling of the options.
30306 cat >>$CONFIG_STATUS <<\_ACEOF
30307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30309 --version | --vers* | -V )
30310 echo "$ac_cs_version"; exit 0 ;;
30312 # Conflict between --help and --header
30313 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30314 Try \`$0 --help' for more information." >&5
30315 echo "$as_me: error: ambiguous option: $1
30316 Try \`$0 --help' for more information." >&2;}
30317 { (exit 1); exit 1; }; };;
30318 --help | --hel | -h )
30319 echo "$ac_cs_usage"; exit 0 ;;
30320 --debug | --d* | -d )
30322 --file | --fil | --fi | --f )
30324 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30325 ac_need_defaults=false;;
30326 --header | --heade | --head | --hea )
30328 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30329 ac_need_defaults=false;;
30330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30334 # This is an error.
30335 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30336 Try \`$0 --help' for more information." >&5
30337 echo "$as_me: error: unrecognized option: $1
30338 Try \`$0 --help' for more information." >&2;}
30339 { (exit 1); exit 1; }; } ;;
30341 *) ac_config_targets="$ac_config_targets $1" ;;
30347 ac_configure_extra_args=
30349 if $ac_cs_silent; then
30351 ac_configure_extra_args="$ac_configure_extra_args --silent"
30355 cat >>$CONFIG_STATUS <<_ACEOF
30356 if \$ac_cs_recheck; then
30357 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30358 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30363 cat >>$CONFIG_STATUS <<_ACEOF
30365 # INIT-COMMANDS section.
30368 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30369 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30371 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30372 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30373 LINGUAS="${LINGUAS-%UNSET%}"
30380 cat >>$CONFIG_STATUS <<\_ACEOF
30381 for ac_config_target in $ac_config_targets
30383 case "$ac_config_target" in
30384 # Handling of arguments.
30385 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30387 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/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}