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 if test -d $python_root/lib64/python2.2/config; then
14960 PYTHON_LIBS="-L$python_root/lib64/python2.2/config -lpython2.2"
14962 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14965 elif test -f $python_root/include/python2.3/Python.h; then
14966 PYTHON_INCDIR=-I$python_root/include/python2.3
14967 if test -d $python_root/lib64/python2.3/config; then
14968 PYTHON_LIBS="-L$python_root/lib64/python2.3/config -lpython2.3"
14970 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14973 elif test -f $python_root/include/python2.4/Python.h; then
14974 PYTHON_INCDIR=-I$python_root/include/python2.4
14975 if test -d $python_root/lib64/python2.4/config; then
14976 PYTHON_LIBS="-L$python_root/lib64/python2.4/config -lpython2.4"
14978 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14983 if test x$PYTHON_INCDIR = x; then
14984 if test -f $prefix/include/Python.h; then
14985 PYTHON_INCDIR=-I$prefix/include
14986 if test -d $prefix/lib64/config; then
14987 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
14989 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14992 echo "$as_me:$LINENO: result: no" >&5
14993 echo "${ECHO_T}no" >&6
14994 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14995 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14996 { (exit 1); exit 1; }; }
15000 if test -f $withval/Python.h; then
15001 PYTHON_INCDIR=-I$withval
15002 PYTHON_LIBS="-L$withval/config -lpython"
15003 elif test -f $withval/include/Python.h; then
15004 PYTHON_INCDIR=-I$withval/include
15005 if test -d $withval/lib64/config; then
15006 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15008 PYTHON_LIBS="-L$withval/lib/config -lpython"
15010 elif test -f $withval/include/python/Python.h; then
15011 PYTHON_INCDIR=-I$withval/include/python
15012 if test -d $withval/lib64/python/config; then
15013 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15015 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15018 echo "$as_me:$LINENO: result: no" >&5
15019 echo "${ECHO_T}no" >&6
15020 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15021 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15022 { (exit 1); exit 1; }; }
15025 cat >>confdefs.h <<\_ACEOF
15026 #define HAVE_PYTHON 1
15029 echo "$as_me:$LINENO: result: yes" >&5
15030 echo "${ECHO_T}yes" >&6
15032 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15033 echo "$as_me: checking for more Python libs" >&6;}
15034 saved_LIBS="$LIBS"; LIBS=
15035 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15036 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15037 if test "${ac_cv_search_shm_open+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 ac_func_search_save_LIBS=$LIBS
15041 ac_cv_search_shm_open=no
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15049 /* Override any gcc2 internal prototype to avoid an error. */
15053 /* We use char because int might match the return type of a gcc2
15054 builtin and then its argument prototype would still apply. */
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15066 (eval $ac_link) 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -z "$ac_c_werror_flag"
15074 || test ! -s conftest.err'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; } &&
15080 { ac_try='test -s conftest$ac_exeext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_cv_search_shm_open="none required"
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15092 rm -f conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15094 if test "$ac_cv_search_shm_open" = no; then
15095 for ac_lib in rt; do
15096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15097 cat >conftest.$ac_ext <<_ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15104 /* Override any gcc2 internal prototype to avoid an error. */
15108 /* We use char because int might match the return type of a gcc2
15109 builtin and then its argument prototype would still apply. */
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15121 (eval $ac_link) 2>conftest.er1
15123 grep -v '^ *+' conftest.er1 >conftest.err
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -z "$ac_c_werror_flag"
15129 || test ! -s conftest.err'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest$ac_exeext'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ac_cv_search_shm_open="-l$ac_lib"
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15148 rm -f conftest.err conftest.$ac_objext \
15149 conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_func_search_save_LIBS
15154 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15155 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15156 if test "$ac_cv_search_shm_open" != no; then
15157 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15162 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15163 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15164 if test "${ac_cv_lib_util_openpty+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 ac_check_lib_save_LIBS=$LIBS
15168 LIBS="-lutil $LIBS"
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15176 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15191 rm -f conftest.$ac_objext conftest$ac_exeext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag"
15201 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213 ac_cv_lib_util_openpty=yes
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 ac_cv_lib_util_openpty=no
15220 rm -f conftest.err conftest.$ac_objext \
15221 conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15224 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15225 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15226 if test $ac_cv_lib_util_openpty = yes; then
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_LIBUTIL 1
15231 LIBS="-lutil $LIBS"
15235 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15238 echo "$as_me:$LINENO: result: no" >&5
15239 echo "${ECHO_T}no" >&6
15244 echo "$as_me:$LINENO: result: no" >&5
15245 echo "${ECHO_T}no" >&6
15253 # Find where sockets are (especially for Solaris)
15254 # Do this before the TCP Wrappers test since tcp wrappers
15255 # uses the socket library and some linkers are stupid.
15257 echo "$as_me:$LINENO: checking for socket" >&5
15258 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15259 if test "${ac_cv_func_socket+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15270 #define socket innocuous_socket
15272 /* System header to define __stub macros and hopefully few prototypes,
15273 which can conflict with char socket (); below.
15274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15275 <limits.h> exists even on freestanding compilers. */
15278 # include <limits.h>
15280 # include <assert.h>
15285 /* Override any gcc2 internal prototype to avoid an error. */
15290 /* We use char because int might match the return type of a gcc2
15291 builtin and then its argument prototype would still apply. */
15293 /* The GNU C library defines this for functions which it implements
15294 to always fail with ENOSYS. Some functions are actually named
15295 something starting with __ and the normal name is an alias. */
15296 #if defined (__stub_socket) || defined (__stub___socket)
15299 char (*f) () = socket;
15308 return f != socket;
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>conftest.er1
15317 grep -v '^ *+' conftest.er1 >conftest.err
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag"
15323 || test ! -s conftest.err'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest$ac_exeext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_func_socket=yes
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 ac_cv_func_socket=no
15342 rm -f conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15345 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15346 echo "${ECHO_T}$ac_cv_func_socket" >&6
15347 if test $ac_cv_func_socket = yes; then
15348 echo "$as_me:$LINENO: result: using libc's socket" >&5
15349 echo "${ECHO_T}using libc's socket" >&6
15352 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15353 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15354 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-lxnet $LIBS"
15359 cat >conftest.$ac_ext <<_ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15366 /* Override any gcc2 internal prototype to avoid an error. */
15370 /* We use char because int might match the return type of a gcc2
15371 builtin and then its argument prototype would still apply. */
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15383 (eval $ac_link) 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag"
15391 || test ! -s conftest.err'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest$ac_exeext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_cv_lib_xnet_socket=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_cv_lib_xnet_socket=no
15410 rm -f conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS
15414 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15415 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15416 if test $ac_cv_lib_xnet_socket = yes; then
15417 cat >>confdefs.h <<_ACEOF
15418 #define HAVE_LIBXNET 1
15421 LIBS="-lxnet $LIBS"
15426 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15427 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15428 if test "${ac_cv_lib_socket_socket+set}" = set; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 ac_check_lib_save_LIBS=$LIBS
15432 LIBS="-lsocket $LIBS"
15433 cat >conftest.$ac_ext <<_ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15440 /* Override any gcc2 internal prototype to avoid an error. */
15444 /* We use char because int might match the return type of a gcc2
15445 builtin and then its argument prototype would still apply. */
15455 rm -f conftest.$ac_objext conftest$ac_exeext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>conftest.er1
15459 grep -v '^ *+' conftest.er1 >conftest.err
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_lib_socket_socket=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_lib_socket_socket=no
15484 rm -f conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15486 LIBS=$ac_check_lib_save_LIBS
15488 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15489 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15490 if test $ac_cv_lib_socket_socket = yes; then
15491 cat >>confdefs.h <<_ACEOF
15492 #define HAVE_LIBSOCKET 1
15495 LIBS="-lsocket $LIBS"
15500 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15501 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15502 if test "${ac_cv_lib_inet_socket+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 ac_check_lib_save_LIBS=$LIBS
15506 LIBS="-linet $LIBS"
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15514 /* Override any gcc2 internal prototype to avoid an error. */
15518 /* We use char because int might match the return type of a gcc2
15519 builtin and then its argument prototype would still apply. */
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531 (eval $ac_link) 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } &&
15538 { ac_try='test -z "$ac_c_werror_flag"
15539 || test ! -s conftest.err'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest$ac_exeext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_cv_lib_inet_socket=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_cv_lib_inet_socket=no
15558 rm -f conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
15560 LIBS=$ac_check_lib_save_LIBS
15562 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15563 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15564 if test $ac_cv_lib_inet_socket = yes; then
15565 cat >>confdefs.h <<_ACEOF
15566 #define HAVE_LIBINET 1
15569 LIBS="-linet $LIBS"
15577 # -----------------------------------------------------------
15578 # Check whether user wants TCP wrappers support (default off)
15579 # -----------------------------------------------------------
15583 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15584 if test "${with_tcp_wrappers+set}" = set; then
15585 withval="$with_tcp_wrappers"
15587 if test "x$withval" != "xno" ; then
15589 LIBS="$saved_LIBS -lwrap"
15590 echo "$as_me:$LINENO: checking for libwrap" >&5
15591 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15592 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15593 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15594 if test "${ac_cv_search_nanosleep+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 ac_func_search_save_LIBS=$LIBS
15598 ac_cv_search_nanosleep=no
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15606 /* Override any gcc2 internal prototype to avoid an error. */
15610 /* We use char because int might match the return type of a gcc2
15611 builtin and then its argument prototype would still apply. */
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15623 (eval $ac_link) 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try='test -z "$ac_c_werror_flag"
15631 || test ! -s conftest.err'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; } &&
15637 { ac_try='test -s conftest$ac_exeext'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 ac_cv_search_nanosleep="none required"
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15649 rm -f conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
15651 if test "$ac_cv_search_nanosleep" = no; then
15652 for ac_lib in rt; do
15653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15661 /* Override any gcc2 internal prototype to avoid an error. */
15665 /* We use char because int might match the return type of a gcc2
15666 builtin and then its argument prototype would still apply. */
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest$ac_exeext'
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_cv_search_nanosleep="-l$ac_lib"
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15705 rm -f conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
15709 LIBS=$ac_func_search_save_LIBS
15711 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15712 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15713 if test "$ac_cv_search_nanosleep" != no; then
15714 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <sys/types.h>
15726 int deny_severity = 0;
15727 int allow_severity = 0;
15728 struct request_info *req;
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739 (eval $ac_link) 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag"
15747 || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest$ac_exeext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15760 echo "$as_me:$LINENO: result: yes" >&5
15761 echo "${ECHO_T}yes" >&6
15762 cat >>confdefs.h <<\_ACEOF
15763 #define HAVE_LIBWRAP 1
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15775 LIBS="$saved_LIBS -lwrap -lnsl"
15776 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15777 cat >conftest.$ac_ext <<_ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15783 #include <sys/types.h>
15785 int deny_severity = 0;
15786 int allow_severity = 0;
15787 struct request_info *req;
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15798 (eval $ac_link) 2>conftest.er1
15800 grep -v '^ *+' conftest.er1 >conftest.err
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
15805 { ac_try='test -z "$ac_c_werror_flag"
15806 || test ! -s conftest.err'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; } &&
15812 { ac_try='test -s conftest$ac_exeext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15819 echo "$as_me:$LINENO: result: yes" >&5
15820 echo "${ECHO_T}yes" >&6
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_LIBWRAP 1
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15834 echo "$as_me: error: *** libwrap missing" >&2;}
15835 { (exit 1); exit 1; }; }
15838 rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15842 rm -f conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15849 # -----------------------------------------------------------
15850 # Check whether OpenSSL is available
15851 # -----------------------------------------------------------
15852 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15853 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15855 # Check whether --with-openssl or --without-openssl was given.
15856 if test "${with_openssl+set}" = set; then
15857 withval="$with_openssl"
15858 with_openssl_directory=${withval}
15861 if test "x$with_openssl_directory" != "x"; then
15862 OPENSSL_LIBS="-lssl -lcrypto"
15865 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15866 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15867 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15871 saved_CFLAGS="$CFLAGS"
15872 LIBS="$saved_LIBS $OPENSSL_LIBS"
15873 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15875 cat >conftest.$ac_ext <<_ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include <openssl/ssl.h>
15885 CRYPTO_set_id_callback(NULL);
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892 (eval $ac_link) 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag"
15900 || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest$ac_exeext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15914 support_crypto="yes"
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15923 rm -f conftest.err conftest.$ac_objext \
15924 conftest$ac_exeext conftest.$ac_ext
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 #include <openssl/evp.h>
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag"
15951 || test ! -s conftest.err'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; } &&
15957 { ac_try='test -s conftest$ac_exeext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_cv_openssl_sha2="yes"
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_cv_openssl_sha2="no"
15971 rm -f conftest.err conftest.$ac_objext \
15972 conftest$ac_exeext conftest.$ac_ext
15975 CFLAGS="$saved_CFLAGS"
15977 if test "$support_tls" = "yes"; then
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_OPENSSL 1
15984 cat >>confdefs.h <<\_ACEOF
15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_CRYPTO 1
15995 if test "$ac_cv_openssl_sha2" = "yes"; then
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_SHA2 1
16004 support_crypto="no"
16009 echo "$as_me:$LINENO: result: $support_tls" >&5
16010 echo "${ECHO_T}$support_tls" >&6
16015 # -----------------------------------------------------------
16016 # Python and OpenSSL are using dlopen
16017 # -----------------------------------------------------------
16019 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16020 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16021 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16022 if test "${ac_cv_search_dlopen+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 ac_func_search_save_LIBS=$LIBS
16026 ac_cv_search_dlopen=no
16027 cat >conftest.$ac_ext <<_ACEOF
16030 cat confdefs.h >>conftest.$ac_ext
16031 cat >>conftest.$ac_ext <<_ACEOF
16032 /* end confdefs.h. */
16034 /* Override any gcc2 internal prototype to avoid an error. */
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16051 (eval $ac_link) 2>conftest.er1
16053 grep -v '^ *+' conftest.er1 >conftest.err
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag"
16059 || test ! -s conftest.err'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; } &&
16065 { ac_try='test -s conftest$ac_exeext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_search_dlopen="none required"
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16077 rm -f conftest.err conftest.$ac_objext \
16078 conftest$ac_exeext conftest.$ac_ext
16079 if test "$ac_cv_search_dlopen" = no; then
16080 for ac_lib in dl; do
16081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16089 /* Override any gcc2 internal prototype to avoid an error. */
16093 /* We use char because int might match the return type of a gcc2
16094 builtin and then its argument prototype would still apply. */
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_search_dlopen="-l$ac_lib"
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16133 rm -f conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16137 LIBS=$ac_func_search_save_LIBS
16139 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16140 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16141 if test "$ac_cv_search_dlopen" != no; then
16142 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16148 # ------------------------------------------
16149 # Where to place working dir
16150 # ------------------------------------------
16151 working_dir=`eval echo ${prefix}/var/bacula/working`
16153 # Check whether --with-working-dir or --without-working-dir was given.
16154 if test "${with_working_dir+set}" = set; then
16155 withval="$with_working_dir"
16157 if test "x$withval" != "xno" ; then
16158 working_dir=$withval
16167 # ------------------------------------------
16168 # Where to place scriptdir (script files)
16169 # ------------------------------------------
16170 scriptdir=`eval echo ${sysconfdir}`
16172 # Check whether --with-scriptdir or --without-scriptdir was given.
16173 if test "${with_scriptdir+set}" = set; then
16174 withval="$with_scriptdir"
16176 if test "x$withval" != "xno" ; then
16186 # ------------------------------------------
16187 # Where to send dump email
16188 # ------------------------------------------
16189 dump_email=root@localhost
16191 # Check whether --with-dump-email or --without-dump-email was given.
16192 if test "${with_dump_email+set}" = set; then
16193 withval="$with_dump_email"
16195 if test "x$withval" != "xno" ; then
16196 dump_email=$withval
16204 # ------------------------------------------
16205 # Where to send job email
16206 # ------------------------------------------
16207 job_email=root@localhost
16209 # Check whether --with-job-email or --without-job-email was given.
16210 if test "${with_job_email+set}" = set; then
16211 withval="$with_job_email"
16213 if test "x$withval" != "xno" ; then
16222 # ------------------------------------------
16223 # Where to find smtp host
16224 # ------------------------------------------
16225 smtp_host=localhost
16227 # Check whether --with-smtp_host or --without-smtp_host was given.
16228 if test "${with_smtp_host+set}" = set; then
16229 withval="$with_smtp_host"
16231 if test "x$withval" != "xno" ; then
16241 # ------------------------------------
16242 # Where to place pid files
16243 # ------------------------------------
16246 # Check whether --with-pid-dir or --without-pid-dir was given.
16247 if test "${with_pid_dir+set}" = set; then
16248 withval="$with_pid_dir"
16250 if test "x$withval" != "xno" ; then
16257 cat >>confdefs.h <<_ACEOF
16258 #define _PATH_BACULA_PIDDIR "$piddir"
16264 # ------------------------------------
16265 # Where to place subsys "lock file"
16266 # ------------------------------------
16267 subsysdir=/var/run/subsys
16269 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16270 if test "${with_subsys_dir+set}" = set; then
16271 withval="$with_subsys_dir"
16273 if test "x$withval" != "xno" ; then
16284 # ------------------------------------
16285 # Where to start assigning ports
16286 # ------------------------------------
16289 # Check whether --with-baseport or --without-baseport was given.
16290 if test "${with_baseport+set}" = set; then
16291 withval="$with_baseport"
16293 if test "x$withval" != "xno" ; then
16301 dir_port=`expr $baseport`
16302 fd_port=`expr $baseport + 1`
16303 sd_port=`expr $fd_port + 1`
16310 # ------------------------------------------
16311 # Generate passwords
16312 # ------------------------------------------
16315 # Check whether --with-dir-password or --without-dir-password was given.
16316 if test "${with_dir_password+set}" = set; then
16317 withval="$with_dir_password"
16319 if test "x$withval" != "xno" ; then
16320 dir_password=$withval
16326 if test "x$dir_password" = "x" ; then
16327 if test "x$OPENSSL" = "xnone" ; then
16328 key=`autoconf/randpass 33`
16330 key=`openssl rand -base64 33`
16337 # Check whether --with-fd-password or --without-fd-password was given.
16338 if test "${with_fd_password+set}" = set; then
16339 withval="$with_fd_password"
16341 if test "x$withval" != "xno" ; then
16342 fd_password=$withval
16348 if test "x$fd_password" = "x" ; then
16349 if test "x$OPENSSL" = "xnone" ; then
16350 key=`autoconf/randpass 37`
16352 key=`openssl rand -base64 33`
16359 # Check whether --with-sd-password or --without-sd-password was given.
16360 if test "${with_sd_password+set}" = set; then
16361 withval="$with_sd_password"
16363 if test "x$withval" != "xno" ; then
16364 sd_password=$withval
16370 if test "x$sd_password" = "x" ; then
16371 if test "x$OPENSSL" = "xnone" ; then
16372 key=`autoconf/randpass 41`
16374 key=`openssl rand -base64 33`
16381 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16382 if test "${with_mon_dir_password+set}" = set; then
16383 withval="$with_mon_dir_password"
16385 if test "x$withval" != "xno" ; then
16386 mon_dir_password=$withval
16392 if test "x$mon_dir_password" = "x" ; then
16393 if test "x$OPENSSL" = "xnone" ; then
16394 key=`autoconf/randpass 33`
16396 key=`openssl rand -base64 33`
16398 mon_dir_password=$key
16403 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16404 if test "${with_mon_fd_password+set}" = set; then
16405 withval="$with_mon_fd_password"
16407 if test "x$withval" != "xno" ; then
16408 mon_fd_password=$withval
16414 if test "x$mon_fd_password" = "x" ; then
16415 if test "x$OPENSSL" = "xnone" ; then
16416 key=`autoconf/randpass 37`
16418 key=`openssl rand -base64 33`
16420 mon_fd_password=$key
16425 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16426 if test "${with_mon_sd_password+set}" = set; then
16427 withval="$with_mon_sd_password"
16429 if test "x$withval" != "xno" ; then
16430 mon_sd_password=$withval
16436 if test "x$mon_sd_password" = "x" ; then
16437 if test "x$OPENSSL" = "xnone" ; then
16438 key=`autoconf/randpass 41`
16440 key=`openssl rand -base64 33`
16442 mon_sd_password=$key
16454 # Handle users and groups for each daemon
16458 # Check whether --with-dir_user or --without-dir_user was given.
16459 if test "${with_dir_user+set}" = set; then
16460 withval="$with_dir_user"
16462 if test "x$withval" != "x" ; then
16471 # Check whether --with-dir_group or --without-dir_group was given.
16472 if test "${with_dir_group+set}" = set; then
16473 withval="$with_dir_group"
16475 if test "x$withval" != "x" ; then
16484 # Check whether --with-sd_user or --without-sd_user was given.
16485 if test "${with_sd_user+set}" = set; then
16486 withval="$with_sd_user"
16488 if test "x$withval" != "x" ; then
16497 # Check whether --with-sd_group or --without-sd_group was given.
16498 if test "${with_sd_group+set}" = set; then
16499 withval="$with_sd_group"
16501 if test "x$withval" != "x" ; then
16510 # Check whether --with-fd_user or --without-fd_user was given.
16511 if test "${with_fd_user+set}" = set; then
16512 withval="$with_fd_user"
16514 if test "x$withval" != "x" ; then
16523 # Check whether --with-fd_group or --without-fd_group was given.
16524 if test "${with_fd_group+set}" = set; then
16525 withval="$with_fd_group"
16527 if test "x$withval" != "x" ; then
16545 # allow setting default executable permissions
16549 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16550 if test "${with_sbin_perm+set}" = set; then
16551 withval="$with_sbin_perm"
16553 if test "x$withval" != "x" ; then
16562 # ------------------------------------------------
16563 # Bacula check for various SQL database engines
16564 # ------------------------------------------------
16567 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16568 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16570 # Check whether --with-postgresql or --without-postgresql was given.
16571 if test "${with_postgresql+set}" = set; then
16572 withval="$with_postgresql"
16574 if test "$withval" != "no"; then
16575 if test "$db_found" = "yes"; then
16576 echo "$as_me:$LINENO: result: error" >&5
16577 echo "${ECHO_T}error" >&6
16578 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16579 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16580 { (exit 1); exit 1; }; };
16582 if test "$withval" = "yes"; then
16583 PG_CONFIG=`which pg_config`
16584 if test -n "$PG_CONFIG";then
16585 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16586 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16587 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16588 elif test -f /usr/local/include/libpq-fe.h; then
16589 POSTGRESQL_INCDIR=/usr/local/include
16590 if test -d /usr/local/lib64; then
16591 POSTGRESQL_LIBDIR=/usr/local/lib64
16593 POSTGRESQL_LIBDIR=/usr/local/lib
16595 POSTGRESQL_BINDIR=/usr/local/bin
16596 elif test -f /usr/include/libpq-fe.h; then
16597 POSTGRESQL_INCDIR=/usr/include
16598 if test -d /usr/lib64; then
16599 POSTGRESQL_LIBDIR=/usr/lib64
16601 POSTGRESQL_LIBDIR=/usr/lib
16603 POSTGRESQL_BINDIR=/usr/bin
16604 elif test -f /usr/include/pgsql/libpq-fe.h; then
16605 POSTGRESQL_INCDIR=/usr/include/pgsql
16606 if test -d /usr/lib64/pgsql; then
16607 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16609 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16611 POSTGRESQL_BINDIR=/usr/bin
16612 elif test -f /usr/include/postgresql/libpq-fe.h; then
16613 POSTGRESQL_INCDIR=/usr/include/postgresql
16614 if test -d /usr/lib64/postgresql; then
16615 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16617 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16619 POSTGRESQL_BINDIR=/usr/bin
16621 echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6
16623 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16624 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16625 { (exit 1); exit 1; }; }
16627 elif test -f $withval/include/libpq-fe.h; then
16628 POSTGRESQL_INCDIR=$withval/include
16629 POSTGRESQL_LIBDIR=$withval/lib
16630 POSTGRESQL_BINDIR=$withval/bin
16631 elif test -f $withval/include/postgresql/libpq-fe.h; then
16632 POSTGRESQL_INCDIR=$withval/include/postgresql
16633 if test -d $withval/lib64; then
16634 POSTGRESQL_LIBDIR=$withval/lib64
16636 POSTGRESQL_LIBDIR=$withval/lib
16638 POSTGRESQL_BINDIR=$withval/bin
16640 echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6
16642 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16643 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16644 { (exit 1); exit 1; }; }
16646 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16647 echo "$as_me:$LINENO: checking for crypt" >&5
16648 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16649 if test "${ac_cv_func_crypt+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 cat >conftest.$ac_ext <<_ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16660 #define crypt innocuous_crypt
16662 /* System header to define __stub macros and hopefully few prototypes,
16663 which can conflict with char crypt (); below.
16664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16665 <limits.h> exists even on freestanding compilers. */
16668 # include <limits.h>
16670 # include <assert.h>
16675 /* Override any gcc2 internal prototype to avoid an error. */
16680 /* We use char because int might match the return type of a gcc2
16681 builtin and then its argument prototype would still apply. */
16683 /* The GNU C library defines this for functions which it implements
16684 to always fail with ENOSYS. Some functions are actually named
16685 something starting with __ and the normal name is an alias. */
16686 #if defined (__stub_crypt) || defined (__stub___crypt)
16689 char (*f) () = crypt;
16703 rm -f conftest.$ac_objext conftest$ac_exeext
16704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16705 (eval $ac_link) 2>conftest.er1
16707 grep -v '^ *+' conftest.er1 >conftest.err
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try='test -z "$ac_c_werror_flag"
16713 || test ! -s conftest.err'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try='test -s conftest$ac_exeext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16725 ac_cv_func_crypt=yes
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16730 ac_cv_func_crypt=no
16732 rm -f conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16735 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16736 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16737 if test $ac_cv_func_crypt = yes; then
16740 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16741 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16742 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 ac_check_lib_save_LIBS=$LIBS
16746 LIBS="-lcrypt $LIBS"
16747 cat >conftest.$ac_ext <<_ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16754 /* Override any gcc2 internal prototype to avoid an error. */
16758 /* We use char because int might match the return type of a gcc2
16759 builtin and then its argument prototype would still apply. */
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>conftest.er1
16773 grep -v '^ *+' conftest.er1 >conftest.err
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_c_werror_flag"
16779 || test ! -s conftest.err'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest$ac_exeext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_lib_crypt_crypt=yes
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_cv_lib_crypt_crypt=no
16798 rm -f conftest.err conftest.$ac_objext \
16799 conftest$ac_exeext conftest.$ac_ext
16800 LIBS=$ac_check_lib_save_LIBS
16802 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16803 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16804 if test $ac_cv_lib_crypt_crypt = yes; then
16805 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16810 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16811 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16812 SQL_BINDIR=$POSTGRESQL_BINDIR
16813 cat >>confdefs.h <<\_ACEOF
16814 #define HAVE_POSTGRESQL 1
16817 echo "$as_me:$LINENO: result: yes" >&5
16818 echo "${ECHO_T}yes" >&6
16820 support_postgresql=yes
16824 echo "$as_me:$LINENO: result: no" >&5
16825 echo "${ECHO_T}no" >&6
16830 echo "$as_me:$LINENO: result: no" >&5
16831 echo "${ECHO_T}no" >&6
16842 echo "$as_me:$LINENO: checking for MySQL support" >&5
16843 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16845 # Check whether --with-mysql or --without-mysql was given.
16846 if test "${with_mysql+set}" = set; then
16847 withval="$with_mysql"
16849 if test "$withval" != "no"; then
16850 if test "$withval" = "yes"; then
16851 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16852 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16853 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
16854 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16856 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16858 MYSQL_BINDIR=/usr/local/mysql/bin
16859 elif test -f /usr/include/mysql/mysql.h; then
16860 MYSQL_INCDIR=/usr/include/mysql
16861 if test -f /usr/lib64/mysql/libmysqlclient.a; then
16862 MYSQL_LIBDIR=/usr/lib64/mysql
16864 MYSQL_LIBDIR=/usr/lib/mysql
16866 MYSQL_BINDIR=/usr/bin
16867 elif test -f /usr/include/mysql.h; then
16868 MYSQL_INCDIR=/usr/include
16869 if test -f /usr/lib64/libmysqlclient.a; then
16870 MYSQL_LIBDIR=/usr/lib64
16872 MYSQL_LIBDIR=/usr/lib
16874 MYSQL_BINDIR=/usr/bin
16875 elif test -f /usr/local/include/mysql/mysql.h; then
16876 MYSQL_INCDIR=/usr/local/include/mysql
16877 if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
16878 MYSQL_LIBDIR=/usr/local/lib64/mysql
16880 MYSQL_LIBDIR=/usr/local/lib/mysql
16882 MYSQL_BINDIR=/usr/local/bin
16883 elif test -f /usr/local/include/mysql.h; then
16884 MYSQL_INCDIR=/usr/local/include
16885 if test -f /usr/local/lib64/libmysqlclient.a; then
16886 MYSQL_LIBDIR=/usr/local/lib64
16888 MYSQL_LIBDIR=/usr/local/lib
16890 MYSQL_BINDIR=/usr/local/bin
16892 echo "$as_me:$LINENO: result: no" >&5
16893 echo "${ECHO_T}no" >&6
16894 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16895 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16896 { (exit 1); exit 1; }; }
16899 if test -f $withval/include/mysql/mysql.h; then
16900 MYSQL_INCDIR=$withval/include/mysql
16901 if test -f $withval/lib64/mysql/libmysqlclient.a; then
16902 MYSQL_LIBDIR=$withval/lib64/mysql
16904 MYSQL_LIBDIR=$withval/lib/mysql
16906 MYSQL_BINDIR=$withval/bin
16907 elif test -f $withval/include/mysql.h; then
16908 MYSQL_INCDIR=$withval/include
16909 if test -f "$withval/lib64/libmysqlclient.a"; then
16910 MYSQL_LIBDIR=$withval/lib64
16912 MYSQL_LIBDIR=$withval/lib
16914 MYSQL_BINDIR=$withval/bin
16916 echo "$as_me:$LINENO: result: no" >&5
16917 echo "${ECHO_T}no" >&6
16918 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16919 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16920 { (exit 1); exit 1; }; }
16923 SQL_INCLUDE=-I$MYSQL_INCDIR
16924 if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
16925 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16926 cat >>confdefs.h <<\_ACEOF
16927 #define HAVE_THREAD_SAFE_MYSQL 1
16931 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16933 SQL_BINDIR=$MYSQL_BINDIR
16935 cat >>confdefs.h <<\_ACEOF
16936 #define HAVE_MYSQL 1
16939 echo "$as_me:$LINENO: result: yes" >&5
16940 echo "${ECHO_T}yes" >&6
16947 echo "$as_me:$LINENO: result: no" >&5
16948 echo "${ECHO_T}no" >&6
16955 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16956 if test "${with_embedded_mysql+set}" = set; then
16957 withval="$with_embedded_mysql"
16959 if test "$withval" != "no"; then
16960 if test "$withval" = "yes"; then
16961 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16962 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16963 if test -d /usr/local/mysql/lib64/mysql; then
16964 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16966 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16968 MYSQL_BINDIR=/usr/local/mysql/bin
16969 elif test -f /usr/include/mysql/mysql.h; then
16970 MYSQL_INCDIR=/usr/include/mysql
16971 if test -d /usr/lib64/mysql; then
16972 MYSQL_LIBDIR=/usr/lib64/mysql
16974 MYSQL_LIBDIR=/usr/lib/mysql
16976 MYSQL_BINDIR=/usr/bin
16977 elif test -f /usr/include/mysql.h; then
16978 MYSQL_INCDIR=/usr/include
16979 if test -d /usr/lib64; then
16980 MYSQL_LIBDIR=/usr/lib64
16982 MYSQL_LIBDIR=/usr/lib
16984 MYSQL_BINDIR=/usr/bin
16985 elif test -f /usr/local/include/mysql/mysql.h; then
16986 MYSQL_INCDIR=/usr/local/include/mysql
16987 if test -d /usr/local/lib64/mysql; then
16988 MYSQL_LIBDIR=/usr/local/lib64/mysql
16990 MYSQL_LIBDIR=/usr/local/lib/mysql
16992 MYSQL_BINDIR=/usr/local/bin
16993 elif test -f /usr/local/include/mysql.h; then
16994 MYSQL_INCDIR=/usr/local/include
16995 if test -d /usr/local/lib64; then
16996 MYSQL_LIBDIR=/usr/local/lib64
16998 MYSQL_LIBDIR=/usr/local/lib
17000 MYSQL_BINDIR=/usr/local/bin
17002 echo "$as_me:$LINENO: result: no" >&5
17003 echo "${ECHO_T}no" >&6
17004 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17005 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17006 { (exit 1); exit 1; }; }
17009 if test -f $withval/include/mysql/mysql.h; then
17010 MYSQL_INCDIR=$withval/include/mysql
17011 if test -d $withval/lib64/mysql; then
17012 MYSQL_LIBDIR=$withval/lib64/mysql
17014 MYSQL_LIBDIR=$withval/lib/mysql
17016 MYSQL_BINDIR=$withval/bin
17017 elif test -f $withval/include/mysql.h; then
17018 MYSQL_INCDIR=$withval/include
17019 if test -d $withval/lib64; then
17020 MYSQL_LIBDIR=$withval/lib64
17022 MYSQL_LIBDIR=$withval/lib
17024 MYSQL_BINDIR=$withval/bin
17026 echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6
17028 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17029 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17030 { (exit 1); exit 1; }; }
17033 SQL_INCLUDE=-I$MYSQL_INCDIR
17034 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17035 SQL_BINDIR=$MYSQL_BINDIR
17037 cat >>confdefs.h <<\_ACEOF
17038 #define HAVE_MYSQL 1
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_EMBEDDED_MYSQL 1
17045 echo "$as_me:$LINENO: result: yes" >&5
17046 echo "${ECHO_T}yes" >&6
17053 echo "$as_me:$LINENO: result: no" >&5
17054 echo "${ECHO_T}no" >&6
17069 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17070 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17072 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17073 if test "${with_sqlite3+set}" = set; then
17074 withval="$with_sqlite3"
17076 if test "$withval" != "no"; then
17077 if test "$withval" = "yes"; then
17078 if test -f /usr/local/include/sqlite3.h; then
17079 SQLITE_INCDIR=/usr/local/include
17080 if test -d /usr/local/lib64; then
17081 SQLITE_LIBDIR=/usr/local/lib64
17083 SQLITE_LIBDIR=/usr/local/lib
17085 SQLITE_BINDIR=/usr/local/bin
17086 elif test -f /usr/include/sqlite3.h; then
17087 SQLITE_INCDIR=/usr/include
17088 if test -d /usr/lib64; then
17089 SQLITE_LIBDIR=/usr/lib64
17091 SQLITE_LIBDIR=/usr/lib
17093 SQLITE_BINDIR=/usr/bin
17094 elif test -f $prefix/include/sqlite3.h; then
17095 SQLITE_INCDIR=$prefix/include
17096 if test -d $prefix/lib64; then
17097 SQLITE_LIBDIR=$prefix/lib64
17099 SQLITE_LIBDIR=$prefix/lib
17101 SQLITE_BINDIR=$prefix/bin
17103 echo "$as_me:$LINENO: result: no" >&5
17104 echo "${ECHO_T}no" >&6
17105 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17106 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17107 { (exit 1); exit 1; }; }
17110 if test -f $withval/sqlite3.h; then
17111 SQLITE_INCDIR=$withval
17112 SQLITE_LIBDIR=$withval
17113 SQLITE_BINDIR=$withval
17114 elif test -f $withval/include/sqlite3.h; then
17115 SQLITE_INCDIR=$withval/include
17116 if test -d $withval/lib64; then
17117 SQLITE_LIBDIR=$withval/lib64
17119 SQLITE_LIBDIR=$withval/lib
17121 SQLITE_BINDIR=$withval/bin
17123 echo "$as_me:$LINENO: result: no" >&5
17124 echo "${ECHO_T}no" >&6
17125 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17126 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17127 { (exit 1); exit 1; }; }
17130 SQL_INCLUDE=-I$SQLITE_INCDIR
17131 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17132 SQL_BINDIR=$SQLITE_BINDIR
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_SQLITE3 1
17138 echo "$as_me:$LINENO: result: yes" >&5
17139 echo "${ECHO_T}yes" >&6
17141 support_sqlite3=yes
17146 echo "$as_me:$LINENO: result: no" >&5
17147 echo "${ECHO_T}no" >&6
17152 echo "$as_me:$LINENO: result: no" >&5
17153 echo "${ECHO_T}no" >&6
17164 echo "$as_me:$LINENO: checking for SQLite support" >&5
17165 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17167 # Check whether --with-sqlite or --without-sqlite was given.
17168 if test "${with_sqlite+set}" = set; then
17169 withval="$with_sqlite"
17171 if test "$withval" != "no"; then
17172 if test "$withval" = "yes"; then
17173 if test -f /usr/local/include/sqlite.h; then
17174 SQLITE_INCDIR=/usr/local/include
17175 if test -d /usr/local/lib64; then
17176 SQLITE_LIBDIR=/usr/local/lib64
17178 SQLITE_LIBDIR=/usr/local/lib
17180 SQLITE_BINDIR=/usr/local/bin
17181 elif test -f /usr/include/sqlite.h; then
17182 SQLITE_INCDIR=/usr/include
17183 if test -d /usr/lib64; then
17184 SQLITE_LIBDIR=/usr/lib64
17186 SQLITE_LIBDIR=/usr/lib
17188 SQLITE_BINDIR=/usr/bin
17189 elif test -f $prefix/include/sqlite.h; then
17190 SQLITE_INCDIR=$prefix/include
17191 if test -d $prefix/lib64; then
17192 SQLITE_LIBDIR=$prefix/lib64
17194 SQLITE_LIBDIR=$prefix/lib
17196 SQLITE_BINDIR=$prefix/bin
17198 echo "$as_me:$LINENO: result: no" >&5
17199 echo "${ECHO_T}no" >&6
17200 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17201 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17202 { (exit 1); exit 1; }; }
17205 if test -f $withval/sqlite.h; then
17206 SQLITE_INCDIR=$withval
17207 SQLITE_LIBDIR=$withval
17208 SQLITE_BINDIR=$withval
17209 elif test -f $withval/include/sqlite.h; then
17210 SQLITE_INCDIR=$withval/include
17211 if test -d $withval/lib64; then
17212 SQLITE_LIBDIR=$withval/lib64
17214 SQLITE_LIBDIR=$withval/lib
17216 SQLITE_BINDIR=$withval/bin
17218 echo "$as_me:$LINENO: result: no" >&5
17219 echo "${ECHO_T}no" >&6
17220 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17221 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17222 { (exit 1); exit 1; }; }
17225 SQL_INCLUDE=-I$SQLITE_INCDIR
17226 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17227 SQL_BINDIR=$SQLITE_BINDIR
17229 cat >>confdefs.h <<\_ACEOF
17230 #define HAVE_SQLITE 1
17233 echo "$as_me:$LINENO: result: yes" >&5
17234 echo "${ECHO_T}yes" >&6
17241 echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17247 echo "$as_me:$LINENO: result: no" >&5
17248 echo "${ECHO_T}no" >&6
17260 cat >>confdefs.h <<\_ACEOF
17261 #define PROTOTYPES 1
17265 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17266 if test -z "$CCOPTS"; then
17267 CCOPTS='-g -O2 -Wall'
17275 largefile_support="no"
17277 # Check whether --enable-largefile or --disable-largefile was given.
17278 if test "${enable_largefile+set}" = set; then
17279 enableval="$enable_largefile"
17282 if test "$enable_largefile" != no; then
17283 if test -n "$ac_tool_prefix"; then
17284 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17285 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17286 echo "$as_me:$LINENO: checking for $ac_word" >&5
17287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17288 if test "${ac_cv_prog_GETCONF+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 if test -n "$GETCONF"; then
17292 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17295 for as_dir in $PATH
17298 test -z "$as_dir" && as_dir=.
17299 for ac_exec_ext in '' $ac_executable_extensions; do
17300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17301 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17310 GETCONF=$ac_cv_prog_GETCONF
17311 if test -n "$GETCONF"; then
17312 echo "$as_me:$LINENO: result: $GETCONF" >&5
17313 echo "${ECHO_T}$GETCONF" >&6
17315 echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6
17320 if test -z "$ac_cv_prog_GETCONF"; then
17321 ac_ct_GETCONF=$GETCONF
17322 # Extract the first word of "getconf", so it can be a program name with args.
17323 set dummy getconf; ac_word=$2
17324 echo "$as_me:$LINENO: checking for $ac_word" >&5
17325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17326 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 if test -n "$ac_ct_GETCONF"; then
17330 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17333 for as_dir in $PATH
17336 test -z "$as_dir" && as_dir=.
17337 for ac_exec_ext in '' $ac_executable_extensions; do
17338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17339 ac_cv_prog_ac_ct_GETCONF="getconf"
17340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17348 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17349 if test -n "$ac_ct_GETCONF"; then
17350 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17351 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17353 echo "$as_me:$LINENO: result: no" >&5
17354 echo "${ECHO_T}no" >&6
17357 GETCONF=$ac_ct_GETCONF
17359 GETCONF="$ac_cv_prog_GETCONF"
17362 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17363 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17364 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17368 ac_cv_sys_largefile_CFLAGS=no
17370 # IRIX 6.2 and later require cc -n32.
17371 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17372 if test "$GCC" != yes; then
17373 ac_cv_sys_largefile_CFLAGS=-n32
17376 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394 (eval $ac_link) 2>conftest.er1
17396 grep -v '^ *+' conftest.er1 >conftest.err
17398 cat conftest.err >&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } &&
17401 { ac_try='test -z "$ac_c_werror_flag"
17402 || test ! -s conftest.err'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 ac_cv_sys_largefile_CFLAGS=no
17421 rm -f conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17427 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17428 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17429 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17430 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17431 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17435 ac_cv_sys_largefile_LDFLAGS=no
17439 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17440 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17441 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17442 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17443 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17447 ac_cv_sys_largefile_LIBS=no
17451 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17452 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17454 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17457 -D_FILE_OFFSET_BITS=*) ;;
17458 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17459 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17464 case "$CPPFLAGS" in
17465 '') CPPFLAGS="$ac_flag" ;;
17466 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17474 '') CFLAGS="$ac_flag" ;;
17475 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17480 case "$ac_cv_sys_largefile_LDFLAGS" in
17484 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17485 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17488 case "$ac_cv_sys_largefile_LIBS" in
17492 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17493 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17496 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17497 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17498 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_cv_sys_file_offset_bits=no
17502 ac_cv_sys_file_offset_bits=64
17503 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17505 -D_FILE_OFFSET_BITS)
17506 ac_cv_sys_file_offset_bits=1 ;;
17507 -D_FILE_OFFSET_BITS=*)
17508 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17513 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17514 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17515 if test "$ac_cv_sys_file_offset_bits" != no; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17522 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17523 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17524 if test "${ac_cv_sys_largefile_source+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 ac_cv_sys_largefile_source=no
17528 ac_cv_sys_largefile_source=1
17529 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17531 -D_LARGEFILE_SOURCE)
17532 ac_cv_sys_largefile_source=1 ;;
17533 -D_LARGEFILE_SOURCE=*)
17534 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17539 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17540 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17541 if test "$ac_cv_sys_largefile_source" != no; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17548 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17549 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17550 if test "${ac_cv_sys_large_files+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 ac_cv_sys_large_files=no
17554 ac_cv_sys_large_files=1
17555 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17558 ac_cv_sys_large_files=1 ;;
17560 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17565 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17566 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17567 if test "$ac_cv_sys_large_files" != no; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define _LARGE_FILES $ac_cv_sys_large_files
17578 echo "$as_me:$LINENO: checking for X" >&5
17579 echo $ECHO_N "checking for X... $ECHO_C" >&6
17582 # Check whether --with-x or --without-x was given.
17583 if test "${with_x+set}" = set; then
17587 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17588 if test "x$with_x" = xno; then
17589 # The user explicitly disabled X.
17592 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17593 # Both variables are already set.
17596 if test "${ac_cv_have_x+set}" = set; then
17597 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 # One or both of the vars are not set, and there is no cached value.
17600 ac_x_includes=no ac_x_libraries=no
17601 rm -fr conftest.dir
17602 if mkdir conftest.dir; then
17604 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17605 cat >Imakefile <<'_ACEOF'
17607 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17609 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17611 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17612 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17613 for ac_extension in a so sl; do
17614 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17615 test -f $ac_im_libdir/libX11.$ac_extension; then
17616 ac_im_usrlibdir=$ac_im_libdir; break
17619 # Screen out bogus values from the imake configuration. They are
17620 # bogus both because they are the default anyway, and because
17621 # using them would break gcc on systems where it needs fixed includes.
17622 case $ac_im_incroot in
17624 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17626 case $ac_im_usrlibdir in
17627 /usr/lib | /lib) ;;
17628 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17632 rm -fr conftest.dir
17635 # Standard set of common directories for X headers.
17636 # Check X11 before X11Rn because it is often a symlink to the current release.
17648 /usr/local/X11/include
17649 /usr/local/X11R6/include
17650 /usr/local/X11R5/include
17651 /usr/local/X11R4/include
17653 /usr/local/include/X11
17654 /usr/local/include/X11R6
17655 /usr/local/include/X11R5
17656 /usr/local/include/X11R4
17660 /usr/XFree86/include/X11
17664 /usr/unsupported/include
17665 /usr/athena/include
17666 /usr/local/x11r5/include
17667 /usr/lpp/Xamples/include
17669 /usr/openwin/include
17670 /usr/openwin/share/include'
17672 if test "$ac_x_includes" = no; then
17673 # Guess where to find include files, by looking for Intrinsic.h.
17674 # First, try using that file with no special directory specified.
17675 cat >conftest.$ac_ext <<_ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 #include <X11/Intrinsic.h>
17683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } >/dev/null; then
17691 if test -s conftest.err; then
17692 ac_cpp_err=$ac_c_preproc_warn_flag
17693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17700 if test -z "$ac_cpp_err"; then
17701 # We can compile using X headers with no special include directory.
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17707 for ac_dir in $ac_x_header_dirs; do
17708 if test -r "$ac_dir/X11/Intrinsic.h"; then
17709 ac_x_includes=$ac_dir
17714 rm -f conftest.err conftest.$ac_ext
17715 fi # $ac_x_includes = no
17717 if test "$ac_x_libraries" = no; then
17718 # Check for the libraries.
17719 # See if we find them without any special options.
17720 # Don't add to $LIBS permanently.
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <X11/Intrinsic.h>
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740 (eval $ac_link) 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
17747 { ac_try='test -z "$ac_c_werror_flag"
17748 || test ! -s conftest.err'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest$ac_exeext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17761 # We can link X programs with no special library path.
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17768 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17770 # Don't even attempt the hair of trying to link an X program!
17771 for ac_extension in a so sl; do
17772 if test -r $ac_dir/libXt.$ac_extension; then
17773 ac_x_libraries=$ac_dir
17779 rm -f conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 fi # $ac_x_libraries = no
17783 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17784 # Didn't find X anywhere. Cache the known absence of X.
17785 ac_cv_have_x="have_x=no"
17787 # Record where we found X for the cache.
17788 ac_cv_have_x="have_x=yes \
17789 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17794 eval "$ac_cv_have_x"
17797 if test "$have_x" != yes; then
17798 echo "$as_me:$LINENO: result: $have_x" >&5
17799 echo "${ECHO_T}$have_x" >&6
17802 # If each of the values was on the command line, it overrides each guess.
17803 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17804 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17805 # Update the cache value to reflect the command line values.
17806 ac_cv_have_x="have_x=yes \
17807 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17808 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17809 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17812 if test "$no_x" = yes; then
17813 # Not all programs may use this symbol, but it does not hurt to define it.
17815 cat >>confdefs.h <<\_ACEOF
17816 #define X_DISPLAY_MISSING 1
17819 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17821 if test -n "$x_includes"; then
17822 X_CFLAGS="$X_CFLAGS -I$x_includes"
17825 # It would also be nice to do this for all -L options, not just this one.
17826 if test -n "$x_libraries"; then
17827 X_LIBS="$X_LIBS -L$x_libraries"
17828 # For Solaris; some versions of Sun CC require a space after -R and
17829 # others require no space. Words are not sufficient . . . .
17830 case `(uname -sr) 2>/dev/null` in
17832 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17833 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17834 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_c_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17879 rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 if test $ac_R_nospace = yes; then
17882 echo "$as_me:$LINENO: result: no" >&5
17883 echo "${ECHO_T}no" >&6
17884 X_LIBS="$X_LIBS -R$x_libraries"
17886 LIBS="$ac_xsave_LIBS -R $x_libraries"
17887 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>conftest.er1
17906 grep -v '^ *+' conftest.er1 >conftest.err
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag"
17912 || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17931 rm -f conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17933 if test $ac_R_space = yes; then
17934 echo "$as_me:$LINENO: result: yes" >&5
17935 echo "${ECHO_T}yes" >&6
17936 X_LIBS="$X_LIBS -R $x_libraries"
17938 echo "$as_me:$LINENO: result: neither works" >&5
17939 echo "${ECHO_T}neither works" >&6
17942 LIBS=$ac_xsave_LIBS
17946 # Check for system-dependent libraries X programs must link with.
17947 # Do this before checking for the system-independent R6 libraries
17948 # (-lICE), since we may need -lsocket or whatever for X linking.
17950 if test "$ISC" = yes; then
17951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17953 # Martyn Johnson says this is needed for Ultrix, if the X
17954 # libraries were built with DECnet support. And Karl Berry says
17955 # the Alpha needs dnet_stub (dnet does not exist).
17956 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17964 /* Override any gcc2 internal prototype to avoid an error. */
17968 /* We use char because int might match the return type of a gcc2
17969 builtin and then its argument prototype would still apply. */
17970 char XOpenDisplay ();
17979 rm -f conftest.$ac_objext conftest$ac_exeext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18007 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18008 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 ac_check_lib_save_LIBS=$LIBS
18012 LIBS="-ldnet $LIBS"
18013 cat >conftest.$ac_ext <<_ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18020 /* Override any gcc2 internal prototype to avoid an error. */
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>conftest.er1
18039 grep -v '^ *+' conftest.er1 >conftest.err
18041 cat conftest.err >&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
18044 { ac_try='test -z "$ac_c_werror_flag"
18045 || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_cv_lib_dnet_dnet_ntoa=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_lib_dnet_dnet_ntoa=no
18064 rm -f conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18068 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18069 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18070 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18071 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18074 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18075 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18076 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18077 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-ldnet_stub $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any gcc2 internal prototype to avoid an error. */
18093 /* We use char because int might match the return type of a gcc2
18094 builtin and then its argument prototype would still apply. */
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag"
18114 || test ! -s conftest.err'
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; }; then
18126 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18128 echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18131 ac_cv_lib_dnet_stub_dnet_ntoa=no
18133 rm -f conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18135 LIBS=$ac_check_lib_save_LIBS
18137 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18138 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18139 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18140 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18145 rm -f conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LIBS="$ac_xsave_LIBS"
18149 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18150 # to get the SysV transport functions.
18151 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18153 # The nsl library prevents programs from opening the X display
18154 # on Irix 5.2, according to T.E. Dickey.
18155 # The functions gethostbyname, getservbyname, and inet_addr are
18156 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18157 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18158 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18159 if test "${ac_cv_func_gethostbyname+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18168 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18170 #define gethostbyname innocuous_gethostbyname
18172 /* System header to define __stub macros and hopefully few prototypes,
18173 which can conflict with char gethostbyname (); below.
18174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18175 <limits.h> exists even on freestanding compilers. */
18178 # include <limits.h>
18180 # include <assert.h>
18183 #undef gethostbyname
18185 /* Override any gcc2 internal prototype to avoid an error. */
18190 /* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18192 char gethostbyname ();
18193 /* The GNU C library defines this for functions which it implements
18194 to always fail with ENOSYS. Some functions are actually named
18195 something starting with __ and the normal name is an alias. */
18196 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18199 char (*f) () = gethostbyname;
18208 return f != gethostbyname;
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215 (eval $ac_link) 2>conftest.er1
18217 grep -v '^ *+' conftest.er1 >conftest.err
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag"
18223 || test ! -s conftest.err'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } &&
18229 { ac_try='test -s conftest$ac_exeext'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18235 ac_cv_func_gethostbyname=yes
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_cv_func_gethostbyname=no
18242 rm -f conftest.err conftest.$ac_objext \
18243 conftest$ac_exeext conftest.$ac_ext
18245 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18246 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18248 if test $ac_cv_func_gethostbyname = no; then
18249 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18250 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18251 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18254 ac_check_lib_save_LIBS=$LIBS
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18263 /* Override any gcc2 internal prototype to avoid an error. */
18267 /* We use char because int might match the return type of a gcc2
18268 builtin and then its argument prototype would still apply. */
18269 char gethostbyname ();
18278 rm -f conftest.$ac_objext conftest$ac_exeext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18280 (eval $ac_link) 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest$ac_exeext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_cv_lib_nsl_gethostbyname=yes
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18305 ac_cv_lib_nsl_gethostbyname=no
18307 rm -f conftest.err conftest.$ac_objext \
18308 conftest$ac_exeext conftest.$ac_ext
18309 LIBS=$ac_check_lib_save_LIBS
18311 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18312 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18313 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18317 if test $ac_cv_lib_nsl_gethostbyname = no; then
18318 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18319 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18320 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 ac_check_lib_save_LIBS=$LIBS
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 /* Override any gcc2 internal prototype to avoid an error. */
18336 /* We use char because int might match the return type of a gcc2
18337 builtin and then its argument prototype would still apply. */
18338 char gethostbyname ();
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18349 (eval $ac_link) 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag"
18357 || test ! -s conftest.err'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest$ac_exeext'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_bsd_gethostbyname=yes
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 ac_cv_lib_bsd_gethostbyname=no
18376 rm -f conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
18378 LIBS=$ac_check_lib_save_LIBS
18380 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18381 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18382 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18389 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18390 # socket/setsockopt and other routines are undefined under SCO ODT
18391 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18392 # on later versions), says Simon Leinen: it contains gethostby*
18393 # variants that don't use the name server (or something). -lsocket
18394 # must be given before -lnsl if both are needed. We assume that
18395 # if connect needs -lnsl, so does gethostbyname.
18396 echo "$as_me:$LINENO: checking for connect" >&5
18397 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18398 if test "${ac_cv_func_connect+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 cat >conftest.$ac_ext <<_ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18409 #define connect innocuous_connect
18411 /* System header to define __stub macros and hopefully few prototypes,
18412 which can conflict with char connect (); below.
18413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18414 <limits.h> exists even on freestanding compilers. */
18417 # include <limits.h>
18419 # include <assert.h>
18424 /* Override any gcc2 internal prototype to avoid an error. */
18429 /* We use char because int might match the return type of a gcc2
18430 builtin and then its argument prototype would still apply. */
18432 /* The GNU C library defines this for functions which it implements
18433 to always fail with ENOSYS. Some functions are actually named
18434 something starting with __ and the normal name is an alias. */
18435 #if defined (__stub_connect) || defined (__stub___connect)
18438 char (*f) () = connect;
18447 return f != connect;
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18454 (eval $ac_link) 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag"
18462 || test ! -s conftest.err'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; } &&
18468 { ac_try='test -s conftest$ac_exeext'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_func_connect=yes
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_func_connect=no
18481 rm -f conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18484 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18485 echo "${ECHO_T}$ac_cv_func_connect" >&6
18487 if test $ac_cv_func_connect = no; then
18488 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18489 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18490 if test "${ac_cv_lib_socket_connect+set}" = set; then
18491 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18495 cat >conftest.$ac_ext <<_ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18502 /* Override any gcc2 internal prototype to avoid an error. */
18506 /* We use char because int might match the return type of a gcc2
18507 builtin and then its argument prototype would still apply. */
18517 rm -f conftest.$ac_objext conftest$ac_exeext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18519 (eval $ac_link) 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag"
18527 || test ! -s conftest.err'
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest$ac_exeext'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_lib_socket_connect=yes
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 ac_cv_lib_socket_connect=no
18546 rm -f conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18550 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18551 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18552 if test $ac_cv_lib_socket_connect = yes; then
18553 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18558 # Guillermo Gomez says -lposix is necessary on A/UX.
18559 echo "$as_me:$LINENO: checking for remove" >&5
18560 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18561 if test "${ac_cv_func_remove+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18572 #define remove innocuous_remove
18574 /* System header to define __stub macros and hopefully few prototypes,
18575 which can conflict with char remove (); below.
18576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18577 <limits.h> exists even on freestanding compilers. */
18580 # include <limits.h>
18582 # include <assert.h>
18587 /* Override any gcc2 internal prototype to avoid an error. */
18592 /* We use char because int might match the return type of a gcc2
18593 builtin and then its argument prototype would still apply. */
18595 /* The GNU C library defines this for functions which it implements
18596 to always fail with ENOSYS. Some functions are actually named
18597 something starting with __ and the normal name is an alias. */
18598 #if defined (__stub_remove) || defined (__stub___remove)
18601 char (*f) () = remove;
18610 return f != remove;
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18617 (eval $ac_link) 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_c_werror_flag"
18625 || test ! -s conftest.err'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_func_remove=yes
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_func_remove=no
18644 rm -f conftest.err conftest.$ac_objext \
18645 conftest$ac_exeext conftest.$ac_ext
18647 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18648 echo "${ECHO_T}$ac_cv_func_remove" >&6
18650 if test $ac_cv_func_remove = no; then
18651 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18652 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18653 if test "${ac_cv_lib_posix_remove+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 ac_check_lib_save_LIBS=$LIBS
18657 LIBS="-lposix $LIBS"
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18665 /* Override any gcc2 internal prototype to avoid an error. */
18669 /* We use char because int might match the return type of a gcc2
18670 builtin and then its argument prototype would still apply. */
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>conftest.er1
18684 grep -v '^ *+' conftest.er1 >conftest.err
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); } &&
18689 { ac_try='test -z "$ac_c_werror_flag"
18690 || test ! -s conftest.err'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; } &&
18696 { ac_try='test -s conftest$ac_exeext'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_lib_posix_remove=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_lib_posix_remove=no
18709 rm -f conftest.err conftest.$ac_objext \
18710 conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18713 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18714 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18715 if test $ac_cv_lib_posix_remove = yes; then
18716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18721 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18722 echo "$as_me:$LINENO: checking for shmat" >&5
18723 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18724 if test "${ac_cv_func_shmat+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18735 #define shmat innocuous_shmat
18737 /* System header to define __stub macros and hopefully few prototypes,
18738 which can conflict with char shmat (); below.
18739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18740 <limits.h> exists even on freestanding compilers. */
18743 # include <limits.h>
18745 # include <assert.h>
18750 /* Override any gcc2 internal prototype to avoid an error. */
18755 /* We use char because int might match the return type of a gcc2
18756 builtin and then its argument prototype would still apply. */
18758 /* The GNU C library defines this for functions which it implements
18759 to always fail with ENOSYS. Some functions are actually named
18760 something starting with __ and the normal name is an alias. */
18761 #if defined (__stub_shmat) || defined (__stub___shmat)
18764 char (*f) () = shmat;
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>conftest.er1
18782 grep -v '^ *+' conftest.er1 >conftest.err
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_func_shmat=yes
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 ac_cv_func_shmat=no
18807 rm -f conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18810 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18811 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18813 if test $ac_cv_func_shmat = no; then
18814 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18815 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18816 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 ac_check_lib_save_LIBS=$LIBS
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 /* Override any gcc2 internal prototype to avoid an error. */
18832 /* We use char because int might match the return type of a gcc2
18833 builtin and then its argument prototype would still apply. */
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18845 (eval $ac_link) 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag"
18853 || test ! -s conftest.err'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest$ac_exeext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_cv_lib_ipc_shmat=yes
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ac_cv_lib_ipc_shmat=no
18872 rm -f conftest.err conftest.$ac_objext \
18873 conftest$ac_exeext conftest.$ac_ext
18874 LIBS=$ac_check_lib_save_LIBS
18876 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18877 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18878 if test $ac_cv_lib_ipc_shmat = yes; then
18879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18885 # Check for libraries that X11R6 Xt/Xaw programs need.
18886 ac_save_LDFLAGS=$LDFLAGS
18887 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18888 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18889 # check for ICE first), but we must link in the order -lSM -lICE or
18890 # we get undefined symbols. So assume we have SM if we have ICE.
18891 # These have to be linked with before -lX11, unlike the other
18892 # libraries we check for below, so use a different variable.
18893 # John Interrante, Karl Berry
18894 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18895 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18896 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18908 /* Override any gcc2 internal prototype to avoid an error. */
18912 /* We use char because int might match the return type of a gcc2
18913 builtin and then its argument prototype would still apply. */
18914 char IceConnectionNumber ();
18918 IceConnectionNumber ();
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925 (eval $ac_link) 2>conftest.er1
18927 grep -v '^ *+' conftest.er1 >conftest.err
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } &&
18932 { ac_try='test -z "$ac_c_werror_flag"
18933 || test ! -s conftest.err'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_ICE_IceConnectionNumber=yes
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950 ac_cv_lib_ICE_IceConnectionNumber=no
18952 rm -f conftest.err conftest.$ac_objext \
18953 conftest$ac_exeext conftest.$ac_ext
18954 LIBS=$ac_check_lib_save_LIBS
18956 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18957 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18958 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18959 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18962 LDFLAGS=$ac_save_LDFLAGS
19024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19026 echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19034 # Is the header compilable?
19035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 $ac_includes_default
19044 #include <$ac_header>
19046 rm -f conftest.$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_header_compiler=yes
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_header_compiler=no
19075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19077 echo "${ECHO_T}$ac_header_compiler" >&6
19079 # Is the header present?
19080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088 #include <$ac_header>
19090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } >/dev/null; then
19098 if test -s conftest.err; then
19099 ac_cpp_err=$ac_c_preproc_warn_flag
19100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19107 if test -z "$ac_cpp_err"; then
19108 ac_header_preproc=yes
19110 echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19113 ac_header_preproc=no
19115 rm -f conftest.err conftest.$ac_ext
19116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19117 echo "${ECHO_T}$ac_header_preproc" >&6
19119 # So? What about this header?
19120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19126 ac_header_preproc=yes
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19143 ## ------------------------------------------ ##
19144 ## Report this to the AC_PACKAGE_NAME lists. ##
19145 ## ------------------------------------------ ##
19148 sed "s/^/$as_me: WARNING: /" >&2
19151 echo "$as_me:$LINENO: checking for $ac_header" >&5
19152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19156 eval "$as_ac_Header=\$ac_header_preproc"
19158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19163 cat >>confdefs.h <<_ACEOF
19164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19171 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19172 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19173 if test "${ac_cv_header_stdc+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 #include <stdlib.h>
19183 #include <stdarg.h>
19184 #include <string.h>
19195 rm -f conftest.$ac_objext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19197 (eval $ac_compile) 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_c_werror_flag"
19205 || test ! -s conftest.err'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest.$ac_objext'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_header_stdc=yes
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_header_stdc=no
19224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 if test $ac_cv_header_stdc = yes; then
19227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 #include <string.h>
19237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19238 $EGREP "memchr" >/dev/null 2>&1; then
19241 ac_cv_header_stdc=no
19247 if test $ac_cv_header_stdc = yes; then
19248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 #include <stdlib.h>
19258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19259 $EGREP "free" >/dev/null 2>&1; then
19262 ac_cv_header_stdc=no
19268 if test $ac_cv_header_stdc = yes; then
19269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19270 if test "$cross_compiling" = yes; then
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19280 #if ((' ' & 0x0FF) == 0x020)
19281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19284 # define ISLOWER(c) \
19285 (('a' <= (c) && (c) <= 'i') \
19286 || ('j' <= (c) && (c) <= 'r') \
19287 || ('s' <= (c) && (c) <= 'z'))
19288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19296 for (i = 0; i < 256; i++)
19297 if (XOR (islower (i), ISLOWER (i))
19298 || toupper (i) != TOUPPER (i))
19303 rm -f conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19316 echo "$as_me: program exited with status $ac_status" >&5
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ( exit $ac_status )
19321 ac_cv_header_stdc=no
19323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19328 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19329 if test $ac_cv_header_stdc = yes; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define STDC_HEADERS 1
19337 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19338 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19339 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 cat >conftest.$ac_ext <<_ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 #include <sys/types.h>
19352 return makedev(0, 0);
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_header_sys_types_h_makedev=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_header_sys_types_h_makedev=no
19386 rm -f conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19390 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19391 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19393 if test $ac_cv_header_sys_types_h_makedev = no; then
19394 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19395 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19396 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19397 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19401 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19403 # Is the header compilable?
19404 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19405 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19413 #include <sys/mkdev.h>
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>conftest.er1
19419 grep -v '^ *+' conftest.er1 >conftest.err
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_c_werror_flag"
19425 || test ! -s conftest.err'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433 (eval $ac_try) 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; }; then
19437 ac_header_compiler=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_header_compiler=no
19444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19446 echo "${ECHO_T}$ac_header_compiler" >&6
19448 # Is the header present?
19449 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19450 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 #include <sys/mkdev.h>
19459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19462 grep -v '^ *+' conftest.er1 >conftest.err
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } >/dev/null; then
19467 if test -s conftest.err; then
19468 ac_cpp_err=$ac_c_preproc_warn_flag
19469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19476 if test -z "$ac_cpp_err"; then
19477 ac_header_preproc=yes
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_header_preproc=no
19484 rm -f conftest.err conftest.$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486 echo "${ECHO_T}$ac_header_preproc" >&6
19488 # So? What about this header?
19489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19491 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19492 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19494 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc=yes
19498 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19499 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19501 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19503 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19505 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19507 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19509 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19512 ## ------------------------------------------ ##
19513 ## Report this to the AC_PACKAGE_NAME lists. ##
19514 ## ------------------------------------------ ##
19517 sed "s/^/$as_me: WARNING: /" >&2
19520 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19521 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19522 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19527 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19528 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19531 if test $ac_cv_header_sys_mkdev_h = yes; then
19533 cat >>confdefs.h <<\_ACEOF
19534 #define MAJOR_IN_MKDEV 1
19541 if test $ac_cv_header_sys_mkdev_h = no; then
19542 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19543 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19544 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19545 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19549 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19551 # Is the header compilable?
19552 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19553 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 $ac_includes_default
19561 #include <sys/sysmacros.h>
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag"
19573 || test ! -s conftest.err'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; }; then
19585 ac_header_compiler=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_header_compiler=no
19592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19594 echo "${ECHO_T}$ac_header_compiler" >&6
19596 # Is the header present?
19597 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19598 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include <sys/sysmacros.h>
19607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19610 grep -v '^ *+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } >/dev/null; then
19615 if test -s conftest.err; then
19616 ac_cpp_err=$ac_c_preproc_warn_flag
19617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19624 if test -z "$ac_cpp_err"; then
19625 ac_header_preproc=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_header_preproc=no
19632 rm -f conftest.err conftest.$ac_ext
19633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 echo "${ECHO_T}$ac_header_preproc" >&6
19636 # So? What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19639 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19640 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19642 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19643 ac_header_preproc=yes
19646 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19647 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19649 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19651 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19653 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19657 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19660 ## ------------------------------------------ ##
19661 ## Report this to the AC_PACKAGE_NAME lists. ##
19662 ## ------------------------------------------ ##
19665 sed "s/^/$as_me: WARNING: /" >&2
19668 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19669 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19670 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19676 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19679 if test $ac_cv_header_sys_sysmacros_h = yes; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define MAJOR_IN_SYSMACROS 1
19696 ac_header_dirent=no
19697 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19698 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19699 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19700 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 cat >conftest.$ac_ext <<_ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19710 #include <sys/types.h>
19722 rm -f conftest.$ac_objext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } &&
19731 { ac_try='test -z "$ac_c_werror_flag"
19732 || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 eval "$as_ac_Header=yes"
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 eval "$as_ac_Header=no"
19751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19756 cat >>confdefs.h <<_ACEOF
19757 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19760 ac_header_dirent=$ac_hdr; break
19764 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19765 if test $ac_header_dirent = dirent.h; then
19766 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19767 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19768 if test "${ac_cv_search_opendir+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_func_search_save_LIBS=$LIBS
19772 ac_cv_search_opendir=no
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any gcc2 internal prototype to avoid an error. */
19784 /* We use char because int might match the return type of a gcc2
19785 builtin and then its argument prototype would still apply. */
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797 (eval $ac_link) 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_cv_search_opendir="none required"
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19823 rm -f conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19825 if test "$ac_cv_search_opendir" = no; then
19826 for ac_lib in dir; do
19827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19835 /* Override any gcc2 internal prototype to avoid an error. */
19839 /* We use char because int might match the return type of a gcc2
19840 builtin and then its argument prototype would still apply. */
19850 rm -f conftest.$ac_objext conftest$ac_exeext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852 (eval $ac_link) 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_c_werror_flag"
19860 || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest$ac_exeext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_search_opendir="-l$ac_lib"
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19879 rm -f conftest.err conftest.$ac_objext \
19880 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_func_search_save_LIBS
19885 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19886 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19887 if test "$ac_cv_search_opendir" != no; then
19888 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19893 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19895 if test "${ac_cv_search_opendir+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 ac_func_search_save_LIBS=$LIBS
19899 ac_cv_search_opendir=no
19900 cat >conftest.$ac_ext <<_ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19907 /* Override any gcc2 internal prototype to avoid an error. */
19911 /* We use char because int might match the return type of a gcc2
19912 builtin and then its argument prototype would still apply. */
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924 (eval $ac_link) 2>conftest.er1
19926 grep -v '^ *+' conftest.er1 >conftest.err
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try='test -z "$ac_c_werror_flag"
19932 || test ! -s conftest.err'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest$ac_exeext'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_cv_search_opendir="none required"
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19950 rm -f conftest.err conftest.$ac_objext \
19951 conftest$ac_exeext conftest.$ac_ext
19952 if test "$ac_cv_search_opendir" = no; then
19953 for ac_lib in x; do
19954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any gcc2 internal prototype to avoid an error. */
19966 /* We use char because int might match the return type of a gcc2
19967 builtin and then its argument prototype would still apply. */
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19979 (eval $ac_link) 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_exeext'
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_search_opendir="-l$ac_lib"
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20006 rm -f conftest.err conftest.$ac_objext \
20007 conftest$ac_exeext conftest.$ac_ext
20010 LIBS=$ac_func_search_save_LIBS
20012 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20013 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20014 if test "$ac_cv_search_opendir" != no; then
20015 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20021 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20022 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20023 if test "${ac_cv_header_stat_broken+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <sys/types.h>
20033 #include <sys/stat.h>
20035 #if defined(S_ISBLK) && defined(S_IFDIR)
20036 # if S_ISBLK (S_IFDIR)
20041 #if defined(S_ISBLK) && defined(S_IFCHR)
20042 # if S_ISBLK (S_IFCHR)
20047 #if defined(S_ISLNK) && defined(S_IFREG)
20048 # if S_ISLNK (S_IFREG)
20053 #if defined(S_ISSOCK) && defined(S_IFREG)
20054 # if S_ISSOCK (S_IFREG)
20060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20061 $EGREP "You lose" >/dev/null 2>&1; then
20062 ac_cv_header_stat_broken=yes
20064 ac_cv_header_stat_broken=no
20069 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20070 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20071 if test $ac_cv_header_stat_broken = yes; then
20073 cat >>confdefs.h <<\_ACEOF
20074 #define STAT_MACROS_BROKEN 1
20079 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20080 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20081 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 #include <sys/types.h>
20091 #include <sys/wait.h>
20092 #ifndef WEXITSTATUS
20093 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20096 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20104 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20109 rm -f conftest.$ac_objext
20110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111 (eval $ac_compile) 2>conftest.er1
20113 grep -v '^ *+' conftest.er1 >conftest.err
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
20118 { ac_try='test -z "$ac_c_werror_flag"
20119 || test ! -s conftest.err'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; } &&
20125 { ac_try='test -s conftest.$ac_objext'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 ac_cv_header_sys_wait_h=yes
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_header_sys_wait_h=no
20138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20140 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20141 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20142 if test $ac_cv_header_sys_wait_h = yes; then
20144 cat >>confdefs.h <<\_ACEOF
20145 #define HAVE_SYS_WAIT_H 1
20150 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20151 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20152 if test "${ac_cv_header_time+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 #include <sys/types.h>
20162 #include <sys/time.h>
20168 if ((struct tm *) 0)
20174 rm -f conftest.$ac_objext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20176 (eval $ac_compile) 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -z "$ac_c_werror_flag"
20184 || test ! -s conftest.err'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; } &&
20190 { ac_try='test -s conftest.$ac_objext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 ac_cv_header_time=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_header_time=no
20203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20205 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20206 echo "${ECHO_T}$ac_cv_header_time" >&6
20207 if test $ac_cv_header_time = yes; then
20209 cat >>confdefs.h <<\_ACEOF
20210 #define TIME_WITH_SYS_TIME 1
20216 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20217 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20218 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20231 static struct stat ac_aggr;
20232 if (ac_aggr.st_blksize)
20238 rm -f conftest.$ac_objext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240 (eval $ac_compile) 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag"
20248 || test ! -s conftest.err'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_member_struct_stat_st_blksize=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 $ac_includes_default
20275 static struct stat ac_aggr;
20276 if (sizeof ac_aggr.st_blksize)
20282 rm -f conftest.$ac_objext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284 (eval $ac_compile) 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
20291 { ac_try='test -z "$ac_c_werror_flag"
20292 || test ! -s conftest.err'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest.$ac_objext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_member_struct_stat_st_blksize=yes
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ac_cv_member_struct_stat_st_blksize=no
20311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20315 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20316 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20317 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_ST_BLKSIZE 1
20331 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20332 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20333 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 cat >conftest.$ac_ext <<_ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342 $ac_includes_default
20346 static struct stat ac_aggr;
20347 if (ac_aggr.st_blocks)
20353 rm -f conftest.$ac_objext
20354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20355 (eval $ac_compile) 2>conftest.er1
20357 grep -v '^ *+' conftest.er1 >conftest.err
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } &&
20362 { ac_try='test -z "$ac_c_werror_flag"
20363 || test ! -s conftest.err'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; } &&
20369 { ac_try='test -s conftest.$ac_objext'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; }; then
20375 ac_cv_member_struct_stat_st_blocks=yes
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 $ac_includes_default
20390 static struct stat ac_aggr;
20391 if (sizeof ac_aggr.st_blocks)
20397 rm -f conftest.$ac_objext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20399 (eval $ac_compile) 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_c_werror_flag"
20407 || test ! -s conftest.err'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; } &&
20413 { ac_try='test -s conftest.$ac_objext'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; }; then
20419 ac_cv_member_struct_stat_st_blocks=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_member_struct_stat_st_blocks=no
20426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20430 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20431 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20432 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20434 cat >>confdefs.h <<_ACEOF
20435 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20439 cat >>confdefs.h <<\_ACEOF
20440 #define HAVE_ST_BLOCKS 1
20445 "fileblocks.$ac_objext" | \
20446 *" fileblocks.$ac_objext" | \
20447 "fileblocks.$ac_objext "* | \
20448 *" fileblocks.$ac_objext "* ) ;;
20449 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20455 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20456 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20457 if test "${ac_cv_struct_tm+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #include <sys/types.h>
20472 struct tm *tp; tp->tm_sec;
20477 rm -f conftest.$ac_objext
20478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>conftest.er1
20481 grep -v '^ *+' conftest.er1 >conftest.err
20483 cat conftest.err >&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); } &&
20486 { ac_try='test -z "$ac_c_werror_flag"
20487 || test ! -s conftest.err'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_cv_struct_tm=time.h
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20504 ac_cv_struct_tm=sys/time.h
20506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20508 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20509 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20510 if test $ac_cv_struct_tm = sys/time.h; then
20512 cat >>confdefs.h <<\_ACEOF
20513 #define TM_IN_SYS_TIME 1
20518 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20519 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20520 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include <sys/types.h>
20530 #include <$ac_cv_struct_tm>
20536 static struct tm ac_aggr;
20537 if (ac_aggr.tm_zone)
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -z "$ac_c_werror_flag"
20553 || test ! -s conftest.err'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; } &&
20559 { ac_try='test -s conftest.$ac_objext'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
20565 ac_cv_member_struct_tm_tm_zone=yes
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 cat >conftest.$ac_ext <<_ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 #include <sys/types.h>
20577 #include <$ac_cv_struct_tm>
20583 static struct tm ac_aggr;
20584 if (sizeof ac_aggr.tm_zone)
20590 rm -f conftest.$ac_objext
20591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20592 (eval $ac_compile) 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } &&
20599 { ac_try='test -z "$ac_c_werror_flag"
20600 || test ! -s conftest.err'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest.$ac_objext'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; }; then
20612 ac_cv_member_struct_tm_tm_zone=yes
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_cv_member_struct_tm_tm_zone=no
20619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20623 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20624 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20625 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_STRUCT_TM_TM_ZONE 1
20634 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20636 cat >>confdefs.h <<\_ACEOF
20637 #define HAVE_TM_ZONE 1
20641 echo "$as_me:$LINENO: checking for tzname" >&5
20642 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20643 if test "${ac_cv_var_tzname+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 #ifndef tzname /* For SGI. */
20654 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20665 rm -f conftest.$ac_objext conftest$ac_exeext
20666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20667 (eval $ac_link) 2>conftest.er1
20669 grep -v '^ *+' conftest.er1 >conftest.err
20671 cat conftest.err >&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } &&
20674 { ac_try='test -z "$ac_c_werror_flag"
20675 || test ! -s conftest.err'
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); }; } &&
20681 { ac_try='test -s conftest$ac_exeext'
20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
20687 ac_cv_var_tzname=yes
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ac_cv_var_tzname=no
20694 rm -f conftest.err conftest.$ac_objext \
20695 conftest$ac_exeext conftest.$ac_ext
20697 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20698 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20699 if test $ac_cv_var_tzname = yes; then
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_TZNAME 1
20709 echo "$as_me:$LINENO: checking for utime.h" >&5
20710 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20711 if test "${ba_cv_header_utime_h+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20721 #include <sys/types.h>
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_c_werror_flag"
20741 || test ! -s conftest.err'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; } &&
20747 { ac_try='test -s conftest.$ac_objext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 ba_cv_header_utime_h=yes
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ba_cv_header_utime_h=no
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20763 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20764 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20765 #define HAVE_UTIME_H 1
20769 echo "$as_me:$LINENO: checking for socklen_t" >&5
20770 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20771 if test "${ba_cv_header_socklen_t+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20781 #include <sys/types.h>
20782 #include <sys/socket.h>
20791 rm -f conftest.$ac_objext
20792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20793 (eval $ac_compile) 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag"
20801 || test ! -s conftest.err'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; } &&
20807 { ac_try='test -s conftest.$ac_objext'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ba_cv_header_socklen_t=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ba_cv_header_socklen_t=no
20820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20822 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20823 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20824 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_SOCKLEN_T 1
20829 echo "$as_me:$LINENO: checking for bigendian" >&5
20830 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20831 if test "${ba_cv_bigendian+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 if test "$cross_compiling" = yes; then
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20845 rm -f conftest$ac_exeext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847 (eval $ac_link) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ba_cv_bigendian=yes
20858 echo "$as_me: program exited with status $ac_status" >&5
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ( exit $ac_status )
20865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20869 echo "${ECHO_T}$ba_cv_bigendian" >&6
20870 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_BIGENDIAN 1
20876 ac_cpp='$CXXCPP $CPPFLAGS'
20877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20882 echo "$as_me:$LINENO: checking for typeof" >&5
20883 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20884 if test "${ba_cv_have_typeof+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 if test "$cross_compiling" = yes; then
20888 ba_cv_have_typeof=no
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 main(){char *a = 0; a = (typeof a)a;}
20898 rm -f conftest$ac_exeext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900 (eval $ac_link) 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ba_cv_have_typeof=yes
20911 echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ( exit $ac_status )
20916 ba_cv_have_typeof=no
20918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20921 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20922 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20923 test $ba_cv_have_typeof = yes &&
20924 cat >>confdefs.h <<\_ACEOF
20925 #define HAVE_TYPEOF 1
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20935 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20936 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20937 if test "${ac_cv_c_const+set}" = set; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20950 /* FIXME: Include the comments suggested by Paul. */
20951 #ifndef __cplusplus
20952 /* Ultrix mips cc rejects this. */
20953 typedef int charset[2];
20955 /* SunOS 4.1.1 cc rejects this. */
20956 char const *const *ccp;
20958 /* NEC SVR4.0.2 mips cc rejects this. */
20959 struct point {int x, y;};
20960 static struct point const zero = {0,0};
20961 /* AIX XL C 1.02.0.0 rejects this.
20962 It does not let you subtract one const X* pointer from another in
20963 an arm of an if-expression whose if-part is not a constant
20965 const char *g = "string";
20966 ccp = &g + (g ? g-g : 0);
20967 /* HPUX 7.0 cc rejects these. */
20970 ccp = (char const *const *) p;
20971 { /* SCO 3.2v4 cc rejects this. */
20973 char const *s = 0 ? (char *) 0 : (char const *) 0;
20977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20978 int x[] = {25, 17};
20979 const int *foo = &x[0];
20982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20983 typedef const int *iptr;
20987 { /* AIX XL C 1.02.0.0 rejects this saying
20988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20989 struct s { int j; const int *ap[3]; };
20990 struct s *b; b->j = 5;
20992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20993 const int foo = 10;
21001 rm -f conftest.$ac_objext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21003 (eval $ac_compile) 2>conftest.er1
21005 grep -v '^ *+' conftest.er1 >conftest.err
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_c_werror_flag"
21011 || test ! -s conftest.err'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21032 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21033 echo "${ECHO_T}$ac_cv_c_const" >&6
21034 if test $ac_cv_c_const = no; then
21036 cat >>confdefs.h <<\_ACEOF
21044 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21045 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21047 # The order of these tests is important.
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 #include <sys/statvfs.h>
21055 #include <sys/fstyp.h>
21057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } >/dev/null; then
21065 if test -s conftest.err; then
21066 ac_cpp_err=$ac_c_preproc_warn_flag
21067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21074 if test -z "$ac_cpp_err"; then
21075 cat >>confdefs.h <<\_ACEOF
21076 #define FSTYPE_STATVFS 1
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21085 rm -f conftest.err conftest.$ac_ext
21086 if test $fstype = no; then
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 #include <sys/statfs.h>
21094 #include <sys/fstyp.h>
21096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } >/dev/null; then
21104 if test -s conftest.err; then
21105 ac_cpp_err=$ac_c_preproc_warn_flag
21106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21113 if test -z "$ac_cpp_err"; then
21114 cat >>confdefs.h <<\_ACEOF
21115 #define FSTYPE_USG_STATFS 1
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21124 rm -f conftest.err conftest.$ac_ext
21126 if test $fstype = no; then
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include <sys/statfs.h>
21134 #include <sys/vmount.h>
21136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21139 grep -v '^ *+' conftest.er1 >conftest.err
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } >/dev/null; then
21144 if test -s conftest.err; then
21145 ac_cpp_err=$ac_c_preproc_warn_flag
21146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21153 if test -z "$ac_cpp_err"; then
21154 cat >>confdefs.h <<\_ACEOF
21155 #define FSTYPE_AIX_STATFS 1
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21164 rm -f conftest.err conftest.$ac_ext
21166 if test $fstype = no; then
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <mntent.h>
21175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21178 grep -v '^ *+' conftest.er1 >conftest.err
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } >/dev/null; then
21183 if test -s conftest.err; then
21184 ac_cpp_err=$ac_c_preproc_warn_flag
21185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21192 if test -z "$ac_cpp_err"; then
21193 cat >>confdefs.h <<\_ACEOF
21194 #define FSTYPE_MNTENT 1
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21203 rm -f conftest.err conftest.$ac_ext
21205 if test $fstype = no; then
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21212 #include <sys/mount.h>
21215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21216 $EGREP "f_type;" >/dev/null 2>&1; then
21217 cat >>confdefs.h <<\_ACEOF
21218 #define FSTYPE_STATFS 1
21225 if test $fstype = no; then
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <sys/mount.h>
21233 #include <sys/fs_types.h>
21235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21238 grep -v '^ *+' conftest.er1 >conftest.err
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } >/dev/null; then
21243 if test -s conftest.err; then
21244 ac_cpp_err=$ac_c_preproc_warn_flag
21245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21252 if test -z "$ac_cpp_err"; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define FSTYPE_GETMNT 1
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21263 rm -f conftest.err conftest.$ac_ext
21265 echo "$as_me:$LINENO: result: $fstype" >&5
21266 echo "${ECHO_T}$fstype" >&6
21268 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21269 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21270 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21271 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21275 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21277 # Is the header compilable?
21278 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21279 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 $ac_includes_default
21287 #include <sys/statvfs.h>
21289 rm -f conftest.$ac_objext
21290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21291 (eval $ac_compile) 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
21298 { ac_try='test -z "$ac_c_werror_flag"
21299 || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 ac_header_compiler=yes
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_compiler=no
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21320 echo "${ECHO_T}$ac_header_compiler" >&6
21322 # Is the header present?
21323 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21324 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include <sys/statvfs.h>
21333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21336 grep -v '^ *+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } >/dev/null; then
21341 if test -s conftest.err; then
21342 ac_cpp_err=$ac_c_preproc_warn_flag
21343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21350 if test -z "$ac_cpp_err"; then
21351 ac_header_preproc=yes
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ac_header_preproc=no
21358 rm -f conftest.err conftest.$ac_ext
21359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6
21362 # So? What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21365 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21366 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21368 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21369 ac_header_preproc=yes
21372 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21373 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21375 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21377 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21379 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21381 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21383 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21386 ## ------------------------------------------ ##
21387 ## Report this to the AC_PACKAGE_NAME lists. ##
21388 ## ------------------------------------------ ##
21391 sed "s/^/$as_me: WARNING: /" >&2
21394 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21395 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21396 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21401 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21402 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21405 if test $ac_cv_header_sys_statvfs_h = yes; then
21407 cat >>confdefs.h <<\_ACEOF
21408 #define HAVE_SYS_STATVFS_H 1
21415 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21416 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21417 if test "${ac_cv_type_signal+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 #include <sys/types.h>
21427 #include <signal.h>
21432 extern "C" void (*signal (int, void (*)(int)))(int);
21434 void (*signal ()) ();
21445 rm -f conftest.$ac_objext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21447 (eval $ac_compile) 2>conftest.er1
21449 grep -v '^ *+' conftest.er1 >conftest.err
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } &&
21454 { ac_try='test -z "$ac_c_werror_flag"
21455 || test ! -s conftest.err'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; } &&
21461 { ac_try='test -s conftest.$ac_objext'
21462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 ac_cv_type_signal=void
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 ac_cv_type_signal=int
21474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21477 echo "${ECHO_T}$ac_cv_type_signal" >&6
21479 cat >>confdefs.h <<_ACEOF
21480 #define RETSIGTYPE $ac_cv_type_signal
21485 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21486 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21487 if test "${bash_cv_signal_vintage+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <signal.h>
21503 struct sigaction sa;
21504 sigemptyset(&ss); sigsuspend(&ss);
21505 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21506 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21512 rm -f conftest.$ac_objext conftest$ac_exeext
21513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21514 (eval $ac_link) 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
21521 { ac_try='test -z "$ac_c_werror_flag"
21522 || test ! -s conftest.err'
21523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524 (eval $ac_try) 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; } &&
21528 { ac_try='test -s conftest$ac_exeext'
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
21534 bash_cv_signal_vintage="posix"
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <signal.h>
21551 int mask = sigmask(SIGINT);
21552 sigsetmask(mask); sigblock(mask); sigpause(mask);
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560 (eval $ac_link) 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
21567 { ac_try='test -z "$ac_c_werror_flag"
21568 || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest$ac_exeext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 bash_cv_signal_vintage="4.2bsd"
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21593 #include <signal.h>
21594 RETSIGTYPE foo() { }
21599 int mask = sigmask(SIGINT);
21600 sigset(SIGINT, foo); sigrelse(SIGINT);
21601 sighold(SIGINT); sigpause(SIGINT);
21607 rm -f conftest.$ac_objext conftest$ac_exeext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21609 (eval $ac_link) 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_c_werror_flag"
21617 || test ! -s conftest.err'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; } &&
21623 { ac_try='test -s conftest$ac_exeext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 bash_cv_signal_vintage="svr3"
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 bash_cv_signal_vintage="v7"
21637 rm -f conftest.err conftest.$ac_objext \
21638 conftest$ac_exeext conftest.$ac_ext
21641 rm -f conftest.err conftest.$ac_objext \
21642 conftest$ac_exeext conftest.$ac_ext
21645 rm -f conftest.err conftest.$ac_objext \
21646 conftest$ac_exeext conftest.$ac_ext
21650 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21651 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21652 if test "$bash_cv_signal_vintage" = "posix"; then
21653 cat >>confdefs.h <<\_ACEOF
21654 #define HAVE_POSIX_SIGNALS 1
21657 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21658 cat >>confdefs.h <<\_ACEOF
21659 #define HAVE_BSD_SIGNALS 1
21662 elif test "$bash_cv_signal_vintage" = "svr3"; then
21663 cat >>confdefs.h <<\_ACEOF
21664 #define HAVE_USG_SIGHOLD 1
21669 echo "$as_me:$LINENO: checking for mode_t" >&5
21670 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21671 if test "${ac_cv_type_mode_t+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21686 if (sizeof (mode_t))
21692 rm -f conftest.$ac_objext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21694 (eval $ac_compile) 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
21701 { ac_try='test -z "$ac_c_werror_flag"
21702 || test ! -s conftest.err'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; } &&
21708 { ac_try='test -s conftest.$ac_objext'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 ac_cv_type_mode_t=yes
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_cv_type_mode_t=no
21721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21723 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21724 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21725 if test $ac_cv_type_mode_t = yes; then
21729 cat >>confdefs.h <<_ACEOF
21735 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21736 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21737 if test "${ac_cv_type_uid_t+set}" = set; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <sys/types.h>
21749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21750 $EGREP "uid_t" >/dev/null 2>&1; then
21751 ac_cv_type_uid_t=yes
21753 ac_cv_type_uid_t=no
21758 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21759 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21760 if test $ac_cv_type_uid_t = no; then
21762 cat >>confdefs.h <<\_ACEOF
21767 cat >>confdefs.h <<\_ACEOF
21773 echo "$as_me:$LINENO: checking for size_t" >&5
21774 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21775 if test "${ac_cv_type_size_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 (size_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_size_t=yes
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_cv_type_size_t=no
21825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21827 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21828 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21829 if test $ac_cv_type_size_t = yes; then
21833 cat >>confdefs.h <<_ACEOF
21834 #define size_t unsigned
21839 echo "$as_me:$LINENO: checking for pid_t" >&5
21840 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21841 if test "${ac_cv_type_pid_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 (pid_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_pid_t=yes
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21889 ac_cv_type_pid_t=no
21891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21893 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21894 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21895 if test $ac_cv_type_pid_t = yes; then
21899 cat >>confdefs.h <<_ACEOF
21905 echo "$as_me:$LINENO: checking for off_t" >&5
21906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21907 if test "${ac_cv_type_off_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 (off_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_off_t=yes
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_cv_type_off_t=no
21957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21961 if test $ac_cv_type_off_t = yes; then
21965 cat >>confdefs.h <<_ACEOF
21971 echo "$as_me:$LINENO: checking for ino_t" >&5
21972 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21973 if test "${ac_cv_type_ino_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 (ino_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_ino_t=yes
22018 echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22021 ac_cv_type_ino_t=no
22023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22025 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22026 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22027 if test $ac_cv_type_ino_t = yes; then
22031 cat >>confdefs.h <<_ACEOF
22032 #define ino_t unsigned long
22037 echo "$as_me:$LINENO: checking for dev_t" >&5
22038 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22039 if test "${ac_cv_type_dev_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 (dev_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_dev_t=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_cv_type_dev_t=no
22089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22092 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22093 if test $ac_cv_type_dev_t = yes; then
22097 cat >>confdefs.h <<_ACEOF
22098 #define dev_t unsigned long
22103 echo "$as_me:$LINENO: checking for daddr_t" >&5
22104 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22105 if test "${ac_cv_type_daddr_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 (daddr_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_daddr_t=yes
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_cv_type_daddr_t=no
22155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22157 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22158 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22159 if test $ac_cv_type_daddr_t = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define daddr_t long
22169 echo "$as_me:$LINENO: checking for major_t" >&5
22170 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22171 if test "${ac_cv_type_major_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 (major_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_major_t=yes
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 ac_cv_type_major_t=no
22221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22223 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22224 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22225 if test $ac_cv_type_major_t = yes; then
22229 cat >>confdefs.h <<_ACEOF
22230 #define major_t int
22235 echo "$as_me:$LINENO: checking for minor_t" >&5
22236 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22237 if test "${ac_cv_type_minor_t+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
22252 if (sizeof (minor_t))
22258 rm -f conftest.$ac_objext
22259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22260 (eval $ac_compile) 2>conftest.er1
22262 grep -v '^ *+' conftest.er1 >conftest.err
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
22267 { ac_try='test -z "$ac_c_werror_flag"
22268 || test ! -s conftest.err'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; } &&
22274 { ac_try='test -s conftest.$ac_objext'
22275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22276 (eval $ac_try) 2>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); }; }; then
22280 ac_cv_type_minor_t=yes
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22285 ac_cv_type_minor_t=no
22287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22289 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22290 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22291 if test $ac_cv_type_minor_t = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define minor_t int
22301 echo "$as_me:$LINENO: checking for ssize_t" >&5
22302 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22303 if test "${ac_cv_type_ssize_t+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22306 cat >conftest.$ac_ext <<_ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 $ac_includes_default
22318 if (sizeof (ssize_t))
22324 rm -f conftest.$ac_objext
22325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22326 (eval $ac_compile) 2>conftest.er1
22328 grep -v '^ *+' conftest.er1 >conftest.err
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -z "$ac_c_werror_flag"
22334 || test ! -s conftest.err'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; } &&
22340 { ac_try='test -s conftest.$ac_objext'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
22346 ac_cv_type_ssize_t=yes
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22351 ac_cv_type_ssize_t=no
22353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22355 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22356 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22357 if test $ac_cv_type_ssize_t = yes; then
22361 cat >>confdefs.h <<_ACEOF
22362 #define ssize_t int
22367 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22368 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22369 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 cat >conftest.$ac_ext <<_ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h. */
22378 $ac_includes_default
22382 static struct stat ac_aggr;
22383 if (ac_aggr.st_blocks)
22389 rm -f conftest.$ac_objext
22390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22391 (eval $ac_compile) 2>conftest.er1
22393 grep -v '^ *+' conftest.er1 >conftest.err
22395 cat conftest.err >&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } &&
22398 { ac_try='test -z "$ac_c_werror_flag"
22399 || test ! -s conftest.err'
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; } &&
22405 { ac_try='test -s conftest.$ac_objext'
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; }; then
22411 ac_cv_member_struct_stat_st_blocks=yes
22413 echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 cat >conftest.$ac_ext <<_ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 $ac_includes_default
22426 static struct stat ac_aggr;
22427 if (sizeof ac_aggr.st_blocks)
22433 rm -f conftest.$ac_objext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22435 (eval $ac_compile) 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
22442 { ac_try='test -z "$ac_c_werror_flag"
22443 || test ! -s conftest.err'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try='test -s conftest.$ac_objext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 ac_cv_member_struct_stat_st_blocks=yes
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 ac_cv_member_struct_stat_st_blocks=no
22462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22467 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22468 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22470 cat >>confdefs.h <<_ACEOF
22471 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22475 cat >>confdefs.h <<\_ACEOF
22476 #define HAVE_ST_BLOCKS 1
22481 "fileblocks.$ac_objext" | \
22482 *" fileblocks.$ac_objext" | \
22483 "fileblocks.$ac_objext "* | \
22484 *" fileblocks.$ac_objext "* ) ;;
22485 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22492 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22493 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22494 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22495 echo $ECHO_N "(cached) $ECHO_C" >&6
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 $ac_includes_default
22507 static struct stat ac_aggr;
22508 if (ac_aggr.st_rdev)
22514 rm -f conftest.$ac_objext
22515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22516 (eval $ac_compile) 2>conftest.er1
22518 grep -v '^ *+' conftest.er1 >conftest.err
22520 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
22523 { ac_try='test -z "$ac_c_werror_flag"
22524 || test ! -s conftest.err'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest.$ac_objext'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 ac_cv_member_struct_stat_st_rdev=yes
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 cat >conftest.$ac_ext <<_ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 $ac_includes_default
22551 static struct stat ac_aggr;
22552 if (sizeof ac_aggr.st_rdev)
22558 rm -f conftest.$ac_objext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560 (eval $ac_compile) 2>conftest.er1
22562 grep -v '^ *+' conftest.er1 >conftest.err
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } &&
22567 { ac_try='test -z "$ac_c_werror_flag"
22568 || test ! -s conftest.err'
22569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570 (eval $ac_try) 2>&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; } &&
22574 { ac_try='test -s conftest.$ac_objext'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
22580 ac_cv_member_struct_stat_st_rdev=yes
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22585 ac_cv_member_struct_stat_st_rdev=no
22587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22591 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22592 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22593 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22595 cat >>confdefs.h <<_ACEOF
22596 #define HAVE_STRUCT_STAT_ST_RDEV 1
22600 cat >>confdefs.h <<\_ACEOF
22601 #define HAVE_ST_RDEV 1
22607 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22608 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22609 if test "${ac_cv_struct_tm+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 #include <sys/types.h>
22624 struct tm *tp; tp->tm_sec;
22629 rm -f conftest.$ac_objext
22630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22631 (eval $ac_compile) 2>conftest.er1
22633 grep -v '^ *+' conftest.er1 >conftest.err
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
22638 { ac_try='test -z "$ac_c_werror_flag"
22639 || test ! -s conftest.err'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; } &&
22645 { ac_try='test -s conftest.$ac_objext'
22646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647 (eval $ac_try) 2>&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; }; then
22651 ac_cv_struct_tm=time.h
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22656 ac_cv_struct_tm=sys/time.h
22658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22660 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22661 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22662 if test $ac_cv_struct_tm = sys/time.h; then
22664 cat >>confdefs.h <<\_ACEOF
22665 #define TM_IN_SYS_TIME 1
22670 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22671 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22672 if test "${ac_cv_c_const+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22675 cat >conftest.$ac_ext <<_ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h. */
22685 /* FIXME: Include the comments suggested by Paul. */
22686 #ifndef __cplusplus
22687 /* Ultrix mips cc rejects this. */
22688 typedef int charset[2];
22690 /* SunOS 4.1.1 cc rejects this. */
22691 char const *const *ccp;
22693 /* NEC SVR4.0.2 mips cc rejects this. */
22694 struct point {int x, y;};
22695 static struct point const zero = {0,0};
22696 /* AIX XL C 1.02.0.0 rejects this.
22697 It does not let you subtract one const X* pointer from another in
22698 an arm of an if-expression whose if-part is not a constant
22700 const char *g = "string";
22701 ccp = &g + (g ? g-g : 0);
22702 /* HPUX 7.0 cc rejects these. */
22705 ccp = (char const *const *) p;
22706 { /* SCO 3.2v4 cc rejects this. */
22708 char const *s = 0 ? (char *) 0 : (char const *) 0;
22712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22713 int x[] = {25, 17};
22714 const int *foo = &x[0];
22717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22718 typedef const int *iptr;
22722 { /* AIX XL C 1.02.0.0 rejects this saying
22723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22724 struct s { int j; const int *ap[3]; };
22725 struct s *b; b->j = 5;
22727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22728 const int foo = 10;
22736 rm -f conftest.$ac_objext
22737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22738 (eval $ac_compile) 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
22745 { ac_try='test -z "$ac_c_werror_flag"
22746 || test ! -s conftest.err'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; } &&
22752 { ac_try='test -s conftest.$ac_objext'
22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754 (eval $ac_try) 2>&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; }; then
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22767 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22768 echo "${ECHO_T}$ac_cv_c_const" >&6
22769 if test $ac_cv_c_const = no; then
22771 cat >>confdefs.h <<\_ACEOF
22779 echo "$as_me:$LINENO: checking for char" >&5
22780 echo $ECHO_N "checking for char... $ECHO_C" >&6
22781 if test "${ac_cv_type_char+set}" = set; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 cat >conftest.$ac_ext <<_ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22790 $ac_includes_default
22802 rm -f conftest.$ac_objext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22804 (eval $ac_compile) 2>conftest.er1
22806 grep -v '^ *+' conftest.er1 >conftest.err
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } &&
22811 { ac_try='test -z "$ac_c_werror_flag"
22812 || test ! -s conftest.err'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; } &&
22818 { ac_try='test -s conftest.$ac_objext'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }; then
22824 ac_cv_type_char=yes
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22833 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22834 echo "${ECHO_T}$ac_cv_type_char" >&6
22836 echo "$as_me:$LINENO: checking size of char" >&5
22837 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22838 if test "${ac_cv_sizeof_char+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22841 if test "$ac_cv_type_char" = yes; then
22842 # The cast to unsigned long works around a bug in the HP C Compiler
22843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22845 # This bug is HP SR number 8606223364.
22846 if test "$cross_compiling" = yes; then
22847 # Depending upon the size, compute the lo and hi bounds.
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 $ac_includes_default
22858 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22865 rm -f conftest.$ac_objext
22866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22867 (eval $ac_compile) 2>conftest.er1
22869 grep -v '^ *+' conftest.er1 >conftest.err
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } &&
22874 { ac_try='test -z "$ac_c_werror_flag"
22875 || test ! -s conftest.err'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; } &&
22881 { ac_try='test -s conftest.$ac_objext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 $ac_includes_default
22899 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22906 rm -f conftest.$ac_objext
22907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22908 (eval $ac_compile) 2>conftest.er1
22910 grep -v '^ *+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } &&
22915 { ac_try='test -z "$ac_c_werror_flag"
22916 || test ! -s conftest.err'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; } &&
22922 { ac_try='test -s conftest.$ac_objext'
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; }; then
22928 ac_hi=$ac_mid; break
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_lo=`expr $ac_mid + 1`
22934 if test $ac_lo -le $ac_mid; then
22938 ac_mid=`expr 2 '*' $ac_mid + 1`
22940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 $ac_includes_default
22956 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22963 rm -f conftest.$ac_objext
22964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22965 (eval $ac_compile) 2>conftest.er1
22967 grep -v '^ *+' conftest.er1 >conftest.err
22969 cat conftest.err >&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } &&
22972 { ac_try='test -z "$ac_c_werror_flag"
22973 || test ! -s conftest.err'
22974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975 (eval $ac_try) 2>&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; } &&
22979 { ac_try='test -s conftest.$ac_objext'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; }; then
22987 cat >conftest.$ac_ext <<_ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 $ac_includes_default
22997 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23004 rm -f conftest.$ac_objext
23005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23006 (eval $ac_compile) 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } &&
23013 { ac_try='test -z "$ac_c_werror_flag"
23014 || test ! -s conftest.err'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; } &&
23020 { ac_try='test -s conftest.$ac_objext'
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 ac_lo=$ac_mid; break
23028 echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.$ac_ext >&5
23031 ac_hi=`expr '(' $ac_mid ')' - 1`
23032 if test $ac_mid -le $ac_hi; then
23036 ac_mid=`expr 2 '*' $ac_mid`
23038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049 # Binary search between lo and hi bounds.
23050 while test "x$ac_lo" != "x$ac_hi"; do
23051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23062 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23069 rm -f conftest.$ac_objext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23071 (eval $ac_compile) 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } &&
23078 { ac_try='test -z "$ac_c_werror_flag"
23079 || test ! -s conftest.err'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 ac_lo=`expr '(' $ac_mid ')' + 1`
23098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23101 ?*) ac_cv_sizeof_char=$ac_lo;;
23102 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23103 See \`config.log' for more details." >&5
23104 echo "$as_me: error: cannot compute sizeof (char), 77
23105 See \`config.log' for more details." >&2;}
23106 { (exit 1); exit 1; }; } ;;
23109 if test "$cross_compiling" = yes; then
23110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23111 See \`config.log' for more details." >&5
23112 echo "$as_me: error: cannot run test program while cross compiling
23113 See \`config.log' for more details." >&2;}
23114 { (exit 1); exit 1; }; }
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 $ac_includes_default
23123 long longval () { return (long) (sizeof (char)); }
23124 unsigned long ulongval () { return (long) (sizeof (char)); }
23126 #include <stdlib.h>
23131 FILE *f = fopen ("conftest.val", "w");
23134 if (((long) (sizeof (char))) < 0)
23136 long i = longval ();
23137 if (i != ((long) (sizeof (char))))
23139 fprintf (f, "%ld\n", i);
23143 unsigned long i = ulongval ();
23144 if (i != ((long) (sizeof (char))))
23146 fprintf (f, "%lu\n", i);
23148 exit (ferror (f) || fclose (f) != 0);
23154 rm -f conftest$ac_exeext
23155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23156 (eval $ac_link) 2>&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; }; then
23165 ac_cv_sizeof_char=`cat conftest.val`
23167 echo "$as_me: program exited with status $ac_status" >&5
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 ( exit $ac_status )
23172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23173 See \`config.log' for more details." >&5
23174 echo "$as_me: error: cannot compute sizeof (char), 77
23175 See \`config.log' for more details." >&2;}
23176 { (exit 1); exit 1; }; }
23178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23183 ac_cv_sizeof_char=0
23186 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23187 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23188 cat >>confdefs.h <<_ACEOF
23189 #define SIZEOF_CHAR $ac_cv_sizeof_char
23193 echo "$as_me:$LINENO: checking for short int" >&5
23194 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23195 if test "${ac_cv_type_short_int+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 $ac_includes_default
23208 if ((short int *) 0)
23210 if (sizeof (short int))
23216 rm -f conftest.$ac_objext
23217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23218 (eval $ac_compile) 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } &&
23225 { ac_try='test -z "$ac_c_werror_flag"
23226 || test ! -s conftest.err'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; } &&
23232 { ac_try='test -s conftest.$ac_objext'
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; }; then
23238 ac_cv_type_short_int=yes
23240 echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23243 ac_cv_type_short_int=no
23245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23247 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23248 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23250 echo "$as_me:$LINENO: checking size of short int" >&5
23251 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23252 if test "${ac_cv_sizeof_short_int+set}" = set; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23255 if test "$ac_cv_type_short_int" = yes; then
23256 # The cast to unsigned long works around a bug in the HP C Compiler
23257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23259 # This bug is HP SR number 8606223364.
23260 if test "$cross_compiling" = yes; then
23261 # Depending upon the size, compute the lo and hi bounds.
23262 cat >conftest.$ac_ext <<_ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268 $ac_includes_default
23272 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23279 rm -f conftest.$ac_objext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23281 (eval $ac_compile) 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } &&
23288 { ac_try='test -z "$ac_c_werror_flag"
23289 || test ! -s conftest.err'
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; } &&
23295 { ac_try='test -s conftest.$ac_objext'
23296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297 (eval $ac_try) 2>&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; }; then
23303 cat >conftest.$ac_ext <<_ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h. */
23309 $ac_includes_default
23313 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23320 rm -f conftest.$ac_objext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23322 (eval $ac_compile) 2>conftest.er1
23324 grep -v '^ *+' conftest.er1 >conftest.err
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try='test -z "$ac_c_werror_flag"
23330 || test ! -s conftest.err'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; } &&
23336 { ac_try='test -s conftest.$ac_objext'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 ac_hi=$ac_mid; break
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23347 ac_lo=`expr $ac_mid + 1`
23348 if test $ac_lo -le $ac_mid; then
23352 ac_mid=`expr 2 '*' $ac_mid + 1`
23354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23366 $ac_includes_default
23370 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23377 rm -f conftest.$ac_objext
23378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23379 (eval $ac_compile) 2>conftest.er1
23381 grep -v '^ *+' conftest.er1 >conftest.err
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } &&
23386 { ac_try='test -z "$ac_c_werror_flag"
23387 || test ! -s conftest.err'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; } &&
23393 { ac_try='test -s conftest.$ac_objext'
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 $ac_includes_default
23411 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23418 rm -f conftest.$ac_objext
23419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23420 (eval $ac_compile) 2>conftest.er1
23422 grep -v '^ *+' conftest.er1 >conftest.err
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } &&
23427 { ac_try='test -z "$ac_c_werror_flag"
23428 || test ! -s conftest.err'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest.$ac_objext'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 ac_lo=$ac_mid; break
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 ac_hi=`expr '(' $ac_mid ')' - 1`
23446 if test $ac_mid -le $ac_hi; then
23450 ac_mid=`expr 2 '*' $ac_mid`
23452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23463 # Binary search between lo and hi bounds.
23464 while test "x$ac_lo" != "x$ac_hi"; do
23465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 $ac_includes_default
23476 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23483 rm -f conftest.$ac_objext
23484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23485 (eval $ac_compile) 2>conftest.er1
23487 grep -v '^ *+' conftest.er1 >conftest.err
23489 cat conftest.err >&5
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); } &&
23492 { ac_try='test -z "$ac_c_werror_flag"
23493 || test ! -s conftest.err'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23510 ac_lo=`expr '(' $ac_mid ')' + 1`
23512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23515 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23517 See \`config.log' for more details." >&5
23518 echo "$as_me: error: cannot compute sizeof (short int), 77
23519 See \`config.log' for more details." >&2;}
23520 { (exit 1); exit 1; }; } ;;
23523 if test "$cross_compiling" = yes; then
23524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23525 See \`config.log' for more details." >&5
23526 echo "$as_me: error: cannot run test program while cross compiling
23527 See \`config.log' for more details." >&2;}
23528 { (exit 1); exit 1; }; }
23530 cat >conftest.$ac_ext <<_ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23536 $ac_includes_default
23537 long longval () { return (long) (sizeof (short int)); }
23538 unsigned long ulongval () { return (long) (sizeof (short int)); }
23540 #include <stdlib.h>
23545 FILE *f = fopen ("conftest.val", "w");
23548 if (((long) (sizeof (short int))) < 0)
23550 long i = longval ();
23551 if (i != ((long) (sizeof (short int))))
23553 fprintf (f, "%ld\n", i);
23557 unsigned long i = ulongval ();
23558 if (i != ((long) (sizeof (short int))))
23560 fprintf (f, "%lu\n", i);
23562 exit (ferror (f) || fclose (f) != 0);
23568 rm -f conftest$ac_exeext
23569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23570 (eval $ac_link) 2>&5
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_cv_sizeof_short_int=`cat conftest.val`
23581 echo "$as_me: program exited with status $ac_status" >&5
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23585 ( exit $ac_status )
23586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23587 See \`config.log' for more details." >&5
23588 echo "$as_me: error: cannot compute sizeof (short int), 77
23589 See \`config.log' for more details." >&2;}
23590 { (exit 1); exit 1; }; }
23592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23597 ac_cv_sizeof_short_int=0
23600 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23601 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23602 cat >>confdefs.h <<_ACEOF
23603 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23607 echo "$as_me:$LINENO: checking for int" >&5
23608 echo $ECHO_N "checking for int... $ECHO_C" >&6
23609 if test "${ac_cv_type_int+set}" = set; then
23610 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 cat >conftest.$ac_ext <<_ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23618 $ac_includes_default
23630 rm -f conftest.$ac_objext
23631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23632 (eval $ac_compile) 2>conftest.er1
23634 grep -v '^ *+' conftest.er1 >conftest.err
23636 cat conftest.err >&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } &&
23639 { ac_try='test -z "$ac_c_werror_flag"
23640 || test ! -s conftest.err'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; } &&
23646 { ac_try='test -s conftest.$ac_objext'
23647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648 (eval $ac_try) 2>&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23661 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23662 echo "${ECHO_T}$ac_cv_type_int" >&6
23664 echo "$as_me:$LINENO: checking size of int" >&5
23665 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23666 if test "${ac_cv_sizeof_int+set}" = set; then
23667 echo $ECHO_N "(cached) $ECHO_C" >&6
23669 if test "$ac_cv_type_int" = yes; then
23670 # The cast to unsigned long works around a bug in the HP C Compiler
23671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23673 # This bug is HP SR number 8606223364.
23674 if test "$cross_compiling" = yes; then
23675 # Depending upon the size, compute the lo and hi bounds.
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23686 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23693 rm -f conftest.$ac_objext
23694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23695 (eval $ac_compile) 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } &&
23702 { ac_try='test -z "$ac_c_werror_flag"
23703 || test ! -s conftest.err'
23704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705 (eval $ac_try) 2>&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); }; } &&
23709 { ac_try='test -s conftest.$ac_objext'
23710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23711 (eval $ac_try) 2>&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); }; }; then
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 $ac_includes_default
23727 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23734 rm -f conftest.$ac_objext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23736 (eval $ac_compile) 2>conftest.er1
23738 grep -v '^ *+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try='test -z "$ac_c_werror_flag"
23744 || test ! -s conftest.err'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; } &&
23750 { ac_try='test -s conftest.$ac_objext'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; }; then
23756 ac_hi=$ac_mid; break
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ac_lo=`expr $ac_mid + 1`
23762 if test $ac_lo -le $ac_mid; then
23766 ac_mid=`expr 2 '*' $ac_mid + 1`
23768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23771 echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23780 $ac_includes_default
23784 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23791 rm -f conftest.$ac_objext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23793 (eval $ac_compile) 2>conftest.er1
23795 grep -v '^ *+' conftest.er1 >conftest.err
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } &&
23800 { ac_try='test -z "$ac_c_werror_flag"
23801 || test ! -s conftest.err'
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; } &&
23807 { ac_try='test -s conftest.$ac_objext'
23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; }; then
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 $ac_includes_default
23825 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23832 rm -f conftest.$ac_objext
23833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23834 (eval $ac_compile) 2>conftest.er1
23836 grep -v '^ *+' conftest.er1 >conftest.err
23838 cat conftest.err >&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); } &&
23841 { ac_try='test -z "$ac_c_werror_flag"
23842 || test ! -s conftest.err'
23843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844 (eval $ac_try) 2>&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); }; } &&
23848 { ac_try='test -s conftest.$ac_objext'
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; }; then
23854 ac_lo=$ac_mid; break
23856 echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 ac_hi=`expr '(' $ac_mid ')' - 1`
23860 if test $ac_mid -le $ac_hi; then
23864 ac_mid=`expr 2 '*' $ac_mid`
23866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23877 # Binary search between lo and hi bounds.
23878 while test "x$ac_lo" != "x$ac_hi"; do
23879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23880 cat >conftest.$ac_ext <<_ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 $ac_includes_default
23890 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23897 rm -f conftest.$ac_objext
23898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23899 (eval $ac_compile) 2>conftest.er1
23901 grep -v '^ *+' conftest.er1 >conftest.err
23903 cat conftest.err >&5
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } &&
23906 { ac_try='test -z "$ac_c_werror_flag"
23907 || test ! -s conftest.err'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest.$ac_objext'
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924 ac_lo=`expr '(' $ac_mid ')' + 1`
23926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23929 ?*) ac_cv_sizeof_int=$ac_lo;;
23930 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23931 See \`config.log' for more details." >&5
23932 echo "$as_me: error: cannot compute sizeof (int), 77
23933 See \`config.log' for more details." >&2;}
23934 { (exit 1); exit 1; }; } ;;
23937 if test "$cross_compiling" = yes; then
23938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23939 See \`config.log' for more details." >&5
23940 echo "$as_me: error: cannot run test program while cross compiling
23941 See \`config.log' for more details." >&2;}
23942 { (exit 1); exit 1; }; }
23944 cat >conftest.$ac_ext <<_ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 $ac_includes_default
23951 long longval () { return (long) (sizeof (int)); }
23952 unsigned long ulongval () { return (long) (sizeof (int)); }
23954 #include <stdlib.h>
23959 FILE *f = fopen ("conftest.val", "w");
23962 if (((long) (sizeof (int))) < 0)
23964 long i = longval ();
23965 if (i != ((long) (sizeof (int))))
23967 fprintf (f, "%ld\n", i);
23971 unsigned long i = ulongval ();
23972 if (i != ((long) (sizeof (int))))
23974 fprintf (f, "%lu\n", i);
23976 exit (ferror (f) || fclose (f) != 0);
23982 rm -f conftest$ac_exeext
23983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23984 (eval $ac_link) 2>&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; }; then
23993 ac_cv_sizeof_int=`cat conftest.val`
23995 echo "$as_me: program exited with status $ac_status" >&5
23996 echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23999 ( exit $ac_status )
24000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24001 See \`config.log' for more details." >&5
24002 echo "$as_me: error: cannot compute sizeof (int), 77
24003 See \`config.log' for more details." >&2;}
24004 { (exit 1); exit 1; }; }
24006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24014 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24015 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24016 cat >>confdefs.h <<_ACEOF
24017 #define SIZEOF_INT $ac_cv_sizeof_int
24021 echo "$as_me:$LINENO: checking for long int" >&5
24022 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24023 if test "${ac_cv_type_long_int+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 cat >conftest.$ac_ext <<_ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 $ac_includes_default
24036 if ((long int *) 0)
24038 if (sizeof (long int))
24044 rm -f conftest.$ac_objext
24045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24046 (eval $ac_compile) 2>conftest.er1
24048 grep -v '^ *+' conftest.er1 >conftest.err
24050 cat conftest.err >&5
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } &&
24053 { ac_try='test -z "$ac_c_werror_flag"
24054 || test ! -s conftest.err'
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest.$ac_objext'
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 ac_cv_type_long_int=yes
24068 echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24071 ac_cv_type_long_int=no
24073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24075 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24076 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24078 echo "$as_me:$LINENO: checking size of long int" >&5
24079 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24080 if test "${ac_cv_sizeof_long_int+set}" = set; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24083 if test "$ac_cv_type_long_int" = yes; then
24084 # The cast to unsigned long works around a bug in the HP C Compiler
24085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24087 # This bug is HP SR number 8606223364.
24088 if test "$cross_compiling" = yes; then
24089 # Depending upon the size, compute the lo and hi bounds.
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 $ac_includes_default
24100 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24107 rm -f conftest.$ac_objext
24108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24109 (eval $ac_compile) 2>conftest.er1
24111 grep -v '^ *+' conftest.er1 >conftest.err
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } &&
24116 { ac_try='test -z "$ac_c_werror_flag"
24117 || test ! -s conftest.err'
24118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119 (eval $ac_try) 2>&5
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); }; } &&
24123 { ac_try='test -s conftest.$ac_objext'
24124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24125 (eval $ac_try) 2>&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); }; }; then
24131 cat >conftest.$ac_ext <<_ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24141 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24148 rm -f conftest.$ac_objext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150 (eval $ac_compile) 2>conftest.er1
24152 grep -v '^ *+' conftest.er1 >conftest.err
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } &&
24157 { ac_try='test -z "$ac_c_werror_flag"
24158 || test ! -s conftest.err'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; } &&
24164 { ac_try='test -s conftest.$ac_objext'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_hi=$ac_mid; break
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_lo=`expr $ac_mid + 1`
24176 if test $ac_lo -le $ac_mid; then
24180 ac_mid=`expr 2 '*' $ac_mid + 1`
24182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24185 echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188 cat >conftest.$ac_ext <<_ACEOF
24191 cat confdefs.h >>conftest.$ac_ext
24192 cat >>conftest.$ac_ext <<_ACEOF
24193 /* end confdefs.h. */
24194 $ac_includes_default
24198 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24205 rm -f conftest.$ac_objext
24206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24207 (eval $ac_compile) 2>conftest.er1
24209 grep -v '^ *+' conftest.er1 >conftest.err
24211 cat conftest.err >&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } &&
24214 { ac_try='test -z "$ac_c_werror_flag"
24215 || test ! -s conftest.err'
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; } &&
24221 { ac_try='test -s conftest.$ac_objext'
24222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; }; then
24229 cat >conftest.$ac_ext <<_ACEOF
24232 cat confdefs.h >>conftest.$ac_ext
24233 cat >>conftest.$ac_ext <<_ACEOF
24234 /* end confdefs.h. */
24235 $ac_includes_default
24239 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24246 rm -f conftest.$ac_objext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24248 (eval $ac_compile) 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } &&
24255 { ac_try='test -z "$ac_c_werror_flag"
24256 || test ! -s conftest.err'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; } &&
24262 { ac_try='test -s conftest.$ac_objext'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; }; then
24268 ac_lo=$ac_mid; break
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ac_hi=`expr '(' $ac_mid ')' - 1`
24274 if test $ac_mid -le $ac_hi; then
24278 ac_mid=`expr 2 '*' $ac_mid`
24280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24283 echo "$as_me: failed program was:" >&5
24284 sed 's/^/| /' conftest.$ac_ext >&5
24288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24291 # Binary search between lo and hi bounds.
24292 while test "x$ac_lo" != "x$ac_hi"; do
24293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24304 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24311 rm -f conftest.$ac_objext
24312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24313 (eval $ac_compile) 2>conftest.er1
24315 grep -v '^ *+' conftest.er1 >conftest.err
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } &&
24320 { ac_try='test -z "$ac_c_werror_flag"
24321 || test ! -s conftest.err'
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; } &&
24327 { ac_try='test -s conftest.$ac_objext'
24328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329 (eval $ac_try) 2>&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); }; }; then
24335 echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 ac_lo=`expr '(' $ac_mid ')' + 1`
24340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24343 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24344 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24345 See \`config.log' for more details." >&5
24346 echo "$as_me: error: cannot compute sizeof (long int), 77
24347 See \`config.log' for more details." >&2;}
24348 { (exit 1); exit 1; }; } ;;
24351 if test "$cross_compiling" = yes; then
24352 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24353 See \`config.log' for more details." >&5
24354 echo "$as_me: error: cannot run test program while cross compiling
24355 See \`config.log' for more details." >&2;}
24356 { (exit 1); exit 1; }; }
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 long longval () { return (long) (sizeof (long int)); }
24366 unsigned long ulongval () { return (long) (sizeof (long int)); }
24368 #include <stdlib.h>
24373 FILE *f = fopen ("conftest.val", "w");
24376 if (((long) (sizeof (long int))) < 0)
24378 long i = longval ();
24379 if (i != ((long) (sizeof (long int))))
24381 fprintf (f, "%ld\n", i);
24385 unsigned long i = ulongval ();
24386 if (i != ((long) (sizeof (long int))))
24388 fprintf (f, "%lu\n", i);
24390 exit (ferror (f) || fclose (f) != 0);
24396 rm -f conftest$ac_exeext
24397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24398 (eval $ac_link) 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; }; then
24407 ac_cv_sizeof_long_int=`cat conftest.val`
24409 echo "$as_me: program exited with status $ac_status" >&5
24410 echo "$as_me: failed program was:" >&5
24411 sed 's/^/| /' conftest.$ac_ext >&5
24413 ( exit $ac_status )
24414 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24415 See \`config.log' for more details." >&5
24416 echo "$as_me: error: cannot compute sizeof (long int), 77
24417 See \`config.log' for more details." >&2;}
24418 { (exit 1); exit 1; }; }
24420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24425 ac_cv_sizeof_long_int=0
24428 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24429 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24430 cat >>confdefs.h <<_ACEOF
24431 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24435 echo "$as_me:$LINENO: checking for long long int" >&5
24436 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24437 if test "${ac_cv_type_long_long_int+set}" = set; then
24438 echo $ECHO_N "(cached) $ECHO_C" >&6
24440 cat >conftest.$ac_ext <<_ACEOF
24443 cat confdefs.h >>conftest.$ac_ext
24444 cat >>conftest.$ac_ext <<_ACEOF
24445 /* end confdefs.h. */
24446 $ac_includes_default
24450 if ((long long int *) 0)
24452 if (sizeof (long long int))
24458 rm -f conftest.$ac_objext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24460 (eval $ac_compile) 2>conftest.er1
24462 grep -v '^ *+' conftest.er1 >conftest.err
24464 cat conftest.err >&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } &&
24467 { ac_try='test -z "$ac_c_werror_flag"
24468 || test ! -s conftest.err'
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; } &&
24474 { ac_try='test -s conftest.$ac_objext'
24475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476 (eval $ac_try) 2>&5
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); }; }; then
24480 ac_cv_type_long_long_int=yes
24482 echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 ac_cv_type_long_long_int=no
24487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24489 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24490 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24492 echo "$as_me:$LINENO: checking size of long long int" >&5
24493 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24494 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 if test "$ac_cv_type_long_long_int" = yes; then
24498 # The cast to unsigned long works around a bug in the HP C Compiler
24499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24501 # This bug is HP SR number 8606223364.
24502 if test "$cross_compiling" = yes; then
24503 # Depending upon the size, compute the lo and hi bounds.
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24510 $ac_includes_default
24514 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24521 rm -f conftest.$ac_objext
24522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24523 (eval $ac_compile) 2>conftest.er1
24525 grep -v '^ *+' conftest.er1 >conftest.err
24527 cat conftest.err >&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } &&
24530 { ac_try='test -z "$ac_c_werror_flag"
24531 || test ! -s conftest.err'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; } &&
24537 { ac_try='test -s conftest.$ac_objext'
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 $ac_includes_default
24555 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24562 rm -f conftest.$ac_objext
24563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24564 (eval $ac_compile) 2>conftest.er1
24566 grep -v '^ *+' conftest.er1 >conftest.err
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } &&
24571 { ac_try='test -z "$ac_c_werror_flag"
24572 || test ! -s conftest.err'
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest.$ac_objext'
24579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580 (eval $ac_try) 2>&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); }; }; then
24584 ac_hi=$ac_mid; break
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ac_lo=`expr $ac_mid + 1`
24590 if test $ac_lo -le $ac_mid; then
24594 ac_mid=`expr 2 '*' $ac_mid + 1`
24596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 $ac_includes_default
24612 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24619 rm -f conftest.$ac_objext
24620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24621 (eval $ac_compile) 2>conftest.er1
24623 grep -v '^ *+' conftest.er1 >conftest.err
24625 cat conftest.err >&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } &&
24628 { ac_try='test -z "$ac_c_werror_flag"
24629 || test ! -s conftest.err'
24630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24631 (eval $ac_try) 2>&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); }; } &&
24635 { ac_try='test -s conftest.$ac_objext'
24636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637 (eval $ac_try) 2>&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; }; then
24643 cat >conftest.$ac_ext <<_ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24653 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24660 rm -f conftest.$ac_objext
24661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24662 (eval $ac_compile) 2>conftest.er1
24664 grep -v '^ *+' conftest.er1 >conftest.err
24666 cat conftest.err >&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } &&
24669 { ac_try='test -z "$ac_c_werror_flag"
24670 || test ! -s conftest.err'
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; } &&
24676 { ac_try='test -s conftest.$ac_objext'
24677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24678 (eval $ac_try) 2>&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; }; then
24682 ac_lo=$ac_mid; break
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ac_hi=`expr '(' $ac_mid ')' - 1`
24688 if test $ac_mid -le $ac_hi; then
24692 ac_mid=`expr 2 '*' $ac_mid`
24694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24705 # Binary search between lo and hi bounds.
24706 while test "x$ac_lo" != "x$ac_hi"; do
24707 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24714 $ac_includes_default
24718 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24725 rm -f conftest.$ac_objext
24726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24727 (eval $ac_compile) 2>conftest.er1
24729 grep -v '^ *+' conftest.er1 >conftest.err
24731 cat conftest.err >&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } &&
24734 { ac_try='test -z "$ac_c_werror_flag"
24735 || test ! -s conftest.err'
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest.$ac_objext'
24742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24743 (eval $ac_try) 2>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; }; then
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 ac_lo=`expr '(' $ac_mid ')' + 1`
24754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24757 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24758 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24759 See \`config.log' for more details." >&5
24760 echo "$as_me: error: cannot compute sizeof (long long int), 77
24761 See \`config.log' for more details." >&2;}
24762 { (exit 1); exit 1; }; } ;;
24765 if test "$cross_compiling" = yes; then
24766 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24767 See \`config.log' for more details." >&5
24768 echo "$as_me: error: cannot run test program while cross compiling
24769 See \`config.log' for more details." >&2;}
24770 { (exit 1); exit 1; }; }
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24778 $ac_includes_default
24779 long longval () { return (long) (sizeof (long long int)); }
24780 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24782 #include <stdlib.h>
24787 FILE *f = fopen ("conftest.val", "w");
24790 if (((long) (sizeof (long long int))) < 0)
24792 long i = longval ();
24793 if (i != ((long) (sizeof (long long int))))
24795 fprintf (f, "%ld\n", i);
24799 unsigned long i = ulongval ();
24800 if (i != ((long) (sizeof (long long int))))
24802 fprintf (f, "%lu\n", i);
24804 exit (ferror (f) || fclose (f) != 0);
24810 rm -f conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812 (eval $ac_link) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 ac_cv_sizeof_long_long_int=`cat conftest.val`
24823 echo "$as_me: program exited with status $ac_status" >&5
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ( exit $ac_status )
24828 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24829 See \`config.log' for more details." >&5
24830 echo "$as_me: error: cannot compute sizeof (long long int), 77
24831 See \`config.log' for more details." >&2;}
24832 { (exit 1); exit 1; }; }
24834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 ac_cv_sizeof_long_long_int=0
24842 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24843 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24844 cat >>confdefs.h <<_ACEOF
24845 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24849 echo "$as_me:$LINENO: checking for int *" >&5
24850 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24851 if test "${ac_cv_type_int_p+set}" = set; then
24852 echo $ECHO_N "(cached) $ECHO_C" >&6
24854 cat >conftest.$ac_ext <<_ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860 $ac_includes_default
24866 if (sizeof (int *))
24872 rm -f conftest.$ac_objext
24873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24874 (eval $ac_compile) 2>conftest.er1
24876 grep -v '^ *+' conftest.er1 >conftest.err
24878 cat conftest.err >&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } &&
24881 { ac_try='test -z "$ac_c_werror_flag"
24882 || test ! -s conftest.err'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; } &&
24888 { ac_try='test -s conftest.$ac_objext'
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; }; then
24894 ac_cv_type_int_p=yes
24896 echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24899 ac_cv_type_int_p=no
24901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24903 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24904 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24906 echo "$as_me:$LINENO: checking size of int *" >&5
24907 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24908 if test "${ac_cv_sizeof_int_p+set}" = set; then
24909 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 if test "$ac_cv_type_int_p" = yes; then
24912 # The cast to unsigned long works around a bug in the HP C Compiler
24913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24915 # This bug is HP SR number 8606223364.
24916 if test "$cross_compiling" = yes; then
24917 # Depending upon the size, compute the lo and hi bounds.
24918 cat >conftest.$ac_ext <<_ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h. */
24924 $ac_includes_default
24928 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24935 rm -f conftest.$ac_objext
24936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24937 (eval $ac_compile) 2>conftest.er1
24939 grep -v '^ *+' conftest.er1 >conftest.err
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } &&
24944 { ac_try='test -z "$ac_c_werror_flag"
24945 || test ! -s conftest.err'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; } &&
24951 { ac_try='test -s conftest.$ac_objext'
24952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953 (eval $ac_try) 2>&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); }; }; then
24959 cat >conftest.$ac_ext <<_ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h. */
24965 $ac_includes_default
24969 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24976 rm -f conftest.$ac_objext
24977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24978 (eval $ac_compile) 2>conftest.er1
24980 grep -v '^ *+' conftest.er1 >conftest.err
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } &&
24985 { ac_try='test -z "$ac_c_werror_flag"
24986 || test ! -s conftest.err'
24987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988 (eval $ac_try) 2>&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); }; } &&
24992 { ac_try='test -s conftest.$ac_objext'
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998 ac_hi=$ac_mid; break
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ac_lo=`expr $ac_mid + 1`
25004 if test $ac_lo -le $ac_mid; then
25008 ac_mid=`expr 2 '*' $ac_mid + 1`
25010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 $ac_includes_default
25026 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25033 rm -f conftest.$ac_objext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25035 (eval $ac_compile) 2>conftest.er1
25037 grep -v '^ *+' conftest.er1 >conftest.err
25039 cat conftest.err >&5
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); } &&
25042 { ac_try='test -z "$ac_c_werror_flag"
25043 || test ! -s conftest.err'
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; } &&
25049 { ac_try='test -s conftest.$ac_objext'
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; }; then
25057 cat >conftest.$ac_ext <<_ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 $ac_includes_default
25067 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25074 rm -f conftest.$ac_objext
25075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25076 (eval $ac_compile) 2>conftest.er1
25078 grep -v '^ *+' conftest.er1 >conftest.err
25080 cat conftest.err >&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } &&
25083 { ac_try='test -z "$ac_c_werror_flag"
25084 || test ! -s conftest.err'
25085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086 (eval $ac_try) 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); }; } &&
25090 { ac_try='test -s conftest.$ac_objext'
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; }; then
25096 ac_lo=$ac_mid; break
25098 echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25101 ac_hi=`expr '(' $ac_mid ')' - 1`
25102 if test $ac_mid -le $ac_hi; then
25106 ac_mid=`expr 2 '*' $ac_mid`
25108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25111 echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25119 # Binary search between lo and hi bounds.
25120 while test "x$ac_lo" != "x$ac_hi"; do
25121 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25122 cat >conftest.$ac_ext <<_ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h. */
25128 $ac_includes_default
25132 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25139 rm -f conftest.$ac_objext
25140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25141 (eval $ac_compile) 2>conftest.er1
25143 grep -v '^ *+' conftest.er1 >conftest.err
25145 cat conftest.err >&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); } &&
25148 { ac_try='test -z "$ac_c_werror_flag"
25149 || test ! -s conftest.err'
25150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151 (eval $ac_try) 2>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); }; } &&
25155 { ac_try='test -s conftest.$ac_objext'
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; }; then
25163 echo "$as_me: failed program was:" >&5
25164 sed 's/^/| /' conftest.$ac_ext >&5
25166 ac_lo=`expr '(' $ac_mid ')' + 1`
25168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25171 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25172 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25173 See \`config.log' for more details." >&5
25174 echo "$as_me: error: cannot compute sizeof (int *), 77
25175 See \`config.log' for more details." >&2;}
25176 { (exit 1); exit 1; }; } ;;
25179 if test "$cross_compiling" = yes; then
25180 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25181 See \`config.log' for more details." >&5
25182 echo "$as_me: error: cannot run test program while cross compiling
25183 See \`config.log' for more details." >&2;}
25184 { (exit 1); exit 1; }; }
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 $ac_includes_default
25193 long longval () { return (long) (sizeof (int *)); }
25194 unsigned long ulongval () { return (long) (sizeof (int *)); }
25196 #include <stdlib.h>
25201 FILE *f = fopen ("conftest.val", "w");
25204 if (((long) (sizeof (int *))) < 0)
25206 long i = longval ();
25207 if (i != ((long) (sizeof (int *))))
25209 fprintf (f, "%ld\n", i);
25213 unsigned long i = ulongval ();
25214 if (i != ((long) (sizeof (int *))))
25216 fprintf (f, "%lu\n", i);
25218 exit (ferror (f) || fclose (f) != 0);
25224 rm -f conftest$ac_exeext
25225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25226 (eval $ac_link) 2>&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
25235 ac_cv_sizeof_int_p=`cat conftest.val`
25237 echo "$as_me: program exited with status $ac_status" >&5
25238 echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25241 ( exit $ac_status )
25242 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25243 See \`config.log' for more details." >&5
25244 echo "$as_me: error: cannot compute sizeof (int *), 77
25245 See \`config.log' for more details." >&2;}
25246 { (exit 1); exit 1; }; }
25248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25253 ac_cv_sizeof_int_p=0
25256 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25257 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25258 cat >>confdefs.h <<_ACEOF
25259 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25264 # Check for sys/types.h types
25265 echo "$as_me:$LINENO: checking for u_int type" >&5
25266 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25267 if test "${ac_cv_have_u_int+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 cat >conftest.$ac_ext <<_ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h. */
25277 #include <sys/types.h>
25286 rm -f conftest.$ac_objext
25287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25288 (eval $ac_compile) 2>conftest.er1
25290 grep -v '^ *+' conftest.er1 >conftest.err
25292 cat conftest.err >&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } &&
25295 { ac_try='test -z "$ac_c_werror_flag"
25296 || test ! -s conftest.err'
25297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25298 (eval $ac_try) 2>&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; } &&
25302 { ac_try='test -s conftest.$ac_objext'
25303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25304 (eval $ac_try) 2>&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; }; then
25308 ac_cv_have_u_int="yes"
25310 echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25313 ac_cv_have_u_int="no"
25316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25319 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25320 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25321 if test "x$ac_cv_have_u_int" = "xyes" ; then
25322 cat >>confdefs.h <<\_ACEOF
25323 #define HAVE_U_INT 1
25329 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25330 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25331 if test "${ac_cv_have_intmax_t+set}" = set; then
25332 echo $ECHO_N "(cached) $ECHO_C" >&6
25335 cat >conftest.$ac_ext <<_ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 #include <sys/types.h>
25350 rm -f conftest.$ac_objext
25351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25352 (eval $ac_compile) 2>conftest.er1
25354 grep -v '^ *+' conftest.er1 >conftest.err
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } &&
25359 { ac_try='test -z "$ac_c_werror_flag"
25360 || test ! -s conftest.err'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; } &&
25366 { ac_try='test -s conftest.$ac_objext'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; }; then
25372 ac_cv_have_intmax_t="yes"
25374 echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 #include <stdint.h>
25393 rm -f conftest.$ac_objext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25395 (eval $ac_compile) 2>conftest.er1
25397 grep -v '^ *+' conftest.er1 >conftest.err
25399 cat conftest.err >&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } &&
25402 { ac_try='test -z "$ac_c_werror_flag"
25403 || test ! -s conftest.err'
25404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405 (eval $ac_try) 2>&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; } &&
25409 { ac_try='test -s conftest.$ac_objext'
25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411 (eval $ac_try) 2>&5
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); }; }; then
25415 ac_cv_have_intmax_t="yes"
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ac_cv_have_intmax_t="no"
25423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25431 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25432 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25433 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25434 cat >>confdefs.h <<\_ACEOF
25435 #define HAVE_INTMAX_T 1
25442 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25443 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25444 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 #include <sys/types.h>
25458 u_intmax_t a; a = 1;
25463 rm -f conftest.$ac_objext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25465 (eval $ac_compile) 2>conftest.er1
25467 grep -v '^ *+' conftest.er1 >conftest.err
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } &&
25472 { ac_try='test -z "$ac_c_werror_flag"
25473 || test ! -s conftest.err'
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; } &&
25479 { ac_try='test -s conftest.$ac_objext'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 ac_cv_have_u_intmax_t="yes"
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25491 cat >conftest.$ac_ext <<_ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h. */
25497 #include <stdint.h>
25501 u_intmax_t a; a = 1;
25506 rm -f conftest.$ac_objext
25507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25508 (eval $ac_compile) 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
25515 { ac_try='test -z "$ac_c_werror_flag"
25516 || test ! -s conftest.err'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; } &&
25522 { ac_try='test -s conftest.$ac_objext'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528 ac_cv_have_u_intmax_t="yes"
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533 ac_cv_have_u_intmax_t="no"
25536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25543 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25544 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25545 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25546 cat >>confdefs.h <<\_ACEOF
25547 #define HAVE_U_INTMAX_T 1
25554 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25555 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25556 if test "${ac_cv_have_intxx_t+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25566 #include <sys/types.h>
25570 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25575 rm -f conftest.$ac_objext
25576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25577 (eval $ac_compile) 2>conftest.er1
25579 grep -v '^ *+' conftest.er1 >conftest.err
25581 cat conftest.err >&5
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
25584 { ac_try='test -z "$ac_c_werror_flag"
25585 || test ! -s conftest.err'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; } &&
25591 { ac_try='test -s conftest.$ac_objext'
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25597 ac_cv_have_intxx_t="yes"
25599 echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25602 ac_cv_have_intxx_t="no"
25605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25608 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25609 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25610 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25611 cat >>confdefs.h <<\_ACEOF
25612 #define HAVE_INTXX_T 1
25618 echo "$as_me:$LINENO: checking for int64_t type" >&5
25619 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25620 if test "${ac_cv_have_int64_t+set}" = set; then
25621 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 cat >conftest.$ac_ext <<_ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 #include <sys/types.h>
25639 rm -f conftest.$ac_objext
25640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25641 (eval $ac_compile) 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } &&
25648 { ac_try='test -z "$ac_c_werror_flag"
25649 || test ! -s conftest.err'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; } &&
25655 { ac_try='test -s conftest.$ac_objext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
25661 ac_cv_have_int64_t="yes"
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25666 ac_cv_have_int64_t="no"
25669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25672 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25673 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25674 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25675 cat >>confdefs.h <<\_ACEOF
25676 #define HAVE_INT64_T 1
25682 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25683 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25684 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25688 cat >conftest.$ac_ext <<_ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h. */
25694 #include <sys/types.h>
25698 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25703 rm -f conftest.$ac_objext
25704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25705 (eval $ac_compile) 2>conftest.er1
25707 grep -v '^ *+' conftest.er1 >conftest.err
25709 cat conftest.err >&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } &&
25712 { ac_try='test -z "$ac_c_werror_flag"
25713 || test ! -s conftest.err'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; } &&
25719 { ac_try='test -s conftest.$ac_objext'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; }; then
25725 ac_cv_have_u_intxx_t="yes"
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25730 ac_cv_have_u_intxx_t="no"
25733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25736 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25737 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25738 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25739 cat >>confdefs.h <<\_ACEOF
25740 #define HAVE_U_INTXX_T 1
25746 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25747 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25748 if test "${ac_cv_have_u_int64_t+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 cat >conftest.$ac_ext <<_ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25758 #include <sys/types.h>
25762 u_int64_t a; a = 1;
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769 (eval $ac_compile) 2>conftest.er1
25771 grep -v '^ *+' conftest.er1 >conftest.err
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
25776 { ac_try='test -z "$ac_c_werror_flag"
25777 || test ! -s conftest.err'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; } &&
25783 { ac_try='test -s conftest.$ac_objext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789 ac_cv_have_u_int64_t="yes"
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_cv_have_u_int64_t="no"
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25800 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25801 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25802 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25803 cat >>confdefs.h <<\_ACEOF
25804 #define HAVE_U_INT64_T 1
25810 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25811 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25813 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25814 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25815 cat >conftest.$ac_ext <<_ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25821 #include <sys/bitypes.h>
25825 int8_t a; int16_t b; int32_t c;
25826 u_int8_t e; u_int16_t f; u_int32_t g;
25827 a = b = c = e = f = g = 1;
25832 rm -f conftest.$ac_objext
25833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25834 (eval $ac_compile) 2>conftest.er1
25836 grep -v '^ *+' conftest.er1 >conftest.err
25838 cat conftest.err >&5
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); } &&
25841 { ac_try='test -z "$ac_c_werror_flag"
25842 || test ! -s conftest.err'
25843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844 (eval $ac_try) 2>&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); }; } &&
25848 { ac_try='test -s conftest.$ac_objext'
25849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25850 (eval $ac_try) 2>&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); }; }; then
25854 cat >>confdefs.h <<\_ACEOF
25855 #define HAVE_U_INTXX_T 1
25858 cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_INTXX_T 1
25862 cat >>confdefs.h <<\_ACEOF
25863 #define HAVE_SYS_BITYPES_H 1
25866 echo "$as_me:$LINENO: result: yes" >&5
25867 echo "${ECHO_T}yes" >&6
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25872 echo "$as_me:$LINENO: result: no" >&5
25873 echo "${ECHO_T}no" >&6
25876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25879 if test -z "$have_u_intxx_t" ; then
25880 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25881 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25882 if test "${ac_cv_have_uintxx_t+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 #include <sys/types.h>
25896 uint8_t a; uint16_t b;
25897 uint32_t c; a = b = c = 1;
25902 rm -f conftest.$ac_objext
25903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25904 (eval $ac_compile) 2>conftest.er1
25906 grep -v '^ *+' conftest.er1 >conftest.err
25908 cat conftest.err >&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } &&
25911 { ac_try='test -z "$ac_c_werror_flag"
25912 || test ! -s conftest.err'
25913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914 (eval $ac_try) 2>&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); }; } &&
25918 { ac_try='test -s conftest.$ac_objext'
25919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920 (eval $ac_try) 2>&5
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; }; then
25924 ac_cv_have_uintxx_t="yes"
25926 echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25929 ac_cv_have_uintxx_t="no"
25932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25935 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25936 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25937 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_UINTXX_T 1
25945 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25946 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25948 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25949 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25950 cat >conftest.$ac_ext <<_ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h. */
25956 #include <sys/bitypes.h>
25960 int64_t a; u_int64_t b;
25966 rm -f conftest.$ac_objext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25968 (eval $ac_compile) 2>conftest.er1
25970 grep -v '^ *+' conftest.er1 >conftest.err
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } &&
25975 { ac_try='test -z "$ac_c_werror_flag"
25976 || test ! -s conftest.err'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; } &&
25982 { ac_try='test -s conftest.$ac_objext'
25983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25984 (eval $ac_try) 2>&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); }; }; then
25988 cat >>confdefs.h <<\_ACEOF
25989 #define HAVE_U_INT64_T 1
25992 cat >>confdefs.h <<\_ACEOF
25993 #define HAVE_INT64_T 1
25996 echo "$as_me:$LINENO: result: yes" >&5
25997 echo "${ECHO_T}yes" >&6
25999 echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26002 echo "$as_me:$LINENO: result: no" >&5
26003 echo "${ECHO_T}no" >&6
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009 if (test -z "$have_uintxx_t" && \
26010 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26012 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26013 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h. */
26020 #include <sys/bitypes.h>
26024 uint8_t a; uint16_t b;
26025 uint32_t c; a = b = c = 1;
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032 (eval $ac_compile) 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } &&
26039 { ac_try='test -z "$ac_c_werror_flag"
26040 || test ! -s conftest.err'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest.$ac_objext'
26047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048 (eval $ac_try) 2>&5
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 cat >>confdefs.h <<\_ACEOF
26053 #define HAVE_UINTXX_T 1
26056 echo "$as_me:$LINENO: result: yes" >&5
26057 echo "${ECHO_T}yes" >&6
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062 echo "$as_me:$LINENO: result: no" >&5
26063 echo "${ECHO_T}no" >&6
26066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26103 echo "$as_me:$LINENO: checking for $ac_func" >&5
26104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26105 if eval "test \"\${$as_ac_var+set}\" = set"; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26108 cat >conftest.$ac_ext <<_ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26116 #define $ac_func innocuous_$ac_func
26118 /* System header to define __stub macros and hopefully few prototypes,
26119 which can conflict with char $ac_func (); below.
26120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26121 <limits.h> exists even on freestanding compilers. */
26124 # include <limits.h>
26126 # include <assert.h>
26131 /* Override any gcc2 internal prototype to avoid an error. */
26136 /* We use char because int might match the return type of a gcc2
26137 builtin and then its argument prototype would still apply. */
26139 /* The GNU C library defines this for functions which it implements
26140 to always fail with ENOSYS. Some functions are actually named
26141 something starting with __ and the normal name is an alias. */
26142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26145 char (*f) () = $ac_func;
26154 return f != $ac_func;
26159 rm -f conftest.$ac_objext conftest$ac_exeext
26160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26161 (eval $ac_link) 2>conftest.er1
26163 grep -v '^ *+' conftest.er1 >conftest.err
26165 cat conftest.err >&5
26166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); } &&
26168 { ac_try='test -z "$ac_c_werror_flag"
26169 || test ! -s conftest.err'
26170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171 (eval $ac_try) 2>&5
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; } &&
26175 { ac_try='test -s conftest$ac_exeext'
26176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177 (eval $ac_try) 2>&5
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); }; }; then
26181 eval "$as_ac_var=yes"
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26186 eval "$as_ac_var=no"
26188 rm -f conftest.err conftest.$ac_objext \
26189 conftest$ac_exeext conftest.$ac_ext
26191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26193 if test `eval echo '${'$as_ac_var'}'` = yes; then
26194 cat >>confdefs.h <<_ACEOF
26195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26199 echo 'configure: cannot find needed function.'; exit 1
26206 for ac_func in fchdir
26208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26209 echo "$as_me:$LINENO: checking for $ac_func" >&5
26210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26211 if eval "test \"\${$as_ac_var+set}\" = set"; then
26212 echo $ECHO_N "(cached) $ECHO_C" >&6
26214 cat >conftest.$ac_ext <<_ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h. */
26220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26222 #define $ac_func innocuous_$ac_func
26224 /* System header to define __stub macros and hopefully few prototypes,
26225 which can conflict with char $ac_func (); below.
26226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26227 <limits.h> exists even on freestanding compilers. */
26230 # include <limits.h>
26232 # include <assert.h>
26237 /* Override any gcc2 internal prototype to avoid an error. */
26242 /* We use char because int might match the return type of a gcc2
26243 builtin and then its argument prototype would still apply. */
26245 /* The GNU C library defines this for functions which it implements
26246 to always fail with ENOSYS. Some functions are actually named
26247 something starting with __ and the normal name is an alias. */
26248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26251 char (*f) () = $ac_func;
26260 return f != $ac_func;
26265 rm -f conftest.$ac_objext conftest$ac_exeext
26266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26267 (eval $ac_link) 2>conftest.er1
26269 grep -v '^ *+' conftest.er1 >conftest.err
26271 cat conftest.err >&5
26272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273 (exit $ac_status); } &&
26274 { ac_try='test -z "$ac_c_werror_flag"
26275 || test ! -s conftest.err'
26276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26277 (eval $ac_try) 2>&5
26279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280 (exit $ac_status); }; } &&
26281 { ac_try='test -s conftest$ac_exeext'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; }; then
26287 eval "$as_ac_var=yes"
26289 echo "$as_me: failed program was:" >&5
26290 sed 's/^/| /' conftest.$ac_ext >&5
26292 eval "$as_ac_var=no"
26294 rm -f conftest.err conftest.$ac_objext \
26295 conftest$ac_exeext conftest.$ac_ext
26297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26299 if test `eval echo '${'$as_ac_var'}'` = yes; then
26300 cat >>confdefs.h <<_ACEOF
26301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26303 cat >>confdefs.h <<\_ACEOF
26304 #define HAVE_FCHDIR 1
26311 for ac_func in strtoll
26313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26314 echo "$as_me:$LINENO: checking for $ac_func" >&5
26315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26316 if eval "test \"\${$as_ac_var+set}\" = set"; then
26317 echo $ECHO_N "(cached) $ECHO_C" >&6
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26327 #define $ac_func innocuous_$ac_func
26329 /* System header to define __stub macros and hopefully few prototypes,
26330 which can conflict with char $ac_func (); below.
26331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26332 <limits.h> exists even on freestanding compilers. */
26335 # include <limits.h>
26337 # include <assert.h>
26342 /* Override any gcc2 internal prototype to avoid an error. */
26347 /* We use char because int might match the return type of a gcc2
26348 builtin and then its argument prototype would still apply. */
26350 /* The GNU C library defines this for functions which it implements
26351 to always fail with ENOSYS. Some functions are actually named
26352 something starting with __ and the normal name is an alias. */
26353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26356 char (*f) () = $ac_func;
26365 return f != $ac_func;
26370 rm -f conftest.$ac_objext conftest$ac_exeext
26371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26372 (eval $ac_link) 2>conftest.er1
26374 grep -v '^ *+' conftest.er1 >conftest.err
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } &&
26379 { ac_try='test -z "$ac_c_werror_flag"
26380 || test ! -s conftest.err'
26381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); }; } &&
26386 { ac_try='test -s conftest$ac_exeext'
26387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388 (eval $ac_try) 2>&5
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; }; then
26392 eval "$as_ac_var=yes"
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26397 eval "$as_ac_var=no"
26399 rm -f conftest.err conftest.$ac_objext \
26400 conftest$ac_exeext conftest.$ac_ext
26402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26404 if test `eval echo '${'$as_ac_var'}'` = yes; then
26405 cat >>confdefs.h <<_ACEOF
26406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26408 cat >>confdefs.h <<\_ACEOF
26409 #define HAVE_STRTOLL 1
26417 for ac_func in chflags
26419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26420 echo "$as_me:$LINENO: checking for $ac_func" >&5
26421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26422 if eval "test \"\${$as_ac_var+set}\" = set"; then
26423 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 cat >conftest.$ac_ext <<_ACEOF
26428 cat confdefs.h >>conftest.$ac_ext
26429 cat >>conftest.$ac_ext <<_ACEOF
26430 /* end confdefs.h. */
26431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26433 #define $ac_func innocuous_$ac_func
26435 /* System header to define __stub macros and hopefully few prototypes,
26436 which can conflict with char $ac_func (); below.
26437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26438 <limits.h> exists even on freestanding compilers. */
26441 # include <limits.h>
26443 # include <assert.h>
26448 /* Override any gcc2 internal prototype to avoid an error. */
26453 /* We use char because int might match the return type of a gcc2
26454 builtin and then its argument prototype would still apply. */
26456 /* The GNU C library defines this for functions which it implements
26457 to always fail with ENOSYS. Some functions are actually named
26458 something starting with __ and the normal name is an alias. */
26459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26462 char (*f) () = $ac_func;
26471 return f != $ac_func;
26476 rm -f conftest.$ac_objext conftest$ac_exeext
26477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26478 (eval $ac_link) 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -z "$ac_c_werror_flag"
26486 || test ! -s conftest.err'
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest$ac_exeext'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 eval "$as_ac_var=yes"
26500 echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.$ac_ext >&5
26503 eval "$as_ac_var=no"
26505 rm -f conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
26508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26510 if test `eval echo '${'$as_ac_var'}'` = yes; then
26511 cat >>confdefs.h <<_ACEOF
26512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26523 for ac_func in snprintf vsnprintf gethostid fseeko
26525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26526 echo "$as_me:$LINENO: checking for $ac_func" >&5
26527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26528 if eval "test \"\${$as_ac_var+set}\" = set"; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26531 cat >conftest.$ac_ext <<_ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26539 #define $ac_func innocuous_$ac_func
26541 /* System header to define __stub macros and hopefully few prototypes,
26542 which can conflict with char $ac_func (); below.
26543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26544 <limits.h> exists even on freestanding compilers. */
26547 # include <limits.h>
26549 # include <assert.h>
26554 /* Override any gcc2 internal prototype to avoid an error. */
26559 /* We use char because int might match the return type of a gcc2
26560 builtin and then its argument prototype would still apply. */
26562 /* The GNU C library defines this for functions which it implements
26563 to always fail with ENOSYS. Some functions are actually named
26564 something starting with __ and the normal name is an alias. */
26565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26568 char (*f) () = $ac_func;
26577 return f != $ac_func;
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26584 (eval $ac_link) 2>conftest.er1
26586 grep -v '^ *+' conftest.er1 >conftest.err
26588 cat conftest.err >&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } &&
26591 { ac_try='test -z "$ac_c_werror_flag"
26592 || test ! -s conftest.err'
26593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594 (eval $ac_try) 2>&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); }; } &&
26598 { ac_try='test -s conftest$ac_exeext'
26599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600 (eval $ac_try) 2>&5
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); }; }; then
26604 eval "$as_ac_var=yes"
26606 echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26609 eval "$as_ac_var=no"
26611 rm -f conftest.err conftest.$ac_objext \
26612 conftest$ac_exeext conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26616 if test `eval echo '${'$as_ac_var'}'` = yes; then
26617 cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26629 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26632 echo "$as_me:$LINENO: checking for $ac_func" >&5
26633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26634 if eval "test \"\${$as_ac_var+set}\" = set"; then
26635 echo $ECHO_N "(cached) $ECHO_C" >&6
26637 cat >conftest.$ac_ext <<_ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h. */
26643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26645 #define $ac_func innocuous_$ac_func
26647 /* System header to define __stub macros and hopefully few prototypes,
26648 which can conflict with char $ac_func (); below.
26649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26650 <limits.h> exists even on freestanding compilers. */
26653 # include <limits.h>
26655 # include <assert.h>
26660 /* Override any gcc2 internal prototype to avoid an error. */
26665 /* We use char because int might match the return type of a gcc2
26666 builtin and then its argument prototype would still apply. */
26668 /* The GNU C library defines this for functions which it implements
26669 to always fail with ENOSYS. Some functions are actually named
26670 something starting with __ and the normal name is an alias. */
26671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26674 char (*f) () = $ac_func;
26683 return f != $ac_func;
26688 rm -f conftest.$ac_objext conftest$ac_exeext
26689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26690 (eval $ac_link) 2>conftest.er1
26692 grep -v '^ *+' conftest.er1 >conftest.err
26694 cat conftest.err >&5
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); } &&
26697 { ac_try='test -z "$ac_c_werror_flag"
26698 || test ! -s conftest.err'
26699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26700 (eval $ac_try) 2>&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); }; } &&
26704 { ac_try='test -s conftest$ac_exeext'
26705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26706 (eval $ac_try) 2>&5
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); }; }; then
26710 eval "$as_ac_var=yes"
26712 echo "$as_me: failed program was:" >&5
26713 sed 's/^/| /' conftest.$ac_ext >&5
26715 eval "$as_ac_var=no"
26717 rm -f conftest.err conftest.$ac_objext \
26718 conftest$ac_exeext conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26722 if test `eval echo '${'$as_ac_var'}'` = yes; then
26723 cat >>confdefs.h <<_ACEOF
26724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26731 # If resolver functions are not in libc check for -lnsl or -lresolv.
26732 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26733 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26734 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26735 echo $ECHO_N "(cached) $ECHO_C" >&6
26737 cat >conftest.$ac_ext <<_ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h. */
26743 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26745 #define gethostbyname_r innocuous_gethostbyname_r
26747 /* System header to define __stub macros and hopefully few prototypes,
26748 which can conflict with char gethostbyname_r (); below.
26749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26750 <limits.h> exists even on freestanding compilers. */
26753 # include <limits.h>
26755 # include <assert.h>
26758 #undef gethostbyname_r
26760 /* Override any gcc2 internal prototype to avoid an error. */
26765 /* We use char because int might match the return type of a gcc2
26766 builtin and then its argument prototype would still apply. */
26767 char gethostbyname_r ();
26768 /* The GNU C library defines this for functions which it implements
26769 to always fail with ENOSYS. Some functions are actually named
26770 something starting with __ and the normal name is an alias. */
26771 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26774 char (*f) () = gethostbyname_r;
26783 return f != gethostbyname_r;
26788 rm -f conftest.$ac_objext conftest$ac_exeext
26789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26790 (eval $ac_link) 2>conftest.er1
26792 grep -v '^ *+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } &&
26797 { ac_try='test -z "$ac_c_werror_flag"
26798 || test ! -s conftest.err'
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; } &&
26804 { ac_try='test -s conftest$ac_exeext'
26805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26806 (eval $ac_try) 2>&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; }; then
26810 ac_cv_func_gethostbyname_r=yes
26812 echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26815 ac_cv_func_gethostbyname_r=no
26817 rm -f conftest.err conftest.$ac_objext \
26818 conftest$ac_exeext conftest.$ac_ext
26820 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26821 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26822 if test $ac_cv_func_gethostbyname_r = yes; then
26823 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26824 echo "${ECHO_T}using libc's resolver" >&6
26827 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26828 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26829 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26830 echo $ECHO_N "(cached) $ECHO_C" >&6
26832 ac_check_lib_save_LIBS=$LIBS
26834 cat >conftest.$ac_ext <<_ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h. */
26841 /* Override any gcc2 internal prototype to avoid an error. */
26845 /* We use char because int might match the return type of a gcc2
26846 builtin and then its argument prototype would still apply. */
26847 char gethostbyname_r ();
26851 gethostbyname_r ();
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26858 (eval $ac_link) 2>conftest.er1
26860 grep -v '^ *+' conftest.er1 >conftest.err
26862 cat conftest.err >&5
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } &&
26865 { ac_try='test -z "$ac_c_werror_flag"
26866 || test ! -s conftest.err'
26867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868 (eval $ac_try) 2>&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); }; } &&
26872 { ac_try='test -s conftest$ac_exeext'
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; }; then
26878 ac_cv_lib_nsl_gethostbyname_r=yes
26880 echo "$as_me: failed program was:" >&5
26881 sed 's/^/| /' conftest.$ac_ext >&5
26883 ac_cv_lib_nsl_gethostbyname_r=no
26885 rm -f conftest.err conftest.$ac_objext \
26886 conftest$ac_exeext conftest.$ac_ext
26887 LIBS=$ac_check_lib_save_LIBS
26889 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26890 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26891 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26892 cat >>confdefs.h <<_ACEOF
26893 #define HAVE_LIBNSL 1
26901 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26902 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26903 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26906 ac_check_lib_save_LIBS=$LIBS
26907 LIBS="-lresolv $LIBS"
26908 cat >conftest.$ac_ext <<_ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h. */
26915 /* Override any gcc2 internal prototype to avoid an error. */
26919 /* We use char because int might match the return type of a gcc2
26920 builtin and then its argument prototype would still apply. */
26921 char gethostbyname_r ();
26925 gethostbyname_r ();
26930 rm -f conftest.$ac_objext conftest$ac_exeext
26931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26932 (eval $ac_link) 2>conftest.er1
26934 grep -v '^ *+' conftest.er1 >conftest.err
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag"
26940 || test ! -s conftest.err'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; } &&
26946 { ac_try='test -s conftest$ac_exeext'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; }; then
26952 ac_cv_lib_resolv_gethostbyname_r=yes
26954 echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26957 ac_cv_lib_resolv_gethostbyname_r=no
26959 rm -f conftest.err conftest.$ac_objext \
26960 conftest$ac_exeext conftest.$ac_ext
26961 LIBS=$ac_check_lib_save_LIBS
26963 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26964 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26965 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26966 cat >>confdefs.h <<_ACEOF
26967 #define HAVE_LIBRESOLV 1
26970 LIBS="-lresolv $LIBS"
26980 for ac_func in inet_pton
26982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26983 echo "$as_me:$LINENO: checking for $ac_func" >&5
26984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26985 if eval "test \"\${$as_ac_var+set}\" = set"; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26996 #define $ac_func innocuous_$ac_func
26998 /* System header to define __stub macros and hopefully few prototypes,
26999 which can conflict with char $ac_func (); below.
27000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27001 <limits.h> exists even on freestanding compilers. */
27004 # include <limits.h>
27006 # include <assert.h>
27011 /* Override any gcc2 internal prototype to avoid an error. */
27016 /* We use char because int might match the return type of a gcc2
27017 builtin and then its argument prototype would still apply. */
27019 /* The GNU C library defines this for functions which it implements
27020 to always fail with ENOSYS. Some functions are actually named
27021 something starting with __ and the normal name is an alias. */
27022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27025 char (*f) () = $ac_func;
27034 return f != $ac_func;
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27041 (eval $ac_link) 2>conftest.er1
27043 grep -v '^ *+' conftest.er1 >conftest.err
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } &&
27048 { ac_try='test -z "$ac_c_werror_flag"
27049 || test ! -s conftest.err'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; } &&
27055 { ac_try='test -s conftest$ac_exeext'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27061 eval "$as_ac_var=yes"
27063 echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27066 eval "$as_ac_var=no"
27068 rm -f conftest.err conftest.$ac_objext \
27069 conftest$ac_exeext conftest.$ac_ext
27071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27073 if test `eval echo '${'$as_ac_var'}'` = yes; then
27074 cat >>confdefs.h <<_ACEOF
27075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27077 cat >>confdefs.h <<\_ACEOF
27078 #define HAVE_INET_PTON 1
27085 for ac_func in inet_ntop
27087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27088 echo "$as_me:$LINENO: checking for $ac_func" >&5
27089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27090 if eval "test \"\${$as_ac_var+set}\" = set"; then
27091 echo $ECHO_N "(cached) $ECHO_C" >&6
27093 cat >conftest.$ac_ext <<_ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27101 #define $ac_func innocuous_$ac_func
27103 /* System header to define __stub macros and hopefully few prototypes,
27104 which can conflict with char $ac_func (); below.
27105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27106 <limits.h> exists even on freestanding compilers. */
27109 # include <limits.h>
27111 # include <assert.h>
27116 /* Override any gcc2 internal prototype to avoid an error. */
27121 /* We use char because int might match the return type of a gcc2
27122 builtin and then its argument prototype would still apply. */
27124 /* The GNU C library defines this for functions which it implements
27125 to always fail with ENOSYS. Some functions are actually named
27126 something starting with __ and the normal name is an alias. */
27127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27130 char (*f) () = $ac_func;
27139 return f != $ac_func;
27144 rm -f conftest.$ac_objext conftest$ac_exeext
27145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27146 (eval $ac_link) 2>conftest.er1
27148 grep -v '^ *+' conftest.er1 >conftest.err
27150 cat conftest.err >&5
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); } &&
27153 { ac_try='test -z "$ac_c_werror_flag"
27154 || test ! -s conftest.err'
27155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27156 (eval $ac_try) 2>&5
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; } &&
27160 { ac_try='test -s conftest$ac_exeext'
27161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27162 (eval $ac_try) 2>&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); }; }; then
27166 eval "$as_ac_var=yes"
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27171 eval "$as_ac_var=no"
27173 rm -f conftest.err conftest.$ac_objext \
27174 conftest$ac_exeext conftest.$ac_ext
27176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27178 if test `eval echo '${'$as_ac_var'}'` = yes; then
27179 cat >>confdefs.h <<_ACEOF
27180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27182 cat >>confdefs.h <<\_ACEOF
27183 #define HAVE_INET_NTOP 1
27190 for ac_func in gethostbyname2
27192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27193 echo "$as_me:$LINENO: checking for $ac_func" >&5
27194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27195 if eval "test \"\${$as_ac_var+set}\" = set"; then
27196 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 cat >conftest.$ac_ext <<_ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h. */
27204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27206 #define $ac_func innocuous_$ac_func
27208 /* System header to define __stub macros and hopefully few prototypes,
27209 which can conflict with char $ac_func (); below.
27210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27211 <limits.h> exists even on freestanding compilers. */
27214 # include <limits.h>
27216 # include <assert.h>
27221 /* Override any gcc2 internal prototype to avoid an error. */
27226 /* We use char because int might match the return type of a gcc2
27227 builtin and then its argument prototype would still apply. */
27229 /* The GNU C library defines this for functions which it implements
27230 to always fail with ENOSYS. Some functions are actually named
27231 something starting with __ and the normal name is an alias. */
27232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27235 char (*f) () = $ac_func;
27244 return f != $ac_func;
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 eval "$as_ac_var=yes"
27273 echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27276 eval "$as_ac_var=no"
27278 rm -f conftest.err conftest.$ac_objext \
27279 conftest$ac_exeext conftest.$ac_ext
27281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27283 if test `eval echo '${'$as_ac_var'}'` = yes; then
27284 cat >>confdefs.h <<_ACEOF
27285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27287 cat >>confdefs.h <<\_ACEOF
27288 #define HAVE_GETHOSTBYNAME2 1
27295 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27296 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27297 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27300 cat >conftest.$ac_ext <<_ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h. */
27306 #include <sys/socket.h>
27310 struct sockaddr s; s.sa_len;
27315 rm -f conftest.$ac_objext
27316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27317 (eval $ac_compile) 2>conftest.er1
27319 grep -v '^ *+' conftest.er1 >conftest.err
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); } &&
27324 { ac_try='test -z "$ac_c_werror_flag"
27325 || test ! -s conftest.err'
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest.$ac_objext'
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 ac_cv_struct_sockaddr_sa_len=yes
27339 echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27342 ac_cv_struct_sockaddr_sa_len=no
27344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27346 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27347 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27349 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27351 cat >>confdefs.h <<\_ACEOF
27352 #define HAVE_SA_LEN 1
27358 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27359 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27360 if test "${ac_cv_ipv6_support+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 cat >conftest.$ac_ext <<_ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h. */
27369 #include <sys/types.h>
27370 #include <sys/socket.h>
27371 #include <netinet/in.h>
27375 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27381 rm -f conftest.$ac_objext conftest$ac_exeext
27382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27383 (eval $ac_link) 2>conftest.er1
27385 grep -v '^ *+' conftest.er1 >conftest.err
27387 cat conftest.err >&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); } &&
27390 { ac_try='test -z "$ac_c_werror_flag"
27391 || test ! -s conftest.err'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest$ac_exeext'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; }; then
27403 ac_cv_ipv6_support=yes
27405 echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27408 ac_cv_ipv6_support=no
27410 rm -f conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27413 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27414 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27416 if test "$ac_cv_ipv6_support" = yes; then
27418 cat >>confdefs.h <<\_ACEOF
27419 #define HAVE_IPV6 1
27427 for ac_func in strftime
27429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27430 echo "$as_me:$LINENO: checking for $ac_func" >&5
27431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27432 if eval "test \"\${$as_ac_var+set}\" = set"; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27443 #define $ac_func innocuous_$ac_func
27445 /* System header to define __stub macros and hopefully few prototypes,
27446 which can conflict with char $ac_func (); below.
27447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27448 <limits.h> exists even on freestanding compilers. */
27451 # include <limits.h>
27453 # include <assert.h>
27458 /* Override any gcc2 internal prototype to avoid an error. */
27463 /* We use char because int might match the return type of a gcc2
27464 builtin and then its argument prototype would still apply. */
27466 /* The GNU C library defines this for functions which it implements
27467 to always fail with ENOSYS. Some functions are actually named
27468 something starting with __ and the normal name is an alias. */
27469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27472 char (*f) () = $ac_func;
27481 return f != $ac_func;
27486 rm -f conftest.$ac_objext conftest$ac_exeext
27487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27488 (eval $ac_link) 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag"
27496 || test ! -s conftest.err'
27497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498 (eval $ac_try) 2>&5
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); }; } &&
27502 { ac_try='test -s conftest$ac_exeext'
27503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27504 (eval $ac_try) 2>&5
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); }; }; then
27508 eval "$as_ac_var=yes"
27510 echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27513 eval "$as_ac_var=no"
27515 rm -f conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
27518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27520 if test `eval echo '${'$as_ac_var'}'` = yes; then
27521 cat >>confdefs.h <<_ACEOF
27522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27526 # strftime is in -lintl on SCO UNIX.
27527 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27528 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27529 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27532 ac_check_lib_save_LIBS=$LIBS
27533 LIBS="-lintl $LIBS"
27534 cat >conftest.$ac_ext <<_ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h. */
27541 /* Override any gcc2 internal prototype to avoid an error. */
27545 /* We use char because int might match the return type of a gcc2
27546 builtin and then its argument prototype would still apply. */
27556 rm -f conftest.$ac_objext conftest$ac_exeext
27557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27558 (eval $ac_link) 2>conftest.er1
27560 grep -v '^ *+' conftest.er1 >conftest.err
27562 cat conftest.err >&5
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); } &&
27565 { ac_try='test -z "$ac_c_werror_flag"
27566 || test ! -s conftest.err'
27567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568 (eval $ac_try) 2>&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574 (eval $ac_try) 2>&5
27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577 (exit $ac_status); }; }; then
27578 ac_cv_lib_intl_strftime=yes
27580 echo "$as_me: failed program was:" >&5
27581 sed 's/^/| /' conftest.$ac_ext >&5
27583 ac_cv_lib_intl_strftime=no
27585 rm -f conftest.err conftest.$ac_objext \
27586 conftest$ac_exeext conftest.$ac_ext
27587 LIBS=$ac_check_lib_save_LIBS
27589 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27590 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27591 if test $ac_cv_lib_intl_strftime = yes; then
27592 cat >>confdefs.h <<\_ACEOF
27593 #define HAVE_STRFTIME 1
27596 LIBS="-lintl $LIBS"
27603 for ac_func in vprintf
27605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27606 echo "$as_me:$LINENO: checking for $ac_func" >&5
27607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27608 if eval "test \"\${$as_ac_var+set}\" = set"; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27611 cat >conftest.$ac_ext <<_ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27619 #define $ac_func innocuous_$ac_func
27621 /* System header to define __stub macros and hopefully few prototypes,
27622 which can conflict with char $ac_func (); below.
27623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27624 <limits.h> exists even on freestanding compilers. */
27627 # include <limits.h>
27629 # include <assert.h>
27634 /* Override any gcc2 internal prototype to avoid an error. */
27639 /* We use char because int might match the return type of a gcc2
27640 builtin and then its argument prototype would still apply. */
27642 /* The GNU C library defines this for functions which it implements
27643 to always fail with ENOSYS. Some functions are actually named
27644 something starting with __ and the normal name is an alias. */
27645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27648 char (*f) () = $ac_func;
27657 return f != $ac_func;
27662 rm -f conftest.$ac_objext conftest$ac_exeext
27663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27664 (eval $ac_link) 2>conftest.er1
27666 grep -v '^ *+' conftest.er1 >conftest.err
27668 cat conftest.err >&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } &&
27671 { ac_try='test -z "$ac_c_werror_flag"
27672 || test ! -s conftest.err'
27673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674 (eval $ac_try) 2>&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; } &&
27678 { ac_try='test -s conftest$ac_exeext'
27679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27680 (eval $ac_try) 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 eval "$as_ac_var=yes"
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27689 eval "$as_ac_var=no"
27691 rm -f conftest.err conftest.$ac_objext \
27692 conftest$ac_exeext conftest.$ac_ext
27694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27696 if test `eval echo '${'$as_ac_var'}'` = yes; then
27697 cat >>confdefs.h <<_ACEOF
27698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27701 echo "$as_me:$LINENO: checking for _doprnt" >&5
27702 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27703 if test "${ac_cv_func__doprnt+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27712 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27714 #define _doprnt innocuous__doprnt
27716 /* System header to define __stub macros and hopefully few prototypes,
27717 which can conflict with char _doprnt (); below.
27718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27719 <limits.h> exists even on freestanding compilers. */
27722 # include <limits.h>
27724 # include <assert.h>
27729 /* Override any gcc2 internal prototype to avoid an error. */
27734 /* We use char because int might match the return type of a gcc2
27735 builtin and then its argument prototype would still apply. */
27737 /* The GNU C library defines this for functions which it implements
27738 to always fail with ENOSYS. Some functions are actually named
27739 something starting with __ and the normal name is an alias. */
27740 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27743 char (*f) () = _doprnt;
27752 return f != _doprnt;
27757 rm -f conftest.$ac_objext conftest$ac_exeext
27758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27759 (eval $ac_link) 2>conftest.er1
27761 grep -v '^ *+' conftest.er1 >conftest.err
27763 cat conftest.err >&5
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); } &&
27766 { ac_try='test -z "$ac_c_werror_flag"
27767 || test ! -s conftest.err'
27768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769 (eval $ac_try) 2>&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; } &&
27773 { ac_try='test -s conftest$ac_exeext'
27774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27775 (eval $ac_try) 2>&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); }; }; then
27779 ac_cv_func__doprnt=yes
27781 echo "$as_me: failed program was:" >&5
27782 sed 's/^/| /' conftest.$ac_ext >&5
27784 ac_cv_func__doprnt=no
27786 rm -f conftest.err conftest.$ac_objext \
27787 conftest$ac_exeext conftest.$ac_ext
27789 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27790 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27791 if test $ac_cv_func__doprnt = yes; then
27793 cat >>confdefs.h <<\_ACEOF
27794 #define HAVE_DOPRNT 1
27803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27804 # for constant arguments. Useless!
27805 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27806 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27807 if test "${ac_cv_working_alloca_h+set}" = set; then
27808 echo $ECHO_N "(cached) $ECHO_C" >&6
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27816 #include <alloca.h>
27820 char *p = (char *) alloca (2 * sizeof (int));
27825 rm -f conftest.$ac_objext conftest$ac_exeext
27826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27827 (eval $ac_link) 2>conftest.er1
27829 grep -v '^ *+' conftest.er1 >conftest.err
27831 cat conftest.err >&5
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); } &&
27834 { ac_try='test -z "$ac_c_werror_flag"
27835 || test ! -s conftest.err'
27836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837 (eval $ac_try) 2>&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; } &&
27841 { ac_try='test -s conftest$ac_exeext'
27842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27843 (eval $ac_try) 2>&5
27845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846 (exit $ac_status); }; }; then
27847 ac_cv_working_alloca_h=yes
27849 echo "$as_me: failed program was:" >&5
27850 sed 's/^/| /' conftest.$ac_ext >&5
27852 ac_cv_working_alloca_h=no
27854 rm -f conftest.err conftest.$ac_objext \
27855 conftest$ac_exeext conftest.$ac_ext
27857 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27858 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27859 if test $ac_cv_working_alloca_h = yes; then
27861 cat >>confdefs.h <<\_ACEOF
27862 #define HAVE_ALLOCA_H 1
27867 echo "$as_me:$LINENO: checking for alloca" >&5
27868 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27869 if test "${ac_cv_func_alloca_works+set}" = set; then
27870 echo $ECHO_N "(cached) $ECHO_C" >&6
27872 cat >conftest.$ac_ext <<_ACEOF
27875 cat confdefs.h >>conftest.$ac_ext
27876 cat >>conftest.$ac_ext <<_ACEOF
27877 /* end confdefs.h. */
27879 # define alloca __builtin_alloca
27882 # include <malloc.h>
27883 # define alloca _alloca
27886 # include <alloca.h>
27891 # ifndef alloca /* predefined by HP cc +Olibcalls */
27902 char *p = (char *) alloca (1);
27907 rm -f conftest.$ac_objext conftest$ac_exeext
27908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27909 (eval $ac_link) 2>conftest.er1
27911 grep -v '^ *+' conftest.er1 >conftest.err
27913 cat conftest.err >&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } &&
27916 { ac_try='test -z "$ac_c_werror_flag"
27917 || test ! -s conftest.err'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest$ac_exeext'
27924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925 (eval $ac_try) 2>&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
27929 ac_cv_func_alloca_works=yes
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 ac_cv_func_alloca_works=no
27936 rm -f conftest.err conftest.$ac_objext \
27937 conftest$ac_exeext conftest.$ac_ext
27939 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27940 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27942 if test $ac_cv_func_alloca_works = yes; then
27944 cat >>confdefs.h <<\_ACEOF
27945 #define HAVE_ALLOCA 1
27949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27950 # that cause trouble. Some versions do not even contain alloca or
27951 # contain a buggy version. If you still want to use their alloca,
27952 # use ar to extract alloca.o from them instead of compiling alloca.c.
27954 ALLOCA=alloca.$ac_objext
27956 cat >>confdefs.h <<\_ACEOF
27961 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27962 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27963 if test "${ac_cv_os_cray+set}" = set; then
27964 echo $ECHO_N "(cached) $ECHO_C" >&6
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27972 #if defined(CRAY) && ! defined(CRAY2)
27979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27980 $EGREP "webecray" >/dev/null 2>&1; then
27988 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27989 echo "${ECHO_T}$ac_cv_os_cray" >&6
27990 if test $ac_cv_os_cray = yes; then
27991 for ac_func in _getb67 GETB67 getb67; do
27992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27993 echo "$as_me:$LINENO: checking for $ac_func" >&5
27994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27995 if eval "test \"\${$as_ac_var+set}\" = set"; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28006 #define $ac_func innocuous_$ac_func
28008 /* System header to define __stub macros and hopefully few prototypes,
28009 which can conflict with char $ac_func (); below.
28010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28011 <limits.h> exists even on freestanding compilers. */
28014 # include <limits.h>
28016 # include <assert.h>
28021 /* Override any gcc2 internal prototype to avoid an error. */
28026 /* We use char because int might match the return type of a gcc2
28027 builtin and then its argument prototype would still apply. */
28029 /* The GNU C library defines this for functions which it implements
28030 to always fail with ENOSYS. Some functions are actually named
28031 something starting with __ and the normal name is an alias. */
28032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28035 char (*f) () = $ac_func;
28044 return f != $ac_func;
28049 rm -f conftest.$ac_objext conftest$ac_exeext
28050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28051 (eval $ac_link) 2>conftest.er1
28053 grep -v '^ *+' conftest.er1 >conftest.err
28055 cat conftest.err >&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
28058 { ac_try='test -z "$ac_c_werror_flag"
28059 || test ! -s conftest.err'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest$ac_exeext'
28066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; }; then
28071 eval "$as_ac_var=yes"
28073 echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076 eval "$as_ac_var=no"
28078 rm -f conftest.err conftest.$ac_objext \
28079 conftest$ac_exeext conftest.$ac_ext
28081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28083 if test `eval echo '${'$as_ac_var'}'` = yes; then
28085 cat >>confdefs.h <<_ACEOF
28086 #define CRAY_STACKSEG_END $ac_func
28095 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28096 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28097 if test "${ac_cv_c_stack_direction+set}" = set; then
28098 echo $ECHO_N "(cached) $ECHO_C" >&6
28100 if test "$cross_compiling" = yes; then
28101 ac_cv_c_stack_direction=0
28103 cat >conftest.$ac_ext <<_ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h. */
28110 find_stack_direction ()
28112 static char *addr = 0;
28117 return find_stack_direction ();
28120 return (&dummy > addr) ? 1 : -1;
28126 exit (find_stack_direction () < 0);
28129 rm -f conftest$ac_exeext
28130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28131 (eval $ac_link) 2>&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 ac_cv_c_stack_direction=1
28142 echo "$as_me: program exited with status $ac_status" >&5
28143 echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.$ac_ext >&5
28146 ( exit $ac_status )
28147 ac_cv_c_stack_direction=-1
28149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28152 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28153 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28155 cat >>confdefs.h <<_ACEOF
28156 #define STACK_DIRECTION $ac_cv_c_stack_direction
28162 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28163 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28164 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28165 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28168 ac_check_lib_save_LIBS=$LIBS
28170 cat >conftest.$ac_ext <<_ACEOF
28173 cat confdefs.h >>conftest.$ac_ext
28174 cat >>conftest.$ac_ext <<_ACEOF
28175 /* end confdefs.h. */
28177 /* Override any gcc2 internal prototype to avoid an error. */
28181 /* We use char because int might match the return type of a gcc2
28182 builtin and then its argument prototype would still apply. */
28192 rm -f conftest.$ac_objext conftest$ac_exeext
28193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28194 (eval $ac_link) 2>conftest.er1
28196 grep -v '^ *+' conftest.er1 >conftest.err
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
28201 { ac_try='test -z "$ac_c_werror_flag"
28202 || test ! -s conftest.err'
28203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204 (eval $ac_try) 2>&5
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; } &&
28208 { ac_try='test -s conftest$ac_exeext'
28209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210 (eval $ac_try) 2>&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; }; then
28214 ac_cv_lib_sun_getmntent=yes
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219 ac_cv_lib_sun_getmntent=no
28221 rm -f conftest.err conftest.$ac_objext \
28222 conftest$ac_exeext conftest.$ac_ext
28223 LIBS=$ac_check_lib_save_LIBS
28225 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28226 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28227 if test $ac_cv_lib_sun_getmntent = yes; then
28230 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28231 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28232 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28235 ac_check_lib_save_LIBS=$LIBS
28237 cat >conftest.$ac_ext <<_ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h. */
28244 /* Override any gcc2 internal prototype to avoid an error. */
28248 /* We use char because int might match the return type of a gcc2
28249 builtin and then its argument prototype would still apply. */
28259 rm -f conftest.$ac_objext conftest$ac_exeext
28260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28261 (eval $ac_link) 2>conftest.er1
28263 grep -v '^ *+' conftest.er1 >conftest.err
28265 cat conftest.err >&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); } &&
28268 { ac_try='test -z "$ac_c_werror_flag"
28269 || test ! -s conftest.err'
28270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271 (eval $ac_try) 2>&5
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; } &&
28275 { ac_try='test -s conftest$ac_exeext'
28276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277 (eval $ac_try) 2>&5
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_lib_seq_getmntent=yes
28283 echo "$as_me: failed program was:" >&5
28284 sed 's/^/| /' conftest.$ac_ext >&5
28286 ac_cv_lib_seq_getmntent=no
28288 rm -f conftest.err conftest.$ac_objext \
28289 conftest$ac_exeext conftest.$ac_ext
28290 LIBS=$ac_check_lib_save_LIBS
28292 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28293 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28294 if test $ac_cv_lib_seq_getmntent = yes; then
28297 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28298 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28299 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28300 echo $ECHO_N "(cached) $ECHO_C" >&6
28302 ac_check_lib_save_LIBS=$LIBS
28304 cat >conftest.$ac_ext <<_ACEOF
28307 cat confdefs.h >>conftest.$ac_ext
28308 cat >>conftest.$ac_ext <<_ACEOF
28309 /* end confdefs.h. */
28311 /* Override any gcc2 internal prototype to avoid an error. */
28315 /* We use char because int might match the return type of a gcc2
28316 builtin and then its argument prototype would still apply. */
28326 rm -f conftest.$ac_objext conftest$ac_exeext
28327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328 (eval $ac_link) 2>conftest.er1
28330 grep -v '^ *+' conftest.er1 >conftest.err
28332 cat conftest.err >&5
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); } &&
28335 { ac_try='test -z "$ac_c_werror_flag"
28336 || test ! -s conftest.err'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; } &&
28342 { ac_try='test -s conftest$ac_exeext'
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; }; then
28348 ac_cv_lib_gen_getmntent=yes
28350 echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28353 ac_cv_lib_gen_getmntent=no
28355 rm -f conftest.err conftest.$ac_objext \
28356 conftest$ac_exeext conftest.$ac_ext
28357 LIBS=$ac_check_lib_save_LIBS
28359 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28360 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28361 if test $ac_cv_lib_gen_getmntent = yes; then
28370 for ac_func in getmntent
28372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28373 echo "$as_me:$LINENO: checking for $ac_func" >&5
28374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28375 if eval "test \"\${$as_ac_var+set}\" = set"; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28378 cat >conftest.$ac_ext <<_ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28386 #define $ac_func innocuous_$ac_func
28388 /* System header to define __stub macros and hopefully few prototypes,
28389 which can conflict with char $ac_func (); below.
28390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28391 <limits.h> exists even on freestanding compilers. */
28394 # include <limits.h>
28396 # include <assert.h>
28401 /* Override any gcc2 internal prototype to avoid an error. */
28406 /* We use char because int might match the return type of a gcc2
28407 builtin and then its argument prototype would still apply. */
28409 /* The GNU C library defines this for functions which it implements
28410 to always fail with ENOSYS. Some functions are actually named
28411 something starting with __ and the normal name is an alias. */
28412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28415 char (*f) () = $ac_func;
28424 return f != $ac_func;
28429 rm -f conftest.$ac_objext conftest$ac_exeext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28431 (eval $ac_link) 2>conftest.er1
28433 grep -v '^ *+' conftest.er1 >conftest.err
28435 cat conftest.err >&5
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); } &&
28438 { ac_try='test -z "$ac_c_werror_flag"
28439 || test ! -s conftest.err'
28440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441 (eval $ac_try) 2>&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); }; } &&
28445 { ac_try='test -s conftest$ac_exeext'
28446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447 (eval $ac_try) 2>&5
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 eval "$as_ac_var=yes"
28453 echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28456 eval "$as_ac_var=no"
28458 rm -f conftest.err conftest.$ac_objext \
28459 conftest$ac_exeext conftest.$ac_ext
28461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28463 if test `eval echo '${'$as_ac_var'}'` = yes; then
28464 cat >>confdefs.h <<_ACEOF
28465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28472 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28473 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28474 if test "${ac_cv_func_closedir_void+set}" = set; then
28475 echo $ECHO_N "(cached) $ECHO_C" >&6
28477 if test "$cross_compiling" = yes; then
28478 ac_cv_func_closedir_void=yes
28480 cat >conftest.$ac_ext <<_ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h. */
28486 $ac_includes_default
28487 #include <$ac_header_dirent>
28488 #ifndef __cplusplus
28495 exit (closedir (opendir (".")) != 0);
28500 rm -f conftest$ac_exeext
28501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28502 (eval $ac_link) 2>&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
28511 ac_cv_func_closedir_void=no
28513 echo "$as_me: program exited with status $ac_status" >&5
28514 echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28517 ( exit $ac_status )
28518 ac_cv_func_closedir_void=yes
28520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28523 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28524 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28525 if test $ac_cv_func_closedir_void = yes; then
28527 cat >>confdefs.h <<\_ACEOF
28528 #define CLOSEDIR_VOID 1
28533 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28534 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28535 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28538 if test "$cross_compiling" = yes; then
28539 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28540 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28541 { (exit 1); exit 1; }; }
28543 cat >conftest.$ac_ext <<_ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28550 # include <unistd.h>
28556 /* If this system has a BSD-style setpgrp which takes arguments,
28557 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28558 exit successfully. */
28559 exit (setpgrp (1,1) == -1 ? 0 : 1);
28564 rm -f conftest$ac_exeext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28566 (eval $ac_link) 2>&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28571 (eval $ac_try) 2>&5
28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 (exit $ac_status); }; }; then
28575 ac_cv_func_setpgrp_void=no
28577 echo "$as_me: program exited with status $ac_status" >&5
28578 echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28581 ( exit $ac_status )
28582 ac_cv_func_setpgrp_void=yes
28584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28587 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28588 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28589 if test $ac_cv_func_setpgrp_void = yes; then
28591 cat >>confdefs.h <<\_ACEOF
28592 #define SETPGRP_VOID 1
28596 # AC_FUNC_FNMATCH dnl use local version
28599 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28600 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28601 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28604 ac_check_lib_save_LIBS=$LIBS
28605 LIBS="-lintl $LIBS"
28606 cat >conftest.$ac_ext <<_ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h. */
28613 /* Override any gcc2 internal prototype to avoid an error. */
28617 /* We use char because int might match the return type of a gcc2
28618 builtin and then its argument prototype would still apply. */
28628 rm -f conftest.$ac_objext conftest$ac_exeext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28630 (eval $ac_link) 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest$ac_exeext'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ac_cv_lib_intl_gettext=yes
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28655 ac_cv_lib_intl_gettext=no
28657 rm -f conftest.err conftest.$ac_objext \
28658 conftest$ac_exeext conftest.$ac_ext
28659 LIBS=$ac_check_lib_save_LIBS
28661 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28662 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28663 if test $ac_cv_lib_intl_gettext = yes; then
28664 LIBS="$LIBS -lintl"
28670 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28671 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28672 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 ac_check_lib_save_LIBS=$LIBS
28677 cat >conftest.$ac_ext <<_ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h. */
28684 /* Override any gcc2 internal prototype to avoid an error. */
28688 /* We use char because int might match the return type of a gcc2
28689 builtin and then its argument prototype would still apply. */
28699 rm -f conftest.$ac_objext conftest$ac_exeext
28700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28701 (eval $ac_link) 2>conftest.er1
28703 grep -v '^ *+' conftest.er1 >conftest.err
28705 cat conftest.err >&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
28708 { ac_try='test -z "$ac_c_werror_flag"
28709 || test ! -s conftest.err'
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; } &&
28715 { ac_try='test -s conftest$ac_exeext'
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; }; then
28721 ac_cv_lib_sun_getpwnam=yes
28723 echo "$as_me: failed program was:" >&5
28724 sed 's/^/| /' conftest.$ac_ext >&5
28726 ac_cv_lib_sun_getpwnam=no
28728 rm -f conftest.err conftest.$ac_objext \
28729 conftest$ac_exeext conftest.$ac_ext
28730 LIBS=$ac_check_lib_save_LIBS
28732 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28733 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28734 if test $ac_cv_lib_sun_getpwnam = yes; then
28735 cat >>confdefs.h <<_ACEOF
28736 #define HAVE_LIBSUN 1
28745 for ac_header in zlib.h
28747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28749 echo "$as_me:$LINENO: checking for $ac_header" >&5
28750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28752 echo $ECHO_N "(cached) $ECHO_C" >&6
28754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28757 # Is the header compilable?
28758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28760 cat >conftest.$ac_ext <<_ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28766 $ac_includes_default
28767 #include <$ac_header>
28769 rm -f conftest.$ac_objext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28771 (eval $ac_compile) 2>conftest.er1
28773 grep -v '^ *+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } &&
28778 { ac_try='test -z "$ac_c_werror_flag"
28779 || test ! -s conftest.err'
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; } &&
28785 { ac_try='test -s conftest.$ac_objext'
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; }; then
28791 ac_header_compiler=yes
28793 echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28796 ac_header_compiler=no
28798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28800 echo "${ECHO_T}$ac_header_compiler" >&6
28802 # Is the header present?
28803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28805 cat >conftest.$ac_ext <<_ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h. */
28811 #include <$ac_header>
28813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28816 grep -v '^ *+' conftest.er1 >conftest.err
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } >/dev/null; then
28821 if test -s conftest.err; then
28822 ac_cpp_err=$ac_c_preproc_warn_flag
28823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28830 if test -z "$ac_cpp_err"; then
28831 ac_header_preproc=yes
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_header_preproc=no
28838 rm -f conftest.err conftest.$ac_ext
28839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840 echo "${ECHO_T}$ac_header_preproc" >&6
28842 # So? What about this header?
28843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28849 ac_header_preproc=yes
28852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28866 ## ------------------------------------------ ##
28867 ## Report this to the AC_PACKAGE_NAME lists. ##
28868 ## ------------------------------------------ ##
28871 sed "s/^/$as_me: WARNING: /" >&2
28874 echo "$as_me:$LINENO: checking for $ac_header" >&5
28875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28879 eval "$as_ac_Header=\$ac_header_preproc"
28881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28886 cat >>confdefs.h <<_ACEOF
28887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28894 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28895 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28896 if test "${ac_cv_lib_z_deflate+set}" = set; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 ac_check_lib_save_LIBS=$LIBS
28901 cat >conftest.$ac_ext <<_ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h. */
28908 /* Override any gcc2 internal prototype to avoid an error. */
28912 /* We use char because int might match the return type of a gcc2
28913 builtin and then its argument prototype would still apply. */
28923 rm -f conftest.$ac_objext conftest$ac_exeext
28924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28925 (eval $ac_link) 2>conftest.er1
28927 grep -v '^ *+' conftest.er1 >conftest.err
28929 cat conftest.err >&5
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
28932 { ac_try='test -z "$ac_c_werror_flag"
28933 || test ! -s conftest.err'
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest$ac_exeext'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_lib_z_deflate=yes
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28950 ac_cv_lib_z_deflate=no
28952 rm -f conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28956 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28957 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28958 if test $ac_cv_lib_z_deflate = yes; then
28963 if test x$FDLIBS = x-lz; then
28964 cat >>confdefs.h <<\_ACEOF
28965 #define HAVE_LIBZ 1
28972 # Check for ACL libraries
28975 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28976 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28977 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28978 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28982 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28984 # Is the header compilable?
28985 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28986 echo $ECHO_N "checking sys/acl.h usability... $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 $ac_includes_default
28994 #include <sys/acl.h>
28996 rm -f conftest.$ac_objext
28997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28998 (eval $ac_compile) 2>conftest.er1
29000 grep -v '^ *+' conftest.er1 >conftest.err
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } &&
29005 { ac_try='test -z "$ac_c_werror_flag"
29006 || test ! -s conftest.err'
29007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008 (eval $ac_try) 2>&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; } &&
29012 { ac_try='test -s conftest.$ac_objext'
29013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29014 (eval $ac_try) 2>&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); }; }; then
29018 ac_header_compiler=yes
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29023 ac_header_compiler=no
29025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29027 echo "${ECHO_T}$ac_header_compiler" >&6
29029 # Is the header present?
29030 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29031 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29032 cat >conftest.$ac_ext <<_ACEOF
29035 cat confdefs.h >>conftest.$ac_ext
29036 cat >>conftest.$ac_ext <<_ACEOF
29037 /* end confdefs.h. */
29038 #include <sys/acl.h>
29040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29043 grep -v '^ *+' conftest.er1 >conftest.err
29045 cat conftest.err >&5
29046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047 (exit $ac_status); } >/dev/null; then
29048 if test -s conftest.err; then
29049 ac_cpp_err=$ac_c_preproc_warn_flag
29050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29057 if test -z "$ac_cpp_err"; then
29058 ac_header_preproc=yes
29060 echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29063 ac_header_preproc=no
29065 rm -f conftest.err conftest.$ac_ext
29066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29067 echo "${ECHO_T}$ac_header_preproc" >&6
29069 # So? What about this header?
29070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29072 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29073 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29074 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29075 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29076 ac_header_preproc=yes
29079 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29080 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29082 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29084 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29086 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29088 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29090 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29093 ## ------------------------------------------ ##
29094 ## Report this to the AC_PACKAGE_NAME lists. ##
29095 ## ------------------------------------------ ##
29098 sed "s/^/$as_me: WARNING: /" >&2
29101 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29102 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29103 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29104 echo $ECHO_N "(cached) $ECHO_C" >&6
29106 ac_cv_header_sys_acl_h=$ac_header_preproc
29108 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29109 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29114 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29115 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29116 if test "${ac_cv_func_acl_get_file+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29119 cat >conftest.$ac_ext <<_ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29125 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29127 #define acl_get_file innocuous_acl_get_file
29129 /* System header to define __stub macros and hopefully few prototypes,
29130 which can conflict with char acl_get_file (); below.
29131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29132 <limits.h> exists even on freestanding compilers. */
29135 # include <limits.h>
29137 # include <assert.h>
29140 #undef acl_get_file
29142 /* Override any gcc2 internal prototype to avoid an error. */
29147 /* We use char because int might match the return type of a gcc2
29148 builtin and then its argument prototype would still apply. */
29149 char acl_get_file ();
29150 /* The GNU C library defines this for functions which it implements
29151 to always fail with ENOSYS. Some functions are actually named
29152 something starting with __ and the normal name is an alias. */
29153 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29156 char (*f) () = acl_get_file;
29165 return f != acl_get_file;
29170 rm -f conftest.$ac_objext conftest$ac_exeext
29171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29172 (eval $ac_link) 2>conftest.er1
29174 grep -v '^ *+' conftest.er1 >conftest.err
29176 cat conftest.err >&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } &&
29179 { ac_try='test -z "$ac_c_werror_flag"
29180 || test ! -s conftest.err'
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; } &&
29186 { ac_try='test -s conftest$ac_exeext'
29187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188 (eval $ac_try) 2>&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; }; then
29192 ac_cv_func_acl_get_file=yes
29194 echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.$ac_ext >&5
29197 ac_cv_func_acl_get_file=no
29199 rm -f conftest.err conftest.$ac_objext \
29200 conftest$ac_exeext conftest.$ac_ext
29202 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29203 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29204 if test $ac_cv_func_acl_get_file = yes; then
29207 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29208 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29209 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29212 ac_check_lib_save_LIBS=$LIBS
29214 cat >conftest.$ac_ext <<_ACEOF
29217 cat confdefs.h >>conftest.$ac_ext
29218 cat >>conftest.$ac_ext <<_ACEOF
29219 /* end confdefs.h. */
29221 /* Override any gcc2 internal prototype to avoid an error. */
29225 /* We use char because int might match the return type of a gcc2
29226 builtin and then its argument prototype would still apply. */
29227 char acl_get_file ();
29236 rm -f conftest.$ac_objext conftest$ac_exeext
29237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29238 (eval $ac_link) 2>conftest.er1
29240 grep -v '^ *+' conftest.er1 >conftest.err
29242 cat conftest.err >&5
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); } &&
29245 { ac_try='test -z "$ac_c_werror_flag"
29246 || test ! -s conftest.err'
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; } &&
29252 { ac_try='test -s conftest$ac_exeext'
29253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254 (eval $ac_try) 2>&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
29258 ac_cv_lib_acl_acl_get_file=yes
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 ac_cv_lib_acl_acl_get_file=no
29265 rm -f conftest.err conftest.$ac_objext \
29266 conftest$ac_exeext conftest.$ac_ext
29267 LIBS=$ac_check_lib_save_LIBS
29269 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29270 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29271 if test $ac_cv_lib_acl_acl_get_file = yes; then
29272 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29274 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29275 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29276 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 ac_check_lib_save_LIBS=$LIBS
29281 cat >conftest.$ac_ext <<_ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h. */
29288 /* Override any gcc2 internal prototype to avoid an error. */
29292 /* We use char because int might match the return type of a gcc2
29293 builtin and then its argument prototype would still apply. */
29303 rm -f conftest.$ac_objext conftest$ac_exeext
29304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29305 (eval $ac_link) 2>conftest.er1
29307 grep -v '^ *+' conftest.er1 >conftest.err
29309 cat conftest.err >&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); } &&
29312 { ac_try='test -z "$ac_c_werror_flag"
29313 || test ! -s conftest.err'
29314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29315 (eval $ac_try) 2>&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
29319 { ac_try='test -s conftest$ac_exeext'
29320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29321 (eval $ac_try) 2>&5
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); }; }; then
29325 ac_cv_lib_sec_acltotext=yes
29327 echo "$as_me: failed program was:" >&5
29328 sed 's/^/| /' conftest.$ac_ext >&5
29330 ac_cv_lib_sec_acltotext=no
29332 rm -f conftest.err conftest.$ac_objext \
29333 conftest$ac_exeext conftest.$ac_ext
29334 LIBS=$ac_check_lib_save_LIBS
29336 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29337 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29338 if test $ac_cv_lib_sec_acltotext = yes; then
29339 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29348 if test $have_acl = yes; then
29349 cat >>confdefs.h <<\_ACEOF
29356 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29357 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29358 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29359 echo $ECHO_N "(cached) $ECHO_C" >&6
29361 ac_check_lib_save_LIBS=$LIBS
29362 LIBS="-lpthread $LIBS"
29363 cat >conftest.$ac_ext <<_ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h. */
29370 /* Override any gcc2 internal prototype to avoid an error. */
29374 /* We use char because int might match the return type of a gcc2
29375 builtin and then its argument prototype would still apply. */
29376 char pthread_create ();
29385 rm -f conftest.$ac_objext conftest$ac_exeext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29387 (eval $ac_link) 2>conftest.er1
29389 grep -v '^ *+' conftest.er1 >conftest.err
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); } &&
29394 { ac_try='test -z "$ac_c_werror_flag"
29395 || test ! -s conftest.err'
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; } &&
29401 { ac_try='test -s conftest$ac_exeext'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407 ac_cv_lib_pthread_pthread_create=yes
29409 echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29412 ac_cv_lib_pthread_pthread_create=no
29414 rm -f conftest.err conftest.$ac_objext \
29415 conftest$ac_exeext conftest.$ac_ext
29416 LIBS=$ac_check_lib_save_LIBS
29418 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29419 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29420 if test $ac_cv_lib_pthread_pthread_create = yes; then
29421 PTHREAD_LIB="-lpthread"
29423 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29424 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29425 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29426 echo $ECHO_N "(cached) $ECHO_C" >&6
29428 ac_check_lib_save_LIBS=$LIBS
29429 LIBS="-lpthreads $LIBS"
29430 cat >conftest.$ac_ext <<_ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h. */
29437 /* Override any gcc2 internal prototype to avoid an error. */
29441 /* We use char because int might match the return type of a gcc2
29442 builtin and then its argument prototype would still apply. */
29443 char pthread_create ();
29452 rm -f conftest.$ac_objext conftest$ac_exeext
29453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29454 (eval $ac_link) 2>conftest.er1
29456 grep -v '^ *+' conftest.er1 >conftest.err
29458 cat conftest.err >&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
29461 { ac_try='test -z "$ac_c_werror_flag"
29462 || test ! -s conftest.err'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; } &&
29468 { ac_try='test -s conftest$ac_exeext'
29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 ac_cv_lib_pthreads_pthread_create=yes
29476 echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29479 ac_cv_lib_pthreads_pthread_create=no
29481 rm -f conftest.err conftest.$ac_objext \
29482 conftest$ac_exeext conftest.$ac_ext
29483 LIBS=$ac_check_lib_save_LIBS
29485 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29486 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29487 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29488 PTHREAD_LIB="-lpthreads"
29490 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29491 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29492 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29493 echo $ECHO_N "(cached) $ECHO_C" >&6
29495 ac_check_lib_save_LIBS=$LIBS
29497 cat >conftest.$ac_ext <<_ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h. */
29504 /* Override any gcc2 internal prototype to avoid an error. */
29508 /* We use char because int might match the return type of a gcc2
29509 builtin and then its argument prototype would still apply. */
29510 char pthread_create ();
29519 rm -f conftest.$ac_objext conftest$ac_exeext
29520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29521 (eval $ac_link) 2>conftest.er1
29523 grep -v '^ *+' conftest.er1 >conftest.err
29525 cat conftest.err >&5
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); } &&
29528 { ac_try='test -z "$ac_c_werror_flag"
29529 || test ! -s conftest.err'
29530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531 (eval $ac_try) 2>&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; } &&
29535 { ac_try='test -s conftest$ac_exeext'
29536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29537 (eval $ac_try) 2>&5
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); }; }; then
29541 ac_cv_lib_c_r_pthread_create=yes
29543 echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29546 ac_cv_lib_c_r_pthread_create=no
29548 rm -f conftest.err conftest.$ac_objext \
29549 conftest$ac_exeext conftest.$ac_ext
29550 LIBS=$ac_check_lib_save_LIBS
29552 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29553 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29554 if test $ac_cv_lib_c_r_pthread_create = yes; then
29555 PTHREAD_LIB="-lc_r"
29557 echo "$as_me:$LINENO: checking for pthread_create" >&5
29558 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29559 if test "${ac_cv_func_pthread_create+set}" = set; then
29560 echo $ECHO_N "(cached) $ECHO_C" >&6
29562 cat >conftest.$ac_ext <<_ACEOF
29565 cat confdefs.h >>conftest.$ac_ext
29566 cat >>conftest.$ac_ext <<_ACEOF
29567 /* end confdefs.h. */
29568 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29570 #define pthread_create innocuous_pthread_create
29572 /* System header to define __stub macros and hopefully few prototypes,
29573 which can conflict with char pthread_create (); below.
29574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29575 <limits.h> exists even on freestanding compilers. */
29578 # include <limits.h>
29580 # include <assert.h>
29583 #undef pthread_create
29585 /* Override any gcc2 internal prototype to avoid an error. */
29590 /* We use char because int might match the return type of a gcc2
29591 builtin and then its argument prototype would still apply. */
29592 char pthread_create ();
29593 /* The GNU C library defines this for functions which it implements
29594 to always fail with ENOSYS. Some functions are actually named
29595 something starting with __ and the normal name is an alias. */
29596 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29599 char (*f) () = pthread_create;
29608 return f != pthread_create;
29613 rm -f conftest.$ac_objext conftest$ac_exeext
29614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29615 (eval $ac_link) 2>conftest.er1
29617 grep -v '^ *+' conftest.er1 >conftest.err
29619 cat conftest.err >&5
29620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621 (exit $ac_status); } &&
29622 { ac_try='test -z "$ac_c_werror_flag"
29623 || test ! -s conftest.err'
29624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625 (eval $ac_try) 2>&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; } &&
29629 { ac_try='test -s conftest$ac_exeext'
29630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29631 (eval $ac_try) 2>&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; }; then
29635 ac_cv_func_pthread_create=yes
29637 echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29640 ac_cv_func_pthread_create=no
29642 rm -f conftest.err conftest.$ac_objext \
29643 conftest$ac_exeext conftest.$ac_ext
29645 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29646 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29659 cat >>confdefs.h <<\_ACEOF
29665 CFLAGS=${CFLAGS--O}
29667 if test x$have_gcc = xyes ; then
29668 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29669 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29671 LDFLAGS=${LDFLAGS--O}
29672 DB_LIBS="${SQL_LFLAGS}"
29673 CPPFLAGS="$CPPFLAGS"
29701 # Finally we set appropriate distribution specific
29702 # variables and defaults
29704 # PFILES are platform specific files
29705 PFILES="platforms/Makefile"
29709 hostname=`uname -n | cut -d '.' -f 1`
29710 if test x${hostname} = x ; then
29711 hostname="localhost"
29713 case "$DISTNAME" in
29716 PSCMD="ps -e -o pid,comm"
29717 PFILES="${PFILES} \
29718 platforms/aix/Makefile"
29719 TAPEDRIVE="/dev/rmt0.1"
29723 PTHREAD_LIB="-lpthread -lexc"
29724 if test "${CC}" = "gcc" ; then
29731 TAPEDRIVE="/dev/nrmt0"
29734 DISTVER=`uname -a |awk '{print $3}'`
29735 TAPEDRIVE="/dev/nrmt0"
29736 PTHREAD_LIB="-pthread"
29737 CFLAGS="${CFLAGS} -pthread"
29738 PSCMD="ps -ax -o pid,command"
29741 PFILES="${PFILES} \
29742 platforms/bsdi/Makefile \
29743 platforms/bsdi/bacula-fd \
29744 platforms/bsdi/bacula-sd \
29745 platforms/bsdi/bacula-dir"
29746 largefile_support="yes"
29749 DISTVER=`uname -a |awk '{print $3}'`
29750 TAPEDRIVE="/dev/nrst0"
29752 WCFLAGS="-mwindows"
29753 WLDFLAGS="-mwindows"
29757 TAPEDRIVE="/dev/nst0"
29758 PSCMD="ps -e -o pid,command"
29760 PFILES="${PFILES} \
29761 platforms/darwin/Makefile"
29764 DISTVER=`cat /etc/debian_version`
29765 TAPEDRIVE="/dev/nrst0"
29766 PSCMD="ps -e -o pid,command"
29769 DISTVER=`uname -a |awk '{print $3}'`
29770 VER=`echo $DISTVER | cut -c 1`
29771 if test x$VER = x4 ; then
29772 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29773 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29777 TAPEDRIVE="/dev/nrsa0"
29778 PSCMD="ps -ax -o pid,command"
29779 PFILES="${PFILES} \
29780 platforms/freebsd/Makefile \
29781 platforms/freebsd/bacula-fd \
29782 platforms/freebsd/bacula-sd \
29783 platforms/freebsd/bacula-dir"
29784 largefile_support="yes"
29787 PSCMD="UNIX95=1 ps -e -o pid,comm"
29788 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29790 TAPEDRIVE="/dev/rmt/0hnb"
29791 PTHREAD_LIB="-lpthread"
29792 cat >>confdefs.h <<\_ACEOF
29793 #define _INCLUDE_LONGLONG 1
29799 TAPEDRIVE="/dev/rmt/0cbn"
29800 PSCMD="ps -e -o pid,comm"
29801 PFILES="${PFILES} \
29802 platforms/irix/Makefile \
29803 platforms/irix/bacula-fd \
29804 platforms/irix/bacula-sd \
29805 platforms/irix/bacula-dir"
29808 DISTVER=`uname -a |awk '{print $3}'`
29811 TAPEDRIVE="/dev/nrst0"
29812 PSCMD="ps -ax -o pid,command"
29813 PTHREAD_LIB="-pthread"
29814 CFLAGS="${CFLAGS} -pthread"
29817 DISTVER=`uname -a |awk '{print $3}'`
29820 TAPEDRIVE="/dev/nrst0"
29821 PSCMD="ps -ax -o pid,command"
29822 PTHREAD_LIB="-pthread"
29823 CFLAGS="${CFLAGS} -pthread"
29824 PFILES="${PFILES} \
29825 platforms/openbsd/Makefile \
29826 platforms/openbsd/bacula-fd \
29827 platforms/openbsd/bacula-sd \
29828 platforms/openbsd/bacula-dir"
29831 if test -f /etc/whitebox-release ; then
29832 f=/etc/whitebox-release
29834 f=/etc/redhat-release
29836 if test `cat $f | grep release |\
29837 cut -f 3 -d ' '`x = "Enterprise"x ; then
29838 DISTVER="Enterprise "`cat $f | grep release |\
29841 DISTVER=`cat /etc/redhat-release | grep release |\
29844 TAPEDRIVE="/dev/nst0"
29845 PSCMD="ps -e -o pid,command"
29846 PFILES="${PFILES} \
29847 platforms/redhat/Makefile \
29848 platforms/redhat/bacula-fd \
29849 platforms/redhat/bacula-sd \
29850 platforms/redhat/bacula-dir \
29851 platforms/redhat/bacula.spec \
29855 DISTVER=`cat /etc/mandrake-release | grep release |\
29857 TAPEDRIVE="/dev/nst0"
29858 PSCMD="ps -e -o pid,command"
29859 PFILES="${PFILES} \
29860 platforms/mandrake/Makefile \
29861 platforms/mandrake/bacula-fd \
29862 platforms/mandrake/bacula-sd \
29863 platforms/mandrake/bacula-dir \
29864 platforms/mandrake/bacula.spec \
29868 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29869 TAPEDRIVE="/dev/nst0"
29870 PSCMD="ps -e -o pid,command"
29871 PFILES="${PFILES} \
29872 platforms/gentoo/Makefile \
29873 platforms/gentoo/bacula-init \
29874 platforms/gentoo/bacula-fd \
29875 platforms/gentoo/bacula-sd \
29876 platforms/gentoo/bacula-dir"
29879 DISTVER=`cat /etc/slackware-version`
29880 TAPEDRIVE="/dev/nst0"
29881 PSCMD="ps -e -o pid,command"
29882 PFILES="${PFILES} \
29883 platforms/slackware/Makefile \
29884 platforms/slackware/rc.bacula-fd \
29885 platforms/slackware/rc.bacula-sd \
29886 platforms/slackware/rc.bacula-dir\
29887 platforms/slackware/functions.bacula"
29891 TAPEDRIVE="/dev/rmt/0cbn"
29892 PSCMD="ps -e -o pid,comm"
29893 PFILES="${PFILES} \
29894 platforms/solaris/Makefile \
29895 platforms/solaris/bacula-fd \
29896 platforms/solaris/bacula-sd \
29897 platforms/solaris/bacula-dir"
29898 if test x$DISTVER = x5.6 ; then
29899 cat >>confdefs.h <<\_ACEOF
29900 #define HAVE_OLD_SOCKOPT 1
29904 LIBS="$LIBS -lresolv"
29907 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29909 TAPEDRIVE="/dev/nst0"
29910 PSCMD="ps -e -o pid,command"
29911 PFILES="${PFILES} \
29912 platforms/suse/Makefile \
29913 platforms/suse/bacula-fd \
29914 platforms/suse/bacula-sd \
29915 platforms/suse/bacula-dir \
29916 platforms/suse/bacula \
29917 platforms/suse/bacula.spec"
29922 TAPEDRIVE="/dev/nst0"
29923 PSCMD="ps -e -o pid,command"
29924 PFILES="${PFILES} \
29925 platforms/suse/Makefile \
29926 platforms/suse/bacula-fd \
29927 platforms/suse/bacula-sd \
29928 platforms/suse/bacula-dir"
29932 TAPEDRIVE="/dev/nst0"
29935 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29941 LIBS="$PTHREAD_LIB $LIBS"
29943 cat >>confdefs.h <<_ACEOF
29947 cat >>confdefs.h <<_ACEOF
29958 MCOMMON=./autoconf/Make.common
29961 if test "x${subsysdir}" = "x${sbindir}" ; then
29964 echo "You have set both --sbindir and --with-subsys-dir"
29965 echo " equal to: ${subsysdir} "
29966 echo "This is not permitted. Please reconfigure."
29968 echo "Aborting configuration ..."
29974 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/dvd-simulator 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/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 po/Makefile.in $PFILES"
29975 ac_config_commands="$ac_config_commands default"
29976 cat >confcache <<\_ACEOF
29977 # This file is a shell script that caches the results of configure
29978 # tests run on this system so they can be shared between configure
29979 # scripts and configure runs, see configure's option --config-cache.
29980 # It is not useful on other systems. If it contains results you don't
29981 # want to keep, you may remove or edit it.
29983 # config.status only pays attention to the cache file if you give it
29984 # the --recheck option to rerun configure.
29986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29988 # following values.
29992 # The following way of writing the cache mishandles newlines in values,
29993 # but we know of no workaround that is simple, portable, and efficient.
29994 # So, don't put newlines in cache variables' values.
29995 # Ultrix sh set writes to stderr and can't be redirected directly,
29996 # and sets the high bit in the cache file unless we assign to the vars.
29999 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30001 # `set' does not quote correctly, so add quotes (double-quote
30002 # substitution turns \\\\ into \\, and sed turns \\ into \).
30005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30008 # `set' quotes correctly as required by POSIX, so do not add quotes.
30010 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30019 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30021 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30022 if test -w $cache_file; then
30023 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30024 cat confcache >$cache_file
30026 echo "not updating unwritable cache $cache_file"
30031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30032 # Let make expand exec_prefix.
30033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30035 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30036 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30037 # trailing colons and then remove the whole line if VPATH becomes empty
30038 # (actually we leave an empty line to preserve line numbers).
30039 if test "x$srcdir" = x.; then
30040 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30041 s/:*\$(srcdir):*/:/;
30042 s/:*\${srcdir}:*/:/;
30044 s/^\([^=]*=[ ]*\):*/\1/;
30050 DEFS=-DHAVE_CONFIG_H
30054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30055 # 1. Remove the extension, and $U if already installed.
30056 ac_i=`echo "$ac_i" |
30057 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30059 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30060 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30062 LIBOBJS=$ac_libobjs
30064 LTLIBOBJS=$ac_ltlibobjs
30068 : ${CONFIG_STATUS=./config.status}
30069 ac_clean_files_save=$ac_clean_files
30070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30071 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30072 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30073 cat >$CONFIG_STATUS <<_ACEOF
30075 # Generated by $as_me.
30076 # Run this file to recreate the current configuration.
30077 # Compiler output produced by configure, useful for debugging
30078 # configure, is in config.log if it exists.
30081 ac_cs_recheck=false
30083 SHELL=\${CONFIG_SHELL-$SHELL}
30086 cat >>$CONFIG_STATUS <<\_ACEOF
30087 ## --------------------- ##
30088 ## M4sh Initialization. ##
30089 ## --------------------- ##
30091 # Be Bourne compatible
30092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30095 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30096 # is contrary to our usage. Disable this feature.
30097 alias -g '${1+"$@"}'='"$@"'
30098 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30101 DUALCASE=1; export DUALCASE # for MKS sh
30103 # Support unset when possible.
30104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30111 # Work around bugs in pre-3.0 UWIN ksh.
30112 $as_unset ENV MAIL MAILPATH
30119 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30120 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30121 LC_TELEPHONE LC_TIME
30123 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30124 eval $as_var=C; export $as_var
30130 # Required to use basename.
30131 if expr a : '\(a\)' >/dev/null 2>&1; then
30137 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30138 as_basename=basename
30144 # Name of the executable.
30145 as_me=`$as_basename "$0" ||
30146 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30147 X"$0" : 'X\(//\)$' \| \
30148 X"$0" : 'X\(/\)$' \| \
30149 . : '\(.\)' 2>/dev/null ||
30151 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30152 /^X\/\(\/\/\)$/{ s//\1/; q; }
30153 /^X\/\(\/\).*/{ s//\1/; q; }
30157 # PATH needs CR, and LINENO needs CR and PATH.
30158 # Avoid depending upon Character Ranges.
30159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30162 as_cr_digits='0123456789'
30163 as_cr_alnum=$as_cr_Letters$as_cr_digits
30165 # The user is always right.
30166 if test "${PATH_SEPARATOR+set}" != set; then
30167 echo "#! /bin/sh" >conf$$.sh
30168 echo "exit 0" >>conf$$.sh
30170 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30179 as_lineno_1=$LINENO
30180 as_lineno_2=$LINENO
30181 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30182 test "x$as_lineno_1" != "x$as_lineno_2" &&
30183 test "x$as_lineno_3" = "x$as_lineno_2" || {
30184 # Find who we are. Look in the path if we contain no path at all
30187 *[\\/]* ) as_myself=$0 ;;
30188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30189 for as_dir in $PATH
30192 test -z "$as_dir" && as_dir=.
30193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30198 # We did not find ourselves, most probably we were run as `sh COMMAND'
30199 # in which case we are not to be found in the path.
30200 if test "x$as_myself" = x; then
30203 if test ! -f "$as_myself"; then
30204 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30205 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30206 { (exit 1); exit 1; }; }
30208 case $CONFIG_SHELL in
30210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30214 test -z "$as_dir" && as_dir=.
30215 for as_base in sh bash ksh sh5; do
30218 if ("$as_dir/$as_base" -c '
30219 as_lineno_1=$LINENO
30220 as_lineno_2=$LINENO
30221 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30222 test "x$as_lineno_1" != "x$as_lineno_2" &&
30223 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30224 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30225 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30226 CONFIG_SHELL=$as_dir/$as_base
30227 export CONFIG_SHELL
30228 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30236 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30237 # uniformly replaced by the line number. The first 'sed' inserts a
30238 # line-number line before each line; the second 'sed' does the real
30239 # work. The second script uses 'N' to pair each line-number line
30240 # with the numbered line, and appends trailing '-' during
30241 # substitution so that $LINENO is not a special case at line end.
30242 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30243 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30244 sed '=' <$as_myself |
30249 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30252 s,^['$as_cr_digits']*\n,,
30253 ' >$as_me.lineno &&
30254 chmod +x $as_me.lineno ||
30255 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30256 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30257 { (exit 1); exit 1; }; }
30259 # Don't try to exec as it changes $[0], causing all sort of problems
30260 # (the dirname of $[0] is not the place where we might find the
30261 # original and so on. Autoconf is especially sensible to this).
30263 # Exit status is that of the last command.
30268 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30269 *c*,-n*) ECHO_N= ECHO_C='
30271 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30272 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30275 if expr a : '\(a\)' >/dev/null 2>&1; then
30281 rm -f conf$$ conf$$.exe conf$$.file
30283 if ln -s conf$$.file conf$$ 2>/dev/null; then
30284 # We could just check for DJGPP; but this test a) works b) is more generic
30285 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30286 if test -f conf$$.exe; then
30287 # Don't use ln at all; we don't have any links
30292 elif ln conf$$.file conf$$ 2>/dev/null; then
30297 rm -f conf$$ conf$$.exe conf$$.file
30299 if mkdir -p . 2>/dev/null; then
30302 test -d ./-p && rmdir ./-p
30306 as_executable_p="test -f"
30308 # Sed expression to map a string onto a valid CPP name.
30309 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30311 # Sed expression to map a string onto a valid variable name.
30312 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30316 # We need space, tab and new line, in precisely that order.
30326 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30327 # report actual input values of CONFIG_FILES etc. instead of their
30328 # values after options handling. Logging --version etc. is OK.
30332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30333 ## Running $as_me. ##
30338 This file was extended by $as_me, which was
30339 generated by GNU Autoconf 2.59. Invocation command line was
30341 CONFIG_FILES = $CONFIG_FILES
30342 CONFIG_HEADERS = $CONFIG_HEADERS
30343 CONFIG_LINKS = $CONFIG_LINKS
30344 CONFIG_COMMANDS = $CONFIG_COMMANDS
30348 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30352 # Files that config.status was made for.
30353 if test -n "$ac_config_files"; then
30354 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30357 if test -n "$ac_config_headers"; then
30358 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30361 if test -n "$ac_config_links"; then
30362 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30365 if test -n "$ac_config_commands"; then
30366 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30369 cat >>$CONFIG_STATUS <<\_ACEOF
30372 \`$as_me' instantiates files from templates according to the
30373 current configuration.
30375 Usage: $0 [OPTIONS] [FILE]...
30377 -h, --help print this help, then exit
30378 -V, --version print version number, then exit
30379 -q, --quiet do not print progress messages
30380 -d, --debug don't remove temporary files
30381 --recheck update $as_me by reconfiguring in the same conditions
30382 --file=FILE[:TEMPLATE]
30383 instantiate the configuration file FILE
30384 --header=FILE[:TEMPLATE]
30385 instantiate the configuration header FILE
30387 Configuration files:
30390 Configuration headers:
30393 Configuration commands:
30396 Report bugs to <bug-autoconf@gnu.org>."
30399 cat >>$CONFIG_STATUS <<_ACEOF
30402 configured by $0, generated by GNU Autoconf 2.59,
30403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30405 Copyright (C) 2003 Free Software Foundation, Inc.
30406 This config.status script is free software; the Free Software Foundation
30407 gives unlimited permission to copy, distribute and modify it."
30412 cat >>$CONFIG_STATUS <<\_ACEOF
30413 # If no file are specified by the user, then we need to provide default
30414 # value. By we need to know if files were specified by the user.
30420 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30421 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30429 *) # This is not an option, so the user has probably given explicit
30432 ac_need_defaults=false;;
30436 # Handling of the options.
30438 cat >>$CONFIG_STATUS <<\_ACEOF
30439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30441 --version | --vers* | -V )
30442 echo "$ac_cs_version"; exit 0 ;;
30444 # Conflict between --help and --header
30445 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30446 Try \`$0 --help' for more information." >&5
30447 echo "$as_me: error: ambiguous option: $1
30448 Try \`$0 --help' for more information." >&2;}
30449 { (exit 1); exit 1; }; };;
30450 --help | --hel | -h )
30451 echo "$ac_cs_usage"; exit 0 ;;
30452 --debug | --d* | -d )
30454 --file | --fil | --fi | --f )
30456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30457 ac_need_defaults=false;;
30458 --header | --heade | --head | --hea )
30460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30461 ac_need_defaults=false;;
30462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30466 # This is an error.
30467 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30468 Try \`$0 --help' for more information." >&5
30469 echo "$as_me: error: unrecognized option: $1
30470 Try \`$0 --help' for more information." >&2;}
30471 { (exit 1); exit 1; }; } ;;
30473 *) ac_config_targets="$ac_config_targets $1" ;;
30479 ac_configure_extra_args=
30481 if $ac_cs_silent; then
30483 ac_configure_extra_args="$ac_configure_extra_args --silent"
30487 cat >>$CONFIG_STATUS <<_ACEOF
30488 if \$ac_cs_recheck; then
30489 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30490 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30495 cat >>$CONFIG_STATUS <<_ACEOF
30497 # INIT-COMMANDS section.
30500 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30501 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30503 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30504 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30505 LINGUAS="${LINGUAS-%UNSET%}"
30512 cat >>$CONFIG_STATUS <<\_ACEOF
30513 for ac_config_target in $ac_config_targets
30515 case "$ac_config_target" in
30516 # Handling of arguments.
30517 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30518 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30519 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30520 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30521 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30522 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30523 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30524 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30525 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30526 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30527 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30528 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30529 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30530 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30531 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30532 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30533 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30534 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30535 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30536 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30537 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30538 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30539 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30540 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30541 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30542 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30543 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30544 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30545 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30546 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30547 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30548 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30549 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30550 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30551 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30552 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30553 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30554 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30555 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30556 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30557 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30558 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30559 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30560 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30561 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30562 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30563 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30564 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30565 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30566 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30567 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30568 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30569 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30570 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30571 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30572 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30573 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30574 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30575 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30576 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30577 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30578 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30579 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30580 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30581 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30582 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30583 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30584 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30585 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30586 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30587 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30588 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30589 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30590 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30591 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30592 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30593 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30594 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30595 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30596 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30597 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30598 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30599 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30600 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30601 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30602 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30603 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30604 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30605 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30606 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30607 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30608 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30609 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30610 "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30611 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30612 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30613 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30614 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30615 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30616 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30617 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30618 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30619 { (exit 1); exit 1; }; };;
30623 # If the user did not use the arguments to specify the items to instantiate,
30624 # then the envvar interface is used. Set only those that are not.
30625 # We use the long form for the default assignment because of an extremely
30626 # bizarre bug on SunOS 4.1.3.
30627 if $ac_need_defaults; then
30628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30629 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30633 # Have a temporary directory for convenience. Make it in the build tree
30634 # simply because there is no reason to put it here, and in addition,
30635 # creating and moving files from /tmp can sometimes cause problems.
30636 # Create a temporary directory, and hook for its removal unless debugging.
30639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30640 trap '{ (exit 1); exit 1; }' 1 2 13 15
30643 # Create a (secure) tmp directory for tmp files.
30646 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30647 test -n "$tmp" && test -d "$tmp"
30650 tmp=./confstat$$-$RANDOM
30651 (umask 077 && mkdir $tmp)
30654 echo "$me: cannot create a temporary directory in ." >&2
30655 { (exit 1); exit 1; }
30660 cat >>$CONFIG_STATUS <<_ACEOF
30663 # CONFIG_FILES section.
30666 # No need to generate the scripts if there are no CONFIG_FILES.
30667 # This happens for instance when ./config.status config.h
30668 if test -n "\$CONFIG_FILES"; then
30669 # Protect against being on the right side of a sed subst in config.status.
30670 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30671 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30672 s,@SHELL@,$SHELL,;t t
30673 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30674 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30675 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30676 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30677 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30678 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30679 s,@exec_prefix@,$exec_prefix,;t t
30680 s,@prefix@,$prefix,;t t
30681 s,@program_transform_name@,$program_transform_name,;t t
30682 s,@bindir@,$bindir,;t t
30683 s,@sbindir@,$sbindir,;t t
30684 s,@libexecdir@,$libexecdir,;t t
30685 s,@datadir@,$datadir,;t t
30686 s,@sysconfdir@,$sysconfdir,;t t
30687 s,@sharedstatedir@,$sharedstatedir,;t t
30688 s,@localstatedir@,$localstatedir,;t t
30689 s,@libdir@,$libdir,;t t
30690 s,@includedir@,$includedir,;t t
30691 s,@oldincludedir@,$oldincludedir,;t t
30692 s,@infodir@,$infodir,;t t
30693 s,@mandir@,$mandir,;t t
30694 s,@build_alias@,$build_alias,;t t
30695 s,@host_alias@,$host_alias,;t t
30696 s,@target_alias@,$target_alias,;t t
30697 s,@DEFS@,$DEFS,;t t
30698 s,@ECHO_C@,$ECHO_C,;t t
30699 s,@ECHO_N@,$ECHO_N,;t t
30700 s,@ECHO_T@,$ECHO_T,;t t
30701 s,@LIBS@,$LIBS,;t t
30702 s,@BUILD_DIR@,$BUILD_DIR,;t t
30703 s,@TOP_DIR@,$TOP_DIR,;t t
30704 s,@TRUEPRG@,$TRUEPRG,;t t
30705 s,@FALSEPRG@,$FALSEPRG,;t t
30706 s,@VERSION@,$VERSION,;t t
30707 s,@DATE@,$DATE,;t t
30708 s,@LSMDATE@,$LSMDATE,;t t
30710 s,@CFLAGS@,$CFLAGS,;t t
30711 s,@LDFLAGS@,$LDFLAGS,;t t
30712 s,@CPPFLAGS@,$CPPFLAGS,;t t
30713 s,@ac_ct_CC@,$ac_ct_CC,;t t
30714 s,@EXEEXT@,$EXEEXT,;t t
30715 s,@OBJEXT@,$OBJEXT,;t t
30717 s,@CXXFLAGS@,$CXXFLAGS,;t t
30718 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30720 s,@EGREP@,$EGREP,;t t
30721 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30722 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30723 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30724 s,@RANLIB@,$RANLIB,;t t
30725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30730 s,@ECHO@,$ECHO,;t t
30734 s,@OPENSSL@,$OPENSSL,;t t
30737 s,@MKISOFS@,$MKISOFS,;t t
30738 s,@PYTHON@,$PYTHON,;t t
30739 s,@GROWISOFS@,$GROWISOFS,;t t
30740 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30741 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30742 s,@PKGCONFIG@,$PKGCONFIG,;t t
30743 s,@WXCONFIG@,$WXCONFIG,;t t
30744 s,@WXFLAGS@,$WXFLAGS,;t t
30745 s,@CDRECORD@,$CDRECORD,;t t
30746 s,@PIDOF@,$PIDOF,;t t
30748 s,@ARFLAGS@,$ARFLAGS,;t t
30749 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30750 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30751 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30752 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30753 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30754 s,@build@,$build,;t t
30755 s,@build_cpu@,$build_cpu,;t t
30756 s,@build_vendor@,$build_vendor,;t t
30757 s,@build_os@,$build_os,;t t
30758 s,@host@,$host,;t t
30759 s,@host_cpu@,$host_cpu,;t t
30760 s,@host_vendor@,$host_vendor,;t t
30761 s,@host_os@,$host_os,;t t
30762 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30763 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30764 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30765 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30766 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30767 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30768 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30769 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30770 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30771 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30772 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30773 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30774 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30775 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30776 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30777 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30778 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30779 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30780 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30781 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30782 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30783 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30784 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30785 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30786 s,@SET_MAKE@,$SET_MAKE,;t t
30787 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30788 s,@USE_NLS@,$USE_NLS,;t t
30789 s,@MSGFMT@,$MSGFMT,;t t
30790 s,@GMSGFMT@,$GMSGFMT,;t t
30791 s,@XGETTEXT@,$XGETTEXT,;t t
30792 s,@MSGMERGE@,$MSGMERGE,;t t
30793 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30794 s,@LIBICONV@,$LIBICONV,;t t
30795 s,@LTLIBICONV@,$LTLIBICONV,;t t
30796 s,@INTLLIBS@,$INTLLIBS,;t t
30797 s,@LIBINTL@,$LIBINTL,;t t
30798 s,@LTLIBINTL@,$LTLIBINTL,;t t
30799 s,@POSUB@,$POSUB,;t t
30800 s,@GLIBC2@,$GLIBC2,;t t
30801 s,@ALLOCA@,$ALLOCA,;t t
30802 s,@GLIBC21@,$GLIBC21,;t t
30803 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30804 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30805 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30806 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30807 s,@INTLBISON@,$INTLBISON,;t t
30808 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30809 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30810 s,@CATOBJEXT@,$CATOBJEXT,;t t
30811 s,@DATADIRNAME@,$DATADIRNAME,;t t
30812 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30813 s,@GENCAT@,$GENCAT,;t t
30814 s,@INTLOBJS@,$INTLOBJS,;t t
30815 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30816 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30817 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30818 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30819 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30820 s,@GNOME_DIR@,$GNOME_DIR,;t t
30821 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30822 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30823 s,@WX_DIR@,$WX_DIR,;t t
30824 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30825 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30826 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30827 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30828 s,@STATIC_FD@,$STATIC_FD,;t t
30829 s,@STATIC_SD@,$STATIC_SD,;t t
30830 s,@STATIC_DIR@,$STATIC_DIR,;t t
30831 s,@STATIC_CONS@,$STATIC_CONS,;t t
30832 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30833 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30834 s,@ALL_DIRS@,$ALL_DIRS,;t t
30835 s,@DIRD_DIR@,$DIRD_DIR,;t t
30836 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30837 s,@STORED_DIR@,$STORED_DIR,;t t
30838 s,@CONS_INC@,$CONS_INC,;t t
30839 s,@CONS_OBJ@,$CONS_OBJ,;t t
30840 s,@CONS_SRC@,$CONS_SRC,;t t
30841 s,@CONS_LIBS@,$CONS_LIBS,;t t
30842 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30843 s,@READLINE_SRC@,$READLINE_SRC,;t t
30844 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30845 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30846 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30847 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30848 s,@working_dir@,$working_dir,;t t
30849 s,@scriptdir@,$scriptdir,;t t
30850 s,@dump_email@,$dump_email,;t t
30851 s,@job_email@,$job_email,;t t
30852 s,@smtp_host@,$smtp_host,;t t
30853 s,@piddir@,$piddir,;t t
30854 s,@subsysdir@,$subsysdir,;t t
30855 s,@baseport@,$baseport,;t t
30856 s,@dir_port@,$dir_port,;t t
30857 s,@fd_port@,$fd_port,;t t
30858 s,@sd_port@,$sd_port,;t t
30859 s,@dir_password@,$dir_password,;t t
30860 s,@fd_password@,$fd_password,;t t
30861 s,@sd_password@,$sd_password,;t t
30862 s,@mon_dir_password@,$mon_dir_password,;t t
30863 s,@mon_fd_password@,$mon_fd_password,;t t
30864 s,@mon_sd_password@,$mon_sd_password,;t t
30865 s,@dir_user@,$dir_user,;t t
30866 s,@dir_group@,$dir_group,;t t
30867 s,@sd_user@,$sd_user,;t t
30868 s,@sd_group@,$sd_group,;t t
30869 s,@fd_user@,$fd_user,;t t
30870 s,@fd_group@,$fd_group,;t t
30871 s,@SBINPERM@,$SBINPERM,;t t
30872 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30873 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30874 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30875 s,@cats@,$cats,;t t
30876 s,@DB_NAME@,$DB_NAME,;t t
30877 s,@GETCONF@,$GETCONF,;t t
30878 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30879 s,@X_CFLAGS@,$X_CFLAGS,;t t
30880 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30881 s,@X_LIBS@,$X_LIBS,;t t
30882 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30883 s,@LIBOBJS@,$LIBOBJS,;t t
30884 s,@FDLIBS@,$FDLIBS,;t t
30885 s,@DEBUG@,$DEBUG,;t t
30886 s,@DINCLUDE@,$DINCLUDE,;t t
30887 s,@DLIB@,$DLIB,;t t
30888 s,@DB_LIBS@,$DB_LIBS,;t t
30889 s,@WCFLAGS@,$WCFLAGS,;t t
30890 s,@WLDFLAGS@,$WLDFLAGS,;t t
30891 s,@WRAPLIBS@,$WRAPLIBS,;t t
30892 s,@OBJLIST@,$OBJLIST,;t t
30893 s,@hostname@,$hostname,;t t
30894 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30895 s,@PSCMD@,$PSCMD,;t t
30896 s,@WIN32@,$WIN32,;t t
30897 s,@MACOSX@,$MACOSX,;t t
30898 s,@DISTNAME@,$DISTNAME,;t t
30899 s,@DISTVER@,$DISTVER,;t t
30900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30901 /@MCOMMON@/r $MCOMMON
30907 cat >>$CONFIG_STATUS <<\_ACEOF
30908 # Split the substitutions into bite-sized pieces for seds with
30909 # small command number limits, like on Digital OSF/1 and HP-UX.
30910 ac_max_sed_lines=48
30911 ac_sed_frag=1 # Number of current file.
30912 ac_beg=1 # First line for current file.
30913 ac_end=$ac_max_sed_lines # Line after last line for current file.
30916 while $ac_more_lines; do
30917 if test $ac_beg -gt 1; then
30918 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30920 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30922 if test ! -s $tmp/subs.frag; then
30923 ac_more_lines=false
30925 # The purpose of the label and of the branching condition is to
30926 # speed up the sed processing (if there are no `@' at all, there
30927 # is no need to browse any of the substitutions).
30928 # These are the two extra sed commands mentioned above.
30930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30931 if test -z "$ac_sed_cmds"; then
30932 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30934 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30936 ac_sed_frag=`expr $ac_sed_frag + 1`
30938 ac_end=`expr $ac_end + $ac_max_sed_lines`
30941 if test -z "$ac_sed_cmds"; then
30944 fi # test -n "$CONFIG_FILES"
30947 cat >>$CONFIG_STATUS <<\_ACEOF
30948 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30951 - | *:- | *:-:* ) # input from stdin
30953 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30955 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30956 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30957 * ) ac_file_in=$ac_file.in ;;
30960 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30961 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30963 X"$ac_file" : 'X\(//\)[^/]' \| \
30964 X"$ac_file" : 'X\(//\)$' \| \
30965 X"$ac_file" : 'X\(/\)' \| \
30966 . : '\(.\)' 2>/dev/null ||
30968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30970 /^X\(\/\/\)$/{ s//\1/; q; }
30971 /^X\(\/\).*/{ s//\1/; q; }
30973 { if $as_mkdir_p; then
30978 while test ! -d "$as_dir"; do
30979 as_dirs="$as_dir $as_dirs"
30980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30982 X"$as_dir" : 'X\(//\)[^/]' \| \
30983 X"$as_dir" : 'X\(//\)$' \| \
30984 X"$as_dir" : 'X\(/\)' \| \
30985 . : '\(.\)' 2>/dev/null ||
30987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30989 /^X\(\/\/\)$/{ s//\1/; q; }
30990 /^X\(\/\).*/{ s//\1/; q; }
30993 test ! -n "$as_dirs" || mkdir $as_dirs
30994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30996 { (exit 1); exit 1; }; }; }
31000 if test "$ac_dir" != .; then
31001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31002 # A "../" for each directory in $ac_dir_suffix.
31003 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31005 ac_dir_suffix= ac_top_builddir=
31009 .) # No --srcdir option. We are building in place.
31011 if test -z "$ac_top_builddir"; then
31014 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31016 [\\/]* | ?:[\\/]* ) # Absolute path.
31017 ac_srcdir=$srcdir$ac_dir_suffix;
31018 ac_top_srcdir=$srcdir ;;
31019 *) # Relative path.
31020 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31021 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31024 # Do not use `cd foo && pwd` to compute absolute paths, because
31025 # the directories may not exist.
31027 .) ac_abs_builddir="$ac_dir";;
31030 .) ac_abs_builddir=`pwd`;;
31031 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31032 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31035 case $ac_abs_builddir in
31036 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31038 case ${ac_top_builddir}. in
31039 .) ac_abs_top_builddir=$ac_abs_builddir;;
31040 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31041 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31044 case $ac_abs_builddir in
31045 .) ac_abs_srcdir=$ac_srcdir;;
31048 .) ac_abs_srcdir=$ac_abs_builddir;;
31049 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31050 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31053 case $ac_abs_builddir in
31054 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31056 case $ac_top_srcdir in
31057 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31058 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31059 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31066 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31069 if test x"$ac_file" != x-; then
31070 { echo "$as_me:$LINENO: creating $ac_file" >&5
31071 echo "$as_me: creating $ac_file" >&6;}
31074 # Let's still pretend it is `configure' which instantiates (i.e., don't
31075 # use $as_me), people would be surprised to read:
31076 # /* config.h. Generated by config.status. */
31077 if test x"$ac_file" = x-; then
31080 configure_input="$ac_file. "
31082 configure_input=$configure_input"Generated from `echo $ac_file_in |
31083 sed 's,.*/,,'` by configure."
31085 # First look for the input files in the build tree, otherwise in the
31087 ac_file_inputs=`IFS=:
31088 for f in $ac_file_in; do
31090 -) echo $tmp/stdin ;;
31092 # Absolute (can't be DOS-style, as IFS=:)
31093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31094 echo "$as_me: error: cannot find input file: $f" >&2;}
31095 { (exit 1); exit 1; }; }
31098 if test -f "$f"; then
31101 elif test -f "$srcdir/$f"; then
31106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31107 echo "$as_me: error: cannot find input file: $f" >&2;}
31108 { (exit 1); exit 1; }; }
31111 done` || { (exit 1); exit 1; }
31113 cat >>$CONFIG_STATUS <<_ACEOF
31117 cat >>$CONFIG_STATUS <<\_ACEOF
31119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31120 s,@configure_input@,$configure_input,;t t
31121 s,@srcdir@,$ac_srcdir,;t t
31122 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31123 s,@top_srcdir@,$ac_top_srcdir,;t t
31124 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31125 s,@builddir@,$ac_builddir,;t t
31126 s,@abs_builddir@,$ac_abs_builddir,;t t
31127 s,@top_builddir@,$ac_top_builddir,;t t
31128 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31129 s,@INSTALL@,$ac_INSTALL,;t t
31130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31132 if test x"$ac_file" != x-; then
31133 mv $tmp/out $ac_file
31141 cat >>$CONFIG_STATUS <<\_ACEOF
31144 # CONFIG_HEADER section.
31147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31150 # ac_d sets the value in "#define NAME VALUE" lines.
31151 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31152 ac_dB='[ ].*$,\1#\2'
31155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31156 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31157 ac_uB='$,\1#\2define\3'
31161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31164 - | *:- | *:-:* ) # input from stdin
31166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31170 * ) ac_file_in=$ac_file.in ;;
31173 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31174 echo "$as_me: creating $ac_file" >&6;}
31176 # First look for the input files in the build tree, otherwise in the
31178 ac_file_inputs=`IFS=:
31179 for f in $ac_file_in; do
31181 -) echo $tmp/stdin ;;
31183 # Absolute (can't be DOS-style, as IFS=:)
31184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31185 echo "$as_me: error: cannot find input file: $f" >&2;}
31186 { (exit 1); exit 1; }; }
31187 # Do quote $f, to prevent DOS paths from being IFS'd.
31190 if test -f "$f"; then
31193 elif test -f "$srcdir/$f"; then
31198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31199 echo "$as_me: error: cannot find input file: $f" >&2;}
31200 { (exit 1); exit 1; }; }
31203 done` || { (exit 1); exit 1; }
31204 # Remove the trailing spaces.
31205 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31209 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31210 # `conftest.undefs', that substitutes the proper values into
31211 # config.h.in to produce config.h. The first handles `#define'
31212 # templates, and the second `#undef' templates.
31213 # And first: Protect against being on the right side of a sed subst in
31214 # config.status. Protect against being in an unquoted here document
31215 # in config.status.
31216 rm -f conftest.defines conftest.undefs
31217 # Using a here document instead of a string reduces the quoting nightmare.
31218 # Putting comments in sed scripts is not portable.
31220 # `end' is used to avoid that the second main sed command (meant for
31221 # 0-ary CPP macros) applies to n-ary macro definitions.
31222 # See the Autoconf documentation for `clear'.
31223 cat >confdef2sed.sed <<\_ACEOF
31228 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31230 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31233 # If some macros were called several times there might be several times
31234 # the same #defines, which is useless. Nevertheless, we may not want to
31235 # sort them, since we want the *last* AC-DEFINE to be honored.
31236 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31237 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31238 rm -f confdef2sed.sed
31240 # This sed command replaces #undef with comments. This is necessary, for
31241 # example, in the case of _POSIX_SOURCE, which is predefined and required
31242 # on some systems where configure will not decide to define it.
31243 cat >>conftest.undefs <<\_ACEOF
31244 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31247 # Break up conftest.defines because some shells have a limit on the size
31248 # of here documents, and old seds have small limits too (100 cmds).
31249 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31250 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31251 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31252 echo ' :' >>$CONFIG_STATUS
31253 rm -f conftest.tail
31254 while grep . conftest.defines >/dev/null
31256 # Write a limited-size here document to $tmp/defines.sed.
31257 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31258 # Speed up: don't consider the non `#define' lines.
31259 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31260 # Work around the forget-to-reset-the-flag bug.
31261 echo 't clr' >>$CONFIG_STATUS
31262 echo ': clr' >>$CONFIG_STATUS
31263 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31265 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31267 mv $tmp/out $tmp/in
31269 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31270 rm -f conftest.defines
31271 mv conftest.tail conftest.defines
31273 rm -f conftest.defines
31274 echo ' fi # grep' >>$CONFIG_STATUS
31275 echo >>$CONFIG_STATUS
31277 # Break up conftest.undefs because some shells have a limit on the size
31278 # of here documents, and old seds have small limits too (100 cmds).
31279 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31280 rm -f conftest.tail
31281 while grep . conftest.undefs >/dev/null
31283 # Write a limited-size here document to $tmp/undefs.sed.
31284 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31285 # Speed up: don't consider the non `#undef'
31286 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31287 # Work around the forget-to-reset-the-flag bug.
31288 echo 't clr' >>$CONFIG_STATUS
31289 echo ': clr' >>$CONFIG_STATUS
31290 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31292 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31294 mv $tmp/out $tmp/in
31296 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31297 rm -f conftest.undefs
31298 mv conftest.tail conftest.undefs
31300 rm -f conftest.undefs
31302 cat >>$CONFIG_STATUS <<\_ACEOF
31303 # Let's still pretend it is `configure' which instantiates (i.e., don't
31304 # use $as_me), people would be surprised to read:
31305 # /* config.h. Generated by config.status. */
31306 if test x"$ac_file" = x-; then
31307 echo "/* Generated by configure. */" >$tmp/config.h
31309 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31311 cat $tmp/in >>$tmp/config.h
31313 if test x"$ac_file" != x-; then
31314 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31315 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31316 echo "$as_me: $ac_file is unchanged" >&6;}
31318 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31320 X"$ac_file" : 'X\(//\)[^/]' \| \
31321 X"$ac_file" : 'X\(//\)$' \| \
31322 X"$ac_file" : 'X\(/\)' \| \
31323 . : '\(.\)' 2>/dev/null ||
31325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31327 /^X\(\/\/\)$/{ s//\1/; q; }
31328 /^X\(\/\).*/{ s//\1/; q; }
31330 { if $as_mkdir_p; then
31335 while test ! -d "$as_dir"; do
31336 as_dirs="$as_dir $as_dirs"
31337 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31339 X"$as_dir" : 'X\(//\)[^/]' \| \
31340 X"$as_dir" : 'X\(//\)$' \| \
31341 X"$as_dir" : 'X\(/\)' \| \
31342 . : '\(.\)' 2>/dev/null ||
31344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31346 /^X\(\/\/\)$/{ s//\1/; q; }
31347 /^X\(\/\).*/{ s//\1/; q; }
31350 test ! -n "$as_dirs" || mkdir $as_dirs
31351 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31352 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31353 { (exit 1); exit 1; }; }; }
31356 mv $tmp/config.h $ac_file
31360 rm -f $tmp/config.h
31364 cat >>$CONFIG_STATUS <<\_ACEOF
31367 # CONFIG_COMMANDS section.
31369 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31370 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31371 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31372 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31373 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31374 X"$ac_dest" : 'X\(//\)[^/]' \| \
31375 X"$ac_dest" : 'X\(//\)$' \| \
31376 X"$ac_dest" : 'X\(/\)' \| \
31377 . : '\(.\)' 2>/dev/null ||
31379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31381 /^X\(\/\/\)$/{ s//\1/; q; }
31382 /^X\(\/\).*/{ s//\1/; q; }
31384 { if $as_mkdir_p; then
31389 while test ! -d "$as_dir"; do
31390 as_dirs="$as_dir $as_dirs"
31391 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31393 X"$as_dir" : 'X\(//\)[^/]' \| \
31394 X"$as_dir" : 'X\(//\)$' \| \
31395 X"$as_dir" : 'X\(/\)' \| \
31396 . : '\(.\)' 2>/dev/null ||
31398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31400 /^X\(\/\/\)$/{ s//\1/; q; }
31401 /^X\(\/\).*/{ s//\1/; q; }
31404 test ! -n "$as_dirs" || mkdir $as_dirs
31405 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31406 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31407 { (exit 1); exit 1; }; }; }
31411 if test "$ac_dir" != .; then
31412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31413 # A "../" for each directory in $ac_dir_suffix.
31414 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31416 ac_dir_suffix= ac_top_builddir=
31420 .) # No --srcdir option. We are building in place.
31422 if test -z "$ac_top_builddir"; then
31425 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31427 [\\/]* | ?:[\\/]* ) # Absolute path.
31428 ac_srcdir=$srcdir$ac_dir_suffix;
31429 ac_top_srcdir=$srcdir ;;
31430 *) # Relative path.
31431 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31432 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31435 # Do not use `cd foo && pwd` to compute absolute paths, because
31436 # the directories may not exist.
31438 .) ac_abs_builddir="$ac_dir";;
31441 .) ac_abs_builddir=`pwd`;;
31442 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31443 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31446 case $ac_abs_builddir in
31447 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31449 case ${ac_top_builddir}. in
31450 .) ac_abs_top_builddir=$ac_abs_builddir;;
31451 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31452 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31455 case $ac_abs_builddir in
31456 .) ac_abs_srcdir=$ac_srcdir;;
31459 .) ac_abs_srcdir=$ac_abs_builddir;;
31460 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31461 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31464 case $ac_abs_builddir in
31465 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31467 case $ac_top_srcdir in
31468 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31469 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31470 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31475 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31476 echo "$as_me: executing $ac_dest commands" >&6;}
31479 for ac_file in $CONFIG_FILES; do
31480 # Support "outfile[:infile[:infile...]]"
31482 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31484 # PO directories have a Makefile.in generated from Makefile.in.in.
31485 case "$ac_file" in */Makefile.in)
31486 # Adjust a relative srcdir.
31487 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31488 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31489 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31490 # In autoconf-2.13 it is called $ac_given_srcdir.
31491 # In autoconf-2.50 it is called $srcdir.
31492 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31493 case "$ac_given_srcdir" in
31494 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31495 /*) top_srcdir="$ac_given_srcdir" ;;
31496 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31498 # Treat a directory as a PO directory if and only if it has a
31499 # POTFILES.in file. This allows packages to have multiple PO
31500 # directories under different names or in different locations.
31501 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31502 rm -f "$ac_dir/POTFILES"
31503 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31504 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31505 POMAKEFILEDEPS="POTFILES.in"
31506 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31507 # on $ac_dir but don't depend on user-specified configuration
31509 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31510 # The LINGUAS file contains the set of available languages.
31511 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31512 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31514 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31515 # Hide the ALL_LINGUAS assigment from automake.
31516 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31517 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31519 # The set of available languages was given in configure.in.
31520 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31523 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31524 # Compute UPDATEPOFILES
31525 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31526 # Compute DUMMYPOFILES
31527 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31529 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31530 case "$ac_given_srcdir" in
31532 *) srcdirpre='$(srcdir)/' ;;
31538 for lang in $ALL_LINGUAS; do
31539 POFILES="$POFILES $srcdirpre$lang.po"
31540 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31541 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31542 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31544 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31545 # environment variable.
31547 if test -n "$ALL_LINGUAS"; then
31548 for presentlang in $ALL_LINGUAS; do
31550 if test "%UNSET%" != "$LINGUAS"; then
31551 desiredlanguages="$LINGUAS"
31553 desiredlanguages="$ALL_LINGUAS"
31555 for desiredlang in $desiredlanguages; do
31556 # Use the presentlang catalog if desiredlang is
31557 # a. equal to presentlang, or
31558 # b. a variant of presentlang (because in this case,
31559 # presentlang can be used as a fallback for messages
31560 # which are not translated in the desiredlang catalog).
31561 case "$desiredlang" in
31562 "$presentlang"*) useit=yes;;
31565 if test $useit = yes; then
31566 INST_LINGUAS="$INST_LINGUAS $presentlang"
31571 if test -n "$INST_LINGUAS"; then
31572 for lang in $INST_LINGUAS; do
31573 CATALOGS="$CATALOGS $lang.gmo"
31576 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31577 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"
31578 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31579 if test -f "$f"; then
31581 *.orig | *.bak | *~) ;;
31582 *) cat "$f" >> "$ac_dir/Makefile" ;;
31590 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31596 cat >>$CONFIG_STATUS <<\_ACEOF
31598 { (exit 0); exit 0; }
31600 chmod +x $CONFIG_STATUS
31601 ac_clean_files=$ac_clean_files_save
31604 # configure is writing to config.log, and then calls config.status.
31605 # config.status does its own redirection, appending to config.log.
31606 # Unfortunately, on DOS this fails, as config.log is still kept open
31607 # by configure, so config.status won't be able to write to it; its
31608 # output is simply discarded. So we exec the FD to /dev/null,
31609 # effectively closing config.log, so it can be properly (re)opened and
31610 # appended to by config.status. When coming back to configure, we
31611 # need to make the FD available again.
31612 if test "$no_create" != yes; then
31614 ac_config_status_args=
31615 test "$silent" = yes &&
31616 ac_config_status_args="$ac_config_status_args --quiet"
31618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31621 # would make configure fail if this is the last instruction.
31622 $ac_cs_success || { (exit 1); exit 1; }
31627 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31628 chmod 755 dvd-handler dvd-simulator
31629 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31634 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31635 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31637 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31638 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31640 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31641 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31643 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31644 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31646 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31647 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31649 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31650 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31652 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31653 chmod 755 $c/sqlite
31656 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31657 largefile_support="yes"
31661 # A whole lot of hand springs to get the compiler version.
31662 # This is because gcc changed the output in version 3.0
31664 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31665 if test "x${CCVERSION}" = "x" ; then
31666 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31668 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31669 if test x"${CXXVERSION}" = x ; then
31670 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31673 if test "x${subsysdir}" = "x${sbindir}" ; then
31676 echo "You have set --sbindir and --with-subsys-dir"
31677 echo " both equal to: ${subsysdir} "
31678 echo " This is not permitted. Please reconfigure."
31680 echo "Aborting configuration ..."
31686 if test "x${db_name}" = "xInternal" ; then
31689 echo "You have not specified either --enable-client-only or one of the"
31690 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31691 echo " This is not permitted. Please reconfigure."
31693 echo "Aborting the configuration ..."
31700 Configuration on `date`:
31702 Host: $host -- ${DISTNAME} ${DISTVER}
31703 Bacula version: ${VERSION} (${DATE})
31704 Source code location: ${srcdir}
31705 Install binaries: ${sbindir}
31706 Install config files: ${sysconfdir}
31707 Scripts directory: ${scriptdir}
31708 Working directory: ${working_dir}
31709 PID directory: ${piddir}
31710 Subsys directory: ${subsysdir}
31711 Man directory: ${mandir}
31712 Data directory: ${datadir}
31713 C Compiler: ${CC} ${CCVERSION}
31714 C++ Compiler: ${CXX} ${CXXVERSION}
31715 Compiler flags: ${WCFLAGS} ${CFLAGS}
31716 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31718 Statically Linked Tools: ${support_static_tools}
31719 Statically Linked FD: ${support_static_fd}
31720 Statically Linked SD: ${support_static_sd}
31721 Statically Linked DIR: ${support_static_dir}
31722 Statically Linked CONS: ${support_static_cons}
31723 Database type: ${db_name}
31724 Database lib: ${DB_LIBS}
31726 Job Output Email: ${job_email}
31727 Traceback Email: ${dump_email}
31728 SMTP Host Address: ${smtp_host}
31730 Director Port: ${dir_port}
31731 File daemon Port: ${fd_port}
31732 Storage daemon Port: ${sd_port}
31734 Director User: ${dir_user}
31735 Director Group: ${dir_group}
31736 Storage Daemon User: ${sd_user}
31737 Storage DaemonGroup: ${sd_group}
31738 File Daemon User: ${fd_user}
31739 File Daemon Group: ${fd_group}
31741 SQL binaries Directory ${SQL_BINDIR}
31743 Large file support: $largefile_support
31744 Bacula conio support: ${got_conio} ${CONS_LIBS}
31745 readline support: ${got_readline} ${PRTREADLINE_SRC}
31746 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31747 TLS support: ${support_tls}
31748 Encryption support: ${support_crypto}
31749 ZLIB support: ${have_zlib}
31750 enable-smartalloc: ${support_smartalloc}
31751 enable-gnome: ${support_gnome} ${gnome_version}
31752 enable-wx-console: ${support_wx_console} ${wx_version}
31753 enable-tray-monitor: ${support_tray_monitor}
31754 client-only: ${build_client_only}
31755 build-dird: ${build_dird}
31756 build-stored: ${build_stored}
31757 ACL support: ${have_acl}
31758 Python support: ${support_python} ${PYTHON_LIBS}