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"
6739 cat >>confdefs.h <<_ACEOF
6740 #define SYSCONFDIR "$sysconfdir"
6744 # -------------------------------------------------------------------------
6745 # If the user has not set --exec-prefix, we default to ${prefix}
6746 # -------------------------------------------------------------------------
6747 if test x${exec_prefix} = xNONE ; then
6748 exec_prefix=${prefix}
6751 # ------------------------------------------------------------------
6752 # If the user has not set --sbindir, we set our default as /sbin
6753 # ------------------------------------------------------------------
6754 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6755 sbindir=${exec_prefix}/sbin
6757 sbindir=`eval echo ${sbindir}`
6759 # -------------------------------------------------------------------------
6760 # If the user has not set --mandir, we default to /usr/share/man
6761 # -------------------------------------------------------------------------
6762 if test x$mandir = x'${prefix}/man' ; then
6763 mandir=/usr/share/man
6767 # ------------------------------------------------------------------
6768 # All list of languages for which a translation exist. Each
6769 # language is separated by a space.
6770 # ------------------------------------------------------------------
6773 for ac_prog in msgfmt
6775 # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_path_MSGFMT+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 MSGFMT=$ac_cv_path_MSGFMT
6806 if test -n "$MSGFMT"; then
6807 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6808 echo "${ECHO_T}$MSGFMT" >&6
6810 echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6814 test -n "$MSGFMT" && break
6816 test -n "$MSGFMT" || MSGFMT="no"
6818 if test "$MSGFMT" = "no"
6820 echo 'msgfmt program not found, disabling NLS !'
6822 USE_INCLUDED_LIBINTL=no
6825 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6826 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6827 if test "${ac_cv_gnu_library_2+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6837 #include <features.h>
6838 #ifdef __GNU_LIBRARY__
6839 #if (__GLIBC__ >= 2)
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6847 ac_cv_gnu_library_2=yes
6849 ac_cv_gnu_library_2=no
6856 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6857 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6859 GLIBC2="$ac_cv_gnu_library_2"
6862 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6863 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6864 if test "${ac_cv_search_strerror+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_func_search_save_LIBS=$LIBS
6868 ac_cv_search_strerror=no
6869 cat >conftest.$ac_ext <<_ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 (eval $ac_link) 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } &&
6900 { ac_try='test -z "$ac_c_werror_flag"
6901 || test ! -s conftest.err'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; } &&
6907 { ac_try='test -s conftest$ac_exeext'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_cv_search_strerror="none required"
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6919 rm -f conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
6921 if test "$ac_cv_search_strerror" = no; then
6922 for ac_lib in cposix; do
6923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6924 cat >conftest.$ac_ext <<_ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6931 /* Override any gcc2 internal prototype to avoid an error. */
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_search_strerror="-l$ac_lib"
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6975 rm -f conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6979 LIBS=$ac_func_search_save_LIBS
6981 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6982 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6983 if test "$ac_cv_search_strerror" != no; then
6984 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6988 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6990 if test "${ac_cv_header_stdc+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag"
7022 || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest.$ac_objext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_header_stdc=yes
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_header_stdc=no
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 if test $ac_cv_header_stdc = yes; then
7044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "memchr" >/dev/null 2>&1; then
7058 ac_cv_header_stdc=no
7064 if test $ac_cv_header_stdc = yes; then
7065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "free" >/dev/null 2>&1; then
7079 ac_cv_header_stdc=no
7085 if test $ac_cv_header_stdc = yes; then
7086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087 if test "$cross_compiling" = yes; then
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7097 #if ((' ' & 0x0FF) == 0x020)
7098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7101 # define ISLOWER(c) \
7102 (('a' <= (c) && (c) <= 'i') \
7103 || ('j' <= (c) && (c) <= 'r') \
7104 || ('s' <= (c) && (c) <= 'z'))
7105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7113 for (i = 0; i < 256; i++)
7114 if (XOR (islower (i), ISLOWER (i))
7115 || toupper (i) != TOUPPER (i))
7120 rm -f conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122 (eval $ac_link) 2>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7133 echo "$as_me: program exited with status $ac_status" >&5
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_header_stdc=no
7140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7146 if test $ac_cv_header_stdc = yes; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define STDC_HEADERS 1
7154 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7155 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7156 if test "${ac_cv_c_const+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 cat >conftest.$ac_ext <<_ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7169 /* FIXME: Include the comments suggested by Paul. */
7171 /* Ultrix mips cc rejects this. */
7172 typedef int charset[2];
7174 /* SunOS 4.1.1 cc rejects this. */
7175 char const *const *ccp;
7177 /* NEC SVR4.0.2 mips cc rejects this. */
7178 struct point {int x, y;};
7179 static struct point const zero = {0,0};
7180 /* AIX XL C 1.02.0.0 rejects this.
7181 It does not let you subtract one const X* pointer from another in
7182 an arm of an if-expression whose if-part is not a constant
7184 const char *g = "string";
7185 ccp = &g + (g ? g-g : 0);
7186 /* HPUX 7.0 cc rejects these. */
7189 ccp = (char const *const *) p;
7190 { /* SCO 3.2v4 cc rejects this. */
7192 char const *s = 0 ? (char *) 0 : (char const *) 0;
7196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7198 const int *foo = &x[0];
7201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7202 typedef const int *iptr;
7206 { /* AIX XL C 1.02.0.0 rejects this saying
7207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7208 struct s { int j; const int *ap[3]; };
7209 struct s *b; b->j = 5;
7211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7251 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7252 echo "${ECHO_T}$ac_cv_c_const" >&6
7253 if test $ac_cv_c_const = no; then
7255 cat >>confdefs.h <<\_ACEOF
7262 echo "$as_me:$LINENO: checking for signed" >&5
7263 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7264 if test "${bh_cv_c_signed+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 cat >conftest.$ac_ext <<_ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284 (eval $ac_compile) 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } &&
7291 { ac_try='test -z "$ac_c_werror_flag"
7292 || test ! -s conftest.err'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7314 echo "${ECHO_T}$bh_cv_c_signed" >&6
7315 if test $bh_cv_c_signed = no; then
7317 cat >>confdefs.h <<\_ACEOF
7323 echo "$as_me:$LINENO: checking for inline" >&5
7324 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7325 if test "${ac_cv_c_inline+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 for ac_kw in inline __inline__ __inline; do
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7338 static $ac_kw foo_t static_foo () {return 0; }
7339 $ac_kw foo_t foo () {return 0; }
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7347 grep -v '^ *+' conftest.er1 >conftest.err
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_c_inline=$ac_kw; break
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7376 echo "${ECHO_T}$ac_cv_c_inline" >&6
7379 case $ac_cv_c_inline in
7382 case $ac_cv_c_inline in
7384 *) ac_val=$ac_cv_c_inline;;
7386 cat >>confdefs.h <<_ACEOF
7388 #define inline $ac_val
7394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7405 inttypes.h stdint.h unistd.h
7407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 echo "$as_me:$LINENO: checking for $ac_header" >&5
7409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 $ac_includes_default
7421 #include <$ac_header>
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest.$ac_objext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 eval "$as_ac_Header=yes"
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 eval "$as_ac_Header=no"
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7466 echo "$as_me:$LINENO: checking for off_t" >&5
7467 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7468 if test "${ac_cv_type_off_t+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 cat >conftest.$ac_ext <<_ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 $ac_includes_default
7489 rm -f conftest.$ac_objext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7491 (eval $ac_compile) 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
7498 { ac_try='test -z "$ac_c_werror_flag"
7499 || test ! -s conftest.err'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; } &&
7505 { ac_try='test -s conftest.$ac_objext'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 ac_cv_type_off_t=yes
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7521 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7522 if test $ac_cv_type_off_t = yes; then
7526 cat >>confdefs.h <<_ACEOF
7532 echo "$as_me:$LINENO: checking for size_t" >&5
7533 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7534 if test "${ac_cv_type_size_t+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7549 if (sizeof (size_t))
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557 (eval $ac_compile) 2>conftest.er1
7559 grep -v '^ *+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -z "$ac_c_werror_flag"
7565 || test ! -s conftest.err'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_type_size_t=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_cv_type_size_t=no
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7587 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7588 if test $ac_cv_type_size_t = yes; then
7592 cat >>confdefs.h <<_ACEOF
7593 #define size_t unsigned
7599 echo "$as_me:$LINENO: checking for long long" >&5
7600 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7601 if test "${ac_cv_type_long_long+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 long long ll = 1LL; int i = 63;
7614 long long llmax = (long long) -1;
7615 return ll << i | ll >> i | llmax / ll | llmax % ll;
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622 (eval $ac_link) 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_type_long_long=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_type_long_long=no
7649 rm -f conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7652 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7653 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7654 if test $ac_cv_type_long_long = yes; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LONG_LONG 1
7663 echo "$as_me:$LINENO: checking for long double" >&5
7664 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7665 if test "${gt_cv_c_long_double+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 if test "$GCC" = yes; then
7669 gt_cv_c_long_double=yes
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7679 long double foo = 0.0;
7680 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7681 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693 (eval $ac_compile) 2>conftest.er1
7695 grep -v '^ *+' conftest.er1 >conftest.err
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest.$ac_objext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 gt_cv_c_long_double=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 gt_cv_c_long_double=no
7720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7724 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7725 if test $gt_cv_c_long_double = yes; then
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LONG_DOUBLE 1
7734 echo "$as_me:$LINENO: checking for wchar_t" >&5
7735 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7736 if test "${gt_cv_c_wchar_t+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7746 wchar_t foo = (wchar_t)'\0';
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>conftest.er1
7759 grep -v '^ *+' conftest.er1 >conftest.err
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest.$ac_objext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7787 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7788 if test $gt_cv_c_wchar_t = yes; then
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_WCHAR_T 1
7797 echo "$as_me:$LINENO: checking for wint_t" >&5
7798 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7799 if test "${gt_cv_c_wint_t+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 wint_t foo = (wchar_t)'\0';
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>conftest.er1
7822 grep -v '^ *+' conftest.er1 >conftest.err
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag"
7828 || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest.$ac_objext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7850 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7851 if test $gt_cv_c_wint_t = yes; then
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_WINT_T 1
7860 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7862 if test "${gl_cv_header_inttypes_h+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <sys/types.h>
7872 #include <inttypes.h>
7876 uintmax_t i = (uintmax_t) -1;
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 gl_cv_header_inttypes_h=yes
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 gl_cv_header_inttypes_h=no
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7913 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7914 if test $gl_cv_header_inttypes_h = yes; then
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7923 echo "$as_me:$LINENO: checking for stdint.h" >&5
7924 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7925 if test "${gl_cv_header_stdint_h+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 #include <sys/types.h>
7939 uintmax_t i = (uintmax_t) -1;
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946 (eval $ac_compile) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 gl_cv_header_stdint_h=yes
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 gl_cv_header_stdint_h=no
7973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7976 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7977 if test $gl_cv_header_stdint_h = yes; then
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_STDINT_H_WITH_UINTMAX 1
7988 echo "$as_me:$LINENO: checking for intmax_t" >&5
7989 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7990 if test "${gt_cv_c_intmax_t+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8002 #if HAVE_STDINT_H_WITH_UINTMAX
8005 #if HAVE_INTTYPES_H_WITH_UINTMAX
8006 #include <inttypes.h>
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag"
8027 || test ! -s conftest.err'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; } &&
8033 { ac_try='test -s conftest.$ac_objext'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 gt_cv_c_intmax_t=yes
8041 echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8049 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8050 if test $gt_cv_c_intmax_t = yes; then
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_INTMAX_T 1
8060 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8061 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8062 if test "${gt_cv_func_printf_posix+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 if test "$cross_compiling" = yes; then
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8075 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8081 $EGREP "notposix" >/dev/null 2>&1; then
8082 gt_cv_func_printf_posix="guessing no"
8084 gt_cv_func_printf_posix="guessing yes"
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8099 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8100 dollar expansion (possibly an autoconf bug). */
8101 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8102 static char buf[100];
8105 sprintf (buf, format, 33, 55);
8106 return (strcmp (buf, "55 33") != 0);
8109 rm -f conftest$ac_exeext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 gt_cv_func_printf_posix=yes
8122 echo "$as_me: program exited with status $ac_status" >&5
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8127 gt_cv_func_printf_posix=no
8129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8133 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8134 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8135 case $gt_cv_func_printf_posix in
8138 cat >>confdefs.h <<\_ACEOF
8139 #define HAVE_POSIX_PRINTF 1
8145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8146 # for constant arguments. Useless!
8147 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8148 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8149 if test "${ac_cv_working_alloca_h+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8162 char *p = (char *) alloca (2 * sizeof (int));
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_working_alloca_h=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_working_alloca_h=no
8196 rm -f conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8200 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8201 if test $ac_cv_working_alloca_h = yes; then
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_ALLOCA_H 1
8209 echo "$as_me:$LINENO: checking for alloca" >&5
8210 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8211 if test "${ac_cv_func_alloca_works+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8221 # define alloca __builtin_alloca
8224 # include <malloc.h>
8225 # define alloca _alloca
8228 # include <alloca.h>
8233 # ifndef alloca /* predefined by HP cc +Olibcalls */
8244 char *p = (char *) alloca (1);
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_func_alloca_works=yes
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_func_alloca_works=no
8278 rm -f conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8282 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8284 if test $ac_cv_func_alloca_works = yes; then
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_ALLOCA 1
8291 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8292 # that cause trouble. Some versions do not even contain alloca or
8293 # contain a buggy version. If you still want to use their alloca,
8294 # use ar to extract alloca.o from them instead of compiling alloca.c.
8296 ALLOCA=alloca.$ac_objext
8298 cat >>confdefs.h <<\_ACEOF
8303 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8304 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8305 if test "${ac_cv_os_cray+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #if defined(CRAY) && ! defined(CRAY2)
8321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8322 $EGREP "webecray" >/dev/null 2>&1; then
8330 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8331 echo "${ECHO_T}$ac_cv_os_cray" >&6
8332 if test $ac_cv_os_cray = yes; then
8333 for ac_func in _getb67 GETB67 getb67; do
8334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_func" >&5
8336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_var+set}\" = set"; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8348 #define $ac_func innocuous_$ac_func
8350 /* System header to define __stub macros and hopefully few prototypes,
8351 which can conflict with char $ac_func (); below.
8352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8353 <limits.h> exists even on freestanding compilers. */
8356 # include <limits.h>
8358 # include <assert.h>
8363 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8371 /* The GNU C library defines this for functions which it implements
8372 to always fail with ENOSYS. Some functions are actually named
8373 something starting with __ and the normal name is an alias. */
8374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8377 char (*f) () = $ac_func;
8386 return f != $ac_func;
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag"
8401 || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 eval "$as_ac_var=yes"
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 eval "$as_ac_var=no"
8420 rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425 if test `eval echo '${'$as_ac_var'}'` = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428 #define CRAY_STACKSEG_END $ac_func
8437 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8438 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8439 if test "${ac_cv_c_stack_direction+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 if test "$cross_compiling" = yes; then
8443 ac_cv_c_stack_direction=0
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 find_stack_direction ()
8454 static char *addr = 0;
8459 return find_stack_direction ();
8462 return (&dummy > addr) ? 1 : -1;
8468 exit (find_stack_direction () < 0);
8471 rm -f conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_cv_c_stack_direction=1
8484 echo "$as_me: program exited with status $ac_status" >&5
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_cv_c_stack_direction=-1
8491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8494 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8495 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8497 cat >>confdefs.h <<_ACEOF
8498 #define STACK_DIRECTION $ac_cv_c_stack_direction
8506 for ac_header in stdlib.h unistd.h
8508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8518 # Is the header compilable?
8519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #include <$ac_header>
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_header_compiler=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8557 ac_header_compiler=no
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8561 echo "${ECHO_T}$ac_header_compiler" >&6
8563 # Is the header present?
8564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #include <$ac_header>
8574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } >/dev/null; then
8582 if test -s conftest.err; then
8583 ac_cpp_err=$ac_c_preproc_warn_flag
8584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8591 if test -z "$ac_cpp_err"; then
8592 ac_header_preproc=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_header_preproc=no
8599 rm -f conftest.err conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8601 echo "${ECHO_T}$ac_header_preproc" >&6
8603 # So? What about this header?
8604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8610 ac_header_preproc=yes
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8627 ## ------------------------------------------ ##
8628 ## Report this to the AC_PACKAGE_NAME lists. ##
8629 ## ------------------------------------------ ##
8632 sed "s/^/$as_me: WARNING: /" >&2
8635 echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 eval "$as_ac_Header=\$ac_header_preproc"
8642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8647 cat >>confdefs.h <<_ACEOF
8648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8656 for ac_func in getpagesize
8658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 echo "$as_me:$LINENO: checking for $ac_func" >&5
8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_var+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8672 #define $ac_func innocuous_$ac_func
8674 /* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char $ac_func (); below.
8676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677 <limits.h> exists even on freestanding compilers. */
8680 # include <limits.h>
8682 # include <assert.h>
8687 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8695 /* The GNU C library defines this for functions which it implements
8696 to always fail with ENOSYS. Some functions are actually named
8697 something starting with __ and the normal name is an alias. */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8701 char (*f) () = $ac_func;
8710 return f != $ac_func;
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_var=yes"
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 eval "$as_ac_var=no"
8744 rm -f conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8749 if test `eval echo '${'$as_ac_var'}'` = yes; then
8750 cat >>confdefs.h <<_ACEOF
8751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8757 echo "$as_me:$LINENO: checking for working mmap" >&5
8758 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8759 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 if test "$cross_compiling" = yes; then
8763 ac_cv_func_mmap_fixed_mapped=no
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 $ac_includes_default
8772 /* malloc might have been renamed as rpl_malloc. */
8775 /* Thanks to Mike Haertel and Jim Avera for this test.
8776 Here is a matrix of mmap possibilities:
8777 mmap private not fixed
8778 mmap private fixed at somewhere currently unmapped
8779 mmap private fixed at somewhere already mapped
8780 mmap shared not fixed
8781 mmap shared fixed at somewhere currently unmapped
8782 mmap shared fixed at somewhere already mapped
8783 For private mappings, we should verify that changes cannot be read()
8784 back from the file, nor mmap's back from the file at a different
8785 address. (There have been systems where private was not correctly
8786 implemented like the infamous i386 svr4.0, and systems where the
8787 VM page cache was not coherent with the file system buffer cache
8788 like early versions of FreeBSD and possibly contemporary NetBSD.)
8789 For shared mappings, we should conversely verify that changes get
8790 propagated back to all the places they're supposed to be.
8792 Grep wants private fixed already mapped.
8793 The main things grep needs to know about mmap are:
8794 * does it exist and is it safe to write into the mmap'd area
8795 * how to use it (BSD variants) */
8798 #include <sys/mman.h>
8800 #if !STDC_HEADERS && !HAVE_STDLIB_H
8804 /* This mess was copied from the GNU getpagesize.h. */
8805 #if !HAVE_GETPAGESIZE
8806 /* Assume that all systems that can run configure have sys/param.h. */
8807 # if !HAVE_SYS_PARAM_H
8808 # define HAVE_SYS_PARAM_H 1
8811 # ifdef _SC_PAGESIZE
8812 # define getpagesize() sysconf(_SC_PAGESIZE)
8813 # else /* no _SC_PAGESIZE */
8814 # if HAVE_SYS_PARAM_H
8815 # include <sys/param.h>
8816 # ifdef EXEC_PAGESIZE
8817 # define getpagesize() EXEC_PAGESIZE
8818 # else /* no EXEC_PAGESIZE */
8820 # define getpagesize() NBPG * CLSIZE
8823 # endif /* no CLSIZE */
8824 # else /* no NBPG */
8826 # define getpagesize() NBPC
8827 # else /* no NBPC */
8829 # define getpagesize() PAGESIZE
8830 # endif /* PAGESIZE */
8831 # endif /* no NBPC */
8832 # endif /* no NBPG */
8833 # endif /* no EXEC_PAGESIZE */
8834 # else /* no HAVE_SYS_PARAM_H */
8835 # define getpagesize() 8192 /* punt totally */
8836 # endif /* no HAVE_SYS_PARAM_H */
8837 # endif /* no _SC_PAGESIZE */
8839 #endif /* no HAVE_GETPAGESIZE */
8844 char *data, *data2, *data3;
8848 pagesize = getpagesize ();
8850 /* First, make a file with some known garbage in it. */
8851 data = (char *) malloc (pagesize);
8854 for (i = 0; i < pagesize; ++i)
8855 *(data + i) = rand ();
8857 fd = creat ("conftest.mmap", 0600);
8860 if (write (fd, data, pagesize) != pagesize)
8864 /* Next, try to mmap the file at a fixed address which already has
8865 something else allocated at it. If we can, also make sure that
8866 we see the same garbage. */
8867 fd = open ("conftest.mmap", O_RDWR);
8870 data2 = (char *) malloc (2 * pagesize);
8873 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8874 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8875 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8877 for (i = 0; i < pagesize; ++i)
8878 if (*(data + i) != *(data2 + i))
8881 /* Finally, make sure that changes to the mapped area do not
8882 percolate back to the file as seen by read(). (This is a bug on
8883 some variants of i386 svr4.0.) */
8884 for (i = 0; i < pagesize; ++i)
8885 *(data2 + i) = *(data2 + i) + 1;
8886 data3 = (char *) malloc (pagesize);
8889 if (read (fd, data3, pagesize) != pagesize)
8891 for (i = 0; i < pagesize; ++i)
8892 if (*(data + i) != *(data3 + i))
8898 rm -f conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900 (eval $ac_link) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_func_mmap_fixed_mapped=yes
8911 echo "$as_me: program exited with status $ac_status" >&5
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8916 ac_cv_func_mmap_fixed_mapped=no
8918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8921 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8922 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8923 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8925 cat >>confdefs.h <<\_ACEOF
8933 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8934 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8935 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8945 #include <features.h>
8946 #ifdef __GNU_LIBRARY__
8947 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8954 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8955 ac_cv_gnu_library_2_1=yes
8957 ac_cv_gnu_library_2_1=no
8964 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8965 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8967 GLIBC21="$ac_cv_gnu_library_2_1"
8972 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8973 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8974 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 if test "$cross_compiling" = yes; then
8980 # Guess based on the CPU.
8982 alpha* | i3456786 | m68k | s390*)
8983 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8985 gt_cv_int_divbyzero_sigfpe="guessing no";;
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
9001 sigfpe_handler (int sig)
9003 sigfpe_handler (sig) int sig;
9006 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9007 exit (sig != SIGFPE);
9017 signal (SIGFPE, sigfpe_handler);
9018 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9019 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9020 signal (SIGTRAP, sigfpe_handler);
9022 /* Linux/SPARC yields signal SIGILL. */
9023 #if defined (__sparc__) && defined (__linux__)
9024 signal (SIGILL, sigfpe_handler);
9033 rm -f conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 gt_cv_int_divbyzero_sigfpe=yes
9046 echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9051 gt_cv_int_divbyzero_sigfpe=no
9053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9057 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9058 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9059 case "$gt_cv_int_divbyzero_sigfpe" in
9064 cat >>confdefs.h <<_ACEOF
9065 #define INTDIV0_RAISES_SIGFPE $value
9070 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9071 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9072 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 unsigned long long ull = 1ULL; int i = 63;
9085 unsigned long long ullmax = (unsigned long long) -1;
9086 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093 (eval $ac_link) 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_type_unsigned_long_long=yes
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_cv_type_unsigned_long_long=no
9120 rm -f conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9124 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9125 if test $ac_cv_type_unsigned_long_long = yes; then
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_UNSIGNED_LONG_LONG 1
9136 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9138 test $ac_cv_type_unsigned_long_long = yes \
9139 && ac_type='unsigned long long' \
9140 || ac_type='unsigned long'
9142 cat >>confdefs.h <<_ACEOF
9143 #define uintmax_t $ac_type
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_UINTMAX_T 1
9155 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9156 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9157 if test "${gt_cv_header_inttypes_h+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gt_cv_header_inttypes_h=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9204 gt_cv_header_inttypes_h=no
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9209 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9211 if test $gt_cv_header_inttypes_h = yes; then
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_INTTYPES_H 1
9221 if test $gt_cv_header_inttypes_h = yes; then
9222 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9223 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9224 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 #include <inttypes.h>
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249 (eval $ac_compile) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag"
9257 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } &&
9263 { ac_try='test -s conftest.$ac_objext'
9264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9269 gt_cv_inttypes_pri_broken=no
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 gt_cv_inttypes_pri_broken=yes
9276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9280 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9282 if test "$gt_cv_inttypes_pri_broken" = yes; then
9284 cat >>confdefs.h <<_ACEOF
9285 #define PRI_MACROS_BROKEN 1
9292 for ac_header in stdint.h
9294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9304 # Is the header compilable?
9305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9307 cat >conftest.$ac_ext <<_ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 $ac_includes_default
9314 #include <$ac_header>
9316 rm -f conftest.$ac_objext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9318 (eval $ac_compile) 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_c_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest.$ac_objext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 ac_header_compiler=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_header_compiler=no
9345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9347 echo "${ECHO_T}$ac_header_compiler" >&6
9349 # Is the header present?
9350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 #include <$ac_header>
9360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9363 grep -v '^ *+' conftest.er1 >conftest.err
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9377 if test -z "$ac_cpp_err"; then
9378 ac_header_preproc=yes
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_header_preproc=no
9385 rm -f conftest.err conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9413 ## ------------------------------------------ ##
9414 ## Report this to the AC_PACKAGE_NAME lists. ##
9415 ## ------------------------------------------ ##
9418 sed "s/^/$as_me: WARNING: /" >&2
9421 echo "$as_me:$LINENO: checking for $ac_header" >&5
9422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 eval "$as_ac_Header=\$ac_header_preproc"
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9442 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 $EGREP "Found it" >/dev/null 2>&1; then
9466 if test -z "$result"; then
9467 if test "$cross_compiling" = yes; then
9468 # Depending upon the size, compute the lo and hi bounds.
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9479 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9520 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>conftest.er1
9531 grep -v '^ *+' conftest.er1 >conftest.err
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_hi=$ac_mid; break
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_lo=`expr $ac_mid + 1`
9555 if test $ac_lo -le $ac_mid; then
9559 ac_mid=`expr 2 '*' $ac_mid + 1`
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9577 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586 (eval $ac_compile) 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9618 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } &&
9634 { ac_try='test -z "$ac_c_werror_flag"
9635 || test ! -s conftest.err'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest.$ac_objext'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_lo=$ac_mid; break
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 ac_hi=`expr '(' $ac_mid ')' - 1`
9653 if test $ac_mid -le $ac_hi; then
9657 ac_mid=`expr 2 '*' $ac_mid`
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670 # Binary search between lo and hi bounds.
9671 while test "x$ac_lo" != "x$ac_hi"; do
9672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9683 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_lo=`expr '(' $ac_mid ')' + 1`
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9726 if test "$cross_compiling" = yes; then
9727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9728 See \`config.log' for more details." >&5
9729 echo "$as_me: error: cannot run test program while cross compiling
9730 See \`config.log' for more details." >&2;}
9731 { (exit 1); exit 1; }; }
9733 cat >conftest.$ac_ext <<_ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9740 long longval () { return ~(size_t)0 / 10; }
9741 unsigned long ulongval () { return ~(size_t)0 / 10; }
9748 FILE *f = fopen ("conftest.val", "w");
9751 if ((~(size_t)0 / 10) < 0)
9753 long i = longval ();
9754 if (i != (~(size_t)0 / 10))
9756 fprintf (f, "%ld\n", i);
9760 unsigned long i = ulongval ();
9761 if (i != (~(size_t)0 / 10))
9763 fprintf (f, "%lu\n", i);
9765 exit (ferror (f) || fclose (f) != 0);
9771 rm -f conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 res_hi=`cat conftest.val`
9784 echo "$as_me: program exited with status $ac_status" >&5
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9795 if test "$cross_compiling" = yes; then
9796 # Depending upon the size, compute the lo and hi bounds.
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9807 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9818 grep -v '^ *+' conftest.er1 >conftest.err
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9848 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_hi=$ac_mid; break
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_lo=`expr $ac_mid + 1`
9883 if test $ac_lo -le $ac_mid; then
9887 ac_mid=`expr 2 '*' $ac_mid + 1`
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9905 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9912 rm -f conftest.$ac_objext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914 (eval $ac_compile) 2>conftest.er1
9916 grep -v '^ *+' conftest.er1 >conftest.err
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9946 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag"
9963 || test ! -s conftest.err'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest.$ac_objext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_lo=$ac_mid; break
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_hi=`expr '(' $ac_mid ')' - 1`
9981 if test $ac_mid -le $ac_hi; then
9985 ac_mid=`expr 2 '*' $ac_mid`
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9998 # Binary search between lo and hi bounds.
9999 while test "x$ac_lo" != "x$ac_hi"; do
10000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 #include <stddef.h>
10011 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag"
10028 || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest.$ac_objext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10042 echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10045 ac_lo=`expr '(' $ac_mid ')' + 1`
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050 ?*) res_lo=$ac_lo;;
10054 if test "$cross_compiling" = yes; then
10055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10056 See \`config.log' for more details." >&5
10057 echo "$as_me: error: cannot run test program while cross compiling
10058 See \`config.log' for more details." >&2;}
10059 { (exit 1); exit 1; }; }
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <stddef.h>
10068 long longval () { return ~(size_t)0 % 10; }
10069 unsigned long ulongval () { return ~(size_t)0 % 10; }
10071 #include <stdlib.h>
10076 FILE *f = fopen ("conftest.val", "w");
10079 if ((~(size_t)0 % 10) < 0)
10081 long i = longval ();
10082 if (i != (~(size_t)0 % 10))
10084 fprintf (f, "%ld\n", i);
10088 unsigned long i = ulongval ();
10089 if (i != (~(size_t)0 % 10))
10091 fprintf (f, "%lu\n", i);
10093 exit (ferror (f) || fclose (f) != 0);
10099 rm -f conftest$ac_exeext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101 (eval $ac_link) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 res_lo=`cat conftest.val`
10112 echo "$as_me: program exited with status $ac_status" >&5
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ( exit $ac_status )
10119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10123 if test "$cross_compiling" = yes; then
10124 # Depending upon the size, compute the lo and hi bounds.
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <stddef.h>
10135 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 #include <stddef.h>
10176 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag"
10193 || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_hi=$ac_mid; break
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_lo=`expr $ac_mid + 1`
10211 if test $ac_lo -le $ac_mid; then
10215 ac_mid=`expr 2 '*' $ac_mid + 1`
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 #include <stddef.h>
10233 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 #include <stddef.h>
10274 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest.$ac_objext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_lo=$ac_mid; break
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_hi=`expr '(' $ac_mid ')' - 1`
10309 if test $ac_mid -le $ac_hi; then
10313 ac_mid=`expr 2 '*' $ac_mid`
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10326 # Binary search between lo and hi bounds.
10327 while test "x$ac_lo" != "x$ac_hi"; do
10328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <stddef.h>
10339 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10346 rm -f conftest.$ac_objext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348 (eval $ac_compile) 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -z "$ac_c_werror_flag"
10356 || test ! -s conftest.err'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest.$ac_objext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 ac_lo=`expr '(' $ac_mid ')' + 1`
10375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10378 ?*) fits_in_uint=$ac_lo;;
10382 if test "$cross_compiling" = yes; then
10383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10384 See \`config.log' for more details." >&5
10385 echo "$as_me: error: cannot run test program while cross compiling
10386 See \`config.log' for more details." >&2;}
10387 { (exit 1); exit 1; }; }
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <stddef.h>
10396 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10397 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10399 #include <stdlib.h>
10404 FILE *f = fopen ("conftest.val", "w");
10407 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10409 long i = longval ();
10410 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10412 fprintf (f, "%ld\n", i);
10416 unsigned long i = ulongval ();
10417 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10419 fprintf (f, "%lu\n", i);
10421 exit (ferror (f) || fclose (f) != 0);
10427 rm -f conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 fits_in_uint=`cat conftest.val`
10440 echo "$as_me: program exited with status $ac_status" >&5
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ( exit $ac_status )
10447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10451 if test "$fits_in_uint" = 1; then
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 #include <stddef.h>
10460 extern unsigned long foo;
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag"
10480 || test ! -s conftest.err'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest.$ac_objext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10500 if test -z "$result"; then
10501 if test "$fits_in_uint" = 1; then
10502 result="$res_hi$res_lo"U
10504 result="$res_hi$res_lo"UL
10507 result='~(size_t)0'
10510 echo "$as_me:$LINENO: result: $result" >&5
10511 echo "${ECHO_T}$result" >&6
10512 if test "$result" != yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define SIZE_MAX $result
10524 for ac_header in stdint.h
10526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10528 echo "$as_me:$LINENO: checking for $ac_header" >&5
10529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10536 # Is the header compilable?
10537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 #include <$ac_header>
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag"
10558 || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_header_compiler=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_header_compiler=no
10577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6
10581 # Is the header present?
10582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <$ac_header>
10592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } >/dev/null; then
10600 if test -s conftest.err; then
10601 ac_cpp_err=$ac_c_preproc_warn_flag
10602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10609 if test -z "$ac_cpp_err"; then
10610 ac_header_preproc=yes
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10615 ac_header_preproc=no
10617 rm -f conftest.err conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6
10621 # So? What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628 ac_header_preproc=yes
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10645 ## ------------------------------------------ ##
10646 ## Report this to the AC_PACKAGE_NAME lists. ##
10647 ## ------------------------------------------ ##
10650 sed "s/^/$as_me: WARNING: /" >&2
10653 echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 eval "$as_ac_Header=\$ac_header_preproc"
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10665 cat >>confdefs.h <<_ACEOF
10666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10680 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10681 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10682 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 $ac_includes_default
10695 if ((ptrdiff_t *) 0)
10697 if (sizeof (ptrdiff_t))
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_type_ptrdiff_t=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_type_ptrdiff_t=no
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10736 if test $ac_cv_type_ptrdiff_t = yes; then
10740 cat >>confdefs.h <<\_ACEOF
10741 #define ptrdiff_t long
10757 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10758 stdlib.h string.h unistd.h sys/param.h
10760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10762 echo "$as_me:$LINENO: checking for $ac_header" >&5
10763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10770 # Is the header compilable?
10771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 #include <$ac_header>
10782 rm -f conftest.$ac_objext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784 (eval $ac_compile) 2>conftest.er1
10786 grep -v '^ *+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -z "$ac_c_werror_flag"
10792 || test ! -s conftest.err'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest.$ac_objext'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_header_compiler=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_header_compiler=no
10811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <$ac_header>
10826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null; then
10834 if test -s conftest.err; then
10835 ac_cpp_err=$ac_c_preproc_warn_flag
10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10843 if test -z "$ac_cpp_err"; then
10844 ac_header_preproc=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_header_preproc=no
10851 rm -f conftest.err conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6
10855 # So? What about this header?
10856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862 ac_header_preproc=yes
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10879 ## ------------------------------------------ ##
10880 ## Report this to the AC_PACKAGE_NAME lists. ##
10881 ## ------------------------------------------ ##
10884 sed "s/^/$as_me: WARNING: /" >&2
10887 echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 eval "$as_ac_Header=\$ac_header_preproc"
10894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10931 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10932 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 echo "$as_me:$LINENO: checking for $ac_func" >&5
10937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10938 if eval "test \"\${$as_ac_var+set}\" = set"; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949 #define $ac_func innocuous_$ac_func
10951 /* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char $ac_func (); below.
10953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954 <limits.h> exists even on freestanding compilers. */
10957 # include <limits.h>
10959 # include <assert.h>
10964 /* Override any gcc2 internal prototype to avoid an error. */
10969 /* We use char because int might match the return type of a gcc2
10970 builtin and then its argument prototype would still apply. */
10972 /* The GNU C library defines this for functions which it implements
10973 to always fail with ENOSYS. Some functions are actually named
10974 something starting with __ and the normal name is an alias. */
10975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10978 char (*f) () = $ac_func;
10987 return f != $ac_func;
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10996 grep -v '^ *+' conftest.er1 >conftest.err
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 eval "$as_ac_var=yes"
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 eval "$as_ac_var=no"
11021 rm -f conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027 cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11037 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11038 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 cat >conftest.$ac_ext <<_ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11053 char *p = (char *) _snprintf;
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest.$ac_objext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_have_decl__snprintf=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_have_decl__snprintf=no
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11091 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11092 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11093 if test $ac_cv_have_decl__snprintf = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_DECL__SNPRINTF $gt_value
11105 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11106 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11107 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11122 char *p = (char *) _snwprintf;
11129 rm -f conftest.$ac_objext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131 (eval $ac_compile) 2>conftest.er1
11133 grep -v '^ *+' conftest.er1 >conftest.err
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag"
11139 || test ! -s conftest.err'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_have_decl__snwprintf=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_cv_have_decl__snwprintf=no
11158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11161 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11162 if test $ac_cv_have_decl__snwprintf = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_DECL__SNWPRINTF $gt_value
11175 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11176 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11177 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11191 #ifndef feof_unlocked
11192 char *p = (char *) feof_unlocked;
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>conftest.er1
11203 grep -v '^ *+' conftest.er1 >conftest.err
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -z "$ac_c_werror_flag"
11209 || test ! -s conftest.err'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest.$ac_objext'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 ac_cv_have_decl_feof_unlocked=yes
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11226 ac_cv_have_decl_feof_unlocked=no
11228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11231 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11232 if test $ac_cv_have_decl_feof_unlocked = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11244 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11245 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11246 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11260 #ifndef fgets_unlocked
11261 char *p = (char *) fgets_unlocked;
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>conftest.er1
11272 grep -v '^ *+' conftest.er1 >conftest.err
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_have_decl_fgets_unlocked=yes
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11295 ac_cv_have_decl_fgets_unlocked=no
11297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11300 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11301 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11313 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11314 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11315 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11329 #ifndef getc_unlocked
11330 char *p = (char *) getc_unlocked;
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339 (eval $ac_compile) 2>conftest.er1
11341 grep -v '^ *+' conftest.er1 >conftest.err
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -z "$ac_c_werror_flag"
11347 || test ! -s conftest.err'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 ac_cv_have_decl_getc_unlocked=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_cv_have_decl_getc_unlocked=no
11366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11369 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11370 if test $ac_cv_have_decl_getc_unlocked = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11382 case $gt_cv_func_printf_posix in
11383 *yes) HAVE_POSIX_PRINTF=1 ;;
11384 *) HAVE_POSIX_PRINTF=0 ;;
11387 if test "$ac_cv_func_asprintf" = yes; then
11393 if test "$ac_cv_func_snprintf" = yes; then
11399 if test "$ac_cv_func_wprintf" = yes; then
11411 am_save_CPPFLAGS="$CPPFLAGS"
11413 for element in $INCICONV; do
11415 for x in $CPPFLAGS; do
11417 acl_save_prefix="$prefix"
11418 prefix="$acl_final_prefix"
11419 acl_save_exec_prefix="$exec_prefix"
11420 exec_prefix="$acl_final_exec_prefix"
11422 exec_prefix="$acl_save_exec_prefix"
11423 prefix="$acl_save_prefix"
11425 if test "X$x" = "X$element"; then
11430 if test -z "$haveit"; then
11431 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11436 echo "$as_me:$LINENO: checking for iconv" >&5
11437 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11438 if test "${am_cv_func_iconv+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 am_cv_func_iconv="no, consider installing GNU libiconv"
11444 cat >conftest.$ac_ext <<_ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 #include <stdlib.h>
11455 iconv_t cd = iconv_open("","");
11456 iconv(cd,NULL,NULL,NULL,NULL);
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464 (eval $ac_link) 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag"
11472 || test ! -s conftest.err'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest$ac_exeext'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; }; then
11484 am_cv_func_iconv=yes
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 if test "$am_cv_func_iconv" != yes; then
11493 am_save_LIBS="$LIBS"
11494 LIBS="$LIBS $LIBICONV"
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <stdlib.h>
11506 iconv_t cd = iconv_open("","");
11507 iconv(cd,NULL,NULL,NULL,NULL);
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 am_cv_lib_iconv=yes
11536 am_cv_func_iconv=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11542 rm -f conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS="$am_save_LIBS"
11548 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11549 echo "${ECHO_T}$am_cv_func_iconv" >&6
11550 if test "$am_cv_func_iconv" = yes; then
11552 cat >>confdefs.h <<\_ACEOF
11553 #define HAVE_ICONV 1
11557 if test "$am_cv_lib_iconv" = yes; then
11558 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11559 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11560 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11561 echo "${ECHO_T}$LIBICONV" >&6
11563 CPPFLAGS="$am_save_CPPFLAGS"
11570 if test "$am_cv_func_iconv" = yes; then
11571 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11572 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11573 if test "${am_cv_proto_iconv+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 cat >conftest.$ac_ext <<_ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11584 #include <stdlib.h>
11590 #if defined(__STDC__) || defined(__cplusplus)
11591 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>conftest.er1
11608 grep -v '^ *+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
11613 { ac_try='test -z "$ac_c_werror_flag"
11614 || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 am_cv_proto_iconv_arg1=""
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 am_cv_proto_iconv_arg1="const"
11633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634 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);"
11637 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11638 echo "$as_me:$LINENO: result: ${ac_t:-
11639 }$am_cv_proto_iconv" >&5
11640 echo "${ECHO_T}${ac_t:-
11641 }$am_cv_proto_iconv" >&6
11643 cat >>confdefs.h <<_ACEOF
11644 #define ICONV_CONST $am_cv_proto_iconv_arg1
11650 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11651 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11652 if test "${am_cv_langinfo_codeset+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <langinfo.h>
11665 char* cs = nl_langinfo(CODESET);
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672 (eval $ac_link) 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag"
11680 || test ! -s conftest.err'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest$ac_exeext'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 am_cv_langinfo_codeset=yes
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11697 am_cv_langinfo_codeset=no
11699 rm -f conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11703 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11704 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11705 if test $am_cv_langinfo_codeset = yes; then
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_LANGINFO_CODESET 1
11713 if test $ac_cv_header_locale_h = yes; then
11715 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11716 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11717 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <locale.h>
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 gt_cv_val_LC_MESSAGES=yes
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 gt_cv_val_LC_MESSAGES=no
11764 rm -f conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11768 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11769 if test $gt_cv_val_LC_MESSAGES = yes; then
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_LC_MESSAGES 1
11779 if test -n "$INTL_MACOSX_LIBS"; then
11780 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11783 for ac_prog in bison
11785 # Extract the first word of "$ac_prog", so it can be a program name with args.
11786 set dummy $ac_prog; ac_word=$2
11787 echo "$as_me:$LINENO: checking for $ac_word" >&5
11788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 if test -n "$INTLBISON"; then
11793 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_INTLBISON="$ac_prog"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 INTLBISON=$ac_cv_prog_INTLBISON
11812 if test -n "$INTLBISON"; then
11813 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11814 echo "${ECHO_T}$INTLBISON" >&6
11816 echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11820 test -n "$INTLBISON" && break
11823 if test -z "$INTLBISON"; then
11826 echo "$as_me:$LINENO: checking version of bison" >&5
11827 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11828 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11829 case $ac_prog_version in
11830 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11831 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11832 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11833 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11835 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11836 echo "${ECHO_T}$ac_prog_version" >&6
11838 if test $ac_verc_fail = yes; then
11857 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11858 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11859 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 gt_save_CPPFLAGS="$CPPFLAGS"
11863 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11864 gt_save_LIBS="$LIBS"
11865 LIBS="$LIBS -framework CoreFoundation"
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <CFPreferences.h>
11876 CFPreferencesCopyAppValue(NULL, NULL)
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883 (eval $ac_link) 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -z "$ac_c_werror_flag"
11891 || test ! -s conftest.err'
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 gt_cv_func_CFPreferencesCopyAppValue=yes
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 gt_cv_func_CFPreferencesCopyAppValue=no
11910 rm -f conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 CPPFLAGS="$gt_save_CPPFLAGS"
11913 LIBS="$gt_save_LIBS"
11915 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11916 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11917 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11924 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11925 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11926 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 gt_save_CPPFLAGS="$CPPFLAGS"
11930 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11931 gt_save_LIBS="$LIBS"
11932 LIBS="$LIBS -framework CoreFoundation"
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 #include <CFLocale.h>
11943 CFLocaleCopyCurrent();
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950 (eval $ac_link) 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest$ac_exeext'
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 gt_cv_func_CFLocaleCopyCurrent=yes
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 gt_cv_func_CFLocaleCopyCurrent=no
11977 rm -f conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 CPPFLAGS="$gt_save_CPPFLAGS"
11980 LIBS="$gt_save_LIBS"
11982 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11983 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11984 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_CFLOCALECOPYCURRENT 1
11992 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11993 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11999 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12000 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12001 # Check whether --enable-nls or --disable-nls was given.
12002 if test "${enable_nls+set}" = set; then
12003 enableval="$enable_nls"
12008 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12009 echo "${ECHO_T}$USE_NLS" >&6
12014 BUILD_INCLUDED_LIBINTL=no
12015 USE_INCLUDED_LIBINTL=no
12021 if test "$USE_NLS" = "yes"; then
12022 gt_use_preinstalled_gnugettext=no
12024 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12025 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12027 # Check whether --with-included-gettext or --without-included-gettext was given.
12028 if test "${with_included_gettext+set}" = set; then
12029 withval="$with_included_gettext"
12030 nls_cv_force_use_gnu_gettext=$withval
12032 nls_cv_force_use_gnu_gettext=no
12034 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12035 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12037 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12038 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12045 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12046 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12047 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <libintl.h>
12057 extern int _nl_msg_cat_cntr;
12058 extern int *_nl_domain_bindings;
12062 bindtextdomain ("", "");
12063 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag"
12078 || test ! -s conftest.err'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; } &&
12084 { ac_try='test -s conftest$ac_exeext'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
12090 gt_cv_func_gnugettext1_libc=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 gt_cv_func_gnugettext1_libc=no
12097 rm -f conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12101 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12103 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12109 acl_save_prefix="$prefix"
12110 prefix="$acl_final_prefix"
12111 acl_save_exec_prefix="$exec_prefix"
12112 exec_prefix="$acl_final_exec_prefix"
12114 eval additional_includedir=\"$includedir\"
12115 eval additional_libdir=\"$libdir\"
12117 exec_prefix="$acl_save_exec_prefix"
12118 prefix="$acl_save_prefix"
12121 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12122 if test "${with_libintl_prefix+set}" = set; then
12123 withval="$with_libintl_prefix"
12125 if test "X$withval" = "Xno"; then
12128 if test "X$withval" = "X"; then
12130 acl_save_prefix="$prefix"
12131 prefix="$acl_final_prefix"
12132 acl_save_exec_prefix="$exec_prefix"
12133 exec_prefix="$acl_final_exec_prefix"
12135 eval additional_includedir=\"$includedir\"
12136 eval additional_libdir=\"$libdir\"
12138 exec_prefix="$acl_save_exec_prefix"
12139 prefix="$acl_save_prefix"
12142 additional_includedir="$withval/include"
12143 additional_libdir="$withval/lib"
12153 names_already_handled=
12154 names_next_round='intl '
12155 while test -n "$names_next_round"; do
12156 names_this_round="$names_next_round"
12158 for name in $names_this_round; do
12160 for n in $names_already_handled; do
12161 if test "$n" = "$name"; then
12162 already_handled=yes
12166 if test -z "$already_handled"; then
12167 names_already_handled="$names_already_handled $name"
12168 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12169 eval value=\"\$HAVE_LIB$uppername\"
12170 if test -n "$value"; then
12171 if test "$value" = yes; then
12172 eval value=\"\$LIB$uppername\"
12173 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12174 eval value=\"\$LTLIB$uppername\"
12175 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12184 if test $use_additional = yes; then
12185 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12186 found_dir="$additional_libdir"
12187 found_so="$additional_libdir/lib$name.$shlibext"
12188 if test -f "$additional_libdir/lib$name.la"; then
12189 found_la="$additional_libdir/lib$name.la"
12192 if test -f "$additional_libdir/lib$name.$libext"; then
12193 found_dir="$additional_libdir"
12194 found_a="$additional_libdir/lib$name.$libext"
12195 if test -f "$additional_libdir/lib$name.la"; then
12196 found_la="$additional_libdir/lib$name.la"
12201 if test "X$found_dir" = "X"; then
12202 for x in $LDFLAGS $LTLIBINTL; do
12204 acl_save_prefix="$prefix"
12205 prefix="$acl_final_prefix"
12206 acl_save_exec_prefix="$exec_prefix"
12207 exec_prefix="$acl_final_exec_prefix"
12209 exec_prefix="$acl_save_exec_prefix"
12210 prefix="$acl_save_prefix"
12214 dir=`echo "X$x" | sed -e 's/^X-L//'`
12215 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12217 found_so="$dir/lib$name.$shlibext"
12218 if test -f "$dir/lib$name.la"; then
12219 found_la="$dir/lib$name.la"
12222 if test -f "$dir/lib$name.$libext"; then
12224 found_a="$dir/lib$name.$libext"
12225 if test -f "$dir/lib$name.la"; then
12226 found_la="$dir/lib$name.la"
12232 if test "X$found_dir" != "X"; then
12237 if test "X$found_dir" != "X"; then
12238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12239 if test "X$found_so" != "X"; then
12240 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12244 for x in $ltrpathdirs; do
12245 if test "X$x" = "X$found_dir"; then
12250 if test -z "$haveit"; then
12251 ltrpathdirs="$ltrpathdirs $found_dir"
12253 if test "$hardcode_direct" = yes; then
12254 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12256 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12257 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12259 for x in $rpathdirs; do
12260 if test "X$x" = "X$found_dir"; then
12265 if test -z "$haveit"; then
12266 rpathdirs="$rpathdirs $found_dir"
12270 for x in $LDFLAGS $LIBINTL; do
12272 acl_save_prefix="$prefix"
12273 prefix="$acl_final_prefix"
12274 acl_save_exec_prefix="$exec_prefix"
12275 exec_prefix="$acl_final_exec_prefix"
12277 exec_prefix="$acl_save_exec_prefix"
12278 prefix="$acl_save_prefix"
12280 if test "X$x" = "X-L$found_dir"; then
12285 if test -z "$haveit"; then
12286 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12288 if test "$hardcode_minus_L" != no; then
12289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12291 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12297 if test "X$found_a" != "X"; then
12298 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12300 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12303 additional_includedir=
12304 case "$found_dir" in
12306 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12307 additional_includedir="$basedir/include"
12310 if test "X$additional_includedir" != "X"; then
12311 if test "X$additional_includedir" != "X/usr/include"; then
12313 if test "X$additional_includedir" = "X/usr/local/include"; then
12314 if test -n "$GCC"; then
12316 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12320 if test -z "$haveit"; then
12321 for x in $CPPFLAGS $INCINTL; do
12323 acl_save_prefix="$prefix"
12324 prefix="$acl_final_prefix"
12325 acl_save_exec_prefix="$exec_prefix"
12326 exec_prefix="$acl_final_exec_prefix"
12328 exec_prefix="$acl_save_exec_prefix"
12329 prefix="$acl_save_prefix"
12331 if test "X$x" = "X-I$additional_includedir"; then
12336 if test -z "$haveit"; then
12337 if test -d "$additional_includedir"; then
12338 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12344 if test -n "$found_la"; then
12345 save_libdir="$libdir"
12346 case "$found_la" in
12347 */* | *\\*) . "$found_la" ;;
12348 *) . "./$found_la" ;;
12350 libdir="$save_libdir"
12351 for dep in $dependency_libs; do
12354 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12355 if test "X$additional_libdir" != "X/usr/lib"; then
12357 if test "X$additional_libdir" = "X/usr/local/lib"; then
12358 if test -n "$GCC"; then
12360 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12364 if test -z "$haveit"; then
12366 for x in $LDFLAGS $LIBINTL; do
12368 acl_save_prefix="$prefix"
12369 prefix="$acl_final_prefix"
12370 acl_save_exec_prefix="$exec_prefix"
12371 exec_prefix="$acl_final_exec_prefix"
12373 exec_prefix="$acl_save_exec_prefix"
12374 prefix="$acl_save_prefix"
12376 if test "X$x" = "X-L$additional_libdir"; then
12381 if test -z "$haveit"; then
12382 if test -d "$additional_libdir"; then
12383 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12387 for x in $LDFLAGS $LTLIBINTL; do
12389 acl_save_prefix="$prefix"
12390 prefix="$acl_final_prefix"
12391 acl_save_exec_prefix="$exec_prefix"
12392 exec_prefix="$acl_final_exec_prefix"
12394 exec_prefix="$acl_save_exec_prefix"
12395 prefix="$acl_save_prefix"
12397 if test "X$x" = "X-L$additional_libdir"; then
12402 if test -z "$haveit"; then
12403 if test -d "$additional_libdir"; then
12404 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12411 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12412 if test "$enable_rpath" != no; then
12414 for x in $rpathdirs; do
12415 if test "X$x" = "X$dir"; then
12420 if test -z "$haveit"; then
12421 rpathdirs="$rpathdirs $dir"
12424 for x in $ltrpathdirs; do
12425 if test "X$x" = "X$dir"; then
12430 if test -z "$haveit"; then
12431 ltrpathdirs="$ltrpathdirs $dir"
12436 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12442 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12449 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12450 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12456 if test "X$rpathdirs" != "X"; then
12457 if test -n "$hardcode_libdir_separator"; then
12459 for found_dir in $rpathdirs; do
12460 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12462 acl_save_libdir="$libdir"
12464 eval flag=\"$hardcode_libdir_flag_spec\"
12465 libdir="$acl_save_libdir"
12466 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12468 for found_dir in $rpathdirs; do
12469 acl_save_libdir="$libdir"
12470 libdir="$found_dir"
12471 eval flag=\"$hardcode_libdir_flag_spec\"
12472 libdir="$acl_save_libdir"
12473 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12477 if test "X$ltrpathdirs" != "X"; then
12478 for found_dir in $ltrpathdirs; do
12479 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12483 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12484 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12485 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 gt_save_CPPFLAGS="$CPPFLAGS"
12489 CPPFLAGS="$CPPFLAGS $INCINTL"
12490 gt_save_LIBS="$LIBS"
12491 LIBS="$LIBS $LIBINTL"
12492 cat >conftest.$ac_ext <<_ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 #include <libintl.h>
12499 extern int _nl_msg_cat_cntr;
12504 const char *_nl_expand_alias (const char *);
12508 bindtextdomain ("", "");
12509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 gt_cv_func_gnugettext1_libintl=yes
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 gt_cv_func_gnugettext1_libintl=no
12543 rm -f conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12546 LIBS="$LIBS $LIBICONV"
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #include <libintl.h>
12554 extern int _nl_msg_cat_cntr;
12559 const char *_nl_expand_alias (const char *);
12563 bindtextdomain ("", "");
12564 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 LIBINTL="$LIBINTL $LIBICONV"
12592 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12593 gt_cv_func_gnugettext1_libintl=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12600 rm -f conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12603 CPPFLAGS="$gt_save_CPPFLAGS"
12604 LIBS="$gt_save_LIBS"
12606 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12607 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12610 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12611 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12612 && test "$PACKAGE" != gettext-runtime \
12613 && test "$PACKAGE" != gettext-tools; }; then
12614 gt_use_preinstalled_gnugettext=yes
12622 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12623 nls_cv_use_gnu_gettext=yes
12627 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12628 BUILD_INCLUDED_LIBINTL=yes
12629 USE_INCLUDED_LIBINTL=yes
12630 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12631 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12632 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12636 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12642 if test -n "$INTL_MACOSX_LIBS"; then
12643 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12646 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12650 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12651 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define ENABLE_NLS 1
12662 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12663 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12664 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6
12666 if test "$USE_NLS" = "yes"; then
12667 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12668 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12669 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12670 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12671 gt_source="external libintl"
12676 gt_source="included intl directory"
12678 echo "$as_me:$LINENO: result: $gt_source" >&5
12679 echo "${ECHO_T}$gt_source" >&6
12682 if test "$USE_NLS" = "yes"; then
12684 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12685 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12686 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12687 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12688 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12689 echo "${ECHO_T}$LIBINTL" >&6
12691 for element in $INCINTL; do
12693 for x in $CPPFLAGS; do
12695 acl_save_prefix="$prefix"
12696 prefix="$acl_final_prefix"
12697 acl_save_exec_prefix="$exec_prefix"
12698 exec_prefix="$acl_final_exec_prefix"
12700 exec_prefix="$acl_save_exec_prefix"
12701 prefix="$acl_save_prefix"
12703 if test "X$x" = "X$element"; then
12708 if test -z "$haveit"; then
12709 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12716 cat >>confdefs.h <<\_ACEOF
12717 #define HAVE_GETTEXT 1
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_DCGETTEXT 1
12731 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12732 BUILD_INCLUDED_LIBINTL=yes
12739 nls_cv_header_intl=
12740 nls_cv_header_libgt=
12752 if test "$USE_INCLUDED_LIBINTL" = yes; then
12753 INTLOBJS="\$(GETTOBJS)"
12757 INTL_LIBTOOL_SUFFIX_PREFIX=
12761 INTLLIBS="$LIBINTL"
12774 support_postgresql=no
12775 support_smartalloc=yes
12776 support_readline=yes
12779 support_wx_console=no
12784 support_static_tools=no
12785 support_static_fd=no
12786 support_static_sd=no
12787 support_static_dir=no
12788 support_static_cons=no
12790 build_client_only=no
12798 # -------------------------------------------
12799 # gnome (default off)
12800 # -------------------------------------------
12801 # Check whether --enable-gnome or --disable-gnome was given.
12802 if test "${enable_gnome+set}" = set; then
12803 enableval="$enable_gnome"
12804 if test x$enableval = xyes; then
12810 if test x$support_gnome = xyes; then
12811 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12813 if test $pkg = 0; then
12814 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12815 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12816 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12817 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12822 GNOME_DIR=src/gnome2-console
12823 gnome_version="Version 2.x"
12825 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12826 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12827 { (exit 1); exit 1; }; }
12833 # -------------------------------------------
12834 # wx-console (default off)
12835 # -------------------------------------------
12836 # Check whether --enable-wx-console or --disable-wx-console was given.
12837 if test "${enable_wx_console+set}" = set; then
12838 enableval="$enable_wx_console"
12839 if test x$enableval = xyes; then
12840 support_wx_console=yes
12845 if test x$support_wx_console = xyes; then
12846 abc=`$WXCONFIG $WXFLAGS --cppflags`
12848 if test $pkg = 0; then
12849 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12850 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12851 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12855 WX_DIR=src/wx-console
12858 echo "wx-config program not found. wx-console disabled."
12860 support_wx_console=no
12866 # -------------------------------------------
12867 # tray-monitor (default off)
12868 # -------------------------------------------
12869 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12870 if test "${enable_tray_monitor+set}" = set; then
12871 enableval="$enable_tray_monitor"
12872 if test x$enableval = xyes; then
12873 support_tray_monitor=yes
12878 if test x$support_tray_monitor = xyes; then
12879 abc=`$PKGCONFIG --exists gtk+-2.0`
12881 if test $pkg = 0; then
12882 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12883 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12886 TRAY_MONITOR_DIR=src/tray-monitor
12887 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12889 if test $pkg = 0; then
12890 cat >>confdefs.h <<\_ACEOF
12891 #define HAVE_GTK_2_4 1
12899 # -------------------------------------------
12900 # smartalloc (default off)
12901 # -------------------------------------------
12902 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12903 if test "${enable_smartalloc+set}" = set; then
12904 enableval="$enable_smartalloc"
12905 if test x$enableval = xno; then
12906 support_smartalloc=no
12910 if test x$support_smartalloc = xyes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define SMARTALLOC 1
12917 # -------------------------------------------
12918 # static-tools (default off)
12919 # -------------------------------------------
12920 # Check whether --enable-static-tools or --disable-static-tools was given.
12921 if test "${enable_static_tools+set}" = set; then
12922 enableval="$enable_static_tools"
12923 if test x$enableval = xyes; then
12924 support_static_tools=yes
12929 if test x$support_static_tools = xyes; then
12930 TTOOL_LDFLAGS="-static"
12934 # -------------------------------------------
12935 # static-fd (default off)
12936 # -------------------------------------------
12937 # Check whether --enable-static-fd or --disable-static-fd was given.
12938 if test "${enable_static_fd+set}" = set; then
12939 enableval="$enable_static_fd"
12940 if test x$enableval = xyes; then
12941 support_static_fd=yes
12946 if test x$support_static_fd = xyes; then
12947 STATIC_FD="static-bacula-fd"
12951 # -------------------------------------------
12952 # static-sd (default off)
12953 # -------------------------------------------
12954 # Check whether --enable-static-sd or --disable-static-sd was given.
12955 if test "${enable_static_sd+set}" = set; then
12956 enableval="$enable_static_sd"
12957 if test x$enableval = xyes; then
12958 support_static_sd=yes
12963 if test x$support_static_sd = xyes; then
12964 STATIC_SD="static-bacula-sd"
12968 # -------------------------------------------
12969 # static-dir (default off)
12970 # -------------------------------------------
12971 # Check whether --enable-static-dir or --disable-static-dir was given.
12972 if test "${enable_static_dir+set}" = set; then
12973 enableval="$enable_static_dir"
12974 if test x$enableval = xyes; then
12975 support_static_dir=yes
12980 if test x$support_static_dir = xyes; then
12981 STATIC_DIR="static-bacula-dir"
12985 # -------------------------------------------
12986 # static-cons (default off)
12987 # -------------------------------------------
12988 # Check whether --enable-static-cons or --disable-static-cons was given.
12989 if test "${enable_static_cons+set}" = set; then
12990 enableval="$enable_static_cons"
12991 if test x$enableval = xyes; then
12992 support_static_cons=yes
12999 if test x$support_static_cons = xyes; then
13000 STATIC_CONS="static-bconsole"
13001 STATIC_GNOME_CONS="static-gnome-console"
13002 STATIC_WX_CONS="static-wx-console"
13008 # -------------------------------------------
13009 # client_only (default off)
13010 # -------------------------------------------
13011 # Check whether --enable-client-only or --disable-client-only was given.
13012 if test "${enable_client_only+set}" = set; then
13013 enableval="$enable_client_only"
13014 if test x$enableval = xyes; then
13015 build_client_only=yes
13020 if test x$build_client_only = xno; then
13027 # -------------------------------------------
13028 # director (default on)
13029 # -------------------------------------------
13030 # Check whether --enable-build-dird or --disable-build-dird was given.
13031 if test "${enable_build_dird+set}" = set; then
13032 enableval="$enable_build_dird"
13033 if test x$enableval = xno; then
13037 if test x$build_dird = xyes; then
13038 DIRD_DIR="src/dird"
13039 DIR_TOOLS="DIRTOOLS"
13042 DIR_TOOLS="NODIRTOOLS"
13047 # -------------------------------------------
13048 # stored (default on)
13049 # -------------------------------------------
13050 # Check whether --enable-build-stored or --disable-build-stored was given.
13051 if test "${enable_build_stored+set}" = set; then
13052 enableval="$enable_build_stored"
13053 if test x$enableval = xno; then
13057 if test x$build_stored = xyes; then
13058 STORED_DIR="src/stored"
13064 # ---------------------------------------------------
13065 # Check for conio (Bacula readline substitute)(
13066 # ---------------------------------------------------
13067 # this allows you to turn it completely off
13068 # Check whether --enable-conio or --disable-conio was given.
13069 if test "${enable_conio+set}" = set; then
13070 enableval="$enable_conio"
13071 if test x$enableval = xno; then
13077 if test x$support_conio = xyes; then
13078 if test "${ac_cv_header_termcap_h+set}" = set; then
13079 echo "$as_me:$LINENO: checking for termcap.h" >&5
13080 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13081 if test "${ac_cv_header_termcap_h+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13085 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13087 # Is the header compilable?
13088 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13089 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13096 $ac_includes_default
13097 #include <termcap.h>
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_header_compiler=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_header_compiler=no
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13130 echo "${ECHO_T}$ac_header_compiler" >&6
13132 # Is the header present?
13133 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13134 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <termcap.h>
13143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } >/dev/null; then
13151 if test -s conftest.err; then
13152 ac_cpp_err=$ac_c_preproc_warn_flag
13153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13160 if test -z "$ac_cpp_err"; then
13161 ac_header_preproc=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_header_preproc=no
13168 rm -f conftest.err conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13170 echo "${ECHO_T}$ac_header_preproc" >&6
13172 # So? What about this header?
13173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13175 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13176 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13178 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13179 ac_header_preproc=yes
13182 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13183 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13185 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13187 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13189 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13193 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13196 ## ------------------------------------------ ##
13197 ## Report this to the AC_PACKAGE_NAME lists. ##
13198 ## ------------------------------------------ ##
13201 sed "s/^/$as_me: WARNING: /" >&2
13204 echo "$as_me:$LINENO: checking for termcap.h" >&5
13205 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13206 if test "${ac_cv_header_termcap_h+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 ac_cv_header_termcap_h=$ac_header_preproc
13211 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13212 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13215 if test $ac_cv_header_termcap_h = yes; then
13216 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13217 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13218 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-ltermcap $LIBS"
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13230 /* Override any gcc2 internal prototype to avoid an error. */
13234 /* We use char because int might match the return type of a gcc2
13235 builtin and then its argument prototype would still apply. */
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247 (eval $ac_link) 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest$ac_exeext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_lib_termcap_tgetent=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_lib_termcap_tgetent=no
13274 rm -f conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13278 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13279 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13280 if test $ac_cv_lib_termcap_tgetent = yes; then
13281 CONS_LIBS="-ltermcap"
13285 support_readline=no
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_CONIO 1
13293 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13294 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13295 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-lncurses $LIBS"
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13307 /* Override any gcc2 internal prototype to avoid an error. */
13311 /* We use char because int might match the return type of a gcc2
13312 builtin and then its argument prototype would still apply. */
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 ac_cv_lib_ncurses_tgetent=yes
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_cv_lib_ncurses_tgetent=no
13351 rm -f conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13355 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13356 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13357 if test $ac_cv_lib_ncurses_tgetent = yes; then
13358 CONS_LIBS="-lncurses"
13362 support_readline=no
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_CONIO 1
13378 for ac_header in curses.h
13380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382 echo "$as_me:$LINENO: checking for $ac_header" >&5
13383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13390 # Is the header compilable?
13391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 $ac_includes_default
13400 #include <$ac_header>
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>conftest.er1
13406 grep -v '^ *+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -z "$ac_c_werror_flag"
13412 || test ! -s conftest.err'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest.$ac_objext'
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; }; then
13424 ac_header_compiler=yes
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 ac_header_compiler=no
13431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13433 echo "${ECHO_T}$ac_header_compiler" >&6
13435 # Is the header present?
13436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <$ac_header>
13446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } >/dev/null; then
13454 if test -s conftest.err; then
13455 ac_cpp_err=$ac_c_preproc_warn_flag
13456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13463 if test -z "$ac_cpp_err"; then
13464 ac_header_preproc=yes
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_header_preproc=no
13471 rm -f conftest.err conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13473 echo "${ECHO_T}$ac_header_preproc" >&6
13475 # So? What about this header?
13476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13482 ac_header_preproc=yes
13485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13499 ## ------------------------------------------ ##
13500 ## Report this to the AC_PACKAGE_NAME lists. ##
13501 ## ------------------------------------------ ##
13504 sed "s/^/$as_me: WARNING: /" >&2
13507 echo "$as_me:$LINENO: checking for $ac_header" >&5
13508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 eval "$as_ac_Header=\$ac_header_preproc"
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519 cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13527 echo "$as_me:$LINENO: checking for term.h" >&5
13528 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13529 if test "${ac_cv_header_term_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13539 #include <curses.h>
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 ac_cv_header_term_h=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 ac_cv_header_term_h=no
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13576 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13577 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13578 if test $ac_cv_header_term_h = yes; then
13579 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13580 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13581 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lcurses $LIBS"
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 /* Override any gcc2 internal prototype to avoid an error. */
13597 /* We use char because int might match the return type of a gcc2
13598 builtin and then its argument prototype would still apply. */
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_cv_lib_curses_tgetent=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_cv_lib_curses_tgetent=no
13637 rm -f conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13641 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13642 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13643 if test $ac_cv_lib_curses_tgetent = yes; then
13644 CONS_LIBS="-lcurses"
13648 support_readline=no
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_CONIO 1
13659 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13670 # ---------------------------------------------------
13671 # Check for readline support/directory (default off)
13672 # ---------------------------------------------------
13673 # this allows you to turn it completely off
13674 # Check whether --enable-readline or --disable-readline was given.
13675 if test "${enable_readline+set}" = set; then
13676 enableval="$enable_readline"
13677 if test x$enableval = xno; then
13678 support_readline=no
13684 if test x$support_readline = xyes; then
13686 # Check whether --with-readline or --without-readline was given.
13687 if test "${with_readline+set}" = set; then
13688 withval="$with_readline"
13690 case "$with_readline" in
13693 if test -f ${with_readline}/readline.h; then
13694 CONS_INC="-I${with_readline}"
13695 CONS_LDFLAGS="-L$with_readline"
13696 elif test -f ${with_readline}/include/readline/readline.h; then
13697 CONS_INC="-I${with_readline}/include/readline"
13698 CONS_LDFLAGS="-L${with_readline}/lib"
13699 with_readline="${with_readline}/include/readline"
13701 with_readline="/usr/include/readline"
13703 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13705 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13706 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13713 # Is the header compilable?
13714 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13715 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 #include <${with_readline}/readline.h>
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727 (eval $ac_compile) 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } &&
13734 { ac_try='test -z "$ac_c_werror_flag"
13735 || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest.$ac_objext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_header_compiler=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13752 ac_header_compiler=no
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6
13758 # Is the header present?
13759 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13760 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <${with_readline}/readline.h>
13769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13772 grep -v '^ *+' conftest.er1 >conftest.err
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } >/dev/null; then
13777 if test -s conftest.err; then
13778 ac_cpp_err=$ac_c_preproc_warn_flag
13779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13786 if test -z "$ac_cpp_err"; then
13787 ac_header_preproc=yes
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_header_preproc=no
13794 rm -f conftest.err conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13796 echo "${ECHO_T}$ac_header_preproc" >&6
13798 # So? What about this header?
13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13801 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13805 ac_header_preproc=yes
13808 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13813 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13815 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13817 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13819 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13822 ## ------------------------------------------ ##
13823 ## Report this to the AC_PACKAGE_NAME lists. ##
13824 ## ------------------------------------------ ##
13827 sed "s/^/$as_me: WARNING: /" >&2
13830 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13831 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 eval "$as_ac_Header=\$ac_header_preproc"
13837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13842 cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_READLINE 1
13846 CONS_LIBS="-lreadline -lhistory -ltermcap"
13851 echo "readline.h not found. readline turned off ..."
13863 # check for standard readline library
13864 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13865 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13866 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13867 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13871 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13873 # Is the header compilable?
13874 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13875 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882 $ac_includes_default
13883 #include </usr/include/readline/readline.h>
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>conftest.er1
13889 grep -v '^ *+' conftest.er1 >conftest.err
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag"
13895 || test ! -s conftest.err'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest.$ac_objext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_header_compiler=yes
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_header_compiler=no
13914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6
13918 # Is the header present?
13919 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13920 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13921 cat >conftest.$ac_ext <<_ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #include </usr/include/readline/readline.h>
13929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } >/dev/null; then
13937 if test -s conftest.err; then
13938 ac_cpp_err=$ac_c_preproc_warn_flag
13939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13946 if test -z "$ac_cpp_err"; then
13947 ac_header_preproc=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_preproc=no
13954 rm -f conftest.err conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13956 echo "${ECHO_T}$ac_header_preproc" >&6
13958 # So? What about this header?
13959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13961 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13965 ac_header_preproc=yes
13968 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13973 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13975 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13979 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13982 ## ------------------------------------------ ##
13983 ## Report this to the AC_PACKAGE_NAME lists. ##
13984 ## ------------------------------------------ ##
13987 sed "s/^/$as_me: WARNING: /" >&2
13990 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13991 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13992 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13997 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13998 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14001 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_READLINE 1
14007 CONS_INC="-I/usr/include/readline"
14008 CONS_LIBS="-lreadline -ltermcap"
14012 # Did not find standard library, so try Bacula's default
14013 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14016 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14023 # Is the header compilable?
14024 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14025 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 $ac_includes_default
14033 #include <${TOP_DIR}/depkgs/readline/readline.h>
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag"
14045 || test ! -s conftest.err'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest.$ac_objext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_header_compiler=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14066 echo "${ECHO_T}$ac_header_compiler" >&6
14068 # Is the header present?
14069 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14070 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #include <${TOP_DIR}/depkgs/readline/readline.h>
14079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } >/dev/null; then
14087 if test -s conftest.err; then
14088 ac_cpp_err=$ac_c_preproc_warn_flag
14089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14096 if test -z "$ac_cpp_err"; then
14097 ac_header_preproc=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_header_preproc=no
14104 rm -f conftest.err conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc=yes
14118 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14132 ## ------------------------------------------ ##
14133 ## Report this to the AC_PACKAGE_NAME lists. ##
14134 ## ------------------------------------------ ##
14137 sed "s/^/$as_me: WARNING: /" >&2
14140 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14141 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 eval "$as_ac_Header=\$ac_header_preproc"
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14152 cat >>confdefs.h <<\_ACEOF
14153 #define HAVE_READLINE 1
14157 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14158 CONS_LIBS="-lreadline -lhistory -ltermcap"
14159 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14160 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14164 echo "readline.h not found. readline turned off ..."
14190 # Minimal stuff for readline Makefile configuration
14193 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14194 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14195 if test "${ac_cv_header_stat_broken+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 cat >conftest.$ac_ext <<_ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14204 #include <sys/types.h>
14205 #include <sys/stat.h>
14207 #if defined(S_ISBLK) && defined(S_IFDIR)
14208 # if S_ISBLK (S_IFDIR)
14213 #if defined(S_ISBLK) && defined(S_IFCHR)
14214 # if S_ISBLK (S_IFCHR)
14219 #if defined(S_ISLNK) && defined(S_IFREG)
14220 # if S_ISLNK (S_IFREG)
14225 #if defined(S_ISSOCK) && defined(S_IFREG)
14226 # if S_ISSOCK (S_IFREG)
14232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14233 $EGREP "You lose" >/dev/null 2>&1; then
14234 ac_cv_header_stat_broken=yes
14236 ac_cv_header_stat_broken=no
14241 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14242 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14243 if test $ac_cv_header_stat_broken = yes; then
14245 cat >>confdefs.h <<\_ACEOF
14246 #define STAT_MACROS_BROKEN 1
14256 ac_header_dirent=no
14257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14258 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14259 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14260 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 cat >conftest.$ac_ext <<_ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 #include <sys/types.h>
14282 rm -f conftest.$ac_objext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284 (eval $ac_compile) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -z "$ac_c_werror_flag"
14292 || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 eval "$as_ac_Header=yes"
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 eval "$as_ac_Header=no"
14311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316 cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14320 ac_header_dirent=$ac_hdr; break
14324 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14325 if test $ac_header_dirent = dirent.h; then
14326 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14328 if test "${ac_cv_search_opendir+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 ac_func_search_save_LIBS=$LIBS
14332 ac_cv_search_opendir=no
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357 (eval $ac_link) 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest$ac_exeext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_search_opendir="none required"
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14383 rm -f conftest.err conftest.$ac_objext \
14384 conftest$ac_exeext conftest.$ac_ext
14385 if test "$ac_cv_search_opendir" = no; then
14386 for ac_lib in dir; do
14387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14395 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_search_opendir="-l$ac_lib"
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14439 rm -f conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14445 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14447 if test "$ac_cv_search_opendir" != no; then
14448 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14453 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14454 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 ac_func_search_save_LIBS=$LIBS
14459 ac_cv_search_opendir=no
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14467 /* Override any gcc2 internal prototype to avoid an error. */
14471 /* We use char because int might match the return type of a gcc2
14472 builtin and then its argument prototype would still apply. */
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484 (eval $ac_link) 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest$ac_exeext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_cv_search_opendir="none required"
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14510 rm -f conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 if test "$ac_cv_search_opendir" = no; then
14513 for ac_lib in x; do
14514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag"
14547 || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_cv_search_opendir="-l$ac_lib"
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14566 rm -f conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_func_search_save_LIBS
14572 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14573 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14574 if test "$ac_cv_search_opendir" != no; then
14575 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14588 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 echo "$as_me:$LINENO: checking for $ac_func" >&5
14592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14593 if eval "test \"\${$as_ac_var+set}\" = set"; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14604 #define $ac_func innocuous_$ac_func
14606 /* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char $ac_func (); below.
14608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609 <limits.h> exists even on freestanding compilers. */
14612 # include <limits.h>
14614 # include <assert.h>
14619 /* Override any gcc2 internal prototype to avoid an error. */
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14627 /* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14633 char (*f) () = $ac_func;
14642 return f != $ac_func;
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag"
14657 || test ! -s conftest.err'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; } &&
14663 { ac_try='test -s conftest$ac_exeext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 eval "$as_ac_var=yes"
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 eval "$as_ac_var=no"
14676 rm -f conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682 cat >>confdefs.h <<_ACEOF
14683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14691 for ac_func in nanosleep nl_langinfo
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14707 #define $ac_func innocuous_$ac_func
14709 /* System header to define __stub macros and hopefully few prototypes,
14710 which can conflict with char $ac_func (); below.
14711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712 <limits.h> exists even on freestanding compilers. */
14715 # include <limits.h>
14717 # include <assert.h>
14722 /* Override any gcc2 internal prototype to avoid an error. */
14727 /* We use char because int might match the return type of a gcc2
14728 builtin and then its argument prototype would still apply. */
14730 /* The GNU C library defines this for functions which it implements
14731 to always fail with ENOSYS. Some functions are actually named
14732 something starting with __ and the normal name is an alias. */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14736 char (*f) () = $ac_func;
14745 return f != $ac_func;
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752 (eval $ac_link) 2>conftest.er1
14754 grep -v '^ *+' conftest.er1 >conftest.err
14756 cat conftest.err >&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); } &&
14759 { ac_try='test -z "$ac_c_werror_flag"
14760 || test ! -s conftest.err'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; } &&
14766 { ac_try='test -s conftest$ac_exeext'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 eval "$as_ac_var=yes"
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14777 eval "$as_ac_var=no"
14779 rm -f conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14784 if test `eval echo '${'$as_ac_var'}'` = yes; then
14785 cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793 for ac_header in varargs.h
14795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14797 echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14805 # Is the header compilable?
14806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 $ac_includes_default
14815 #include <$ac_header>
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819 (eval $ac_compile) 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try='test -z "$ac_c_werror_flag"
14827 || test ! -s conftest.err'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try='test -s conftest.$ac_objext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_header_compiler=yes
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14844 ac_header_compiler=no
14846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6
14850 # Is the header present?
14851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <$ac_header>
14861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } >/dev/null; then
14869 if test -s conftest.err; then
14870 ac_cpp_err=$ac_c_preproc_warn_flag
14871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14878 if test -z "$ac_cpp_err"; then
14879 ac_header_preproc=yes
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 ac_header_preproc=no
14886 rm -f conftest.err conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888 echo "${ECHO_T}$ac_header_preproc" >&6
14890 # So? What about this header?
14891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897 ac_header_preproc=yes
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14914 ## ------------------------------------------ ##
14915 ## Report this to the AC_PACKAGE_NAME lists. ##
14916 ## ------------------------------------------ ##
14919 sed "s/^/$as_me: WARNING: /" >&2
14922 echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 eval "$as_ac_Header=\$ac_header_preproc"
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14934 cat >>confdefs.h <<_ACEOF
14935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14943 # End of readline/conio stuff
14944 # -----------------------------------------------------------------------
14946 # -----------------------------------------------------------------------
14947 # Check for Python support
14949 echo "$as_me:$LINENO: checking for Python support" >&5
14950 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14952 # Check whether --with-python or --without-python was given.
14953 if test "${with_python+set}" = set; then
14954 withval="$with_python"
14958 if test "$withval" != "no"; then
14959 if test "$withval" = "yes"; then
14960 for python_root in /usr /usr/local /usr/sfw; do
14961 if test -f $python_root/include/python2.2/Python.h; then
14962 PYTHON_INCDIR=-I$python_root/include/python2.2
14963 if test -d $python_root/lib64/python2.2/config; then
14964 PYTHON_LIBS="-L$python_root/lib64/python2.2/config -lpython2.2"
14966 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14969 elif test -f $python_root/include/python2.3/Python.h; then
14970 PYTHON_INCDIR=-I$python_root/include/python2.3
14971 if test -d $python_root/lib64/python2.3/config; then
14972 PYTHON_LIBS="-L$python_root/lib64/python2.3/config -lpython2.3"
14974 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14977 elif test -f $python_root/include/python2.4/Python.h; then
14978 PYTHON_INCDIR=-I$python_root/include/python2.4
14979 if test -d $python_root/lib64/python2.4/config; then
14980 PYTHON_LIBS="-L$python_root/lib64/python2.4/config -lpython2.4"
14982 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14987 if test x$PYTHON_INCDIR = x; then
14988 if test -f $prefix/include/Python.h; then
14989 PYTHON_INCDIR=-I$prefix/include
14990 if test -d $prefix/lib64/config; then
14991 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
14993 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14996 echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6
14998 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14999 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15000 { (exit 1); exit 1; }; }
15004 if test -f $withval/Python.h; then
15005 PYTHON_INCDIR=-I$withval
15006 PYTHON_LIBS="-L$withval/config -lpython"
15007 elif test -f $withval/include/Python.h; then
15008 PYTHON_INCDIR=-I$withval/include
15009 if test -d $withval/lib64/config; then
15010 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15012 PYTHON_LIBS="-L$withval/lib/config -lpython"
15014 elif test -f $withval/include/python/Python.h; then
15015 PYTHON_INCDIR=-I$withval/include/python
15016 if test -d $withval/lib64/python/config; then
15017 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15019 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15022 echo "$as_me:$LINENO: result: no" >&5
15023 echo "${ECHO_T}no" >&6
15024 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15025 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15026 { (exit 1); exit 1; }; }
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_PYTHON 1
15033 echo "$as_me:$LINENO: result: yes" >&5
15034 echo "${ECHO_T}yes" >&6
15036 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15037 echo "$as_me: checking for more Python libs" >&6;}
15038 saved_LIBS="$LIBS"; LIBS=
15039 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15040 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15041 if test "${ac_cv_search_shm_open+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 ac_func_search_save_LIBS=$LIBS
15045 ac_cv_search_shm_open=no
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15070 (eval $ac_link) 2>conftest.er1
15072 grep -v '^ *+' conftest.er1 >conftest.err
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -z "$ac_c_werror_flag"
15078 || test ! -s conftest.err'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest$ac_exeext'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_search_shm_open="none required"
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15096 rm -f conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15098 if test "$ac_cv_search_shm_open" = no; then
15099 for ac_lib in rt; do
15100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15108 /* Override any gcc2 internal prototype to avoid an error. */
15112 /* We use char because int might match the return type of a gcc2
15113 builtin and then its argument prototype would still apply. */
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_search_shm_open="-l$ac_lib"
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15152 rm -f conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_func_search_save_LIBS
15158 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15159 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15160 if test "$ac_cv_search_shm_open" != no; then
15161 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15166 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15167 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15168 if test "${ac_cv_lib_util_openpty+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 ac_check_lib_save_LIBS=$LIBS
15172 LIBS="-lutil $LIBS"
15173 cat >conftest.$ac_ext <<_ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15180 /* Override any gcc2 internal prototype to avoid an error. */
15184 /* We use char because int might match the return type of a gcc2
15185 builtin and then its argument prototype would still apply. */
15195 rm -f conftest.$ac_objext conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197 (eval $ac_link) 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest$ac_exeext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 ac_cv_lib_util_openpty=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_util_openpty=no
15224 rm -f conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15228 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15229 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15230 if test $ac_cv_lib_util_openpty = yes; then
15231 cat >>confdefs.h <<_ACEOF
15232 #define HAVE_LIBUTIL 1
15235 LIBS="-lutil $LIBS"
15239 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15242 echo "$as_me:$LINENO: result: no" >&5
15243 echo "${ECHO_T}no" >&6
15248 echo "$as_me:$LINENO: result: no" >&5
15249 echo "${ECHO_T}no" >&6
15257 # Find where sockets are (especially for Solaris)
15258 # Do this before the TCP Wrappers test since tcp wrappers
15259 # uses the socket library and some linkers are stupid.
15261 echo "$as_me:$LINENO: checking for socket" >&5
15262 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15263 if test "${ac_cv_func_socket+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15274 #define socket innocuous_socket
15276 /* System header to define __stub macros and hopefully few prototypes,
15277 which can conflict with char socket (); below.
15278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15279 <limits.h> exists even on freestanding compilers. */
15282 # include <limits.h>
15284 # include <assert.h>
15289 /* Override any gcc2 internal prototype to avoid an error. */
15294 /* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15297 /* The GNU C library defines this for functions which it implements
15298 to always fail with ENOSYS. Some functions are actually named
15299 something starting with __ and the normal name is an alias. */
15300 #if defined (__stub_socket) || defined (__stub___socket)
15303 char (*f) () = socket;
15312 return f != socket;
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>conftest.er1
15321 grep -v '^ *+' conftest.er1 >conftest.err
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
15326 { ac_try='test -z "$ac_c_werror_flag"
15327 || test ! -s conftest.err'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; } &&
15333 { ac_try='test -s conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 ac_cv_func_socket=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_cv_func_socket=no
15346 rm -f conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15350 echo "${ECHO_T}$ac_cv_func_socket" >&6
15351 if test $ac_cv_func_socket = yes; then
15352 echo "$as_me:$LINENO: result: using libc's socket" >&5
15353 echo "${ECHO_T}using libc's socket" >&6
15356 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15357 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15358 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 ac_check_lib_save_LIBS=$LIBS
15362 LIBS="-lxnet $LIBS"
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15370 /* Override any gcc2 internal prototype to avoid an error. */
15374 /* We use char because int might match the return type of a gcc2
15375 builtin and then its argument prototype would still apply. */
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387 (eval $ac_link) 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_c_werror_flag"
15395 || test ! -s conftest.err'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; } &&
15401 { ac_try='test -s conftest$ac_exeext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_cv_lib_xnet_socket=yes
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 ac_cv_lib_xnet_socket=no
15414 rm -f conftest.err conftest.$ac_objext \
15415 conftest$ac_exeext conftest.$ac_ext
15416 LIBS=$ac_check_lib_save_LIBS
15418 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15419 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15420 if test $ac_cv_lib_xnet_socket = yes; then
15421 cat >>confdefs.h <<_ACEOF
15422 #define HAVE_LIBXNET 1
15425 LIBS="-lxnet $LIBS"
15430 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15431 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15432 if test "${ac_cv_lib_socket_socket+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 ac_check_lib_save_LIBS=$LIBS
15436 LIBS="-lsocket $LIBS"
15437 cat >conftest.$ac_ext <<_ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15444 /* Override any gcc2 internal prototype to avoid an error. */
15448 /* We use char because int might match the return type of a gcc2
15449 builtin and then its argument prototype would still apply. */
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15461 (eval $ac_link) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_lib_socket_socket=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_lib_socket_socket=no
15488 rm -f conftest.err conftest.$ac_objext \
15489 conftest$ac_exeext conftest.$ac_ext
15490 LIBS=$ac_check_lib_save_LIBS
15492 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15493 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15494 if test $ac_cv_lib_socket_socket = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define HAVE_LIBSOCKET 1
15499 LIBS="-lsocket $LIBS"
15504 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15505 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15506 if test "${ac_cv_lib_inet_socket+set}" = set; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 ac_check_lib_save_LIBS=$LIBS
15510 LIBS="-linet $LIBS"
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15518 /* Override any gcc2 internal prototype to avoid an error. */
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535 (eval $ac_link) 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
15542 { ac_try='test -z "$ac_c_werror_flag"
15543 || test ! -s conftest.err'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest$ac_exeext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_lib_inet_socket=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_lib_inet_socket=no
15562 rm -f conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15566 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15567 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15568 if test $ac_cv_lib_inet_socket = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_LIBINET 1
15573 LIBS="-linet $LIBS"
15581 # -----------------------------------------------------------
15582 # Check whether user wants TCP wrappers support (default off)
15583 # -----------------------------------------------------------
15587 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15588 if test "${with_tcp_wrappers+set}" = set; then
15589 withval="$with_tcp_wrappers"
15591 if test "x$withval" != "xno" ; then
15593 LIBS="$saved_LIBS -lwrap"
15594 echo "$as_me:$LINENO: checking for libwrap" >&5
15595 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15596 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15597 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15598 if test "${ac_cv_search_nanosleep+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_func_search_save_LIBS=$LIBS
15602 ac_cv_search_nanosleep=no
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_cv_search_nanosleep="none required"
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15653 rm -f conftest.err conftest.$ac_objext \
15654 conftest$ac_exeext conftest.$ac_ext
15655 if test "$ac_cv_search_nanosleep" = no; then
15656 for ac_lib in rt; do
15657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15665 /* Override any gcc2 internal prototype to avoid an error. */
15669 /* We use char because int might match the return type of a gcc2
15670 builtin and then its argument prototype would still apply. */
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_c_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_cv_search_nanosleep="-l$ac_lib"
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15709 rm -f conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15713 LIBS=$ac_func_search_save_LIBS
15715 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15716 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15717 if test "$ac_cv_search_nanosleep" != no; then
15718 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 #include <sys/types.h>
15730 int deny_severity = 0;
15731 int allow_severity = 0;
15732 struct request_info *req;
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743 (eval $ac_link) 2>conftest.er1
15745 grep -v '^ *+' conftest.er1 >conftest.err
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -z "$ac_c_werror_flag"
15751 || test ! -s conftest.err'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest$ac_exeext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15764 echo "$as_me:$LINENO: result: yes" >&5
15765 echo "${ECHO_T}yes" >&6
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_LIBWRAP 1
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15779 LIBS="$saved_LIBS -lwrap -lnsl"
15780 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 #include <sys/types.h>
15789 int deny_severity = 0;
15790 int allow_severity = 0;
15791 struct request_info *req;
15800 rm -f conftest.$ac_objext conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802 (eval $ac_link) 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15823 echo "$as_me:$LINENO: result: yes" >&5
15824 echo "${ECHO_T}yes" >&6
15825 cat >>confdefs.h <<\_ACEOF
15826 #define HAVE_LIBWRAP 1
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15838 echo "$as_me: error: *** libwrap missing" >&2;}
15839 { (exit 1); exit 1; }; }
15842 rm -f conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15846 rm -f conftest.err conftest.$ac_objext \
15847 conftest$ac_exeext conftest.$ac_ext
15853 # -----------------------------------------------------------
15854 # Check whether OpenSSL is available
15855 # -----------------------------------------------------------
15856 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15857 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15859 # Check whether --with-openssl or --without-openssl was given.
15860 if test "${with_openssl+set}" = set; then
15861 withval="$with_openssl"
15862 with_openssl_directory=${withval}
15865 if test "x$with_openssl_directory" != "x"; then
15866 OPENSSL_LIBS="-lssl -lcrypto"
15869 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15870 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15871 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15874 saved_LIBS="${LIBS}"
15875 saved_CFLAGS="${CFLAGS}"
15876 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15877 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <openssl/ssl.h>
15889 CRYPTO_set_id_callback(NULL);
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15896 (eval $ac_link) 2>conftest.er1
15898 grep -v '^ *+' conftest.er1 >conftest.err
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try='test -z "$ac_c_werror_flag"
15904 || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15918 support_crypto="yes"
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15927 rm -f conftest.err conftest.$ac_objext \
15928 conftest$ac_exeext conftest.$ac_ext
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <openssl/evp.h>
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>conftest.er1
15949 grep -v '^ *+' conftest.er1 >conftest.err
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest$ac_exeext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_cv_openssl_sha2="yes"
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_cv_openssl_sha2="no"
15975 rm -f conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15978 LIBS="${saved_LIBS}"
15979 CFLAGS="${saved_CFLAGS}"
15981 if test "$support_tls" = "yes"; then
15983 cat >>confdefs.h <<\_ACEOF
15984 #define HAVE_OPENSSL 1
15988 cat >>confdefs.h <<\_ACEOF
15993 cat >>confdefs.h <<\_ACEOF
15994 #define HAVE_CRYPTO 1
15999 if test "$ac_cv_openssl_sha2" = "yes"; then
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_SHA2 1
16008 support_crypto="no"
16013 echo "$as_me:$LINENO: result: $support_tls" >&5
16014 echo "${ECHO_T}$support_tls" >&6
16019 # -----------------------------------------------------------
16020 # Python and OpenSSL are using dlopen
16021 # -----------------------------------------------------------
16023 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16024 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16025 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16026 if test "${ac_cv_search_dlopen+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 ac_func_search_save_LIBS=$LIBS
16030 ac_cv_search_dlopen=no
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16038 /* Override any gcc2 internal prototype to avoid an error. */
16042 /* We use char because int might match the return type of a gcc2
16043 builtin and then its argument prototype would still apply. */
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 (eval $ac_link) 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag"
16063 || test ! -s conftest.err'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; }; then
16075 ac_cv_search_dlopen="none required"
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16081 rm -f conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 if test "$ac_cv_search_dlopen" = no; then
16084 for ac_lib in dl; do
16085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16093 /* Override any gcc2 internal prototype to avoid an error. */
16097 /* We use char because int might match the return type of a gcc2
16098 builtin and then its argument prototype would still apply. */
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16110 (eval $ac_link) 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag"
16118 || test ! -s conftest.err'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest$ac_exeext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_cv_search_dlopen="-l$ac_lib"
16133 echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16137 rm -f conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_func_search_save_LIBS
16143 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16144 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16145 if test "$ac_cv_search_dlopen" != no; then
16146 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16152 # ------------------------------------------
16153 # Where to place working dir
16154 # ------------------------------------------
16155 working_dir=`eval echo ${prefix}/var/bacula/working`
16157 # Check whether --with-working-dir or --without-working-dir was given.
16158 if test "${with_working_dir+set}" = set; then
16159 withval="$with_working_dir"
16161 if test "x$withval" != "xno" ; then
16162 working_dir=$withval
16171 # ------------------------------------------
16172 # Where to place scriptdir (script files)
16173 # ------------------------------------------
16174 scriptdir=`eval echo ${sysconfdir}`
16176 # Check whether --with-scriptdir or --without-scriptdir was given.
16177 if test "${with_scriptdir+set}" = set; then
16178 withval="$with_scriptdir"
16180 if test "x$withval" != "xno" ; then
16190 # ------------------------------------------
16191 # Where to send dump email
16192 # ------------------------------------------
16193 dump_email=root@localhost
16195 # Check whether --with-dump-email or --without-dump-email was given.
16196 if test "${with_dump_email+set}" = set; then
16197 withval="$with_dump_email"
16199 if test "x$withval" != "xno" ; then
16200 dump_email=$withval
16208 # ------------------------------------------
16209 # Where to send job email
16210 # ------------------------------------------
16211 job_email=root@localhost
16213 # Check whether --with-job-email or --without-job-email was given.
16214 if test "${with_job_email+set}" = set; then
16215 withval="$with_job_email"
16217 if test "x$withval" != "xno" ; then
16226 # ------------------------------------------
16227 # Where to find smtp host
16228 # ------------------------------------------
16229 smtp_host=localhost
16231 # Check whether --with-smtp_host or --without-smtp_host was given.
16232 if test "${with_smtp_host+set}" = set; then
16233 withval="$with_smtp_host"
16235 if test "x$withval" != "xno" ; then
16245 # ------------------------------------
16246 # Where to place pid files
16247 # ------------------------------------
16250 # Check whether --with-pid-dir or --without-pid-dir was given.
16251 if test "${with_pid_dir+set}" = set; then
16252 withval="$with_pid_dir"
16254 if test "x$withval" != "xno" ; then
16261 cat >>confdefs.h <<_ACEOF
16262 #define _PATH_BACULA_PIDDIR "$piddir"
16268 # ------------------------------------
16269 # Where to place subsys "lock file"
16270 # ------------------------------------
16271 subsysdir=/var/run/subsys
16273 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16274 if test "${with_subsys_dir+set}" = set; then
16275 withval="$with_subsys_dir"
16277 if test "x$withval" != "xno" ; then
16288 # ------------------------------------
16289 # Where to start assigning ports
16290 # ------------------------------------
16293 # Check whether --with-baseport or --without-baseport was given.
16294 if test "${with_baseport+set}" = set; then
16295 withval="$with_baseport"
16297 if test "x$withval" != "xno" ; then
16305 dir_port=`expr $baseport`
16306 fd_port=`expr $baseport + 1`
16307 sd_port=`expr $fd_port + 1`
16314 # ------------------------------------------
16315 # Generate passwords
16316 # ------------------------------------------
16319 # Check whether --with-dir-password or --without-dir-password was given.
16320 if test "${with_dir_password+set}" = set; then
16321 withval="$with_dir_password"
16323 if test "x$withval" != "xno" ; then
16324 dir_password=$withval
16330 if test "x$dir_password" = "x" ; then
16331 if test "x$OPENSSL" = "xnone" ; then
16332 key=`autoconf/randpass 33`
16334 key=`openssl rand -base64 33`
16341 # Check whether --with-fd-password or --without-fd-password was given.
16342 if test "${with_fd_password+set}" = set; then
16343 withval="$with_fd_password"
16345 if test "x$withval" != "xno" ; then
16346 fd_password=$withval
16352 if test "x$fd_password" = "x" ; then
16353 if test "x$OPENSSL" = "xnone" ; then
16354 key=`autoconf/randpass 37`
16356 key=`openssl rand -base64 33`
16363 # Check whether --with-sd-password or --without-sd-password was given.
16364 if test "${with_sd_password+set}" = set; then
16365 withval="$with_sd_password"
16367 if test "x$withval" != "xno" ; then
16368 sd_password=$withval
16374 if test "x$sd_password" = "x" ; then
16375 if test "x$OPENSSL" = "xnone" ; then
16376 key=`autoconf/randpass 41`
16378 key=`openssl rand -base64 33`
16385 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16386 if test "${with_mon_dir_password+set}" = set; then
16387 withval="$with_mon_dir_password"
16389 if test "x$withval" != "xno" ; then
16390 mon_dir_password=$withval
16396 if test "x$mon_dir_password" = "x" ; then
16397 if test "x$OPENSSL" = "xnone" ; then
16398 key=`autoconf/randpass 33`
16400 key=`openssl rand -base64 33`
16402 mon_dir_password=$key
16407 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16408 if test "${with_mon_fd_password+set}" = set; then
16409 withval="$with_mon_fd_password"
16411 if test "x$withval" != "xno" ; then
16412 mon_fd_password=$withval
16418 if test "x$mon_fd_password" = "x" ; then
16419 if test "x$OPENSSL" = "xnone" ; then
16420 key=`autoconf/randpass 37`
16422 key=`openssl rand -base64 33`
16424 mon_fd_password=$key
16429 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16430 if test "${with_mon_sd_password+set}" = set; then
16431 withval="$with_mon_sd_password"
16433 if test "x$withval" != "xno" ; then
16434 mon_sd_password=$withval
16440 if test "x$mon_sd_password" = "x" ; then
16441 if test "x$OPENSSL" = "xnone" ; then
16442 key=`autoconf/randpass 41`
16444 key=`openssl rand -base64 33`
16446 mon_sd_password=$key
16458 # Handle users and groups for each daemon
16462 # Check whether --with-dir_user or --without-dir_user was given.
16463 if test "${with_dir_user+set}" = set; then
16464 withval="$with_dir_user"
16466 if test "x$withval" != "x" ; then
16475 # Check whether --with-dir_group or --without-dir_group was given.
16476 if test "${with_dir_group+set}" = set; then
16477 withval="$with_dir_group"
16479 if test "x$withval" != "x" ; then
16488 # Check whether --with-sd_user or --without-sd_user was given.
16489 if test "${with_sd_user+set}" = set; then
16490 withval="$with_sd_user"
16492 if test "x$withval" != "x" ; then
16501 # Check whether --with-sd_group or --without-sd_group was given.
16502 if test "${with_sd_group+set}" = set; then
16503 withval="$with_sd_group"
16505 if test "x$withval" != "x" ; then
16514 # Check whether --with-fd_user or --without-fd_user was given.
16515 if test "${with_fd_user+set}" = set; then
16516 withval="$with_fd_user"
16518 if test "x$withval" != "x" ; then
16527 # Check whether --with-fd_group or --without-fd_group was given.
16528 if test "${with_fd_group+set}" = set; then
16529 withval="$with_fd_group"
16531 if test "x$withval" != "x" ; then
16549 # allow setting default executable permissions
16553 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16554 if test "${with_sbin_perm+set}" = set; then
16555 withval="$with_sbin_perm"
16557 if test "x$withval" != "x" ; then
16566 # ------------------------------------------------
16567 # Bacula check for various SQL database engines
16568 # ------------------------------------------------
16571 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16572 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16574 # Check whether --with-postgresql or --without-postgresql was given.
16575 if test "${with_postgresql+set}" = set; then
16576 withval="$with_postgresql"
16578 if test "$withval" != "no"; then
16579 if test "$db_found" = "yes"; then
16580 echo "$as_me:$LINENO: result: error" >&5
16581 echo "${ECHO_T}error" >&6
16582 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16583 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16584 { (exit 1); exit 1; }; };
16586 if test "$withval" = "yes"; then
16587 PG_CONFIG=`which pg_config`
16588 if test -n "$PG_CONFIG";then
16589 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16590 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16591 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16592 elif test -f /usr/local/include/libpq-fe.h; then
16593 POSTGRESQL_INCDIR=/usr/local/include
16594 if test -d /usr/local/lib64; then
16595 POSTGRESQL_LIBDIR=/usr/local/lib64
16597 POSTGRESQL_LIBDIR=/usr/local/lib
16599 POSTGRESQL_BINDIR=/usr/local/bin
16600 elif test -f /usr/include/libpq-fe.h; then
16601 POSTGRESQL_INCDIR=/usr/include
16602 if test -d /usr/lib64; then
16603 POSTGRESQL_LIBDIR=/usr/lib64
16605 POSTGRESQL_LIBDIR=/usr/lib
16607 POSTGRESQL_BINDIR=/usr/bin
16608 elif test -f /usr/include/pgsql/libpq-fe.h; then
16609 POSTGRESQL_INCDIR=/usr/include/pgsql
16610 if test -d /usr/lib64/pgsql; then
16611 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16613 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16615 POSTGRESQL_BINDIR=/usr/bin
16616 elif test -f /usr/include/postgresql/libpq-fe.h; then
16617 POSTGRESQL_INCDIR=/usr/include/postgresql
16618 if test -d /usr/lib64/postgresql; then
16619 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16621 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16623 POSTGRESQL_BINDIR=/usr/bin
16625 echo "$as_me:$LINENO: result: no" >&5
16626 echo "${ECHO_T}no" >&6
16627 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16628 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16629 { (exit 1); exit 1; }; }
16631 elif test -f $withval/include/libpq-fe.h; then
16632 POSTGRESQL_INCDIR=$withval/include
16633 POSTGRESQL_LIBDIR=$withval/lib
16634 POSTGRESQL_BINDIR=$withval/bin
16635 elif test -f $withval/include/postgresql/libpq-fe.h; then
16636 POSTGRESQL_INCDIR=$withval/include/postgresql
16637 if test -d $withval/lib64; then
16638 POSTGRESQL_LIBDIR=$withval/lib64
16640 POSTGRESQL_LIBDIR=$withval/lib
16642 POSTGRESQL_BINDIR=$withval/bin
16644 echo "$as_me:$LINENO: result: no" >&5
16645 echo "${ECHO_T}no" >&6
16646 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16647 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16648 { (exit 1); exit 1; }; }
16650 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16651 echo "$as_me:$LINENO: checking for crypt" >&5
16652 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16653 if test "${ac_cv_func_crypt+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664 #define crypt innocuous_crypt
16666 /* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char crypt (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16672 # include <limits.h>
16674 # include <assert.h>
16679 /* Override any gcc2 internal prototype to avoid an error. */
16684 /* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined (__stub_crypt) || defined (__stub___crypt)
16693 char (*f) () = crypt;
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_func_crypt=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_func_crypt=no
16736 rm -f conftest.err conftest.$ac_objext \
16737 conftest$ac_exeext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16740 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16741 if test $ac_cv_func_crypt = yes; then
16744 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16745 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16746 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 ac_check_lib_save_LIBS=$LIBS
16750 LIBS="-lcrypt $LIBS"
16751 cat >conftest.$ac_ext <<_ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16758 /* Override any gcc2 internal prototype to avoid an error. */
16762 /* We use char because int might match the return type of a gcc2
16763 builtin and then its argument prototype would still apply. */
16773 rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775 (eval $ac_link) 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag"
16783 || test ! -s conftest.err'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest$ac_exeext'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 ac_cv_lib_crypt_crypt=yes
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 ac_cv_lib_crypt_crypt=no
16802 rm -f conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804 LIBS=$ac_check_lib_save_LIBS
16806 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16807 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16808 if test $ac_cv_lib_crypt_crypt = yes; then
16809 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16814 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16815 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16816 SQL_BINDIR=$POSTGRESQL_BINDIR
16817 cat >>confdefs.h <<\_ACEOF
16818 #define HAVE_POSTGRESQL 1
16821 echo "$as_me:$LINENO: result: yes" >&5
16822 echo "${ECHO_T}yes" >&6
16824 support_postgresql=yes
16828 echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6
16834 echo "$as_me:$LINENO: result: no" >&5
16835 echo "${ECHO_T}no" >&6
16846 echo "$as_me:$LINENO: checking for MySQL support" >&5
16847 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16849 # Check whether --with-mysql or --without-mysql was given.
16850 if test "${with_mysql+set}" = set; then
16851 withval="$with_mysql"
16853 if test "$withval" != "no"; then
16854 if test "$withval" = "yes"; then
16855 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16856 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16857 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
16858 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16860 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16862 MYSQL_BINDIR=/usr/local/mysql/bin
16863 elif test -f /usr/include/mysql/mysql.h; then
16864 MYSQL_INCDIR=/usr/include/mysql
16865 if test -f /usr/lib64/mysql/libmysqlclient.a; then
16866 MYSQL_LIBDIR=/usr/lib64/mysql
16868 MYSQL_LIBDIR=/usr/lib/mysql
16870 MYSQL_BINDIR=/usr/bin
16871 elif test -f /usr/include/mysql.h; then
16872 MYSQL_INCDIR=/usr/include
16873 if test -f /usr/lib64/libmysqlclient.a; then
16874 MYSQL_LIBDIR=/usr/lib64
16876 MYSQL_LIBDIR=/usr/lib
16878 MYSQL_BINDIR=/usr/bin
16879 elif test -f /usr/local/include/mysql/mysql.h; then
16880 MYSQL_INCDIR=/usr/local/include/mysql
16881 if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
16882 MYSQL_LIBDIR=/usr/local/lib64/mysql
16884 MYSQL_LIBDIR=/usr/local/lib/mysql
16886 MYSQL_BINDIR=/usr/local/bin
16887 elif test -f /usr/local/include/mysql.h; then
16888 MYSQL_INCDIR=/usr/local/include
16889 if test -f /usr/local/lib64/libmysqlclient.a; then
16890 MYSQL_LIBDIR=/usr/local/lib64
16892 MYSQL_LIBDIR=/usr/local/lib
16894 MYSQL_BINDIR=/usr/local/bin
16896 echo "$as_me:$LINENO: result: no" >&5
16897 echo "${ECHO_T}no" >&6
16898 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16899 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16900 { (exit 1); exit 1; }; }
16903 if test -f $withval/include/mysql/mysql.h; then
16904 MYSQL_INCDIR=$withval/include/mysql
16905 if test -f $withval/lib64/mysql/libmysqlclient.a; then
16906 MYSQL_LIBDIR=$withval/lib64/mysql
16908 MYSQL_LIBDIR=$withval/lib/mysql
16910 if test -f $withval/lib/libmysqlclient.so; then
16911 MYSQL_LIBDIR=$withval/lib
16914 MYSQL_BINDIR=$withval/bin
16915 elif test -f $withval/include/mysql.h; then
16916 MYSQL_INCDIR=$withval/include
16917 if test -f "$withval/lib64/libmysqlclient.a"; then
16918 MYSQL_LIBDIR=$withval/lib64
16920 MYSQL_LIBDIR=$withval/lib
16922 MYSQL_BINDIR=$withval/bin
16924 echo "$as_me:$LINENO: result: no" >&5
16925 echo "${ECHO_T}no" >&6
16926 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16927 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16928 { (exit 1); exit 1; }; }
16931 SQL_INCLUDE=-I$MYSQL_INCDIR
16932 if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
16933 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_THREAD_SAFE_MYSQL 1
16939 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16941 SQL_BINDIR=$MYSQL_BINDIR
16943 cat >>confdefs.h <<\_ACEOF
16944 #define HAVE_MYSQL 1
16947 echo "$as_me:$LINENO: result: yes" >&5
16948 echo "${ECHO_T}yes" >&6
16955 echo "$as_me:$LINENO: result: no" >&5
16956 echo "${ECHO_T}no" >&6
16963 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16964 if test "${with_embedded_mysql+set}" = set; then
16965 withval="$with_embedded_mysql"
16967 if test "$withval" != "no"; then
16968 if test "$withval" = "yes"; then
16969 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16970 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16971 if test -d /usr/local/mysql/lib64/mysql; then
16972 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16974 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16976 MYSQL_BINDIR=/usr/local/mysql/bin
16977 elif test -f /usr/include/mysql/mysql.h; then
16978 MYSQL_INCDIR=/usr/include/mysql
16979 if test -d /usr/lib64/mysql; then
16980 MYSQL_LIBDIR=/usr/lib64/mysql
16982 MYSQL_LIBDIR=/usr/lib/mysql
16984 MYSQL_BINDIR=/usr/bin
16985 elif test -f /usr/include/mysql.h; then
16986 MYSQL_INCDIR=/usr/include
16987 if test -d /usr/lib64; then
16988 MYSQL_LIBDIR=/usr/lib64
16990 MYSQL_LIBDIR=/usr/lib
16992 MYSQL_BINDIR=/usr/bin
16993 elif test -f /usr/local/include/mysql/mysql.h; then
16994 MYSQL_INCDIR=/usr/local/include/mysql
16995 if test -d /usr/local/lib64/mysql; then
16996 MYSQL_LIBDIR=/usr/local/lib64/mysql
16998 MYSQL_LIBDIR=/usr/local/lib/mysql
17000 MYSQL_BINDIR=/usr/local/bin
17001 elif test -f /usr/local/include/mysql.h; then
17002 MYSQL_INCDIR=/usr/local/include
17003 if test -d /usr/local/lib64; then
17004 MYSQL_LIBDIR=/usr/local/lib64
17006 MYSQL_LIBDIR=/usr/local/lib
17008 MYSQL_BINDIR=/usr/local/bin
17010 echo "$as_me:$LINENO: result: no" >&5
17011 echo "${ECHO_T}no" >&6
17012 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17013 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17014 { (exit 1); exit 1; }; }
17017 if test -f $withval/include/mysql/mysql.h; then
17018 MYSQL_INCDIR=$withval/include/mysql
17019 if test -d $withval/lib64/mysql; then
17020 MYSQL_LIBDIR=$withval/lib64/mysql
17022 MYSQL_LIBDIR=$withval/lib/mysql
17024 MYSQL_BINDIR=$withval/bin
17025 elif test -f $withval/include/mysql.h; then
17026 MYSQL_INCDIR=$withval/include
17027 if test -d $withval/lib64; then
17028 MYSQL_LIBDIR=$withval/lib64
17030 MYSQL_LIBDIR=$withval/lib
17032 MYSQL_BINDIR=$withval/bin
17034 echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17036 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17037 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17038 { (exit 1); exit 1; }; }
17041 SQL_INCLUDE=-I$MYSQL_INCDIR
17042 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17043 SQL_BINDIR=$MYSQL_BINDIR
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_MYSQL 1
17049 cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_EMBEDDED_MYSQL 1
17053 echo "$as_me:$LINENO: result: yes" >&5
17054 echo "${ECHO_T}yes" >&6
17061 echo "$as_me:$LINENO: result: no" >&5
17062 echo "${ECHO_T}no" >&6
17077 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17078 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17080 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17081 if test "${with_sqlite3+set}" = set; then
17082 withval="$with_sqlite3"
17084 if test "$withval" != "no"; then
17085 if test "$withval" = "yes"; then
17086 if test -f /usr/local/include/sqlite3.h; then
17087 SQLITE_INCDIR=/usr/local/include
17088 if test -d /usr/local/lib64; then
17089 SQLITE_LIBDIR=/usr/local/lib64
17091 SQLITE_LIBDIR=/usr/local/lib
17093 SQLITE_BINDIR=/usr/local/bin
17094 elif test -f /usr/include/sqlite3.h; then
17095 SQLITE_INCDIR=/usr/include
17096 if test -d /usr/lib64; then
17097 SQLITE_LIBDIR=/usr/lib64
17099 SQLITE_LIBDIR=/usr/lib
17101 SQLITE_BINDIR=/usr/bin
17102 elif test -f $prefix/include/sqlite3.h; then
17103 SQLITE_INCDIR=$prefix/include
17104 if test -d $prefix/lib64; then
17105 SQLITE_LIBDIR=$prefix/lib64
17107 SQLITE_LIBDIR=$prefix/lib
17109 SQLITE_BINDIR=$prefix/bin
17111 echo "$as_me:$LINENO: result: no" >&5
17112 echo "${ECHO_T}no" >&6
17113 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17114 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17115 { (exit 1); exit 1; }; }
17118 if test -f $withval/sqlite3.h; then
17119 SQLITE_INCDIR=$withval
17120 SQLITE_LIBDIR=$withval
17121 SQLITE_BINDIR=$withval
17122 elif test -f $withval/include/sqlite3.h; then
17123 SQLITE_INCDIR=$withval/include
17124 if test -d $withval/lib64; then
17125 SQLITE_LIBDIR=$withval/lib64
17127 SQLITE_LIBDIR=$withval/lib
17129 SQLITE_BINDIR=$withval/bin
17131 echo "$as_me:$LINENO: result: no" >&5
17132 echo "${ECHO_T}no" >&6
17133 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17134 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17135 { (exit 1); exit 1; }; }
17138 SQL_INCLUDE=-I$SQLITE_INCDIR
17139 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17140 SQL_BINDIR=$SQLITE_BINDIR
17142 cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_SQLITE3 1
17146 echo "$as_me:$LINENO: result: yes" >&5
17147 echo "${ECHO_T}yes" >&6
17149 support_sqlite3=yes
17154 echo "$as_me:$LINENO: result: no" >&5
17155 echo "${ECHO_T}no" >&6
17160 echo "$as_me:$LINENO: result: no" >&5
17161 echo "${ECHO_T}no" >&6
17172 echo "$as_me:$LINENO: checking for SQLite support" >&5
17173 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17175 # Check whether --with-sqlite or --without-sqlite was given.
17176 if test "${with_sqlite+set}" = set; then
17177 withval="$with_sqlite"
17179 if test "$withval" != "no"; then
17180 if test "$withval" = "yes"; then
17181 if test -f /usr/local/include/sqlite.h; then
17182 SQLITE_INCDIR=/usr/local/include
17183 if test -d /usr/local/lib64; then
17184 SQLITE_LIBDIR=/usr/local/lib64
17186 SQLITE_LIBDIR=/usr/local/lib
17188 SQLITE_BINDIR=/usr/local/bin
17189 elif test -f /usr/include/sqlite.h; then
17190 SQLITE_INCDIR=/usr/include
17191 if test -d /usr/lib64; then
17192 SQLITE_LIBDIR=/usr/lib64
17194 SQLITE_LIBDIR=/usr/lib
17196 SQLITE_BINDIR=/usr/bin
17197 elif test -f $prefix/include/sqlite.h; then
17198 SQLITE_INCDIR=$prefix/include
17199 if test -d $prefix/lib64; then
17200 SQLITE_LIBDIR=$prefix/lib64
17202 SQLITE_LIBDIR=$prefix/lib
17204 SQLITE_BINDIR=$prefix/bin
17206 echo "$as_me:$LINENO: result: no" >&5
17207 echo "${ECHO_T}no" >&6
17208 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17209 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17210 { (exit 1); exit 1; }; }
17213 if test -f $withval/sqlite.h; then
17214 SQLITE_INCDIR=$withval
17215 SQLITE_LIBDIR=$withval
17216 SQLITE_BINDIR=$withval
17217 elif test -f $withval/include/sqlite.h; then
17218 SQLITE_INCDIR=$withval/include
17219 if test -d $withval/lib64; then
17220 SQLITE_LIBDIR=$withval/lib64
17222 SQLITE_LIBDIR=$withval/lib
17224 SQLITE_BINDIR=$withval/bin
17226 echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17229 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17230 { (exit 1); exit 1; }; }
17233 SQL_INCLUDE=-I$SQLITE_INCDIR
17234 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17235 SQL_BINDIR=$SQLITE_BINDIR
17237 cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_SQLITE 1
17241 echo "$as_me:$LINENO: result: yes" >&5
17242 echo "${ECHO_T}yes" >&6
17249 echo "$as_me:$LINENO: result: no" >&5
17250 echo "${ECHO_T}no" >&6
17255 echo "$as_me:$LINENO: result: no" >&5
17256 echo "${ECHO_T}no" >&6
17268 cat >>confdefs.h <<\_ACEOF
17269 #define PROTOTYPES 1
17273 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17274 if test -z "$CCOPTS"; then
17275 CCOPTS='-g -O2 -Wall'
17283 largefile_support="no"
17285 # Check whether --enable-largefile or --disable-largefile was given.
17286 if test "${enable_largefile+set}" = set; then
17287 enableval="$enable_largefile"
17290 if test "$enable_largefile" != no; then
17291 if test -n "$ac_tool_prefix"; then
17292 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17293 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17294 echo "$as_me:$LINENO: checking for $ac_word" >&5
17295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17296 if test "${ac_cv_prog_GETCONF+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 if test -n "$GETCONF"; then
17300 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17306 test -z "$as_dir" && as_dir=.
17307 for ac_exec_ext in '' $ac_executable_extensions; do
17308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17318 GETCONF=$ac_cv_prog_GETCONF
17319 if test -n "$GETCONF"; then
17320 echo "$as_me:$LINENO: result: $GETCONF" >&5
17321 echo "${ECHO_T}$GETCONF" >&6
17323 echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17328 if test -z "$ac_cv_prog_GETCONF"; then
17329 ac_ct_GETCONF=$GETCONF
17330 # Extract the first word of "getconf", so it can be a program name with args.
17331 set dummy getconf; ac_word=$2
17332 echo "$as_me:$LINENO: checking for $ac_word" >&5
17333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17334 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 if test -n "$ac_ct_GETCONF"; then
17338 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17341 for as_dir in $PATH
17344 test -z "$as_dir" && as_dir=.
17345 for ac_exec_ext in '' $ac_executable_extensions; do
17346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17347 ac_cv_prog_ac_ct_GETCONF="getconf"
17348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17356 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17357 if test -n "$ac_ct_GETCONF"; then
17358 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17359 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17361 echo "$as_me:$LINENO: result: no" >&5
17362 echo "${ECHO_T}no" >&6
17365 GETCONF=$ac_ct_GETCONF
17367 GETCONF="$ac_cv_prog_GETCONF"
17370 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17371 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17372 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17376 ac_cv_sys_largefile_CFLAGS=no
17378 # IRIX 6.2 and later require cc -n32.
17379 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17380 if test "$GCC" != yes; then
17381 ac_cv_sys_largefile_CFLAGS=-n32
17384 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402 (eval $ac_link) 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_c_werror_flag"
17410 || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 ac_cv_sys_largefile_CFLAGS=no
17429 rm -f conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17435 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17436 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17437 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17438 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17439 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17443 ac_cv_sys_largefile_LDFLAGS=no
17447 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17448 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17449 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17450 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17451 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17455 ac_cv_sys_largefile_LIBS=no
17459 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17460 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17462 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17465 -D_FILE_OFFSET_BITS=*) ;;
17466 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17467 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17472 case "$CPPFLAGS" in
17473 '') CPPFLAGS="$ac_flag" ;;
17474 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17482 '') CFLAGS="$ac_flag" ;;
17483 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17488 case "$ac_cv_sys_largefile_LDFLAGS" in
17492 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17493 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17496 case "$ac_cv_sys_largefile_LIBS" in
17500 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17501 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17504 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17505 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 ac_cv_sys_file_offset_bits=no
17510 ac_cv_sys_file_offset_bits=64
17511 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17513 -D_FILE_OFFSET_BITS)
17514 ac_cv_sys_file_offset_bits=1 ;;
17515 -D_FILE_OFFSET_BITS=*)
17516 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17521 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17522 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17523 if test "$ac_cv_sys_file_offset_bits" != no; then
17525 cat >>confdefs.h <<_ACEOF
17526 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17530 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17531 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17532 if test "${ac_cv_sys_largefile_source+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 ac_cv_sys_largefile_source=no
17536 ac_cv_sys_largefile_source=1
17537 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17539 -D_LARGEFILE_SOURCE)
17540 ac_cv_sys_largefile_source=1 ;;
17541 -D_LARGEFILE_SOURCE=*)
17542 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17547 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17548 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17549 if test "$ac_cv_sys_largefile_source" != no; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17556 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17557 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17558 if test "${ac_cv_sys_large_files+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 ac_cv_sys_large_files=no
17562 ac_cv_sys_large_files=1
17563 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17566 ac_cv_sys_large_files=1 ;;
17568 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17573 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17574 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17575 if test "$ac_cv_sys_large_files" != no; then
17577 cat >>confdefs.h <<_ACEOF
17578 #define _LARGE_FILES $ac_cv_sys_large_files
17586 echo "$as_me:$LINENO: checking for X" >&5
17587 echo $ECHO_N "checking for X... $ECHO_C" >&6
17590 # Check whether --with-x or --without-x was given.
17591 if test "${with_x+set}" = set; then
17595 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17596 if test "x$with_x" = xno; then
17597 # The user explicitly disabled X.
17600 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17601 # Both variables are already set.
17604 if test "${ac_cv_have_x+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 # One or both of the vars are not set, and there is no cached value.
17608 ac_x_includes=no ac_x_libraries=no
17609 rm -fr conftest.dir
17610 if mkdir conftest.dir; then
17612 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17613 cat >Imakefile <<'_ACEOF'
17615 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17617 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17619 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17620 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17621 for ac_extension in a so sl; do
17622 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17623 test -f $ac_im_libdir/libX11.$ac_extension; then
17624 ac_im_usrlibdir=$ac_im_libdir; break
17627 # Screen out bogus values from the imake configuration. They are
17628 # bogus both because they are the default anyway, and because
17629 # using them would break gcc on systems where it needs fixed includes.
17630 case $ac_im_incroot in
17632 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17634 case $ac_im_usrlibdir in
17635 /usr/lib | /lib) ;;
17636 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17640 rm -fr conftest.dir
17643 # Standard set of common directories for X headers.
17644 # Check X11 before X11Rn because it is often a symlink to the current release.
17656 /usr/local/X11/include
17657 /usr/local/X11R6/include
17658 /usr/local/X11R5/include
17659 /usr/local/X11R4/include
17661 /usr/local/include/X11
17662 /usr/local/include/X11R6
17663 /usr/local/include/X11R5
17664 /usr/local/include/X11R4
17668 /usr/XFree86/include/X11
17672 /usr/unsupported/include
17673 /usr/athena/include
17674 /usr/local/x11r5/include
17675 /usr/lpp/Xamples/include
17677 /usr/openwin/include
17678 /usr/openwin/share/include'
17680 if test "$ac_x_includes" = no; then
17681 # Guess where to find include files, by looking for Intrinsic.h.
17682 # First, try using that file with no special directory specified.
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 #include <X11/Intrinsic.h>
17691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } >/dev/null; then
17699 if test -s conftest.err; then
17700 ac_cpp_err=$ac_c_preproc_warn_flag
17701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17708 if test -z "$ac_cpp_err"; then
17709 # We can compile using X headers with no special include directory.
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 for ac_dir in $ac_x_header_dirs; do
17716 if test -r "$ac_dir/X11/Intrinsic.h"; then
17717 ac_x_includes=$ac_dir
17722 rm -f conftest.err conftest.$ac_ext
17723 fi # $ac_x_includes = no
17725 if test "$ac_x_libraries" = no; then
17726 # Check for the libraries.
17727 # See if we find them without any special options.
17728 # Don't add to $LIBS permanently.
17731 cat >conftest.$ac_ext <<_ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 #include <X11/Intrinsic.h>
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag"
17756 || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest$ac_exeext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17769 # We can link X programs with no special library path.
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17776 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17778 # Don't even attempt the hair of trying to link an X program!
17779 for ac_extension in a so sl; do
17780 if test -r $ac_dir/libXt.$ac_extension; then
17781 ac_x_libraries=$ac_dir
17787 rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 fi # $ac_x_libraries = no
17791 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17792 # Didn't find X anywhere. Cache the known absence of X.
17793 ac_cv_have_x="have_x=no"
17795 # Record where we found X for the cache.
17796 ac_cv_have_x="have_x=yes \
17797 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17802 eval "$ac_cv_have_x"
17805 if test "$have_x" != yes; then
17806 echo "$as_me:$LINENO: result: $have_x" >&5
17807 echo "${ECHO_T}$have_x" >&6
17810 # If each of the values was on the command line, it overrides each guess.
17811 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17812 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17813 # Update the cache value to reflect the command line values.
17814 ac_cv_have_x="have_x=yes \
17815 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17816 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17817 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17820 if test "$no_x" = yes; then
17821 # Not all programs may use this symbol, but it does not hurt to define it.
17823 cat >>confdefs.h <<\_ACEOF
17824 #define X_DISPLAY_MISSING 1
17827 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17829 if test -n "$x_includes"; then
17830 X_CFLAGS="$X_CFLAGS -I$x_includes"
17833 # It would also be nice to do this for all -L options, not just this one.
17834 if test -n "$x_libraries"; then
17835 X_LIBS="$X_LIBS -L$x_libraries"
17836 # For Solaris; some versions of Sun CC require a space after -R and
17837 # others require no space. Words are not sufficient . . . .
17838 case `(uname -sr) 2>/dev/null` in
17840 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17841 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17842 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17860 (eval $ac_link) 2>conftest.er1
17862 grep -v '^ *+' conftest.er1 >conftest.err
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } &&
17867 { ac_try='test -z "$ac_c_werror_flag"
17868 || test ! -s conftest.err'
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; } &&
17874 { ac_try='test -s conftest$ac_exeext'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17887 rm -f conftest.err conftest.$ac_objext \
17888 conftest$ac_exeext conftest.$ac_ext
17889 if test $ac_R_nospace = yes; then
17890 echo "$as_me:$LINENO: result: no" >&5
17891 echo "${ECHO_T}no" >&6
17892 X_LIBS="$X_LIBS -R$x_libraries"
17894 LIBS="$ac_xsave_LIBS -R $x_libraries"
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912 (eval $ac_link) 2>conftest.er1
17914 grep -v '^ *+' conftest.er1 >conftest.err
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17939 rm -f conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 if test $ac_R_space = yes; then
17942 echo "$as_me:$LINENO: result: yes" >&5
17943 echo "${ECHO_T}yes" >&6
17944 X_LIBS="$X_LIBS -R $x_libraries"
17946 echo "$as_me:$LINENO: result: neither works" >&5
17947 echo "${ECHO_T}neither works" >&6
17950 LIBS=$ac_xsave_LIBS
17954 # Check for system-dependent libraries X programs must link with.
17955 # Do this before checking for the system-independent R6 libraries
17956 # (-lICE), since we may need -lsocket or whatever for X linking.
17958 if test "$ISC" = yes; then
17959 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17961 # Martyn Johnson says this is needed for Ultrix, if the X
17962 # libraries were built with DECnet support. And Karl Berry says
17963 # the Alpha needs dnet_stub (dnet does not exist).
17964 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17972 /* Override any gcc2 internal prototype to avoid an error. */
17976 /* We use char because int might match the return type of a gcc2
17977 builtin and then its argument prototype would still apply. */
17978 char XOpenDisplay ();
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989 (eval $ac_link) 2>conftest.er1
17991 grep -v '^ *+' conftest.er1 >conftest.err
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag"
17997 || test ! -s conftest.err'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest$ac_exeext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18015 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18016 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 ac_check_lib_save_LIBS=$LIBS
18020 LIBS="-ldnet $LIBS"
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18028 /* Override any gcc2 internal prototype to avoid an error. */
18032 /* We use char because int might match the return type of a gcc2
18033 builtin and then its argument prototype would still apply. */
18043 rm -f conftest.$ac_objext conftest$ac_exeext
18044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18045 (eval $ac_link) 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag"
18053 || test ! -s conftest.err'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest$ac_exeext'
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; }; then
18065 ac_cv_lib_dnet_dnet_ntoa=yes
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_cv_lib_dnet_dnet_ntoa=no
18072 rm -f conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18074 LIBS=$ac_check_lib_save_LIBS
18076 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18077 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18078 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18082 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18083 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18084 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18085 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 ac_check_lib_save_LIBS=$LIBS
18089 LIBS="-ldnet_stub $LIBS"
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18097 /* Override any gcc2 internal prototype to avoid an error. */
18101 /* We use char because int might match the return type of a gcc2
18102 builtin and then its argument prototype would still apply. */
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18114 (eval $ac_link) 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
18121 { ac_try='test -z "$ac_c_werror_flag"
18122 || test ! -s conftest.err'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest$ac_exeext'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_cv_lib_dnet_stub_dnet_ntoa=no
18141 rm -f conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143 LIBS=$ac_check_lib_save_LIBS
18145 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18146 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18147 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18148 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18153 rm -f conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
18155 LIBS="$ac_xsave_LIBS"
18157 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18158 # to get the SysV transport functions.
18159 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18161 # The nsl library prevents programs from opening the X display
18162 # on Irix 5.2, according to T.E. Dickey.
18163 # The functions gethostbyname, getservbyname, and inet_addr are
18164 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18165 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18166 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18167 if test "${ac_cv_func_gethostbyname+set}" = set; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18178 #define gethostbyname innocuous_gethostbyname
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char gethostbyname (); below.
18182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 <limits.h> exists even on freestanding compilers. */
18186 # include <limits.h>
18188 # include <assert.h>
18191 #undef gethostbyname
18193 /* Override any gcc2 internal prototype to avoid an error. */
18198 /* We use char because int might match the return type of a gcc2
18199 builtin and then its argument prototype would still apply. */
18200 char gethostbyname ();
18201 /* The GNU C library defines this for functions which it implements
18202 to always fail with ENOSYS. Some functions are actually named
18203 something starting with __ and the normal name is an alias. */
18204 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18207 char (*f) () = gethostbyname;
18216 return f != gethostbyname;
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18223 (eval $ac_link) 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag"
18231 || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 ac_cv_func_gethostbyname=yes
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 ac_cv_func_gethostbyname=no
18250 rm -f conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18254 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18256 if test $ac_cv_func_gethostbyname = no; then
18257 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18258 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18259 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 ac_check_lib_save_LIBS=$LIBS
18264 cat >conftest.$ac_ext <<_ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18271 /* Override any gcc2 internal prototype to avoid an error. */
18275 /* We use char because int might match the return type of a gcc2
18276 builtin and then its argument prototype would still apply. */
18277 char gethostbyname ();
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18288 (eval $ac_link) 2>conftest.er1
18290 grep -v '^ *+' conftest.er1 >conftest.err
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag"
18296 || test ! -s conftest.err'
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest$ac_exeext'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18308 ac_cv_lib_nsl_gethostbyname=yes
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ac_cv_lib_nsl_gethostbyname=no
18315 rm -f conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18317 LIBS=$ac_check_lib_save_LIBS
18319 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18320 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18321 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18325 if test $ac_cv_lib_nsl_gethostbyname = no; then
18326 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18327 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18328 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 ac_check_lib_save_LIBS=$LIBS
18333 cat >conftest.$ac_ext <<_ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18340 /* Override any gcc2 internal prototype to avoid an error. */
18344 /* We use char because int might match the return type of a gcc2
18345 builtin and then its argument prototype would still apply. */
18346 char gethostbyname ();
18355 rm -f conftest.$ac_objext conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357 (eval $ac_link) 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest$ac_exeext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_cv_lib_bsd_gethostbyname=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ac_cv_lib_bsd_gethostbyname=no
18384 rm -f conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18389 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18390 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18397 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18398 # socket/setsockopt and other routines are undefined under SCO ODT
18399 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18400 # on later versions), says Simon Leinen: it contains gethostby*
18401 # variants that don't use the name server (or something). -lsocket
18402 # must be given before -lnsl if both are needed. We assume that
18403 # if connect needs -lnsl, so does gethostbyname.
18404 echo "$as_me:$LINENO: checking for connect" >&5
18405 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18406 if test "${ac_cv_func_connect+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18417 #define connect innocuous_connect
18419 /* System header to define __stub macros and hopefully few prototypes,
18420 which can conflict with char connect (); below.
18421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422 <limits.h> exists even on freestanding compilers. */
18425 # include <limits.h>
18427 # include <assert.h>
18432 /* Override any gcc2 internal prototype to avoid an error. */
18437 /* We use char because int might match the return type of a gcc2
18438 builtin and then its argument prototype would still apply. */
18440 /* The GNU C library defines this for functions which it implements
18441 to always fail with ENOSYS. Some functions are actually named
18442 something starting with __ and the normal name is an alias. */
18443 #if defined (__stub_connect) || defined (__stub___connect)
18446 char (*f) () = connect;
18455 return f != connect;
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462 (eval $ac_link) 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -z "$ac_c_werror_flag"
18470 || test ! -s conftest.err'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest$ac_exeext'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_cv_func_connect=yes
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_cv_func_connect=no
18489 rm -f conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18492 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18493 echo "${ECHO_T}$ac_cv_func_connect" >&6
18495 if test $ac_cv_func_connect = no; then
18496 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18497 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18498 if test "${ac_cv_lib_socket_connect+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18510 /* Override any gcc2 internal prototype to avoid an error. */
18514 /* We use char because int might match the return type of a gcc2
18515 builtin and then its argument prototype would still apply. */
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18527 (eval $ac_link) 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } &&
18534 { ac_try='test -z "$ac_c_werror_flag"
18535 || test ! -s conftest.err'
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; } &&
18541 { ac_try='test -s conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_lib_socket_connect=yes
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 ac_cv_lib_socket_connect=no
18554 rm -f conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18559 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18560 if test $ac_cv_lib_socket_connect = yes; then
18561 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18566 # Guillermo Gomez says -lposix is necessary on A/UX.
18567 echo "$as_me:$LINENO: checking for remove" >&5
18568 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18569 if test "${ac_cv_func_remove+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 cat >conftest.$ac_ext <<_ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h. */
18578 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18580 #define remove innocuous_remove
18582 /* System header to define __stub macros and hopefully few prototypes,
18583 which can conflict with char remove (); below.
18584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585 <limits.h> exists even on freestanding compilers. */
18588 # include <limits.h>
18590 # include <assert.h>
18595 /* Override any gcc2 internal prototype to avoid an error. */
18600 /* We use char because int might match the return type of a gcc2
18601 builtin and then its argument prototype would still apply. */
18603 /* The GNU C library defines this for functions which it implements
18604 to always fail with ENOSYS. Some functions are actually named
18605 something starting with __ and the normal name is an alias. */
18606 #if defined (__stub_remove) || defined (__stub___remove)
18609 char (*f) () = remove;
18618 return f != remove;
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625 (eval $ac_link) 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } &&
18632 { ac_try='test -z "$ac_c_werror_flag"
18633 || test ! -s conftest.err'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try='test -s conftest$ac_exeext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_func_remove=yes
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_cv_func_remove=no
18652 rm -f conftest.err conftest.$ac_objext \
18653 conftest$ac_exeext conftest.$ac_ext
18655 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18656 echo "${ECHO_T}$ac_cv_func_remove" >&6
18658 if test $ac_cv_func_remove = no; then
18659 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18660 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18661 if test "${ac_cv_lib_posix_remove+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lposix $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any gcc2 internal prototype to avoid an error. */
18677 /* We use char because int might match the return type of a gcc2
18678 builtin and then its argument prototype would still apply. */
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest$ac_exeext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_cv_lib_posix_remove=yes
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 ac_cv_lib_posix_remove=no
18717 rm -f conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18721 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18722 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18723 if test $ac_cv_lib_posix_remove = yes; then
18724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18729 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18730 echo "$as_me:$LINENO: checking for shmat" >&5
18731 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18732 if test "${ac_cv_func_shmat+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18743 #define shmat innocuous_shmat
18745 /* System header to define __stub macros and hopefully few prototypes,
18746 which can conflict with char shmat (); below.
18747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18748 <limits.h> exists even on freestanding compilers. */
18751 # include <limits.h>
18753 # include <assert.h>
18758 /* Override any gcc2 internal prototype to avoid an error. */
18763 /* We use char because int might match the return type of a gcc2
18764 builtin and then its argument prototype would still apply. */
18766 /* The GNU C library defines this for functions which it implements
18767 to always fail with ENOSYS. Some functions are actually named
18768 something starting with __ and the normal name is an alias. */
18769 #if defined (__stub_shmat) || defined (__stub___shmat)
18772 char (*f) () = shmat;
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788 (eval $ac_link) 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18808 ac_cv_func_shmat=yes
18810 echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 ac_cv_func_shmat=no
18815 rm -f conftest.err conftest.$ac_objext \
18816 conftest$ac_exeext conftest.$ac_ext
18818 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18819 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18821 if test $ac_cv_func_shmat = no; then
18822 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18823 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18824 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 ac_check_lib_save_LIBS=$LIBS
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18836 /* Override any gcc2 internal prototype to avoid an error. */
18840 /* We use char because int might match the return type of a gcc2
18841 builtin and then its argument prototype would still apply. */
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18853 (eval $ac_link) 2>conftest.er1
18855 grep -v '^ *+' conftest.er1 >conftest.err
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -z "$ac_c_werror_flag"
18861 || test ! -s conftest.err'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest$ac_exeext'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_lib_ipc_shmat=yes
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ac_cv_lib_ipc_shmat=no
18880 rm -f conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18884 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18885 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18886 if test $ac_cv_lib_ipc_shmat = yes; then
18887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18893 # Check for libraries that X11R6 Xt/Xaw programs need.
18894 ac_save_LDFLAGS=$LDFLAGS
18895 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18896 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18897 # check for ICE first), but we must link in the order -lSM -lICE or
18898 # we get undefined symbols. So assume we have SM if we have ICE.
18899 # These have to be linked with before -lX11, unlike the other
18900 # libraries we check for below, so use a different variable.
18901 # John Interrante, Karl Berry
18902 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18903 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18904 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 ac_check_lib_save_LIBS=$LIBS
18908 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18909 cat >conftest.$ac_ext <<_ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18916 /* Override any gcc2 internal prototype to avoid an error. */
18920 /* We use char because int might match the return type of a gcc2
18921 builtin and then its argument prototype would still apply. */
18922 char IceConnectionNumber ();
18926 IceConnectionNumber ();
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>conftest.er1
18935 grep -v '^ *+' conftest.er1 >conftest.err
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest$ac_exeext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_cv_lib_ICE_IceConnectionNumber=yes
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_cv_lib_ICE_IceConnectionNumber=no
18960 rm -f conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18964 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18965 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18966 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18967 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18970 LDFLAGS=$ac_save_LDFLAGS
19032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19034 echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19042 # Is the header compilable?
19043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 $ac_includes_default
19052 #include <$ac_header>
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_header_compiler=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_header_compiler=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19085 echo "${ECHO_T}$ac_header_compiler" >&6
19087 # Is the header present?
19088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <$ac_header>
19098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } >/dev/null; then
19106 if test -s conftest.err; then
19107 ac_cpp_err=$ac_c_preproc_warn_flag
19108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19115 if test -z "$ac_cpp_err"; then
19116 ac_header_preproc=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_header_preproc=no
19123 rm -f conftest.err conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19125 echo "${ECHO_T}$ac_header_preproc" >&6
19127 # So? What about this header?
19128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19134 ac_header_preproc=yes
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19151 ## ------------------------------------------ ##
19152 ## Report this to the AC_PACKAGE_NAME lists. ##
19153 ## ------------------------------------------ ##
19156 sed "s/^/$as_me: WARNING: /" >&2
19159 echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 eval "$as_ac_Header=\$ac_header_preproc"
19166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19179 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19181 if test "${ac_cv_header_stdc+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 cat >conftest.$ac_ext <<_ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 #include <stdlib.h>
19191 #include <stdarg.h>
19192 #include <string.h>
19203 rm -f conftest.$ac_objext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205 (eval $ac_compile) 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -z "$ac_c_werror_flag"
19213 || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest.$ac_objext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_header_stdc=yes
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_cv_header_stdc=no
19232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19234 if test $ac_cv_header_stdc = yes; then
19235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <string.h>
19245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19246 $EGREP "memchr" >/dev/null 2>&1; then
19249 ac_cv_header_stdc=no
19255 if test $ac_cv_header_stdc = yes; then
19256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include <stdlib.h>
19266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19267 $EGREP "free" >/dev/null 2>&1; then
19270 ac_cv_header_stdc=no
19276 if test $ac_cv_header_stdc = yes; then
19277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19278 if test "$cross_compiling" = yes; then
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19288 #if ((' ' & 0x0FF) == 0x020)
19289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19292 # define ISLOWER(c) \
19293 (('a' <= (c) && (c) <= 'i') \
19294 || ('j' <= (c) && (c) <= 'r') \
19295 || ('s' <= (c) && (c) <= 'z'))
19296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19304 for (i = 0; i < 256; i++)
19305 if (XOR (islower (i), ISLOWER (i))
19306 || toupper (i) != TOUPPER (i))
19311 rm -f conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313 (eval $ac_link) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19324 echo "$as_me: program exited with status $ac_status" >&5
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ( exit $ac_status )
19329 ac_cv_header_stdc=no
19331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19337 if test $ac_cv_header_stdc = yes; then
19339 cat >>confdefs.h <<\_ACEOF
19340 #define STDC_HEADERS 1
19345 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19346 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19347 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 #include <sys/types.h>
19360 return makedev(0, 0);
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19367 (eval $ac_link) 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
19374 { ac_try='test -z "$ac_c_werror_flag"
19375 || test ! -s conftest.err'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; } &&
19381 { ac_try='test -s conftest$ac_exeext'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; }; then
19387 ac_cv_header_sys_types_h_makedev=yes
19389 echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_cv_header_sys_types_h_makedev=no
19394 rm -f conftest.err conftest.$ac_objext \
19395 conftest$ac_exeext conftest.$ac_ext
19398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19399 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19401 if test $ac_cv_header_sys_types_h_makedev = no; then
19402 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19403 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19404 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19405 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19409 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19411 # Is the header compilable?
19412 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19413 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 $ac_includes_default
19421 #include <sys/mkdev.h>
19423 rm -f conftest.$ac_objext
19424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19425 (eval $ac_compile) 2>conftest.er1
19427 grep -v '^ *+' conftest.er1 >conftest.err
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag"
19433 || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest.$ac_objext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_header_compiler=yes
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ac_header_compiler=no
19452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19454 echo "${ECHO_T}$ac_header_compiler" >&6
19456 # Is the header present?
19457 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19458 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <sys/mkdev.h>
19467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } >/dev/null; then
19475 if test -s conftest.err; then
19476 ac_cpp_err=$ac_c_preproc_warn_flag
19477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19484 if test -z "$ac_cpp_err"; then
19485 ac_header_preproc=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_header_preproc=no
19492 rm -f conftest.err conftest.$ac_ext
19493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19494 echo "${ECHO_T}$ac_header_preproc" >&6
19496 # So? What about this header?
19497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19499 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19500 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19502 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19503 ac_header_preproc=yes
19506 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19507 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19509 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19511 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19512 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19513 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19514 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19515 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19517 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19520 ## ------------------------------------------ ##
19521 ## Report this to the AC_PACKAGE_NAME lists. ##
19522 ## ------------------------------------------ ##
19525 sed "s/^/$as_me: WARNING: /" >&2
19528 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19529 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19530 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19536 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19539 if test $ac_cv_header_sys_mkdev_h = yes; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define MAJOR_IN_MKDEV 1
19549 if test $ac_cv_header_sys_mkdev_h = no; then
19550 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19551 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19552 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19553 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19557 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19559 # Is the header compilable?
19560 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19561 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 $ac_includes_default
19569 #include <sys/sysmacros.h>
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573 (eval $ac_compile) 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag"
19581 || test ! -s conftest.err'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest.$ac_objext'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; }; then
19593 ac_header_compiler=yes
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19598 ac_header_compiler=no
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19602 echo "${ECHO_T}$ac_header_compiler" >&6
19604 # Is the header present?
19605 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19606 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 #include <sys/sysmacros.h>
19615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } >/dev/null; then
19623 if test -s conftest.err; then
19624 ac_cpp_err=$ac_c_preproc_warn_flag
19625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19632 if test -z "$ac_cpp_err"; then
19633 ac_header_preproc=yes
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_header_preproc=no
19640 rm -f conftest.err conftest.$ac_ext
19641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19642 echo "${ECHO_T}$ac_header_preproc" >&6
19644 # So? What about this header?
19645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19647 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19648 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19650 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19651 ac_header_preproc=yes
19654 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19655 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19657 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19659 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19661 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19662 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19663 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19665 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19668 ## ------------------------------------------ ##
19669 ## Report this to the AC_PACKAGE_NAME lists. ##
19670 ## ------------------------------------------ ##
19673 sed "s/^/$as_me: WARNING: /" >&2
19676 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19677 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19678 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19684 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19687 if test $ac_cv_header_sys_sysmacros_h = yes; then
19689 cat >>confdefs.h <<\_ACEOF
19690 #define MAJOR_IN_SYSMACROS 1
19704 ac_header_dirent=no
19705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 #include <sys/types.h>
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>conftest.er1
19734 grep -v '^ *+' conftest.er1 >conftest.err
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 eval "$as_ac_Header=yes"
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 eval "$as_ac_Header=no"
19759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19764 cat >>confdefs.h <<_ACEOF
19765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19768 ac_header_dirent=$ac_hdr; break
19772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19773 if test $ac_header_dirent = dirent.h; then
19774 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19776 if test "${ac_cv_search_opendir+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 ac_func_search_save_LIBS=$LIBS
19780 ac_cv_search_opendir=no
19781 cat >conftest.$ac_ext <<_ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h. */
19788 /* Override any gcc2 internal prototype to avoid an error. */
19792 /* We use char because int might match the return type of a gcc2
19793 builtin and then its argument prototype would still apply. */
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805 (eval $ac_link) 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_cv_search_opendir="none required"
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19831 rm -f conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19833 if test "$ac_cv_search_opendir" = no; then
19834 for ac_lib in dir; do
19835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 /* Override any gcc2 internal prototype to avoid an error. */
19847 /* We use char because int might match the return type of a gcc2
19848 builtin and then its argument prototype would still apply. */
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19860 (eval $ac_link) 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); } &&
19867 { ac_try='test -z "$ac_c_werror_flag"
19868 || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest$ac_exeext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_search_opendir="-l$ac_lib"
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19887 rm -f conftest.err conftest.$ac_objext \
19888 conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_func_search_save_LIBS
19893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19894 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19895 if test "$ac_cv_search_opendir" != no; then
19896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19903 if test "${ac_cv_search_opendir+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 ac_func_search_save_LIBS=$LIBS
19907 ac_cv_search_opendir=no
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19915 /* Override any gcc2 internal prototype to avoid an error. */
19919 /* We use char because int might match the return type of a gcc2
19920 builtin and then its argument prototype would still apply. */
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19932 (eval $ac_link) 2>conftest.er1
19934 grep -v '^ *+' conftest.er1 >conftest.err
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag"
19940 || test ! -s conftest.err'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest$ac_exeext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_search_opendir="none required"
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19958 rm -f conftest.err conftest.$ac_objext \
19959 conftest$ac_exeext conftest.$ac_ext
19960 if test "$ac_cv_search_opendir" = no; then
19961 for ac_lib in x; do
19962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19970 /* Override any gcc2 internal prototype to avoid an error. */
19974 /* We use char because int might match the return type of a gcc2
19975 builtin and then its argument prototype would still apply. */
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19987 (eval $ac_link) 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest$ac_exeext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_cv_search_opendir="-l$ac_lib"
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20014 rm -f conftest.err conftest.$ac_objext \
20015 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_func_search_save_LIBS
20020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20022 if test "$ac_cv_search_opendir" != no; then
20023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20029 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20030 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20031 if test "${ac_cv_header_stat_broken+set}" = set; then
20032 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <sys/types.h>
20041 #include <sys/stat.h>
20043 #if defined(S_ISBLK) && defined(S_IFDIR)
20044 # if S_ISBLK (S_IFDIR)
20049 #if defined(S_ISBLK) && defined(S_IFCHR)
20050 # if S_ISBLK (S_IFCHR)
20055 #if defined(S_ISLNK) && defined(S_IFREG)
20056 # if S_ISLNK (S_IFREG)
20061 #if defined(S_ISSOCK) && defined(S_IFREG)
20062 # if S_ISSOCK (S_IFREG)
20068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20069 $EGREP "You lose" >/dev/null 2>&1; then
20070 ac_cv_header_stat_broken=yes
20072 ac_cv_header_stat_broken=no
20077 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20078 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20079 if test $ac_cv_header_stat_broken = yes; then
20081 cat >>confdefs.h <<\_ACEOF
20082 #define STAT_MACROS_BROKEN 1
20087 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20088 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20089 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 #include <sys/types.h>
20099 #include <sys/wait.h>
20100 #ifndef WEXITSTATUS
20101 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20104 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20112 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20117 rm -f conftest.$ac_objext
20118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>conftest.er1
20121 grep -v '^ *+' conftest.er1 >conftest.err
20123 cat conftest.err >&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
20126 { ac_try='test -z "$ac_c_werror_flag"
20127 || test ! -s conftest.err'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
20134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
20139 ac_cv_header_sys_wait_h=yes
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_cv_header_sys_wait_h=no
20146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20148 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20149 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20150 if test $ac_cv_header_sys_wait_h = yes; then
20152 cat >>confdefs.h <<\_ACEOF
20153 #define HAVE_SYS_WAIT_H 1
20158 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20159 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20160 if test "${ac_cv_header_time+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <sys/types.h>
20170 #include <sys/time.h>
20176 if ((struct tm *) 0)
20182 rm -f conftest.$ac_objext
20183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20184 (eval $ac_compile) 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
20191 { ac_try='test -z "$ac_c_werror_flag"
20192 || test ! -s conftest.err'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest.$ac_objext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_cv_header_time=yes
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 ac_cv_header_time=no
20211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20213 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20214 echo "${ECHO_T}$ac_cv_header_time" >&6
20215 if test $ac_cv_header_time = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define TIME_WITH_SYS_TIME 1
20224 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20225 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20226 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20239 static struct stat ac_aggr;
20240 if (ac_aggr.st_blksize)
20246 rm -f conftest.$ac_objext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20248 (eval $ac_compile) 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -z "$ac_c_werror_flag"
20256 || test ! -s conftest.err'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest.$ac_objext'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 ac_cv_member_struct_stat_st_blksize=yes
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 $ac_includes_default
20283 static struct stat ac_aggr;
20284 if (sizeof ac_aggr.st_blksize)
20290 rm -f conftest.$ac_objext
20291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_member_struct_stat_st_blksize=yes
20314 echo "$as_me: failed program was:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_member_struct_stat_st_blksize=no
20319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20325 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20332 cat >>confdefs.h <<\_ACEOF
20333 #define HAVE_ST_BLKSIZE 1
20339 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20340 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20341 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 $ac_includes_default
20354 static struct stat ac_aggr;
20355 if (ac_aggr.st_blocks)
20361 rm -f conftest.$ac_objext
20362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20363 (eval $ac_compile) 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } &&
20370 { ac_try='test -z "$ac_c_werror_flag"
20371 || test ! -s conftest.err'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; } &&
20377 { ac_try='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_member_struct_stat_st_blocks=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20398 static struct stat ac_aggr;
20399 if (sizeof ac_aggr.st_blocks)
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>conftest.er1
20409 grep -v '^ *+' conftest.er1 >conftest.err
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag"
20415 || test ! -s conftest.err'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_cv_member_struct_stat_st_blocks=yes
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_cv_member_struct_stat_st_blocks=no
20434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20439 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20440 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20447 cat >>confdefs.h <<\_ACEOF
20448 #define HAVE_ST_BLOCKS 1
20453 "fileblocks.$ac_objext" | \
20454 *" fileblocks.$ac_objext" | \
20455 "fileblocks.$ac_objext "* | \
20456 *" fileblocks.$ac_objext "* ) ;;
20457 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20463 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20464 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20465 if test "${ac_cv_struct_tm+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <sys/types.h>
20480 struct tm *tp; tp->tm_sec;
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 ac_cv_struct_tm=time.h
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_struct_tm=sys/time.h
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20516 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20517 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20518 if test $ac_cv_struct_tm = sys/time.h; then
20520 cat >>confdefs.h <<\_ACEOF
20521 #define TM_IN_SYS_TIME 1
20526 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20527 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20528 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 #include <sys/types.h>
20538 #include <$ac_cv_struct_tm>
20544 static struct tm ac_aggr;
20545 if (ac_aggr.tm_zone)
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553 (eval $ac_compile) 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_member_struct_tm_tm_zone=yes
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <sys/types.h>
20585 #include <$ac_cv_struct_tm>
20591 static struct tm ac_aggr;
20592 if (sizeof ac_aggr.tm_zone)
20598 rm -f conftest.$ac_objext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20600 (eval $ac_compile) 2>conftest.er1
20602 grep -v '^ *+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } &&
20607 { ac_try='test -z "$ac_c_werror_flag"
20608 || test ! -s conftest.err'
20609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610 (eval $ac_try) 2>&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); }; } &&
20614 { ac_try='test -s conftest.$ac_objext'
20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616 (eval $ac_try) 2>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20620 ac_cv_member_struct_tm_tm_zone=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_member_struct_tm_tm_zone=no
20627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20633 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_STRUCT_TM_TM_ZONE 1
20642 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20644 cat >>confdefs.h <<\_ACEOF
20645 #define HAVE_TM_ZONE 1
20649 echo "$as_me:$LINENO: checking for tzname" >&5
20650 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20651 if test "${ac_cv_var_tzname+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20661 #ifndef tzname /* For SGI. */
20662 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20675 (eval $ac_link) 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
20682 { ac_try='test -z "$ac_c_werror_flag"
20683 || test ! -s conftest.err'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; } &&
20689 { ac_try='test -s conftest$ac_exeext'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_var_tzname=yes
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 ac_cv_var_tzname=no
20702 rm -f conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20705 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20706 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20707 if test $ac_cv_var_tzname = yes; then
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_TZNAME 1
20717 echo "$as_me:$LINENO: checking for utime.h" >&5
20718 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20719 if test "${ba_cv_header_utime_h+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20729 #include <sys/types.h>
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741 (eval $ac_compile) 2>conftest.er1
20743 grep -v '^ *+' conftest.er1 >conftest.err
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -z "$ac_c_werror_flag"
20749 || test ! -s conftest.err'
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ba_cv_header_utime_h=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ba_cv_header_utime_h=no
20768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20770 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20771 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20772 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_UTIME_H 1
20777 echo "$as_me:$LINENO: checking for socklen_t" >&5
20778 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20779 if test "${ba_cv_header_socklen_t+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20789 #include <sys/types.h>
20790 #include <sys/socket.h>
20799 rm -f conftest.$ac_objext
20800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801 (eval $ac_compile) 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag"
20809 || test ! -s conftest.err'
20810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20811 (eval $ac_try) 2>&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; } &&
20815 { ac_try='test -s conftest.$ac_objext'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; }; then
20821 ba_cv_header_socklen_t=yes
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ba_cv_header_socklen_t=no
20828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20830 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20831 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20832 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20833 #define HAVE_SOCKLEN_T 1
20837 echo "$as_me:$LINENO: checking for bigendian" >&5
20838 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20839 if test "${ba_cv_bigendian+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 if test "$cross_compiling" = yes; then
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20853 rm -f conftest$ac_exeext
20854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20855 (eval $ac_link) 2>&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 ba_cv_bigendian=yes
20866 echo "$as_me: program exited with status $ac_status" >&5
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 ( exit $ac_status )
20873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20876 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20877 echo "${ECHO_T}$ba_cv_bigendian" >&6
20878 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20879 #define HAVE_BIGENDIAN 1
20884 ac_cpp='$CXXCPP $CPPFLAGS'
20885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20890 echo "$as_me:$LINENO: checking for typeof" >&5
20891 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20892 if test "${ba_cv_have_typeof+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 if test "$cross_compiling" = yes; then
20896 ba_cv_have_typeof=no
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 main(){char *a = 0; a = (typeof a)a;}
20906 rm -f conftest$ac_exeext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20908 (eval $ac_link) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ba_cv_have_typeof=yes
20919 echo "$as_me: program exited with status $ac_status" >&5
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ( exit $ac_status )
20924 ba_cv_have_typeof=no
20926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20929 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20930 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20931 test $ba_cv_have_typeof = yes &&
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_TYPEOF 1
20937 ac_cpp='$CPP $CPPFLAGS'
20938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20943 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20944 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20945 if test "${ac_cv_c_const+set}" = set; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20958 /* FIXME: Include the comments suggested by Paul. */
20959 #ifndef __cplusplus
20960 /* Ultrix mips cc rejects this. */
20961 typedef int charset[2];
20963 /* SunOS 4.1.1 cc rejects this. */
20964 char const *const *ccp;
20966 /* NEC SVR4.0.2 mips cc rejects this. */
20967 struct point {int x, y;};
20968 static struct point const zero = {0,0};
20969 /* AIX XL C 1.02.0.0 rejects this.
20970 It does not let you subtract one const X* pointer from another in
20971 an arm of an if-expression whose if-part is not a constant
20973 const char *g = "string";
20974 ccp = &g + (g ? g-g : 0);
20975 /* HPUX 7.0 cc rejects these. */
20978 ccp = (char const *const *) p;
20979 { /* SCO 3.2v4 cc rejects this. */
20981 char const *s = 0 ? (char *) 0 : (char const *) 0;
20985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20986 int x[] = {25, 17};
20987 const int *foo = &x[0];
20990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20991 typedef const int *iptr;
20995 { /* AIX XL C 1.02.0.0 rejects this saying
20996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20997 struct s { int j; const int *ap[3]; };
20998 struct s *b; b->j = 5;
21000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21001 const int foo = 10;
21009 rm -f conftest.$ac_objext
21010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21011 (eval $ac_compile) 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } &&
21018 { ac_try='test -z "$ac_c_werror_flag"
21019 || test ! -s conftest.err'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest.$ac_objext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21040 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21041 echo "${ECHO_T}$ac_cv_c_const" >&6
21042 if test $ac_cv_c_const = no; then
21044 cat >>confdefs.h <<\_ACEOF
21052 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21053 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21055 # The order of these tests is important.
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 #include <sys/statvfs.h>
21063 #include <sys/fstyp.h>
21065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } >/dev/null; then
21073 if test -s conftest.err; then
21074 ac_cpp_err=$ac_c_preproc_warn_flag
21075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21082 if test -z "$ac_cpp_err"; then
21083 cat >>confdefs.h <<\_ACEOF
21084 #define FSTYPE_STATVFS 1
21088 echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21093 rm -f conftest.err conftest.$ac_ext
21094 if test $fstype = no; then
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 #include <sys/statfs.h>
21102 #include <sys/fstyp.h>
21104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21107 grep -v '^ *+' conftest.er1 >conftest.err
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } >/dev/null; then
21112 if test -s conftest.err; then
21113 ac_cpp_err=$ac_c_preproc_warn_flag
21114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21121 if test -z "$ac_cpp_err"; then
21122 cat >>confdefs.h <<\_ACEOF
21123 #define FSTYPE_USG_STATFS 1
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21132 rm -f conftest.err conftest.$ac_ext
21134 if test $fstype = no; then
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 #include <sys/statfs.h>
21142 #include <sys/vmount.h>
21144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } >/dev/null; then
21152 if test -s conftest.err; then
21153 ac_cpp_err=$ac_c_preproc_warn_flag
21154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21161 if test -z "$ac_cpp_err"; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define FSTYPE_AIX_STATFS 1
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21172 rm -f conftest.err conftest.$ac_ext
21174 if test $fstype = no; then
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 #include <mntent.h>
21183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21186 grep -v '^ *+' conftest.er1 >conftest.err
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } >/dev/null; then
21191 if test -s conftest.err; then
21192 ac_cpp_err=$ac_c_preproc_warn_flag
21193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21200 if test -z "$ac_cpp_err"; then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define FSTYPE_MNTENT 1
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21211 rm -f conftest.err conftest.$ac_ext
21213 if test $fstype = no; then
21214 cat >conftest.$ac_ext <<_ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220 #include <sys/mount.h>
21223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21224 $EGREP "f_type;" >/dev/null 2>&1; then
21225 cat >>confdefs.h <<\_ACEOF
21226 #define FSTYPE_STATFS 1
21233 if test $fstype = no; then
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <sys/mount.h>
21241 #include <sys/fs_types.h>
21243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } >/dev/null; then
21251 if test -s conftest.err; then
21252 ac_cpp_err=$ac_c_preproc_warn_flag
21253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21260 if test -z "$ac_cpp_err"; then
21261 cat >>confdefs.h <<\_ACEOF
21262 #define FSTYPE_GETMNT 1
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21271 rm -f conftest.err conftest.$ac_ext
21273 echo "$as_me:$LINENO: result: $fstype" >&5
21274 echo "${ECHO_T}$fstype" >&6
21276 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21277 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21278 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21279 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21283 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21285 # Is the header compilable?
21286 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21287 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21288 cat >conftest.$ac_ext <<_ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h. */
21294 $ac_includes_default
21295 #include <sys/statvfs.h>
21297 rm -f conftest.$ac_objext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21299 (eval $ac_compile) 2>conftest.er1
21301 grep -v '^ *+' conftest.er1 >conftest.err
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_header_compiler=yes
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_compiler=no
21326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21328 echo "${ECHO_T}$ac_header_compiler" >&6
21330 # Is the header present?
21331 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21332 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 #include <sys/statvfs.h>
21341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null; then
21349 if test -s conftest.err; then
21350 ac_cpp_err=$ac_c_preproc_warn_flag
21351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21358 if test -z "$ac_cpp_err"; then
21359 ac_header_preproc=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_header_preproc=no
21366 rm -f conftest.err conftest.$ac_ext
21367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6
21370 # So? What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21373 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21377 ac_header_preproc=yes
21380 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21394 ## ------------------------------------------ ##
21395 ## Report this to the AC_PACKAGE_NAME lists. ##
21396 ## ------------------------------------------ ##
21399 sed "s/^/$as_me: WARNING: /" >&2
21402 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21403 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21404 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21409 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21410 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21413 if test $ac_cv_header_sys_statvfs_h = yes; then
21415 cat >>confdefs.h <<\_ACEOF
21416 #define HAVE_SYS_STATVFS_H 1
21423 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21424 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21425 if test "${ac_cv_type_signal+set}" = set; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 cat >conftest.$ac_ext <<_ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21434 #include <sys/types.h>
21435 #include <signal.h>
21440 extern "C" void (*signal (int, void (*)(int)))(int);
21442 void (*signal ()) ();
21453 rm -f conftest.$ac_objext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21455 (eval $ac_compile) 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 ac_cv_type_signal=void
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_cv_type_signal=int
21482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21485 echo "${ECHO_T}$ac_cv_type_signal" >&6
21487 cat >>confdefs.h <<_ACEOF
21488 #define RETSIGTYPE $ac_cv_type_signal
21493 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21494 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21495 if test "${bash_cv_signal_vintage+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 #include <signal.h>
21511 struct sigaction sa;
21512 sigemptyset(&ss); sigsuspend(&ss);
21513 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21514 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21522 (eval $ac_link) 2>conftest.er1
21524 grep -v '^ *+' conftest.er1 >conftest.err
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } &&
21529 { ac_try='test -z "$ac_c_werror_flag"
21530 || test ! -s conftest.err'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest$ac_exeext'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; }; then
21542 bash_cv_signal_vintage="posix"
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21548 cat >conftest.$ac_ext <<_ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 #include <signal.h>
21559 int mask = sigmask(SIGINT);
21560 sigsetmask(mask); sigblock(mask); sigpause(mask);
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568 (eval $ac_link) 2>conftest.er1
21570 grep -v '^ *+' conftest.er1 >conftest.err
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 bash_cv_signal_vintage="4.2bsd"
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 #include <signal.h>
21602 RETSIGTYPE foo() { }
21607 int mask = sigmask(SIGINT);
21608 sigset(SIGINT, foo); sigrelse(SIGINT);
21609 sighold(SIGINT); sigpause(SIGINT);
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21617 (eval $ac_link) 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
21624 { ac_try='test -z "$ac_c_werror_flag"
21625 || test ! -s conftest.err'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; } &&
21631 { ac_try='test -s conftest$ac_exeext'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 bash_cv_signal_vintage="svr3"
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 bash_cv_signal_vintage="v7"
21645 rm -f conftest.err conftest.$ac_objext \
21646 conftest$ac_exeext conftest.$ac_ext
21649 rm -f conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
21653 rm -f conftest.err conftest.$ac_objext \
21654 conftest$ac_exeext conftest.$ac_ext
21658 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21659 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21660 if test "$bash_cv_signal_vintage" = "posix"; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_POSIX_SIGNALS 1
21665 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_BSD_SIGNALS 1
21670 elif test "$bash_cv_signal_vintage" = "svr3"; then
21671 cat >>confdefs.h <<\_ACEOF
21672 #define HAVE_USG_SIGHOLD 1
21677 echo "$as_me:$LINENO: checking for mode_t" >&5
21678 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21679 if test "${ac_cv_type_mode_t+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21694 if (sizeof (mode_t))
21700 rm -f conftest.$ac_objext
21701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21702 (eval $ac_compile) 2>conftest.er1
21704 grep -v '^ *+' conftest.er1 >conftest.err
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); } &&
21709 { ac_try='test -z "$ac_c_werror_flag"
21710 || test ! -s conftest.err'
21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712 (eval $ac_try) 2>&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; } &&
21716 { ac_try='test -s conftest.$ac_objext'
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; }; then
21722 ac_cv_type_mode_t=yes
21724 echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21727 ac_cv_type_mode_t=no
21729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21732 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21733 if test $ac_cv_type_mode_t = yes; then
21737 cat >>confdefs.h <<_ACEOF
21743 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21744 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21745 if test "${ac_cv_type_uid_t+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21754 #include <sys/types.h>
21757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21758 $EGREP "uid_t" >/dev/null 2>&1; then
21759 ac_cv_type_uid_t=yes
21761 ac_cv_type_uid_t=no
21766 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21767 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21768 if test $ac_cv_type_uid_t = no; then
21770 cat >>confdefs.h <<\_ACEOF
21775 cat >>confdefs.h <<\_ACEOF
21781 echo "$as_me:$LINENO: checking for size_t" >&5
21782 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21783 if test "${ac_cv_type_size_t+set}" = set; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 $ac_includes_default
21798 if (sizeof (size_t))
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806 (eval $ac_compile) 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -z "$ac_c_werror_flag"
21814 || test ! -s conftest.err'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 ac_cv_type_size_t=yes
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ac_cv_type_size_t=no
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21835 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21836 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21837 if test $ac_cv_type_size_t = yes; then
21841 cat >>confdefs.h <<_ACEOF
21842 #define size_t unsigned
21847 echo "$as_me:$LINENO: checking for pid_t" >&5
21848 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21849 if test "${ac_cv_type_pid_t+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 cat >conftest.$ac_ext <<_ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 $ac_includes_default
21864 if (sizeof (pid_t))
21870 rm -f conftest.$ac_objext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872 (eval $ac_compile) 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -z "$ac_c_werror_flag"
21880 || test ! -s conftest.err'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; } &&
21886 { ac_try='test -s conftest.$ac_objext'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_cv_type_pid_t=yes
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21897 ac_cv_type_pid_t=no
21899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21901 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21902 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21903 if test $ac_cv_type_pid_t = yes; then
21907 cat >>confdefs.h <<_ACEOF
21913 echo "$as_me:$LINENO: checking for off_t" >&5
21914 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21915 if test "${ac_cv_type_off_t+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 $ac_includes_default
21930 if (sizeof (off_t))
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938 (eval $ac_compile) 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } &&
21945 { ac_try='test -z "$ac_c_werror_flag"
21946 || test ! -s conftest.err'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 ac_cv_type_off_t=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 ac_cv_type_off_t=no
21965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21967 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21968 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21969 if test $ac_cv_type_off_t = yes; then
21973 cat >>confdefs.h <<_ACEOF
21979 echo "$as_me:$LINENO: checking for ino_t" >&5
21980 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21981 if test "${ac_cv_type_ino_t+set}" = set; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 $ac_includes_default
21996 if (sizeof (ino_t))
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try='test -z "$ac_c_werror_flag"
22012 || test ! -s conftest.err'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try='test -s conftest.$ac_objext'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; }; then
22024 ac_cv_type_ino_t=yes
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_cv_type_ino_t=no
22031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22033 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22034 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22035 if test $ac_cv_type_ino_t = yes; then
22039 cat >>confdefs.h <<_ACEOF
22040 #define ino_t unsigned long
22045 echo "$as_me:$LINENO: checking for dev_t" >&5
22046 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22047 if test "${ac_cv_type_dev_t+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 $ac_includes_default
22062 if (sizeof (dev_t))
22068 rm -f conftest.$ac_objext
22069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22070 (eval $ac_compile) 2>conftest.er1
22072 grep -v '^ *+' conftest.er1 >conftest.err
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } &&
22077 { ac_try='test -z "$ac_c_werror_flag"
22078 || test ! -s conftest.err'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; } &&
22084 { ac_try='test -s conftest.$ac_objext'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 ac_cv_type_dev_t=yes
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 ac_cv_type_dev_t=no
22097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22099 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22100 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22101 if test $ac_cv_type_dev_t = yes; then
22105 cat >>confdefs.h <<_ACEOF
22106 #define dev_t unsigned long
22111 echo "$as_me:$LINENO: checking for daddr_t" >&5
22112 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22113 if test "${ac_cv_type_daddr_t+set}" = set; then
22114 echo $ECHO_N "(cached) $ECHO_C" >&6
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 $ac_includes_default
22128 if (sizeof (daddr_t))
22134 rm -f conftest.$ac_objext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22136 (eval $ac_compile) 2>conftest.er1
22138 grep -v '^ *+' conftest.er1 >conftest.err
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } &&
22143 { ac_try='test -z "$ac_c_werror_flag"
22144 || test ! -s conftest.err'
22145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146 (eval $ac_try) 2>&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; } &&
22150 { ac_try='test -s conftest.$ac_objext'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 ac_cv_type_daddr_t=yes
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 ac_cv_type_daddr_t=no
22163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22165 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22166 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22167 if test $ac_cv_type_daddr_t = yes; then
22171 cat >>confdefs.h <<_ACEOF
22172 #define daddr_t long
22177 echo "$as_me:$LINENO: checking for major_t" >&5
22178 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22179 if test "${ac_cv_type_major_t+set}" = set; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 $ac_includes_default
22194 if (sizeof (major_t))
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202 (eval $ac_compile) 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
22209 { ac_try='test -z "$ac_c_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222 ac_cv_type_major_t=yes
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_cv_type_major_t=no
22229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22232 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22233 if test $ac_cv_type_major_t = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define major_t int
22243 echo "$as_me:$LINENO: checking for minor_t" >&5
22244 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22245 if test "${ac_cv_type_minor_t+set}" = set; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 cat >conftest.$ac_ext <<_ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 $ac_includes_default
22260 if (sizeof (minor_t))
22266 rm -f conftest.$ac_objext
22267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22268 (eval $ac_compile) 2>conftest.er1
22270 grep -v '^ *+' conftest.er1 >conftest.err
22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } &&
22275 { ac_try='test -z "$ac_c_werror_flag"
22276 || test ! -s conftest.err'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; } &&
22282 { ac_try='test -s conftest.$ac_objext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 ac_cv_type_minor_t=yes
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_cv_type_minor_t=no
22295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22297 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22298 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22299 if test $ac_cv_type_minor_t = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define minor_t int
22309 echo "$as_me:$LINENO: checking for ssize_t" >&5
22310 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22311 if test "${ac_cv_type_ssize_t+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22326 if (sizeof (ssize_t))
22332 rm -f conftest.$ac_objext
22333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22334 (eval $ac_compile) 2>conftest.er1
22336 grep -v '^ *+' conftest.er1 >conftest.err
22338 cat conftest.err >&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
22341 { ac_try='test -z "$ac_c_werror_flag"
22342 || test ! -s conftest.err'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; } &&
22348 { ac_try='test -s conftest.$ac_objext'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22354 ac_cv_type_ssize_t=yes
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ac_cv_type_ssize_t=no
22361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22363 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22364 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22365 if test $ac_cv_type_ssize_t = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define ssize_t int
22375 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22376 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22377 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 $ac_includes_default
22390 static struct stat ac_aggr;
22391 if (ac_aggr.st_blocks)
22397 rm -f conftest.$ac_objext
22398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22399 (eval $ac_compile) 2>conftest.er1
22401 grep -v '^ *+' conftest.er1 >conftest.err
22403 cat conftest.err >&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } &&
22406 { ac_try='test -z "$ac_c_werror_flag"
22407 || test ! -s conftest.err'
22408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; } &&
22413 { ac_try='test -s conftest.$ac_objext'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; }; then
22419 ac_cv_member_struct_stat_st_blocks=yes
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22430 $ac_includes_default
22434 static struct stat ac_aggr;
22435 if (sizeof ac_aggr.st_blocks)
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try='test -z "$ac_c_werror_flag"
22451 || test ! -s conftest.err'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest.$ac_objext'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_member_struct_stat_st_blocks=yes
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_cv_member_struct_stat_st_blocks=no
22470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22474 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22475 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22476 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22478 cat >>confdefs.h <<_ACEOF
22479 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22483 cat >>confdefs.h <<\_ACEOF
22484 #define HAVE_ST_BLOCKS 1
22489 "fileblocks.$ac_objext" | \
22490 *" fileblocks.$ac_objext" | \
22491 "fileblocks.$ac_objext "* | \
22492 *" fileblocks.$ac_objext "* ) ;;
22493 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22500 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22501 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22502 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 $ac_includes_default
22515 static struct stat ac_aggr;
22516 if (ac_aggr.st_rdev)
22522 rm -f conftest.$ac_objext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524 (eval $ac_compile) 2>conftest.er1
22526 grep -v '^ *+' conftest.er1 >conftest.err
22528 cat conftest.err >&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } &&
22531 { ac_try='test -z "$ac_c_werror_flag"
22532 || test ! -s conftest.err'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; } &&
22538 { ac_try='test -s conftest.$ac_objext'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544 ac_cv_member_struct_stat_st_rdev=yes
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22549 cat >conftest.$ac_ext <<_ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 $ac_includes_default
22559 static struct stat ac_aggr;
22560 if (sizeof ac_aggr.st_rdev)
22566 rm -f conftest.$ac_objext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568 (eval $ac_compile) 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
22575 { ac_try='test -z "$ac_c_werror_flag"
22576 || test ! -s conftest.err'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_cv_member_struct_stat_st_rdev=yes
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 ac_cv_member_struct_stat_st_rdev=no
22595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22599 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22600 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22601 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_STRUCT_STAT_ST_RDEV 1
22608 cat >>confdefs.h <<\_ACEOF
22609 #define HAVE_ST_RDEV 1
22615 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22616 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22617 if test "${ac_cv_struct_tm+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 #include <sys/types.h>
22632 struct tm *tp; tp->tm_sec;
22637 rm -f conftest.$ac_objext
22638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22639 (eval $ac_compile) 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } &&
22646 { ac_try='test -z "$ac_c_werror_flag"
22647 || test ! -s conftest.err'
22648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22649 (eval $ac_try) 2>&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); }; } &&
22653 { ac_try='test -s conftest.$ac_objext'
22654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655 (eval $ac_try) 2>&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; }; then
22659 ac_cv_struct_tm=time.h
22661 echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 ac_cv_struct_tm=sys/time.h
22666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22668 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22669 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22670 if test $ac_cv_struct_tm = sys/time.h; then
22672 cat >>confdefs.h <<\_ACEOF
22673 #define TM_IN_SYS_TIME 1
22678 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22680 if test "${ac_cv_c_const+set}" = set; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 cat >conftest.$ac_ext <<_ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22693 /* FIXME: Include the comments suggested by Paul. */
22694 #ifndef __cplusplus
22695 /* Ultrix mips cc rejects this. */
22696 typedef int charset[2];
22698 /* SunOS 4.1.1 cc rejects this. */
22699 char const *const *ccp;
22701 /* NEC SVR4.0.2 mips cc rejects this. */
22702 struct point {int x, y;};
22703 static struct point const zero = {0,0};
22704 /* AIX XL C 1.02.0.0 rejects this.
22705 It does not let you subtract one const X* pointer from another in
22706 an arm of an if-expression whose if-part is not a constant
22708 const char *g = "string";
22709 ccp = &g + (g ? g-g : 0);
22710 /* HPUX 7.0 cc rejects these. */
22713 ccp = (char const *const *) p;
22714 { /* SCO 3.2v4 cc rejects this. */
22716 char const *s = 0 ? (char *) 0 : (char const *) 0;
22720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22721 int x[] = {25, 17};
22722 const int *foo = &x[0];
22725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22726 typedef const int *iptr;
22730 { /* AIX XL C 1.02.0.0 rejects this saying
22731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22732 struct s { int j; const int *ap[3]; };
22733 struct s *b; b->j = 5;
22735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22736 const int foo = 10;
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746 (eval $ac_compile) 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } &&
22753 { ac_try='test -z "$ac_c_werror_flag"
22754 || test ! -s conftest.err'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; } &&
22760 { ac_try='test -s conftest.$ac_objext'
22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762 (eval $ac_try) 2>&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); }; }; then
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22775 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22776 echo "${ECHO_T}$ac_cv_c_const" >&6
22777 if test $ac_cv_c_const = no; then
22779 cat >>confdefs.h <<\_ACEOF
22787 echo "$as_me:$LINENO: checking for char" >&5
22788 echo $ECHO_N "checking for char... $ECHO_C" >&6
22789 if test "${ac_cv_type_char+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22798 $ac_includes_default
22810 rm -f conftest.$ac_objext
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812 (eval $ac_compile) 2>conftest.er1
22814 grep -v '^ *+' conftest.er1 >conftest.err
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } &&
22819 { ac_try='test -z "$ac_c_werror_flag"
22820 || test ! -s conftest.err'
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; } &&
22826 { ac_try='test -s conftest.$ac_objext'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_type_char=yes
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22841 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22842 echo "${ECHO_T}$ac_cv_type_char" >&6
22844 echo "$as_me:$LINENO: checking size of char" >&5
22845 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22846 if test "${ac_cv_sizeof_char+set}" = set; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22849 if test "$ac_cv_type_char" = yes; then
22850 # The cast to unsigned long works around a bug in the HP C Compiler
22851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22853 # This bug is HP SR number 8606223364.
22854 if test "$cross_compiling" = yes; then
22855 # Depending upon the size, compute the lo and hi bounds.
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 $ac_includes_default
22866 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22873 rm -f conftest.$ac_objext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22875 (eval $ac_compile) 2>conftest.er1
22877 grep -v '^ *+' conftest.er1 >conftest.err
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } &&
22882 { ac_try='test -z "$ac_c_werror_flag"
22883 || test ! -s conftest.err'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; } &&
22889 { ac_try='test -s conftest.$ac_objext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 $ac_includes_default
22907 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22914 rm -f conftest.$ac_objext
22915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22916 (eval $ac_compile) 2>conftest.er1
22918 grep -v '^ *+' conftest.er1 >conftest.err
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_c_werror_flag"
22924 || test ! -s conftest.err'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest.$ac_objext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 ac_hi=$ac_mid; break
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_lo=`expr $ac_mid + 1`
22942 if test $ac_lo -le $ac_mid; then
22946 ac_mid=`expr 2 '*' $ac_mid + 1`
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 $ac_includes_default
22964 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22971 rm -f conftest.$ac_objext
22972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22973 (eval $ac_compile) 2>conftest.er1
22975 grep -v '^ *+' conftest.er1 >conftest.err
22977 cat conftest.err >&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -z "$ac_c_werror_flag"
22981 || test ! -s conftest.err'
22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983 (eval $ac_try) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); }; } &&
22987 { ac_try='test -s conftest.$ac_objext'
22988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989 (eval $ac_try) 2>&5
22991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); }; }; then
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 $ac_includes_default
23005 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23012 rm -f conftest.$ac_objext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23014 (eval $ac_compile) 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } &&
23021 { ac_try='test -z "$ac_c_werror_flag"
23022 || test ! -s conftest.err'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; } &&
23028 { ac_try='test -s conftest.$ac_objext'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034 ac_lo=$ac_mid; break
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ac_hi=`expr '(' $ac_mid ')' - 1`
23040 if test $ac_mid -le $ac_hi; then
23044 ac_mid=`expr 2 '*' $ac_mid`
23046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049 echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23057 # Binary search between lo and hi bounds.
23058 while test "x$ac_lo" != "x$ac_hi"; do
23059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23066 $ac_includes_default
23070 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23077 rm -f conftest.$ac_objext
23078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23079 (eval $ac_compile) 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } &&
23086 { ac_try='test -z "$ac_c_werror_flag"
23087 || test ! -s conftest.err'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; } &&
23093 { ac_try='test -s conftest.$ac_objext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ac_lo=`expr '(' $ac_mid ')' + 1`
23106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23109 ?*) ac_cv_sizeof_char=$ac_lo;;
23110 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23111 See \`config.log' for more details." >&5
23112 echo "$as_me: error: cannot compute sizeof (char), 77
23113 See \`config.log' for more details." >&2;}
23114 { (exit 1); exit 1; }; } ;;
23117 if test "$cross_compiling" = yes; then
23118 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23119 See \`config.log' for more details." >&5
23120 echo "$as_me: error: cannot run test program while cross compiling
23121 See \`config.log' for more details." >&2;}
23122 { (exit 1); exit 1; }; }
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 $ac_includes_default
23131 long longval () { return (long) (sizeof (char)); }
23132 unsigned long ulongval () { return (long) (sizeof (char)); }
23134 #include <stdlib.h>
23139 FILE *f = fopen ("conftest.val", "w");
23142 if (((long) (sizeof (char))) < 0)
23144 long i = longval ();
23145 if (i != ((long) (sizeof (char))))
23147 fprintf (f, "%ld\n", i);
23151 unsigned long i = ulongval ();
23152 if (i != ((long) (sizeof (char))))
23154 fprintf (f, "%lu\n", i);
23156 exit (ferror (f) || fclose (f) != 0);
23162 rm -f conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164 (eval $ac_link) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; }; then
23173 ac_cv_sizeof_char=`cat conftest.val`
23175 echo "$as_me: program exited with status $ac_status" >&5
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ( exit $ac_status )
23180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23181 See \`config.log' for more details." >&5
23182 echo "$as_me: error: cannot compute sizeof (char), 77
23183 See \`config.log' for more details." >&2;}
23184 { (exit 1); exit 1; }; }
23186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23191 ac_cv_sizeof_char=0
23194 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23195 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23196 cat >>confdefs.h <<_ACEOF
23197 #define SIZEOF_CHAR $ac_cv_sizeof_char
23201 echo "$as_me:$LINENO: checking for short int" >&5
23202 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23203 if test "${ac_cv_type_short_int+set}" = set; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 $ac_includes_default
23216 if ((short int *) 0)
23218 if (sizeof (short int))
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226 (eval $ac_compile) 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
23233 { ac_try='test -z "$ac_c_werror_flag"
23234 || test ! -s conftest.err'
23235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; } &&
23240 { ac_try='test -s conftest.$ac_objext'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; }; then
23246 ac_cv_type_short_int=yes
23248 echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23251 ac_cv_type_short_int=no
23253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23255 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23256 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23258 echo "$as_me:$LINENO: checking size of short int" >&5
23259 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23260 if test "${ac_cv_sizeof_short_int+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 if test "$ac_cv_type_short_int" = yes; then
23264 # The cast to unsigned long works around a bug in the HP C Compiler
23265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23267 # This bug is HP SR number 8606223364.
23268 if test "$cross_compiling" = yes; then
23269 # Depending upon the size, compute the lo and hi bounds.
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 $ac_includes_default
23280 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23287 rm -f conftest.$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289 (eval $ac_compile) 2>conftest.er1
23291 grep -v '^ *+' conftest.er1 >conftest.err
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try='test -z "$ac_c_werror_flag"
23297 || test ! -s conftest.err'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest.$ac_objext'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23311 cat >conftest.$ac_ext <<_ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h. */
23317 $ac_includes_default
23321 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23328 rm -f conftest.$ac_objext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23330 (eval $ac_compile) 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } &&
23337 { ac_try='test -z "$ac_c_werror_flag"
23338 || test ! -s conftest.err'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; } &&
23344 { ac_try='test -s conftest.$ac_objext'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; }; then
23350 ac_hi=$ac_mid; break
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_lo=`expr $ac_mid + 1`
23356 if test $ac_lo -le $ac_mid; then
23360 ac_mid=`expr 2 '*' $ac_mid + 1`
23362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23365 echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23368 cat >conftest.$ac_ext <<_ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h. */
23374 $ac_includes_default
23378 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23385 rm -f conftest.$ac_objext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23387 (eval $ac_compile) 2>conftest.er1
23389 grep -v '^ *+' conftest.er1 >conftest.err
23391 cat conftest.err >&5
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
23394 { ac_try='test -z "$ac_c_werror_flag"
23395 || test ! -s conftest.err'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } &&
23401 { ac_try='test -s conftest.$ac_objext'
23402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 $ac_includes_default
23419 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23426 rm -f conftest.$ac_objext
23427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23428 (eval $ac_compile) 2>conftest.er1
23430 grep -v '^ *+' conftest.er1 >conftest.err
23432 cat conftest.err >&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } &&
23435 { ac_try='test -z "$ac_c_werror_flag"
23436 || test ! -s conftest.err'
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; } &&
23442 { ac_try='test -s conftest.$ac_objext'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23448 ac_lo=$ac_mid; break
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 ac_hi=`expr '(' $ac_mid ')' - 1`
23454 if test $ac_mid -le $ac_hi; then
23458 ac_mid=`expr 2 '*' $ac_mid`
23460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23471 # Binary search between lo and hi bounds.
23472 while test "x$ac_lo" != "x$ac_hi"; do
23473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23474 cat >conftest.$ac_ext <<_ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 $ac_includes_default
23484 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23491 rm -f conftest.$ac_objext
23492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23493 (eval $ac_compile) 2>conftest.er1
23495 grep -v '^ *+' conftest.er1 >conftest.err
23497 cat conftest.err >&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } &&
23500 { ac_try='test -z "$ac_c_werror_flag"
23501 || test ! -s conftest.err'
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; } &&
23507 { ac_try='test -s conftest.$ac_objext'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; }; then
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 ac_lo=`expr '(' $ac_mid ')' + 1`
23520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23523 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23524 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23525 See \`config.log' for more details." >&5
23526 echo "$as_me: error: cannot compute sizeof (short int), 77
23527 See \`config.log' for more details." >&2;}
23528 { (exit 1); exit 1; }; } ;;
23531 if test "$cross_compiling" = yes; then
23532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23533 See \`config.log' for more details." >&5
23534 echo "$as_me: error: cannot run test program while cross compiling
23535 See \`config.log' for more details." >&2;}
23536 { (exit 1); exit 1; }; }
23538 cat >conftest.$ac_ext <<_ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23544 $ac_includes_default
23545 long longval () { return (long) (sizeof (short int)); }
23546 unsigned long ulongval () { return (long) (sizeof (short int)); }
23548 #include <stdlib.h>
23553 FILE *f = fopen ("conftest.val", "w");
23556 if (((long) (sizeof (short int))) < 0)
23558 long i = longval ();
23559 if (i != ((long) (sizeof (short int))))
23561 fprintf (f, "%ld\n", i);
23565 unsigned long i = ulongval ();
23566 if (i != ((long) (sizeof (short int))))
23568 fprintf (f, "%lu\n", i);
23570 exit (ferror (f) || fclose (f) != 0);
23576 rm -f conftest$ac_exeext
23577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23578 (eval $ac_link) 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ac_cv_sizeof_short_int=`cat conftest.val`
23589 echo "$as_me: program exited with status $ac_status" >&5
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23593 ( exit $ac_status )
23594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23595 See \`config.log' for more details." >&5
23596 echo "$as_me: error: cannot compute sizeof (short int), 77
23597 See \`config.log' for more details." >&2;}
23598 { (exit 1); exit 1; }; }
23600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23605 ac_cv_sizeof_short_int=0
23608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23609 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23610 cat >>confdefs.h <<_ACEOF
23611 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23615 echo "$as_me:$LINENO: checking for int" >&5
23616 echo $ECHO_N "checking for int... $ECHO_C" >&6
23617 if test "${ac_cv_type_int+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 cat >conftest.$ac_ext <<_ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 $ac_includes_default
23638 rm -f conftest.$ac_objext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640 (eval $ac_compile) 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest.$ac_objext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23669 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23670 echo "${ECHO_T}$ac_cv_type_int" >&6
23672 echo "$as_me:$LINENO: checking size of int" >&5
23673 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23674 if test "${ac_cv_sizeof_int+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 if test "$ac_cv_type_int" = yes; then
23678 # The cast to unsigned long works around a bug in the HP C Compiler
23679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23681 # This bug is HP SR number 8606223364.
23682 if test "$cross_compiling" = yes; then
23683 # Depending upon the size, compute the lo and hi bounds.
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 $ac_includes_default
23694 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23701 rm -f conftest.$ac_objext
23702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23703 (eval $ac_compile) 2>conftest.er1
23705 grep -v '^ *+' conftest.er1 >conftest.err
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } &&
23710 { ac_try='test -z "$ac_c_werror_flag"
23711 || test ! -s conftest.err'
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; } &&
23717 { ac_try='test -s conftest.$ac_objext'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; }; then
23725 cat >conftest.$ac_ext <<_ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 $ac_includes_default
23735 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23742 rm -f conftest.$ac_objext
23743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23744 (eval $ac_compile) 2>conftest.er1
23746 grep -v '^ *+' conftest.er1 >conftest.err
23748 cat conftest.err >&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } &&
23751 { ac_try='test -z "$ac_c_werror_flag"
23752 || test ! -s conftest.err'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; } &&
23758 { ac_try='test -s conftest.$ac_objext'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }; then
23764 ac_hi=$ac_mid; break
23766 echo "$as_me: failed program was:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23769 ac_lo=`expr $ac_mid + 1`
23770 if test $ac_lo -le $ac_mid; then
23774 ac_mid=`expr 2 '*' $ac_mid + 1`
23776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 cat >conftest.$ac_ext <<_ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h. */
23788 $ac_includes_default
23792 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23799 rm -f conftest.$ac_objext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23801 (eval $ac_compile) 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
23808 { ac_try='test -z "$ac_c_werror_flag"
23809 || test ! -s conftest.err'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest.$ac_objext'
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23823 cat >conftest.$ac_ext <<_ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h. */
23829 $ac_includes_default
23833 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23840 rm -f conftest.$ac_objext
23841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23842 (eval $ac_compile) 2>conftest.er1
23844 grep -v '^ *+' conftest.er1 >conftest.err
23846 cat conftest.err >&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } &&
23849 { ac_try='test -z "$ac_c_werror_flag"
23850 || test ! -s conftest.err'
23851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852 (eval $ac_try) 2>&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; } &&
23856 { ac_try='test -s conftest.$ac_objext'
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; }; then
23862 ac_lo=$ac_mid; break
23864 echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23867 ac_hi=`expr '(' $ac_mid ')' - 1`
23868 if test $ac_mid -le $ac_hi; then
23872 ac_mid=`expr 2 '*' $ac_mid`
23874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23885 # Binary search between lo and hi bounds.
23886 while test "x$ac_lo" != "x$ac_hi"; do
23887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 $ac_includes_default
23898 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23905 rm -f conftest.$ac_objext
23906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23907 (eval $ac_compile) 2>conftest.er1
23909 grep -v '^ *+' conftest.er1 >conftest.err
23911 cat conftest.err >&5
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } &&
23914 { ac_try='test -z "$ac_c_werror_flag"
23915 || test ! -s conftest.err'
23916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917 (eval $ac_try) 2>&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; } &&
23921 { ac_try='test -s conftest.$ac_objext'
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23932 ac_lo=`expr '(' $ac_mid ')' + 1`
23934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23937 ?*) ac_cv_sizeof_int=$ac_lo;;
23938 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23939 See \`config.log' for more details." >&5
23940 echo "$as_me: error: cannot compute sizeof (int), 77
23941 See \`config.log' for more details." >&2;}
23942 { (exit 1); exit 1; }; } ;;
23945 if test "$cross_compiling" = yes; then
23946 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23947 See \`config.log' for more details." >&5
23948 echo "$as_me: error: cannot run test program while cross compiling
23949 See \`config.log' for more details." >&2;}
23950 { (exit 1); exit 1; }; }
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 $ac_includes_default
23959 long longval () { return (long) (sizeof (int)); }
23960 unsigned long ulongval () { return (long) (sizeof (int)); }
23962 #include <stdlib.h>
23967 FILE *f = fopen ("conftest.val", "w");
23970 if (((long) (sizeof (int))) < 0)
23972 long i = longval ();
23973 if (i != ((long) (sizeof (int))))
23975 fprintf (f, "%ld\n", i);
23979 unsigned long i = ulongval ();
23980 if (i != ((long) (sizeof (int))))
23982 fprintf (f, "%lu\n", i);
23984 exit (ferror (f) || fclose (f) != 0);
23990 rm -f conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992 (eval $ac_link) 2>&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 ac_cv_sizeof_int=`cat conftest.val`
24003 echo "$as_me: program exited with status $ac_status" >&5
24004 echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24007 ( exit $ac_status )
24008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24009 See \`config.log' for more details." >&5
24010 echo "$as_me: error: cannot compute sizeof (int), 77
24011 See \`config.log' for more details." >&2;}
24012 { (exit 1); exit 1; }; }
24014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24022 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24023 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24024 cat >>confdefs.h <<_ACEOF
24025 #define SIZEOF_INT $ac_cv_sizeof_int
24029 echo "$as_me:$LINENO: checking for long int" >&5
24030 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24031 if test "${ac_cv_type_long_int+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 $ac_includes_default
24044 if ((long int *) 0)
24046 if (sizeof (long int))
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
24061 { ac_try='test -z "$ac_c_werror_flag"
24062 || test ! -s conftest.err'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 ac_cv_type_long_int=yes
24076 echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24079 ac_cv_type_long_int=no
24081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24083 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24084 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24086 echo "$as_me:$LINENO: checking size of long int" >&5
24087 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24088 if test "${ac_cv_sizeof_long_int+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24091 if test "$ac_cv_type_long_int" = yes; then
24092 # The cast to unsigned long works around a bug in the HP C Compiler
24093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24095 # This bug is HP SR number 8606223364.
24096 if test "$cross_compiling" = yes; then
24097 # Depending upon the size, compute the lo and hi bounds.
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24104 $ac_includes_default
24108 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24115 rm -f conftest.$ac_objext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117 (eval $ac_compile) 2>conftest.er1
24119 grep -v '^ *+' conftest.er1 >conftest.err
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } &&
24124 { ac_try='test -z "$ac_c_werror_flag"
24125 || test ! -s conftest.err'
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; } &&
24131 { ac_try='test -s conftest.$ac_objext'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24139 cat >conftest.$ac_ext <<_ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24149 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24156 rm -f conftest.$ac_objext
24157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24158 (eval $ac_compile) 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } &&
24165 { ac_try='test -z "$ac_c_werror_flag"
24166 || test ! -s conftest.err'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; } &&
24172 { ac_try='test -s conftest.$ac_objext'
24173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174 (eval $ac_try) 2>&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); }; }; then
24178 ac_hi=$ac_mid; break
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24183 ac_lo=`expr $ac_mid + 1`
24184 if test $ac_lo -le $ac_mid; then
24188 ac_mid=`expr 2 '*' $ac_mid + 1`
24190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24193 echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24196 cat >conftest.$ac_ext <<_ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h. */
24202 $ac_includes_default
24206 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24213 rm -f conftest.$ac_objext
24214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24215 (eval $ac_compile) 2>conftest.er1
24217 grep -v '^ *+' conftest.er1 >conftest.err
24219 cat conftest.err >&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } &&
24222 { ac_try='test -z "$ac_c_werror_flag"
24223 || test ! -s conftest.err'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; } &&
24229 { ac_try='test -s conftest.$ac_objext'
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; }; then
24237 cat >conftest.$ac_ext <<_ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h. */
24243 $ac_includes_default
24247 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24254 rm -f conftest.$ac_objext
24255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24256 (eval $ac_compile) 2>conftest.er1
24258 grep -v '^ *+' conftest.er1 >conftest.err
24260 cat conftest.err >&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } &&
24263 { ac_try='test -z "$ac_c_werror_flag"
24264 || test ! -s conftest.err'
24265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266 (eval $ac_try) 2>&5
24268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); }; } &&
24270 { ac_try='test -s conftest.$ac_objext'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; }; then
24276 ac_lo=$ac_mid; break
24278 echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281 ac_hi=`expr '(' $ac_mid ')' - 1`
24282 if test $ac_mid -le $ac_hi; then
24286 ac_mid=`expr 2 '*' $ac_mid`
24288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24291 echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24299 # Binary search between lo and hi bounds.
24300 while test "x$ac_lo" != "x$ac_hi"; do
24301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 $ac_includes_default
24312 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24319 rm -f conftest.$ac_objext
24320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24321 (eval $ac_compile) 2>conftest.er1
24323 grep -v '^ *+' conftest.er1 >conftest.err
24325 cat conftest.err >&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); } &&
24328 { ac_try='test -z "$ac_c_werror_flag"
24329 || test ! -s conftest.err'
24330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331 (eval $ac_try) 2>&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); }; } &&
24335 { ac_try='test -s conftest.$ac_objext'
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.$ac_ext >&5
24346 ac_lo=`expr '(' $ac_mid ')' + 1`
24348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24351 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24352 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24353 See \`config.log' for more details." >&5
24354 echo "$as_me: error: cannot compute sizeof (long int), 77
24355 See \`config.log' for more details." >&2;}
24356 { (exit 1); exit 1; }; } ;;
24359 if test "$cross_compiling" = yes; then
24360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24361 See \`config.log' for more details." >&5
24362 echo "$as_me: error: cannot run test program while cross compiling
24363 See \`config.log' for more details." >&2;}
24364 { (exit 1); exit 1; }; }
24366 cat >conftest.$ac_ext <<_ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24372 $ac_includes_default
24373 long longval () { return (long) (sizeof (long int)); }
24374 unsigned long ulongval () { return (long) (sizeof (long int)); }
24376 #include <stdlib.h>
24381 FILE *f = fopen ("conftest.val", "w");
24384 if (((long) (sizeof (long int))) < 0)
24386 long i = longval ();
24387 if (i != ((long) (sizeof (long int))))
24389 fprintf (f, "%ld\n", i);
24393 unsigned long i = ulongval ();
24394 if (i != ((long) (sizeof (long int))))
24396 fprintf (f, "%lu\n", i);
24398 exit (ferror (f) || fclose (f) != 0);
24404 rm -f conftest$ac_exeext
24405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24406 (eval $ac_link) 2>&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24411 (eval $ac_try) 2>&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); }; }; then
24415 ac_cv_sizeof_long_int=`cat conftest.val`
24417 echo "$as_me: program exited with status $ac_status" >&5
24418 echo "$as_me: failed program was:" >&5
24419 sed 's/^/| /' conftest.$ac_ext >&5
24421 ( exit $ac_status )
24422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24423 See \`config.log' for more details." >&5
24424 echo "$as_me: error: cannot compute sizeof (long int), 77
24425 See \`config.log' for more details." >&2;}
24426 { (exit 1); exit 1; }; }
24428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24433 ac_cv_sizeof_long_int=0
24436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24437 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24438 cat >>confdefs.h <<_ACEOF
24439 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24443 echo "$as_me:$LINENO: checking for long long int" >&5
24444 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24445 if test "${ac_cv_type_long_long_int+set}" = set; then
24446 echo $ECHO_N "(cached) $ECHO_C" >&6
24448 cat >conftest.$ac_ext <<_ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454 $ac_includes_default
24458 if ((long long int *) 0)
24460 if (sizeof (long long int))
24466 rm -f conftest.$ac_objext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24468 (eval $ac_compile) 2>conftest.er1
24470 grep -v '^ *+' conftest.er1 >conftest.err
24472 cat conftest.err >&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } &&
24475 { ac_try='test -z "$ac_c_werror_flag"
24476 || test ! -s conftest.err'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; } &&
24482 { ac_try='test -s conftest.$ac_objext'
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; }; then
24488 ac_cv_type_long_long_int=yes
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_cv_type_long_long_int=no
24495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24497 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24498 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24500 echo "$as_me:$LINENO: checking size of long long int" >&5
24501 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24502 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24503 echo $ECHO_N "(cached) $ECHO_C" >&6
24505 if test "$ac_cv_type_long_long_int" = yes; then
24506 # The cast to unsigned long works around a bug in the HP C Compiler
24507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24509 # This bug is HP SR number 8606223364.
24510 if test "$cross_compiling" = yes; then
24511 # Depending upon the size, compute the lo and hi bounds.
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24522 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24529 rm -f conftest.$ac_objext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24531 (eval $ac_compile) 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } &&
24538 { ac_try='test -z "$ac_c_werror_flag"
24539 || test ! -s conftest.err'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } &&
24545 { ac_try='test -s conftest.$ac_objext'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; }; then
24553 cat >conftest.$ac_ext <<_ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h. */
24559 $ac_includes_default
24563 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24570 rm -f conftest.$ac_objext
24571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24572 (eval $ac_compile) 2>conftest.er1
24574 grep -v '^ *+' conftest.er1 >conftest.err
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } &&
24579 { ac_try='test -z "$ac_c_werror_flag"
24580 || test ! -s conftest.err'
24581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582 (eval $ac_try) 2>&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; } &&
24586 { ac_try='test -s conftest.$ac_objext'
24587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588 (eval $ac_try) 2>&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; }; then
24592 ac_hi=$ac_mid; break
24594 echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24597 ac_lo=`expr $ac_mid + 1`
24598 if test $ac_lo -le $ac_mid; then
24602 ac_mid=`expr 2 '*' $ac_mid + 1`
24604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24607 echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24610 cat >conftest.$ac_ext <<_ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h. */
24616 $ac_includes_default
24620 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24627 rm -f conftest.$ac_objext
24628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24629 (eval $ac_compile) 2>conftest.er1
24631 grep -v '^ *+' conftest.er1 >conftest.err
24633 cat conftest.err >&5
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } &&
24636 { ac_try='test -z "$ac_c_werror_flag"
24637 || test ! -s conftest.err'
24638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24639 (eval $ac_try) 2>&5
24641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642 (exit $ac_status); }; } &&
24643 { ac_try='test -s conftest.$ac_objext'
24644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645 (eval $ac_try) 2>&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24651 cat >conftest.$ac_ext <<_ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24657 $ac_includes_default
24661 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24668 rm -f conftest.$ac_objext
24669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24670 (eval $ac_compile) 2>conftest.er1
24672 grep -v '^ *+' conftest.er1 >conftest.err
24674 cat conftest.err >&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } &&
24677 { ac_try='test -z "$ac_c_werror_flag"
24678 || test ! -s conftest.err'
24679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680 (eval $ac_try) 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; } &&
24684 { ac_try='test -s conftest.$ac_objext'
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
24690 ac_lo=$ac_mid; break
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ac_hi=`expr '(' $ac_mid ')' - 1`
24696 if test $ac_mid -le $ac_hi; then
24700 ac_mid=`expr 2 '*' $ac_mid`
24702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24705 echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24713 # Binary search between lo and hi bounds.
24714 while test "x$ac_lo" != "x$ac_hi"; do
24715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 $ac_includes_default
24726 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24733 rm -f conftest.$ac_objext
24734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24735 (eval $ac_compile) 2>conftest.er1
24737 grep -v '^ *+' conftest.er1 >conftest.err
24739 cat conftest.err >&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); } &&
24742 { ac_try='test -z "$ac_c_werror_flag"
24743 || test ! -s conftest.err'
24744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745 (eval $ac_try) 2>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); }; } &&
24749 { ac_try='test -s conftest.$ac_objext'
24750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751 (eval $ac_try) 2>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; }; then
24757 echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24760 ac_lo=`expr '(' $ac_mid ')' + 1`
24762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24765 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24766 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24767 See \`config.log' for more details." >&5
24768 echo "$as_me: error: cannot compute sizeof (long long int), 77
24769 See \`config.log' for more details." >&2;}
24770 { (exit 1); exit 1; }; } ;;
24773 if test "$cross_compiling" = yes; then
24774 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24775 See \`config.log' for more details." >&5
24776 echo "$as_me: error: cannot run test program while cross compiling
24777 See \`config.log' for more details." >&2;}
24778 { (exit 1); exit 1; }; }
24780 cat >conftest.$ac_ext <<_ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 $ac_includes_default
24787 long longval () { return (long) (sizeof (long long int)); }
24788 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24790 #include <stdlib.h>
24795 FILE *f = fopen ("conftest.val", "w");
24798 if (((long) (sizeof (long long int))) < 0)
24800 long i = longval ();
24801 if (i != ((long) (sizeof (long long int))))
24803 fprintf (f, "%ld\n", i);
24807 unsigned long i = ulongval ();
24808 if (i != ((long) (sizeof (long long int))))
24810 fprintf (f, "%lu\n", i);
24812 exit (ferror (f) || fclose (f) != 0);
24818 rm -f conftest$ac_exeext
24819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24820 (eval $ac_link) 2>&5
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24825 (eval $ac_try) 2>&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); }; }; then
24829 ac_cv_sizeof_long_long_int=`cat conftest.val`
24831 echo "$as_me: program exited with status $ac_status" >&5
24832 echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24835 ( exit $ac_status )
24836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24837 See \`config.log' for more details." >&5
24838 echo "$as_me: error: cannot compute sizeof (long long int), 77
24839 See \`config.log' for more details." >&2;}
24840 { (exit 1); exit 1; }; }
24842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24847 ac_cv_sizeof_long_long_int=0
24850 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24851 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24852 cat >>confdefs.h <<_ACEOF
24853 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24857 echo "$as_me:$LINENO: checking for int *" >&5
24858 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24859 if test "${ac_cv_type_int_p+set}" = set; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 cat >conftest.$ac_ext <<_ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24868 $ac_includes_default
24874 if (sizeof (int *))
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882 (eval $ac_compile) 2>conftest.er1
24884 grep -v '^ *+' conftest.er1 >conftest.err
24886 cat conftest.err >&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } &&
24889 { ac_try='test -z "$ac_c_werror_flag"
24890 || test ! -s conftest.err'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; } &&
24896 { ac_try='test -s conftest.$ac_objext'
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_cv_type_int_p=yes
24904 echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24907 ac_cv_type_int_p=no
24909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24911 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24912 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24914 echo "$as_me:$LINENO: checking size of int *" >&5
24915 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24916 if test "${ac_cv_sizeof_int_p+set}" = set; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24919 if test "$ac_cv_type_int_p" = yes; then
24920 # The cast to unsigned long works around a bug in the HP C Compiler
24921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24923 # This bug is HP SR number 8606223364.
24924 if test "$cross_compiling" = yes; then
24925 # Depending upon the size, compute the lo and hi bounds.
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 $ac_includes_default
24936 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24943 rm -f conftest.$ac_objext
24944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24945 (eval $ac_compile) 2>conftest.er1
24947 grep -v '^ *+' conftest.er1 >conftest.err
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } &&
24952 { ac_try='test -z "$ac_c_werror_flag"
24953 || test ! -s conftest.err'
24954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955 (eval $ac_try) 2>&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; } &&
24959 { ac_try='test -s conftest.$ac_objext'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; }; then
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 $ac_includes_default
24977 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24984 rm -f conftest.$ac_objext
24985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24986 (eval $ac_compile) 2>conftest.er1
24988 grep -v '^ *+' conftest.er1 >conftest.err
24990 cat conftest.err >&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } &&
24993 { ac_try='test -z "$ac_c_werror_flag"
24994 || test ! -s conftest.err'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; } &&
25000 { ac_try='test -s conftest.$ac_objext'
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_hi=$ac_mid; break
25008 echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25011 ac_lo=`expr $ac_mid + 1`
25012 if test $ac_lo -le $ac_mid; then
25016 ac_mid=`expr 2 '*' $ac_mid + 1`
25018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25021 echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 cat >conftest.$ac_ext <<_ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25034 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25041 rm -f conftest.$ac_objext
25042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25043 (eval $ac_compile) 2>conftest.er1
25045 grep -v '^ *+' conftest.er1 >conftest.err
25047 cat conftest.err >&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } &&
25050 { ac_try='test -z "$ac_c_werror_flag"
25051 || test ! -s conftest.err'
25052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053 (eval $ac_try) 2>&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); }; } &&
25057 { ac_try='test -s conftest.$ac_objext'
25058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059 (eval $ac_try) 2>&5
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; }; then
25065 cat >conftest.$ac_ext <<_ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 $ac_includes_default
25075 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25082 rm -f conftest.$ac_objext
25083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25084 (eval $ac_compile) 2>conftest.er1
25086 grep -v '^ *+' conftest.er1 >conftest.err
25088 cat conftest.err >&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); } &&
25091 { ac_try='test -z "$ac_c_werror_flag"
25092 || test ! -s conftest.err'
25093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25094 (eval $ac_try) 2>&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); }; } &&
25098 { ac_try='test -s conftest.$ac_objext'
25099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100 (eval $ac_try) 2>&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); }; }; then
25104 ac_lo=$ac_mid; break
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ac_hi=`expr '(' $ac_mid ')' - 1`
25110 if test $ac_mid -le $ac_hi; then
25114 ac_mid=`expr 2 '*' $ac_mid`
25116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25127 # Binary search between lo and hi bounds.
25128 while test "x$ac_lo" != "x$ac_hi"; do
25129 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25130 cat >conftest.$ac_ext <<_ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25136 $ac_includes_default
25140 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25147 rm -f conftest.$ac_objext
25148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25149 (eval $ac_compile) 2>conftest.er1
25151 grep -v '^ *+' conftest.er1 >conftest.err
25153 cat conftest.err >&5
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); } &&
25156 { ac_try='test -z "$ac_c_werror_flag"
25157 || test ! -s conftest.err'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; } &&
25163 { ac_try='test -s conftest.$ac_objext'
25164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165 (eval $ac_try) 2>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; }; then
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_lo=`expr '(' $ac_mid ')' + 1`
25176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25179 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25180 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25181 See \`config.log' for more details." >&5
25182 echo "$as_me: error: cannot compute sizeof (int *), 77
25183 See \`config.log' for more details." >&2;}
25184 { (exit 1); exit 1; }; } ;;
25187 if test "$cross_compiling" = yes; then
25188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25189 See \`config.log' for more details." >&5
25190 echo "$as_me: error: cannot run test program while cross compiling
25191 See \`config.log' for more details." >&2;}
25192 { (exit 1); exit 1; }; }
25194 cat >conftest.$ac_ext <<_ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h. */
25200 $ac_includes_default
25201 long longval () { return (long) (sizeof (int *)); }
25202 unsigned long ulongval () { return (long) (sizeof (int *)); }
25204 #include <stdlib.h>
25209 FILE *f = fopen ("conftest.val", "w");
25212 if (((long) (sizeof (int *))) < 0)
25214 long i = longval ();
25215 if (i != ((long) (sizeof (int *))))
25217 fprintf (f, "%ld\n", i);
25221 unsigned long i = ulongval ();
25222 if (i != ((long) (sizeof (int *))))
25224 fprintf (f, "%lu\n", i);
25226 exit (ferror (f) || fclose (f) != 0);
25232 rm -f conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234 (eval $ac_link) 2>&5
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; }; then
25243 ac_cv_sizeof_int_p=`cat conftest.val`
25245 echo "$as_me: program exited with status $ac_status" >&5
25246 echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25249 ( exit $ac_status )
25250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25251 See \`config.log' for more details." >&5
25252 echo "$as_me: error: cannot compute sizeof (int *), 77
25253 See \`config.log' for more details." >&2;}
25254 { (exit 1); exit 1; }; }
25256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25261 ac_cv_sizeof_int_p=0
25264 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25265 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25266 cat >>confdefs.h <<_ACEOF
25267 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25272 # Check for sys/types.h types
25273 echo "$as_me:$LINENO: checking for u_int type" >&5
25274 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25275 if test "${ac_cv_have_u_int+set}" = set; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 cat >conftest.$ac_ext <<_ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h. */
25285 #include <sys/types.h>
25294 rm -f conftest.$ac_objext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25296 (eval $ac_compile) 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
25303 { ac_try='test -z "$ac_c_werror_flag"
25304 || test ! -s conftest.err'
25305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306 (eval $ac_try) 2>&5
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); }; } &&
25310 { ac_try='test -s conftest.$ac_objext'
25311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312 (eval $ac_try) 2>&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; }; then
25316 ac_cv_have_u_int="yes"
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25321 ac_cv_have_u_int="no"
25324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25327 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25328 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25329 if test "x$ac_cv_have_u_int" = "xyes" ; then
25330 cat >>confdefs.h <<\_ACEOF
25331 #define HAVE_U_INT 1
25337 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25338 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25339 if test "${ac_cv_have_intmax_t+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25343 cat >conftest.$ac_ext <<_ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 #include <sys/types.h>
25358 rm -f conftest.$ac_objext
25359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360 (eval $ac_compile) 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } &&
25367 { ac_try='test -z "$ac_c_werror_flag"
25368 || test ! -s conftest.err'
25369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370 (eval $ac_try) 2>&5
25372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373 (exit $ac_status); }; } &&
25374 { ac_try='test -s conftest.$ac_objext'
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; }; then
25380 ac_cv_have_intmax_t="yes"
25382 echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 #include <stdint.h>
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403 (eval $ac_compile) 2>conftest.er1
25405 grep -v '^ *+' conftest.er1 >conftest.err
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag"
25411 || test ! -s conftest.err'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; } &&
25417 { ac_try='test -s conftest.$ac_objext'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 ac_cv_have_intmax_t="yes"
25425 echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25428 ac_cv_have_intmax_t="no"
25431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25439 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25440 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25441 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25442 cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_INTMAX_T 1
25450 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25451 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25452 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25453 echo $ECHO_N "(cached) $ECHO_C" >&6
25456 cat >conftest.$ac_ext <<_ACEOF
25459 cat confdefs.h >>conftest.$ac_ext
25460 cat >>conftest.$ac_ext <<_ACEOF
25461 /* end confdefs.h. */
25462 #include <sys/types.h>
25466 u_intmax_t a; a = 1;
25471 rm -f conftest.$ac_objext
25472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25473 (eval $ac_compile) 2>conftest.er1
25475 grep -v '^ *+' conftest.er1 >conftest.err
25477 cat conftest.err >&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } &&
25480 { ac_try='test -z "$ac_c_werror_flag"
25481 || test ! -s conftest.err'
25482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25483 (eval $ac_try) 2>&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); }; } &&
25487 { ac_try='test -s conftest.$ac_objext'
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; }; then
25493 ac_cv_have_u_intmax_t="yes"
25495 echo "$as_me: failed program was:" >&5
25496 sed 's/^/| /' conftest.$ac_ext >&5
25499 cat >conftest.$ac_ext <<_ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h. */
25505 #include <stdint.h>
25509 u_intmax_t a; a = 1;
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516 (eval $ac_compile) 2>conftest.er1
25518 grep -v '^ *+' conftest.er1 >conftest.err
25520 cat conftest.err >&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
25523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest.$ac_objext'
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 ac_cv_have_u_intmax_t="yes"
25538 echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25541 ac_cv_have_u_intmax_t="no"
25544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25551 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25552 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25553 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25554 cat >>confdefs.h <<\_ACEOF
25555 #define HAVE_U_INTMAX_T 1
25562 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25563 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25564 if test "${ac_cv_have_intxx_t+set}" = set; then
25565 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 #include <sys/types.h>
25578 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25583 rm -f conftest.$ac_objext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25585 (eval $ac_compile) 2>conftest.er1
25587 grep -v '^ *+' conftest.er1 >conftest.err
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } &&
25592 { ac_try='test -z "$ac_c_werror_flag"
25593 || test ! -s conftest.err'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; } &&
25599 { ac_try='test -s conftest.$ac_objext'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; }; then
25605 ac_cv_have_intxx_t="yes"
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ac_cv_have_intxx_t="no"
25613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25616 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25617 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25618 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25619 cat >>confdefs.h <<\_ACEOF
25620 #define HAVE_INTXX_T 1
25626 echo "$as_me:$LINENO: checking for int64_t type" >&5
25627 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25628 if test "${ac_cv_have_int64_t+set}" = set; then
25629 echo $ECHO_N "(cached) $ECHO_C" >&6
25632 cat >conftest.$ac_ext <<_ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25638 #include <sys/types.h>
25647 rm -f conftest.$ac_objext
25648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25649 (eval $ac_compile) 2>conftest.er1
25651 grep -v '^ *+' conftest.er1 >conftest.err
25653 cat conftest.err >&5
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); } &&
25656 { ac_try='test -z "$ac_c_werror_flag"
25657 || test ! -s conftest.err'
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; } &&
25663 { ac_try='test -s conftest.$ac_objext'
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25669 ac_cv_have_int64_t="yes"
25671 echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25674 ac_cv_have_int64_t="no"
25677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25680 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25681 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25682 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25683 cat >>confdefs.h <<\_ACEOF
25684 #define HAVE_INT64_T 1
25690 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25691 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25692 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25696 cat >conftest.$ac_ext <<_ACEOF
25699 cat confdefs.h >>conftest.$ac_ext
25700 cat >>conftest.$ac_ext <<_ACEOF
25701 /* end confdefs.h. */
25702 #include <sys/types.h>
25706 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25711 rm -f conftest.$ac_objext
25712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25713 (eval $ac_compile) 2>conftest.er1
25715 grep -v '^ *+' conftest.er1 >conftest.err
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } &&
25720 { ac_try='test -z "$ac_c_werror_flag"
25721 || test ! -s conftest.err'
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; } &&
25727 { ac_try='test -s conftest.$ac_objext'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; }; then
25733 ac_cv_have_u_intxx_t="yes"
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_cv_have_u_intxx_t="no"
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25744 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25745 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25746 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25747 cat >>confdefs.h <<\_ACEOF
25748 #define HAVE_U_INTXX_T 1
25754 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25755 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25756 if test "${ac_cv_have_u_int64_t+set}" = set; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25760 cat >conftest.$ac_ext <<_ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 #include <sys/types.h>
25770 u_int64_t a; a = 1;
25775 rm -f conftest.$ac_objext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25777 (eval $ac_compile) 2>conftest.er1
25779 grep -v '^ *+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } &&
25784 { ac_try='test -z "$ac_c_werror_flag"
25785 || test ! -s conftest.err'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; } &&
25791 { ac_try='test -s conftest.$ac_objext'
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; }; then
25797 ac_cv_have_u_int64_t="yes"
25799 echo "$as_me: failed program was:" >&5
25800 sed 's/^/| /' conftest.$ac_ext >&5
25802 ac_cv_have_u_int64_t="no"
25805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25808 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25809 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25810 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25811 cat >>confdefs.h <<\_ACEOF
25812 #define HAVE_U_INT64_T 1
25818 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25819 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25821 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25822 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25823 cat >conftest.$ac_ext <<_ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h. */
25829 #include <sys/bitypes.h>
25833 int8_t a; int16_t b; int32_t c;
25834 u_int8_t e; u_int16_t f; u_int32_t g;
25835 a = b = c = e = f = g = 1;
25840 rm -f conftest.$ac_objext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842 (eval $ac_compile) 2>conftest.er1
25844 grep -v '^ *+' conftest.er1 >conftest.err
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } &&
25849 { ac_try='test -z "$ac_c_werror_flag"
25850 || test ! -s conftest.err'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; } &&
25856 { ac_try='test -s conftest.$ac_objext'
25857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 cat >>confdefs.h <<\_ACEOF
25863 #define HAVE_U_INTXX_T 1
25866 cat >>confdefs.h <<\_ACEOF
25867 #define HAVE_INTXX_T 1
25870 cat >>confdefs.h <<\_ACEOF
25871 #define HAVE_SYS_BITYPES_H 1
25874 echo "$as_me:$LINENO: result: yes" >&5
25875 echo "${ECHO_T}yes" >&6
25877 echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 echo "$as_me:$LINENO: result: no" >&5
25881 echo "${ECHO_T}no" >&6
25884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 if test -z "$have_u_intxx_t" ; then
25888 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25889 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25890 if test "${ac_cv_have_uintxx_t+set}" = set; then
25891 echo $ECHO_N "(cached) $ECHO_C" >&6
25894 cat >conftest.$ac_ext <<_ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h. */
25900 #include <sys/types.h>
25904 uint8_t a; uint16_t b;
25905 uint32_t c; a = b = c = 1;
25910 rm -f conftest.$ac_objext
25911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25912 (eval $ac_compile) 2>conftest.er1
25914 grep -v '^ *+' conftest.er1 >conftest.err
25916 cat conftest.err >&5
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); } &&
25919 { ac_try='test -z "$ac_c_werror_flag"
25920 || test ! -s conftest.err'
25921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922 (eval $ac_try) 2>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }; } &&
25926 { ac_try='test -s conftest.$ac_objext'
25927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928 (eval $ac_try) 2>&5
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); }; }; then
25932 ac_cv_have_uintxx_t="yes"
25934 echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25937 ac_cv_have_uintxx_t="no"
25940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25943 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25944 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25945 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25946 cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_UINTXX_T 1
25953 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25954 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25956 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25957 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25958 cat >conftest.$ac_ext <<_ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 #include <sys/bitypes.h>
25968 int64_t a; u_int64_t b;
25974 rm -f conftest.$ac_objext
25975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25976 (eval $ac_compile) 2>conftest.er1
25978 grep -v '^ *+' conftest.er1 >conftest.err
25980 cat conftest.err >&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); } &&
25983 { ac_try='test -z "$ac_c_werror_flag"
25984 || test ! -s conftest.err'
25985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986 (eval $ac_try) 2>&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; } &&
25990 { ac_try='test -s conftest.$ac_objext'
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; }; then
25996 cat >>confdefs.h <<\_ACEOF
25997 #define HAVE_U_INT64_T 1
26000 cat >>confdefs.h <<\_ACEOF
26001 #define HAVE_INT64_T 1
26004 echo "$as_me:$LINENO: result: yes" >&5
26005 echo "${ECHO_T}yes" >&6
26007 echo "$as_me: failed program was:" >&5
26008 sed 's/^/| /' conftest.$ac_ext >&5
26010 echo "$as_me:$LINENO: result: no" >&5
26011 echo "${ECHO_T}no" >&6
26014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26017 if (test -z "$have_uintxx_t" && \
26018 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26020 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26021 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26028 #include <sys/bitypes.h>
26032 uint8_t a; uint16_t b;
26033 uint32_t c; a = b = c = 1;
26038 rm -f conftest.$ac_objext
26039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26040 (eval $ac_compile) 2>conftest.er1
26042 grep -v '^ *+' conftest.er1 >conftest.err
26044 cat conftest.err >&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } &&
26047 { ac_try='test -z "$ac_c_werror_flag"
26048 || test ! -s conftest.err'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; } &&
26054 { ac_try='test -s conftest.$ac_objext'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; }; then
26060 cat >>confdefs.h <<\_ACEOF
26061 #define HAVE_UINTXX_T 1
26064 echo "$as_me:$LINENO: result: yes" >&5
26065 echo "${ECHO_T}yes" >&6
26067 echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26070 echo "$as_me:$LINENO: result: no" >&5
26071 echo "${ECHO_T}no" >&6
26074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26111 echo "$as_me:$LINENO: checking for $ac_func" >&5
26112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26113 if eval "test \"\${$as_ac_var+set}\" = set"; then
26114 echo $ECHO_N "(cached) $ECHO_C" >&6
26116 cat >conftest.$ac_ext <<_ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h. */
26122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26124 #define $ac_func innocuous_$ac_func
26126 /* System header to define __stub macros and hopefully few prototypes,
26127 which can conflict with char $ac_func (); below.
26128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26129 <limits.h> exists even on freestanding compilers. */
26132 # include <limits.h>
26134 # include <assert.h>
26139 /* Override any gcc2 internal prototype to avoid an error. */
26144 /* We use char because int might match the return type of a gcc2
26145 builtin and then its argument prototype would still apply. */
26147 /* The GNU C library defines this for functions which it implements
26148 to always fail with ENOSYS. Some functions are actually named
26149 something starting with __ and the normal name is an alias. */
26150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26153 char (*f) () = $ac_func;
26162 return f != $ac_func;
26167 rm -f conftest.$ac_objext conftest$ac_exeext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26169 (eval $ac_link) 2>conftest.er1
26171 grep -v '^ *+' conftest.er1 >conftest.err
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
26176 { ac_try='test -z "$ac_c_werror_flag"
26177 || test ! -s conftest.err'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; } &&
26183 { ac_try='test -s conftest$ac_exeext'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189 eval "$as_ac_var=yes"
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 eval "$as_ac_var=no"
26196 rm -f conftest.err conftest.$ac_objext \
26197 conftest$ac_exeext conftest.$ac_ext
26199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26201 if test `eval echo '${'$as_ac_var'}'` = yes; then
26202 cat >>confdefs.h <<_ACEOF
26203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26207 echo 'configure: cannot find needed function.'; exit 1
26214 for ac_func in fchdir
26216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26217 echo "$as_me:$LINENO: checking for $ac_func" >&5
26218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26219 if eval "test \"\${$as_ac_var+set}\" = set"; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26230 #define $ac_func innocuous_$ac_func
26232 /* System header to define __stub macros and hopefully few prototypes,
26233 which can conflict with char $ac_func (); below.
26234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26235 <limits.h> exists even on freestanding compilers. */
26238 # include <limits.h>
26240 # include <assert.h>
26245 /* Override any gcc2 internal prototype to avoid an error. */
26250 /* We use char because int might match the return type of a gcc2
26251 builtin and then its argument prototype would still apply. */
26253 /* The GNU C library defines this for functions which it implements
26254 to always fail with ENOSYS. Some functions are actually named
26255 something starting with __ and the normal name is an alias. */
26256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26259 char (*f) () = $ac_func;
26268 return f != $ac_func;
26273 rm -f conftest.$ac_objext conftest$ac_exeext
26274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26275 (eval $ac_link) 2>conftest.er1
26277 grep -v '^ *+' conftest.er1 >conftest.err
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } &&
26282 { ac_try='test -z "$ac_c_werror_flag"
26283 || test ! -s conftest.err'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } &&
26289 { ac_try='test -s conftest$ac_exeext'
26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26291 (eval $ac_try) 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; }; then
26295 eval "$as_ac_var=yes"
26297 echo "$as_me: failed program was:" >&5
26298 sed 's/^/| /' conftest.$ac_ext >&5
26300 eval "$as_ac_var=no"
26302 rm -f conftest.err conftest.$ac_objext \
26303 conftest$ac_exeext conftest.$ac_ext
26305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26307 if test `eval echo '${'$as_ac_var'}'` = yes; then
26308 cat >>confdefs.h <<_ACEOF
26309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26311 cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_FCHDIR 1
26319 for ac_func in strtoll
26321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26322 echo "$as_me:$LINENO: checking for $ac_func" >&5
26323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26324 if eval "test \"\${$as_ac_var+set}\" = set"; then
26325 echo $ECHO_N "(cached) $ECHO_C" >&6
26327 cat >conftest.$ac_ext <<_ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h. */
26333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26335 #define $ac_func innocuous_$ac_func
26337 /* System header to define __stub macros and hopefully few prototypes,
26338 which can conflict with char $ac_func (); below.
26339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26340 <limits.h> exists even on freestanding compilers. */
26343 # include <limits.h>
26345 # include <assert.h>
26350 /* Override any gcc2 internal prototype to avoid an error. */
26355 /* We use char because int might match the return type of a gcc2
26356 builtin and then its argument prototype would still apply. */
26358 /* The GNU C library defines this for functions which it implements
26359 to always fail with ENOSYS. Some functions are actually named
26360 something starting with __ and the normal name is an alias. */
26361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26364 char (*f) () = $ac_func;
26373 return f != $ac_func;
26378 rm -f conftest.$ac_objext conftest$ac_exeext
26379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26380 (eval $ac_link) 2>conftest.er1
26382 grep -v '^ *+' conftest.er1 >conftest.err
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
26387 { ac_try='test -z "$ac_c_werror_flag"
26388 || test ! -s conftest.err'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } &&
26394 { ac_try='test -s conftest$ac_exeext'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; }; then
26400 eval "$as_ac_var=yes"
26402 echo "$as_me: failed program was:" >&5
26403 sed 's/^/| /' conftest.$ac_ext >&5
26405 eval "$as_ac_var=no"
26407 rm -f conftest.err conftest.$ac_objext \
26408 conftest$ac_exeext conftest.$ac_ext
26410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26412 if test `eval echo '${'$as_ac_var'}'` = yes; then
26413 cat >>confdefs.h <<_ACEOF
26414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26416 cat >>confdefs.h <<\_ACEOF
26417 #define HAVE_STRTOLL 1
26425 for ac_func in chflags
26427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26428 echo "$as_me:$LINENO: checking for $ac_func" >&5
26429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26430 if eval "test \"\${$as_ac_var+set}\" = set"; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 cat >conftest.$ac_ext <<_ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h. */
26439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26441 #define $ac_func innocuous_$ac_func
26443 /* System header to define __stub macros and hopefully few prototypes,
26444 which can conflict with char $ac_func (); below.
26445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26446 <limits.h> exists even on freestanding compilers. */
26449 # include <limits.h>
26451 # include <assert.h>
26456 /* Override any gcc2 internal prototype to avoid an error. */
26461 /* We use char because int might match the return type of a gcc2
26462 builtin and then its argument prototype would still apply. */
26464 /* The GNU C library defines this for functions which it implements
26465 to always fail with ENOSYS. Some functions are actually named
26466 something starting with __ and the normal name is an alias. */
26467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26470 char (*f) () = $ac_func;
26479 return f != $ac_func;
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26486 (eval $ac_link) 2>conftest.er1
26488 grep -v '^ *+' conftest.er1 >conftest.err
26490 cat conftest.err >&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); } &&
26493 { ac_try='test -z "$ac_c_werror_flag"
26494 || test ! -s conftest.err'
26495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26496 (eval $ac_try) 2>&5
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); }; } &&
26500 { ac_try='test -s conftest$ac_exeext'
26501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26502 (eval $ac_try) 2>&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); }; }; then
26506 eval "$as_ac_var=yes"
26508 echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26511 eval "$as_ac_var=no"
26513 rm -f conftest.err conftest.$ac_objext \
26514 conftest$ac_exeext conftest.$ac_ext
26516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26518 if test `eval echo '${'$as_ac_var'}'` = yes; then
26519 cat >>confdefs.h <<_ACEOF
26520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26531 for ac_func in snprintf vsnprintf gethostid fseeko
26533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26534 echo "$as_me:$LINENO: checking for $ac_func" >&5
26535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26536 if eval "test \"\${$as_ac_var+set}\" = set"; then
26537 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 cat >conftest.$ac_ext <<_ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26547 #define $ac_func innocuous_$ac_func
26549 /* System header to define __stub macros and hopefully few prototypes,
26550 which can conflict with char $ac_func (); below.
26551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26552 <limits.h> exists even on freestanding compilers. */
26555 # include <limits.h>
26557 # include <assert.h>
26562 /* Override any gcc2 internal prototype to avoid an error. */
26567 /* We use char because int might match the return type of a gcc2
26568 builtin and then its argument prototype would still apply. */
26570 /* The GNU C library defines this for functions which it implements
26571 to always fail with ENOSYS. Some functions are actually named
26572 something starting with __ and the normal name is an alias. */
26573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26576 char (*f) () = $ac_func;
26585 return f != $ac_func;
26590 rm -f conftest.$ac_objext conftest$ac_exeext
26591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26592 (eval $ac_link) 2>conftest.er1
26594 grep -v '^ *+' conftest.er1 >conftest.err
26596 cat conftest.err >&5
26597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598 (exit $ac_status); } &&
26599 { ac_try='test -z "$ac_c_werror_flag"
26600 || test ! -s conftest.err'
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; } &&
26606 { ac_try='test -s conftest$ac_exeext'
26607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608 (eval $ac_try) 2>&5
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 eval "$as_ac_var=yes"
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 eval "$as_ac_var=no"
26619 rm -f conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
26622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26624 if test `eval echo '${'$as_ac_var'}'` = yes; then
26625 cat >>confdefs.h <<_ACEOF
26626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26637 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26640 echo "$as_me:$LINENO: checking for $ac_func" >&5
26641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26642 if eval "test \"\${$as_ac_var+set}\" = set"; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 cat >conftest.$ac_ext <<_ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26653 #define $ac_func innocuous_$ac_func
26655 /* System header to define __stub macros and hopefully few prototypes,
26656 which can conflict with char $ac_func (); below.
26657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26658 <limits.h> exists even on freestanding compilers. */
26661 # include <limits.h>
26663 # include <assert.h>
26668 /* Override any gcc2 internal prototype to avoid an error. */
26673 /* We use char because int might match the return type of a gcc2
26674 builtin and then its argument prototype would still apply. */
26676 /* The GNU C library defines this for functions which it implements
26677 to always fail with ENOSYS. Some functions are actually named
26678 something starting with __ and the normal name is an alias. */
26679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26682 char (*f) () = $ac_func;
26691 return f != $ac_func;
26696 rm -f conftest.$ac_objext conftest$ac_exeext
26697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26698 (eval $ac_link) 2>conftest.er1
26700 grep -v '^ *+' conftest.er1 >conftest.err
26702 cat conftest.err >&5
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); } &&
26705 { ac_try='test -z "$ac_c_werror_flag"
26706 || test ! -s conftest.err'
26707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708 (eval $ac_try) 2>&5
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); }; } &&
26712 { ac_try='test -s conftest$ac_exeext'
26713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714 (eval $ac_try) 2>&5
26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717 (exit $ac_status); }; }; then
26718 eval "$as_ac_var=yes"
26720 echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26723 eval "$as_ac_var=no"
26725 rm -f conftest.err conftest.$ac_objext \
26726 conftest$ac_exeext conftest.$ac_ext
26728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26730 if test `eval echo '${'$as_ac_var'}'` = yes; then
26731 cat >>confdefs.h <<_ACEOF
26732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26739 # If resolver functions are not in libc check for -lnsl or -lresolv.
26740 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26741 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26742 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26745 cat >conftest.$ac_ext <<_ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26751 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26753 #define gethostbyname_r innocuous_gethostbyname_r
26755 /* System header to define __stub macros and hopefully few prototypes,
26756 which can conflict with char gethostbyname_r (); below.
26757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26758 <limits.h> exists even on freestanding compilers. */
26761 # include <limits.h>
26763 # include <assert.h>
26766 #undef gethostbyname_r
26768 /* Override any gcc2 internal prototype to avoid an error. */
26773 /* We use char because int might match the return type of a gcc2
26774 builtin and then its argument prototype would still apply. */
26775 char gethostbyname_r ();
26776 /* The GNU C library defines this for functions which it implements
26777 to always fail with ENOSYS. Some functions are actually named
26778 something starting with __ and the normal name is an alias. */
26779 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26782 char (*f) () = gethostbyname_r;
26791 return f != gethostbyname_r;
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26798 (eval $ac_link) 2>conftest.er1
26800 grep -v '^ *+' conftest.er1 >conftest.err
26802 cat conftest.err >&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
26805 { ac_try='test -z "$ac_c_werror_flag"
26806 || test ! -s conftest.err'
26807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808 (eval $ac_try) 2>&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest$ac_exeext'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; }; then
26818 ac_cv_func_gethostbyname_r=yes
26820 echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26823 ac_cv_func_gethostbyname_r=no
26825 rm -f conftest.err conftest.$ac_objext \
26826 conftest$ac_exeext conftest.$ac_ext
26828 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26829 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26830 if test $ac_cv_func_gethostbyname_r = yes; then
26831 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26832 echo "${ECHO_T}using libc's resolver" >&6
26835 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26836 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26837 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26840 ac_check_lib_save_LIBS=$LIBS
26842 cat >conftest.$ac_ext <<_ACEOF
26845 cat confdefs.h >>conftest.$ac_ext
26846 cat >>conftest.$ac_ext <<_ACEOF
26847 /* end confdefs.h. */
26849 /* Override any gcc2 internal prototype to avoid an error. */
26853 /* We use char because int might match the return type of a gcc2
26854 builtin and then its argument prototype would still apply. */
26855 char gethostbyname_r ();
26859 gethostbyname_r ();
26864 rm -f conftest.$ac_objext conftest$ac_exeext
26865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26866 (eval $ac_link) 2>conftest.er1
26868 grep -v '^ *+' conftest.er1 >conftest.err
26870 cat conftest.err >&5
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } &&
26873 { ac_try='test -z "$ac_c_werror_flag"
26874 || test ! -s conftest.err'
26875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879 (exit $ac_status); }; } &&
26880 { ac_try='test -s conftest$ac_exeext'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
26886 ac_cv_lib_nsl_gethostbyname_r=yes
26888 echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26891 ac_cv_lib_nsl_gethostbyname_r=no
26893 rm -f conftest.err conftest.$ac_objext \
26894 conftest$ac_exeext conftest.$ac_ext
26895 LIBS=$ac_check_lib_save_LIBS
26897 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26898 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26899 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26900 cat >>confdefs.h <<_ACEOF
26901 #define HAVE_LIBNSL 1
26909 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26910 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26911 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26914 ac_check_lib_save_LIBS=$LIBS
26915 LIBS="-lresolv $LIBS"
26916 cat >conftest.$ac_ext <<_ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26923 /* Override any gcc2 internal prototype to avoid an error. */
26927 /* We use char because int might match the return type of a gcc2
26928 builtin and then its argument prototype would still apply. */
26929 char gethostbyname_r ();
26933 gethostbyname_r ();
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26940 (eval $ac_link) 2>conftest.er1
26942 grep -v '^ *+' conftest.er1 >conftest.err
26944 cat conftest.err >&5
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } &&
26947 { ac_try='test -z "$ac_c_werror_flag"
26948 || test ! -s conftest.err'
26949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950 (eval $ac_try) 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; } &&
26954 { ac_try='test -s conftest$ac_exeext'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
26960 ac_cv_lib_resolv_gethostbyname_r=yes
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26965 ac_cv_lib_resolv_gethostbyname_r=no
26967 rm -f conftest.err conftest.$ac_objext \
26968 conftest$ac_exeext conftest.$ac_ext
26969 LIBS=$ac_check_lib_save_LIBS
26971 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26972 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26973 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26974 cat >>confdefs.h <<_ACEOF
26975 #define HAVE_LIBRESOLV 1
26978 LIBS="-lresolv $LIBS"
26988 for ac_func in inet_pton
26990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26991 echo "$as_me:$LINENO: checking for $ac_func" >&5
26992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26993 if eval "test \"\${$as_ac_var+set}\" = set"; then
26994 echo $ECHO_N "(cached) $ECHO_C" >&6
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27004 #define $ac_func innocuous_$ac_func
27006 /* System header to define __stub macros and hopefully few prototypes,
27007 which can conflict with char $ac_func (); below.
27008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27009 <limits.h> exists even on freestanding compilers. */
27012 # include <limits.h>
27014 # include <assert.h>
27019 /* Override any gcc2 internal prototype to avoid an error. */
27024 /* We use char because int might match the return type of a gcc2
27025 builtin and then its argument prototype would still apply. */
27027 /* The GNU C library defines this for functions which it implements
27028 to always fail with ENOSYS. Some functions are actually named
27029 something starting with __ and the normal name is an alias. */
27030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27033 char (*f) () = $ac_func;
27042 return f != $ac_func;
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27049 (eval $ac_link) 2>conftest.er1
27051 grep -v '^ *+' conftest.er1 >conftest.err
27053 cat conftest.err >&5
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); } &&
27056 { ac_try='test -z "$ac_c_werror_flag"
27057 || test ! -s conftest.err'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; } &&
27063 { ac_try='test -s conftest$ac_exeext'
27064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065 (eval $ac_try) 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); }; }; then
27069 eval "$as_ac_var=yes"
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27074 eval "$as_ac_var=no"
27076 rm -f conftest.err conftest.$ac_objext \
27077 conftest$ac_exeext conftest.$ac_ext
27079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27081 if test `eval echo '${'$as_ac_var'}'` = yes; then
27082 cat >>confdefs.h <<_ACEOF
27083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27085 cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_INET_PTON 1
27093 for ac_func in inet_ntop
27095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27096 echo "$as_me:$LINENO: checking for $ac_func" >&5
27097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27098 if eval "test \"\${$as_ac_var+set}\" = set"; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27109 #define $ac_func innocuous_$ac_func
27111 /* System header to define __stub macros and hopefully few prototypes,
27112 which can conflict with char $ac_func (); below.
27113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27114 <limits.h> exists even on freestanding compilers. */
27117 # include <limits.h>
27119 # include <assert.h>
27124 /* Override any gcc2 internal prototype to avoid an error. */
27129 /* We use char because int might match the return type of a gcc2
27130 builtin and then its argument prototype would still apply. */
27132 /* The GNU C library defines this for functions which it implements
27133 to always fail with ENOSYS. Some functions are actually named
27134 something starting with __ and the normal name is an alias. */
27135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27138 char (*f) () = $ac_func;
27147 return f != $ac_func;
27152 rm -f conftest.$ac_objext conftest$ac_exeext
27153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27154 (eval $ac_link) 2>conftest.er1
27156 grep -v '^ *+' conftest.er1 >conftest.err
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } &&
27161 { ac_try='test -z "$ac_c_werror_flag"
27162 || test ! -s conftest.err'
27163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164 (eval $ac_try) 2>&5
27166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167 (exit $ac_status); }; } &&
27168 { ac_try='test -s conftest$ac_exeext'
27169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170 (eval $ac_try) 2>&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); }; }; then
27174 eval "$as_ac_var=yes"
27176 echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27179 eval "$as_ac_var=no"
27181 rm -f conftest.err conftest.$ac_objext \
27182 conftest$ac_exeext conftest.$ac_ext
27184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27186 if test `eval echo '${'$as_ac_var'}'` = yes; then
27187 cat >>confdefs.h <<_ACEOF
27188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27190 cat >>confdefs.h <<\_ACEOF
27191 #define HAVE_INET_NTOP 1
27198 for ac_func in gethostbyname2
27200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27201 echo "$as_me:$LINENO: checking for $ac_func" >&5
27202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27203 if eval "test \"\${$as_ac_var+set}\" = set"; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27206 cat >conftest.$ac_ext <<_ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h. */
27212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27214 #define $ac_func innocuous_$ac_func
27216 /* System header to define __stub macros and hopefully few prototypes,
27217 which can conflict with char $ac_func (); below.
27218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27219 <limits.h> exists even on freestanding compilers. */
27222 # include <limits.h>
27224 # include <assert.h>
27229 /* Override any gcc2 internal prototype to avoid an error. */
27234 /* We use char because int might match the return type of a gcc2
27235 builtin and then its argument prototype would still apply. */
27237 /* The GNU C library defines this for functions which it implements
27238 to always fail with ENOSYS. Some functions are actually named
27239 something starting with __ and the normal name is an alias. */
27240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27243 char (*f) () = $ac_func;
27252 return f != $ac_func;
27257 rm -f conftest.$ac_objext conftest$ac_exeext
27258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27259 (eval $ac_link) 2>conftest.er1
27261 grep -v '^ *+' conftest.er1 >conftest.err
27263 cat conftest.err >&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); } &&
27266 { ac_try='test -z "$ac_c_werror_flag"
27267 || test ! -s conftest.err'
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; } &&
27273 { ac_try='test -s conftest$ac_exeext'
27274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 (eval $ac_try) 2>&5
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); }; }; then
27279 eval "$as_ac_var=yes"
27281 echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27284 eval "$as_ac_var=no"
27286 rm -f conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext conftest.$ac_ext
27289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27291 if test `eval echo '${'$as_ac_var'}'` = yes; then
27292 cat >>confdefs.h <<_ACEOF
27293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27295 cat >>confdefs.h <<\_ACEOF
27296 #define HAVE_GETHOSTBYNAME2 1
27303 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27304 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27305 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27308 cat >conftest.$ac_ext <<_ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h. */
27314 #include <sys/socket.h>
27318 struct sockaddr s; s.sa_len;
27323 rm -f conftest.$ac_objext
27324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27325 (eval $ac_compile) 2>conftest.er1
27327 grep -v '^ *+' conftest.er1 >conftest.err
27329 cat conftest.err >&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } &&
27332 { ac_try='test -z "$ac_c_werror_flag"
27333 || test ! -s conftest.err'
27334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; } &&
27339 { ac_try='test -s conftest.$ac_objext'
27340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341 (eval $ac_try) 2>&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); }; }; then
27345 ac_cv_struct_sockaddr_sa_len=yes
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27350 ac_cv_struct_sockaddr_sa_len=no
27352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27354 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27355 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27357 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27359 cat >>confdefs.h <<\_ACEOF
27360 #define HAVE_SA_LEN 1
27366 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27367 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27368 if test "${ac_cv_ipv6_support+set}" = set; then
27369 echo $ECHO_N "(cached) $ECHO_C" >&6
27371 cat >conftest.$ac_ext <<_ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h. */
27377 #include <sys/types.h>
27378 #include <sys/socket.h>
27379 #include <netinet/in.h>
27383 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391 (eval $ac_link) 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } &&
27398 { ac_try='test -z "$ac_c_werror_flag"
27399 || test ! -s conftest.err'
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; } &&
27405 { ac_try='test -s conftest$ac_exeext'
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; }; then
27411 ac_cv_ipv6_support=yes
27413 echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27416 ac_cv_ipv6_support=no
27418 rm -f conftest.err conftest.$ac_objext \
27419 conftest$ac_exeext conftest.$ac_ext
27421 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27422 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27424 if test "$ac_cv_ipv6_support" = yes; then
27426 cat >>confdefs.h <<\_ACEOF
27427 #define HAVE_IPV6 1
27435 for ac_func in strftime
27437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27438 echo "$as_me:$LINENO: checking for $ac_func" >&5
27439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27440 if eval "test \"\${$as_ac_var+set}\" = set"; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27451 #define $ac_func innocuous_$ac_func
27453 /* System header to define __stub macros and hopefully few prototypes,
27454 which can conflict with char $ac_func (); below.
27455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27456 <limits.h> exists even on freestanding compilers. */
27459 # include <limits.h>
27461 # include <assert.h>
27466 /* Override any gcc2 internal prototype to avoid an error. */
27471 /* We use char because int might match the return type of a gcc2
27472 builtin and then its argument prototype would still apply. */
27474 /* The GNU C library defines this for functions which it implements
27475 to always fail with ENOSYS. Some functions are actually named
27476 something starting with __ and the normal name is an alias. */
27477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27480 char (*f) () = $ac_func;
27489 return f != $ac_func;
27494 rm -f conftest.$ac_objext conftest$ac_exeext
27495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27496 (eval $ac_link) 2>conftest.er1
27498 grep -v '^ *+' conftest.er1 >conftest.err
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } &&
27503 { ac_try='test -z "$ac_c_werror_flag"
27504 || test ! -s conftest.err'
27505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506 (eval $ac_try) 2>&5
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; } &&
27510 { ac_try='test -s conftest$ac_exeext'
27511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27512 (eval $ac_try) 2>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; }; then
27516 eval "$as_ac_var=yes"
27518 echo "$as_me: failed program was:" >&5
27519 sed 's/^/| /' conftest.$ac_ext >&5
27521 eval "$as_ac_var=no"
27523 rm -f conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
27526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27528 if test `eval echo '${'$as_ac_var'}'` = yes; then
27529 cat >>confdefs.h <<_ACEOF
27530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27534 # strftime is in -lintl on SCO UNIX.
27535 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27536 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27537 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27540 ac_check_lib_save_LIBS=$LIBS
27541 LIBS="-lintl $LIBS"
27542 cat >conftest.$ac_ext <<_ACEOF
27545 cat confdefs.h >>conftest.$ac_ext
27546 cat >>conftest.$ac_ext <<_ACEOF
27547 /* end confdefs.h. */
27549 /* Override any gcc2 internal prototype to avoid an error. */
27553 /* We use char because int might match the return type of a gcc2
27554 builtin and then its argument prototype would still apply. */
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566 (eval $ac_link) 2>conftest.er1
27568 grep -v '^ *+' conftest.er1 >conftest.err
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27586 ac_cv_lib_intl_strftime=yes
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 ac_cv_lib_intl_strftime=no
27593 rm -f conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
27595 LIBS=$ac_check_lib_save_LIBS
27597 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27598 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27599 if test $ac_cv_lib_intl_strftime = yes; then
27600 cat >>confdefs.h <<\_ACEOF
27601 #define HAVE_STRFTIME 1
27604 LIBS="-lintl $LIBS"
27611 for ac_func in vprintf
27613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27614 echo "$as_me:$LINENO: checking for $ac_func" >&5
27615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27616 if eval "test \"\${$as_ac_var+set}\" = set"; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27619 cat >conftest.$ac_ext <<_ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h. */
27625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27627 #define $ac_func innocuous_$ac_func
27629 /* System header to define __stub macros and hopefully few prototypes,
27630 which can conflict with char $ac_func (); below.
27631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27632 <limits.h> exists even on freestanding compilers. */
27635 # include <limits.h>
27637 # include <assert.h>
27642 /* Override any gcc2 internal prototype to avoid an error. */
27647 /* We use char because int might match the return type of a gcc2
27648 builtin and then its argument prototype would still apply. */
27650 /* The GNU C library defines this for functions which it implements
27651 to always fail with ENOSYS. Some functions are actually named
27652 something starting with __ and the normal name is an alias. */
27653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27656 char (*f) () = $ac_func;
27665 return f != $ac_func;
27670 rm -f conftest.$ac_objext conftest$ac_exeext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27672 (eval $ac_link) 2>conftest.er1
27674 grep -v '^ *+' conftest.er1 >conftest.err
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } &&
27679 { ac_try='test -z "$ac_c_werror_flag"
27680 || test ! -s conftest.err'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; } &&
27686 { ac_try='test -s conftest$ac_exeext'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; }; then
27692 eval "$as_ac_var=yes"
27694 echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27697 eval "$as_ac_var=no"
27699 rm -f conftest.err conftest.$ac_objext \
27700 conftest$ac_exeext conftest.$ac_ext
27702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27704 if test `eval echo '${'$as_ac_var'}'` = yes; then
27705 cat >>confdefs.h <<_ACEOF
27706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27709 echo "$as_me:$LINENO: checking for _doprnt" >&5
27710 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27711 if test "${ac_cv_func__doprnt+set}" = set; then
27712 echo $ECHO_N "(cached) $ECHO_C" >&6
27714 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27720 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27722 #define _doprnt innocuous__doprnt
27724 /* System header to define __stub macros and hopefully few prototypes,
27725 which can conflict with char _doprnt (); below.
27726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27727 <limits.h> exists even on freestanding compilers. */
27730 # include <limits.h>
27732 # include <assert.h>
27737 /* Override any gcc2 internal prototype to avoid an error. */
27742 /* We use char because int might match the return type of a gcc2
27743 builtin and then its argument prototype would still apply. */
27745 /* The GNU C library defines this for functions which it implements
27746 to always fail with ENOSYS. Some functions are actually named
27747 something starting with __ and the normal name is an alias. */
27748 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27751 char (*f) () = _doprnt;
27760 return f != _doprnt;
27765 rm -f conftest.$ac_objext conftest$ac_exeext
27766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27767 (eval $ac_link) 2>conftest.er1
27769 grep -v '^ *+' conftest.er1 >conftest.err
27771 cat conftest.err >&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); } &&
27774 { ac_try='test -z "$ac_c_werror_flag"
27775 || test ! -s conftest.err'
27776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777 (eval $ac_try) 2>&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; } &&
27781 { ac_try='test -s conftest$ac_exeext'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; }; then
27787 ac_cv_func__doprnt=yes
27789 echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27792 ac_cv_func__doprnt=no
27794 rm -f conftest.err conftest.$ac_objext \
27795 conftest$ac_exeext conftest.$ac_ext
27797 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27798 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27799 if test $ac_cv_func__doprnt = yes; then
27801 cat >>confdefs.h <<\_ACEOF
27802 #define HAVE_DOPRNT 1
27811 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27812 # for constant arguments. Useless!
27813 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27814 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27815 if test "${ac_cv_working_alloca_h+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27818 cat >conftest.$ac_ext <<_ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h. */
27824 #include <alloca.h>
27828 char *p = (char *) alloca (2 * sizeof (int));
27833 rm -f conftest.$ac_objext conftest$ac_exeext
27834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27835 (eval $ac_link) 2>conftest.er1
27837 grep -v '^ *+' conftest.er1 >conftest.err
27839 cat conftest.err >&5
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); } &&
27842 { ac_try='test -z "$ac_c_werror_flag"
27843 || test ! -s conftest.err'
27844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845 (eval $ac_try) 2>&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); }; } &&
27849 { ac_try='test -s conftest$ac_exeext'
27850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851 (eval $ac_try) 2>&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; }; then
27855 ac_cv_working_alloca_h=yes
27857 echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27860 ac_cv_working_alloca_h=no
27862 rm -f conftest.err conftest.$ac_objext \
27863 conftest$ac_exeext conftest.$ac_ext
27865 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27866 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27867 if test $ac_cv_working_alloca_h = yes; then
27869 cat >>confdefs.h <<\_ACEOF
27870 #define HAVE_ALLOCA_H 1
27875 echo "$as_me:$LINENO: checking for alloca" >&5
27876 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27877 if test "${ac_cv_func_alloca_works+set}" = set; then
27878 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27887 # define alloca __builtin_alloca
27890 # include <malloc.h>
27891 # define alloca _alloca
27894 # include <alloca.h>
27899 # ifndef alloca /* predefined by HP cc +Olibcalls */
27910 char *p = (char *) alloca (1);
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917 (eval $ac_link) 2>conftest.er1
27919 grep -v '^ *+' conftest.er1 >conftest.err
27921 cat conftest.err >&5
27922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923 (exit $ac_status); } &&
27924 { ac_try='test -z "$ac_c_werror_flag"
27925 || test ! -s conftest.err'
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; } &&
27931 { ac_try='test -s conftest$ac_exeext'
27932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933 (eval $ac_try) 2>&5
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; }; then
27937 ac_cv_func_alloca_works=yes
27939 echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27942 ac_cv_func_alloca_works=no
27944 rm -f conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
27947 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27948 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27950 if test $ac_cv_func_alloca_works = yes; then
27952 cat >>confdefs.h <<\_ACEOF
27953 #define HAVE_ALLOCA 1
27957 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27958 # that cause trouble. Some versions do not even contain alloca or
27959 # contain a buggy version. If you still want to use their alloca,
27960 # use ar to extract alloca.o from them instead of compiling alloca.c.
27962 ALLOCA=alloca.$ac_objext
27964 cat >>confdefs.h <<\_ACEOF
27969 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27970 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27971 if test "${ac_cv_os_cray+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 #if defined(CRAY) && ! defined(CRAY2)
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988 $EGREP "webecray" >/dev/null 2>&1; then
27996 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27997 echo "${ECHO_T}$ac_cv_os_cray" >&6
27998 if test $ac_cv_os_cray = yes; then
27999 for ac_func in _getb67 GETB67 getb67; do
28000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28001 echo "$as_me:$LINENO: checking for $ac_func" >&5
28002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28003 if eval "test \"\${$as_ac_var+set}\" = set"; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28006 cat >conftest.$ac_ext <<_ACEOF
28009 cat confdefs.h >>conftest.$ac_ext
28010 cat >>conftest.$ac_ext <<_ACEOF
28011 /* end confdefs.h. */
28012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28014 #define $ac_func innocuous_$ac_func
28016 /* System header to define __stub macros and hopefully few prototypes,
28017 which can conflict with char $ac_func (); below.
28018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28019 <limits.h> exists even on freestanding compilers. */
28022 # include <limits.h>
28024 # include <assert.h>
28029 /* Override any gcc2 internal prototype to avoid an error. */
28034 /* We use char because int might match the return type of a gcc2
28035 builtin and then its argument prototype would still apply. */
28037 /* The GNU C library defines this for functions which it implements
28038 to always fail with ENOSYS. Some functions are actually named
28039 something starting with __ and the normal name is an alias. */
28040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28043 char (*f) () = $ac_func;
28052 return f != $ac_func;
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059 (eval $ac_link) 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; } &&
28073 { ac_try='test -s conftest$ac_exeext'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28079 eval "$as_ac_var=yes"
28081 echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28084 eval "$as_ac_var=no"
28086 rm -f conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28091 if test `eval echo '${'$as_ac_var'}'` = yes; then
28093 cat >>confdefs.h <<_ACEOF
28094 #define CRAY_STACKSEG_END $ac_func
28103 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28104 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28105 if test "${ac_cv_c_stack_direction+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28108 if test "$cross_compiling" = yes; then
28109 ac_cv_c_stack_direction=0
28111 cat >conftest.$ac_ext <<_ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h. */
28118 find_stack_direction ()
28120 static char *addr = 0;
28125 return find_stack_direction ();
28128 return (&dummy > addr) ? 1 : -1;
28134 exit (find_stack_direction () < 0);
28137 rm -f conftest$ac_exeext
28138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28139 (eval $ac_link) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144 (eval $ac_try) 2>&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
28148 ac_cv_c_stack_direction=1
28150 echo "$as_me: program exited with status $ac_status" >&5
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 ( exit $ac_status )
28155 ac_cv_c_stack_direction=-1
28157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28160 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28161 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28163 cat >>confdefs.h <<_ACEOF
28164 #define STACK_DIRECTION $ac_cv_c_stack_direction
28170 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28171 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28172 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28173 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28176 ac_check_lib_save_LIBS=$LIBS
28178 cat >conftest.$ac_ext <<_ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h. */
28185 /* Override any gcc2 internal prototype to avoid an error. */
28189 /* We use char because int might match the return type of a gcc2
28190 builtin and then its argument prototype would still apply. */
28200 rm -f conftest.$ac_objext conftest$ac_exeext
28201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28202 (eval $ac_link) 2>conftest.er1
28204 grep -v '^ *+' conftest.er1 >conftest.err
28206 cat conftest.err >&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } &&
28209 { ac_try='test -z "$ac_c_werror_flag"
28210 || test ! -s conftest.err'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; } &&
28216 { ac_try='test -s conftest$ac_exeext'
28217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; }; then
28222 ac_cv_lib_sun_getmntent=yes
28224 echo "$as_me: failed program was:" >&5
28225 sed 's/^/| /' conftest.$ac_ext >&5
28227 ac_cv_lib_sun_getmntent=no
28229 rm -f conftest.err conftest.$ac_objext \
28230 conftest$ac_exeext conftest.$ac_ext
28231 LIBS=$ac_check_lib_save_LIBS
28233 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28234 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28235 if test $ac_cv_lib_sun_getmntent = yes; then
28238 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28239 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28240 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 ac_check_lib_save_LIBS=$LIBS
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28252 /* Override any gcc2 internal prototype to avoid an error. */
28256 /* We use char because int might match the return type of a gcc2
28257 builtin and then its argument prototype would still apply. */
28267 rm -f conftest.$ac_objext conftest$ac_exeext
28268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28269 (eval $ac_link) 2>conftest.er1
28271 grep -v '^ *+' conftest.er1 >conftest.err
28273 cat conftest.err >&5
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
28276 { ac_try='test -z "$ac_c_werror_flag"
28277 || test ! -s conftest.err'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; } &&
28283 { ac_try='test -s conftest$ac_exeext'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; }; then
28289 ac_cv_lib_seq_getmntent=yes
28291 echo "$as_me: failed program was:" >&5
28292 sed 's/^/| /' conftest.$ac_ext >&5
28294 ac_cv_lib_seq_getmntent=no
28296 rm -f conftest.err conftest.$ac_objext \
28297 conftest$ac_exeext conftest.$ac_ext
28298 LIBS=$ac_check_lib_save_LIBS
28300 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28301 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28302 if test $ac_cv_lib_seq_getmntent = yes; then
28305 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28306 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28307 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28308 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 ac_check_lib_save_LIBS=$LIBS
28312 cat >conftest.$ac_ext <<_ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h. */
28319 /* Override any gcc2 internal prototype to avoid an error. */
28323 /* We use char because int might match the return type of a gcc2
28324 builtin and then its argument prototype would still apply. */
28334 rm -f conftest.$ac_objext conftest$ac_exeext
28335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28336 (eval $ac_link) 2>conftest.er1
28338 grep -v '^ *+' conftest.er1 >conftest.err
28340 cat conftest.err >&5
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); } &&
28343 { ac_try='test -z "$ac_c_werror_flag"
28344 || test ! -s conftest.err'
28345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346 (eval $ac_try) 2>&5
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; } &&
28350 { ac_try='test -s conftest$ac_exeext'
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; }; then
28356 ac_cv_lib_gen_getmntent=yes
28358 echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28361 ac_cv_lib_gen_getmntent=no
28363 rm -f conftest.err conftest.$ac_objext \
28364 conftest$ac_exeext conftest.$ac_ext
28365 LIBS=$ac_check_lib_save_LIBS
28367 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28368 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28369 if test $ac_cv_lib_gen_getmntent = yes; then
28378 for ac_func in getmntent
28380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28381 echo "$as_me:$LINENO: checking for $ac_func" >&5
28382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28383 if eval "test \"\${$as_ac_var+set}\" = set"; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28394 #define $ac_func innocuous_$ac_func
28396 /* System header to define __stub macros and hopefully few prototypes,
28397 which can conflict with char $ac_func (); below.
28398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28399 <limits.h> exists even on freestanding compilers. */
28402 # include <limits.h>
28404 # include <assert.h>
28409 /* Override any gcc2 internal prototype to avoid an error. */
28414 /* We use char because int might match the return type of a gcc2
28415 builtin and then its argument prototype would still apply. */
28417 /* The GNU C library defines this for functions which it implements
28418 to always fail with ENOSYS. Some functions are actually named
28419 something starting with __ and the normal name is an alias. */
28420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28423 char (*f) () = $ac_func;
28432 return f != $ac_func;
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439 (eval $ac_link) 2>conftest.er1
28441 grep -v '^ *+' conftest.er1 >conftest.err
28443 cat conftest.err >&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } &&
28446 { ac_try='test -z "$ac_c_werror_flag"
28447 || test ! -s conftest.err'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest$ac_exeext'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 eval "$as_ac_var=yes"
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28464 eval "$as_ac_var=no"
28466 rm -f conftest.err conftest.$ac_objext \
28467 conftest$ac_exeext conftest.$ac_ext
28469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28471 if test `eval echo '${'$as_ac_var'}'` = yes; then
28472 cat >>confdefs.h <<_ACEOF
28473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28480 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28481 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28482 if test "${ac_cv_func_closedir_void+set}" = set; then
28483 echo $ECHO_N "(cached) $ECHO_C" >&6
28485 if test "$cross_compiling" = yes; then
28486 ac_cv_func_closedir_void=yes
28488 cat >conftest.$ac_ext <<_ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h. */
28494 $ac_includes_default
28495 #include <$ac_header_dirent>
28496 #ifndef __cplusplus
28503 exit (closedir (opendir (".")) != 0);
28508 rm -f conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510 (eval $ac_link) 2>&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_func_closedir_void=no
28521 echo "$as_me: program exited with status $ac_status" >&5
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28525 ( exit $ac_status )
28526 ac_cv_func_closedir_void=yes
28528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28531 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28532 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28533 if test $ac_cv_func_closedir_void = yes; then
28535 cat >>confdefs.h <<\_ACEOF
28536 #define CLOSEDIR_VOID 1
28541 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28542 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28543 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28544 echo $ECHO_N "(cached) $ECHO_C" >&6
28546 if test "$cross_compiling" = yes; then
28547 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28548 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28549 { (exit 1); exit 1; }; }
28551 cat >conftest.$ac_ext <<_ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28558 # include <unistd.h>
28564 /* If this system has a BSD-style setpgrp which takes arguments,
28565 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28566 exit successfully. */
28567 exit (setpgrp (1,1) == -1 ? 0 : 1);
28572 rm -f conftest$ac_exeext
28573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28574 (eval $ac_link) 2>&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 ac_cv_func_setpgrp_void=no
28585 echo "$as_me: program exited with status $ac_status" >&5
28586 echo "$as_me: failed program was:" >&5
28587 sed 's/^/| /' conftest.$ac_ext >&5
28589 ( exit $ac_status )
28590 ac_cv_func_setpgrp_void=yes
28592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28595 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28596 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28597 if test $ac_cv_func_setpgrp_void = yes; then
28599 cat >>confdefs.h <<\_ACEOF
28600 #define SETPGRP_VOID 1
28604 # AC_FUNC_FNMATCH dnl use local version
28607 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28608 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28609 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28610 echo $ECHO_N "(cached) $ECHO_C" >&6
28612 ac_check_lib_save_LIBS=$LIBS
28613 LIBS="-lintl $LIBS"
28614 cat >conftest.$ac_ext <<_ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h. */
28621 /* Override any gcc2 internal prototype to avoid an error. */
28625 /* We use char because int might match the return type of a gcc2
28626 builtin and then its argument prototype would still apply. */
28636 rm -f conftest.$ac_objext conftest$ac_exeext
28637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28638 (eval $ac_link) 2>conftest.er1
28640 grep -v '^ *+' conftest.er1 >conftest.err
28642 cat conftest.err >&5
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); } &&
28645 { ac_try='test -z "$ac_c_werror_flag"
28646 || test ! -s conftest.err'
28647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648 (eval $ac_try) 2>&5
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); }; } &&
28652 { ac_try='test -s conftest$ac_exeext'
28653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28654 (eval $ac_try) 2>&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); }; }; then
28658 ac_cv_lib_intl_gettext=yes
28660 echo "$as_me: failed program was:" >&5
28661 sed 's/^/| /' conftest.$ac_ext >&5
28663 ac_cv_lib_intl_gettext=no
28665 rm -f conftest.err conftest.$ac_objext \
28666 conftest$ac_exeext conftest.$ac_ext
28667 LIBS=$ac_check_lib_save_LIBS
28669 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28670 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28671 if test $ac_cv_lib_intl_gettext = yes; then
28672 LIBS="$LIBS -lintl"
28678 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28679 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28680 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28681 echo $ECHO_N "(cached) $ECHO_C" >&6
28683 ac_check_lib_save_LIBS=$LIBS
28685 cat >conftest.$ac_ext <<_ACEOF
28688 cat confdefs.h >>conftest.$ac_ext
28689 cat >>conftest.$ac_ext <<_ACEOF
28690 /* end confdefs.h. */
28692 /* Override any gcc2 internal prototype to avoid an error. */
28696 /* We use char because int might match the return type of a gcc2
28697 builtin and then its argument prototype would still apply. */
28707 rm -f conftest.$ac_objext conftest$ac_exeext
28708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28709 (eval $ac_link) 2>conftest.er1
28711 grep -v '^ *+' conftest.er1 >conftest.err
28713 cat conftest.err >&5
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); } &&
28716 { ac_try='test -z "$ac_c_werror_flag"
28717 || test ! -s conftest.err'
28718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; } &&
28723 { ac_try='test -s conftest$ac_exeext'
28724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725 (eval $ac_try) 2>&5
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); }; }; then
28729 ac_cv_lib_sun_getpwnam=yes
28731 echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28734 ac_cv_lib_sun_getpwnam=no
28736 rm -f conftest.err conftest.$ac_objext \
28737 conftest$ac_exeext conftest.$ac_ext
28738 LIBS=$ac_check_lib_save_LIBS
28740 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28741 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28742 if test $ac_cv_lib_sun_getpwnam = yes; then
28743 cat >>confdefs.h <<_ACEOF
28744 #define HAVE_LIBSUN 1
28753 for ac_header in zlib.h
28755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28757 echo "$as_me:$LINENO: checking for $ac_header" >&5
28758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28760 echo $ECHO_N "(cached) $ECHO_C" >&6
28762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28765 # Is the header compilable?
28766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28768 cat >conftest.$ac_ext <<_ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h. */
28774 $ac_includes_default
28775 #include <$ac_header>
28777 rm -f conftest.$ac_objext
28778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28779 (eval $ac_compile) 2>conftest.er1
28781 grep -v '^ *+' conftest.er1 >conftest.err
28783 cat conftest.err >&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); } &&
28786 { ac_try='test -z "$ac_c_werror_flag"
28787 || test ! -s conftest.err'
28788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 (eval $ac_try) 2>&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; } &&
28793 { ac_try='test -s conftest.$ac_objext'
28794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795 (eval $ac_try) 2>&5
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); }; }; then
28799 ac_header_compiler=yes
28801 echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28804 ac_header_compiler=no
28806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28808 echo "${ECHO_T}$ac_header_compiler" >&6
28810 # Is the header present?
28811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28813 cat >conftest.$ac_ext <<_ACEOF
28816 cat confdefs.h >>conftest.$ac_ext
28817 cat >>conftest.$ac_ext <<_ACEOF
28818 /* end confdefs.h. */
28819 #include <$ac_header>
28821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28824 grep -v '^ *+' conftest.er1 >conftest.err
28826 cat conftest.err >&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } >/dev/null; then
28829 if test -s conftest.err; then
28830 ac_cpp_err=$ac_c_preproc_warn_flag
28831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28838 if test -z "$ac_cpp_err"; then
28839 ac_header_preproc=yes
28841 echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28844 ac_header_preproc=no
28846 rm -f conftest.err conftest.$ac_ext
28847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28848 echo "${ECHO_T}$ac_header_preproc" >&6
28850 # So? What about this header?
28851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28857 ac_header_preproc=yes
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28874 ## ------------------------------------------ ##
28875 ## Report this to the AC_PACKAGE_NAME lists. ##
28876 ## ------------------------------------------ ##
28879 sed "s/^/$as_me: WARNING: /" >&2
28882 echo "$as_me:$LINENO: checking for $ac_header" >&5
28883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28887 eval "$as_ac_Header=\$ac_header_preproc"
28889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894 cat >>confdefs.h <<_ACEOF
28895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28902 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28903 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28904 if test "${ac_cv_lib_z_deflate+set}" = set; then
28905 echo $ECHO_N "(cached) $ECHO_C" >&6
28907 ac_check_lib_save_LIBS=$LIBS
28909 cat >conftest.$ac_ext <<_ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h. */
28916 /* Override any gcc2 internal prototype to avoid an error. */
28920 /* We use char because int might match the return type of a gcc2
28921 builtin and then its argument prototype would still apply. */
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933 (eval $ac_link) 2>conftest.er1
28935 grep -v '^ *+' conftest.er1 >conftest.err
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
28940 { ac_try='test -z "$ac_c_werror_flag"
28941 || test ! -s conftest.err'
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest$ac_exeext'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 ac_cv_lib_z_deflate=yes
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28958 ac_cv_lib_z_deflate=no
28960 rm -f conftest.err conftest.$ac_objext \
28961 conftest$ac_exeext conftest.$ac_ext
28962 LIBS=$ac_check_lib_save_LIBS
28964 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28965 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28966 if test $ac_cv_lib_z_deflate = yes; then
28971 if test x$FDLIBS = x-lz; then
28972 cat >>confdefs.h <<\_ACEOF
28973 #define HAVE_LIBZ 1
28980 # Check for ACL libraries
28983 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28984 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28985 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28986 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28987 echo $ECHO_N "(cached) $ECHO_C" >&6
28989 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28990 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28992 # Is the header compilable?
28993 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28994 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28995 cat >conftest.$ac_ext <<_ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h. */
29001 $ac_includes_default
29002 #include <sys/acl.h>
29004 rm -f conftest.$ac_objext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29006 (eval $ac_compile) 2>conftest.er1
29008 grep -v '^ *+' conftest.er1 >conftest.err
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); } &&
29013 { ac_try='test -z "$ac_c_werror_flag"
29014 || test ! -s conftest.err'
29015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; } &&
29020 { ac_try='test -s conftest.$ac_objext'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 ac_header_compiler=yes
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_header_compiler=no
29033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035 echo "${ECHO_T}$ac_header_compiler" >&6
29037 # Is the header present?
29038 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29039 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29040 cat >conftest.$ac_ext <<_ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h. */
29046 #include <sys/acl.h>
29048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29051 grep -v '^ *+' conftest.er1 >conftest.err
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } >/dev/null; then
29056 if test -s conftest.err; then
29057 ac_cpp_err=$ac_c_preproc_warn_flag
29058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29065 if test -z "$ac_cpp_err"; then
29066 ac_header_preproc=yes
29068 echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29071 ac_header_preproc=no
29073 rm -f conftest.err conftest.$ac_ext
29074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29075 echo "${ECHO_T}$ac_header_preproc" >&6
29077 # So? What about this header?
29078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29081 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29082 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29083 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29084 ac_header_preproc=yes
29087 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29088 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29090 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29092 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29094 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29096 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29097 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29098 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29101 ## ------------------------------------------ ##
29102 ## Report this to the AC_PACKAGE_NAME lists. ##
29103 ## ------------------------------------------ ##
29106 sed "s/^/$as_me: WARNING: /" >&2
29109 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29110 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29111 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29114 ac_cv_header_sys_acl_h=$ac_header_preproc
29116 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29117 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29122 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29123 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29124 if test "${ac_cv_func_acl_get_file+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29127 cat >conftest.$ac_ext <<_ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29135 #define acl_get_file innocuous_acl_get_file
29137 /* System header to define __stub macros and hopefully few prototypes,
29138 which can conflict with char acl_get_file (); below.
29139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29140 <limits.h> exists even on freestanding compilers. */
29143 # include <limits.h>
29145 # include <assert.h>
29148 #undef acl_get_file
29150 /* Override any gcc2 internal prototype to avoid an error. */
29155 /* We use char because int might match the return type of a gcc2
29156 builtin and then its argument prototype would still apply. */
29157 char acl_get_file ();
29158 /* The GNU C library defines this for functions which it implements
29159 to always fail with ENOSYS. Some functions are actually named
29160 something starting with __ and the normal name is an alias. */
29161 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29164 char (*f) () = acl_get_file;
29173 return f != acl_get_file;
29178 rm -f conftest.$ac_objext conftest$ac_exeext
29179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29180 (eval $ac_link) 2>conftest.er1
29182 grep -v '^ *+' conftest.er1 >conftest.err
29184 cat conftest.err >&5
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); } &&
29187 { ac_try='test -z "$ac_c_werror_flag"
29188 || test ! -s conftest.err'
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; } &&
29194 { ac_try='test -s conftest$ac_exeext'
29195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196 (eval $ac_try) 2>&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); }; }; then
29200 ac_cv_func_acl_get_file=yes
29202 echo "$as_me: failed program was:" >&5
29203 sed 's/^/| /' conftest.$ac_ext >&5
29205 ac_cv_func_acl_get_file=no
29207 rm -f conftest.err conftest.$ac_objext \
29208 conftest$ac_exeext conftest.$ac_ext
29210 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29211 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29212 if test $ac_cv_func_acl_get_file = yes; then
29215 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29216 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29217 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29220 ac_check_lib_save_LIBS=$LIBS
29222 cat >conftest.$ac_ext <<_ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h. */
29229 /* Override any gcc2 internal prototype to avoid an error. */
29233 /* We use char because int might match the return type of a gcc2
29234 builtin and then its argument prototype would still apply. */
29235 char acl_get_file ();
29244 rm -f conftest.$ac_objext conftest$ac_exeext
29245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29246 (eval $ac_link) 2>conftest.er1
29248 grep -v '^ *+' conftest.er1 >conftest.err
29250 cat conftest.err >&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); } &&
29253 { ac_try='test -z "$ac_c_werror_flag"
29254 || test ! -s conftest.err'
29255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256 (eval $ac_try) 2>&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; } &&
29260 { ac_try='test -s conftest$ac_exeext'
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; }; then
29266 ac_cv_lib_acl_acl_get_file=yes
29268 echo "$as_me: failed program was:" >&5
29269 sed 's/^/| /' conftest.$ac_ext >&5
29271 ac_cv_lib_acl_acl_get_file=no
29273 rm -f conftest.err conftest.$ac_objext \
29274 conftest$ac_exeext conftest.$ac_ext
29275 LIBS=$ac_check_lib_save_LIBS
29277 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29278 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29279 if test $ac_cv_lib_acl_acl_get_file = yes; then
29280 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29282 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29283 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29284 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29287 ac_check_lib_save_LIBS=$LIBS
29289 cat >conftest.$ac_ext <<_ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h. */
29296 /* Override any gcc2 internal prototype to avoid an error. */
29300 /* We use char because int might match the return type of a gcc2
29301 builtin and then its argument prototype would still apply. */
29311 rm -f conftest.$ac_objext conftest$ac_exeext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29313 (eval $ac_link) 2>conftest.er1
29315 grep -v '^ *+' conftest.er1 >conftest.err
29317 cat conftest.err >&5
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); } &&
29320 { ac_try='test -z "$ac_c_werror_flag"
29321 || test ! -s conftest.err'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } &&
29327 { ac_try='test -s conftest$ac_exeext'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; }; then
29333 ac_cv_lib_sec_acltotext=yes
29335 echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29338 ac_cv_lib_sec_acltotext=no
29340 rm -f conftest.err conftest.$ac_objext \
29341 conftest$ac_exeext conftest.$ac_ext
29342 LIBS=$ac_check_lib_save_LIBS
29344 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29345 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29346 if test $ac_cv_lib_sec_acltotext = yes; then
29347 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29356 if test $have_acl = yes; then
29357 cat >>confdefs.h <<\_ACEOF
29364 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29365 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29366 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 ac_check_lib_save_LIBS=$LIBS
29370 LIBS="-lpthread $LIBS"
29371 cat >conftest.$ac_ext <<_ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29378 /* Override any gcc2 internal prototype to avoid an error. */
29382 /* We use char because int might match the return type of a gcc2
29383 builtin and then its argument prototype would still apply. */
29384 char pthread_create ();
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395 (eval $ac_link) 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest$ac_exeext'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29415 ac_cv_lib_pthread_pthread_create=yes
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29420 ac_cv_lib_pthread_pthread_create=no
29422 rm -f conftest.err conftest.$ac_objext \
29423 conftest$ac_exeext conftest.$ac_ext
29424 LIBS=$ac_check_lib_save_LIBS
29426 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29427 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29428 if test $ac_cv_lib_pthread_pthread_create = yes; then
29429 PTHREAD_LIB="-lpthread"
29431 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29432 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29433 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29436 ac_check_lib_save_LIBS=$LIBS
29437 LIBS="-lpthreads $LIBS"
29438 cat >conftest.$ac_ext <<_ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29445 /* Override any gcc2 internal prototype to avoid an error. */
29449 /* We use char because int might match the return type of a gcc2
29450 builtin and then its argument prototype would still apply. */
29451 char pthread_create ();
29460 rm -f conftest.$ac_objext conftest$ac_exeext
29461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29462 (eval $ac_link) 2>conftest.er1
29464 grep -v '^ *+' conftest.er1 >conftest.err
29466 cat conftest.err >&5
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } &&
29469 { ac_try='test -z "$ac_c_werror_flag"
29470 || test ! -s conftest.err'
29471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472 (eval $ac_try) 2>&5
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest$ac_exeext'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; }; then
29482 ac_cv_lib_pthreads_pthread_create=yes
29484 echo "$as_me: failed program was:" >&5
29485 sed 's/^/| /' conftest.$ac_ext >&5
29487 ac_cv_lib_pthreads_pthread_create=no
29489 rm -f conftest.err conftest.$ac_objext \
29490 conftest$ac_exeext conftest.$ac_ext
29491 LIBS=$ac_check_lib_save_LIBS
29493 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29494 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29495 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29496 PTHREAD_LIB="-lpthreads"
29498 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29499 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29500 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29503 ac_check_lib_save_LIBS=$LIBS
29505 cat >conftest.$ac_ext <<_ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h. */
29512 /* Override any gcc2 internal prototype to avoid an error. */
29516 /* We use char because int might match the return type of a gcc2
29517 builtin and then its argument prototype would still apply. */
29518 char pthread_create ();
29527 rm -f conftest.$ac_objext conftest$ac_exeext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29529 (eval $ac_link) 2>conftest.er1
29531 grep -v '^ *+' conftest.er1 >conftest.err
29533 cat conftest.err >&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } &&
29536 { ac_try='test -z "$ac_c_werror_flag"
29537 || test ! -s conftest.err'
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; } &&
29543 { ac_try='test -s conftest$ac_exeext'
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 ac_cv_lib_c_r_pthread_create=yes
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29554 ac_cv_lib_c_r_pthread_create=no
29556 rm -f conftest.err conftest.$ac_objext \
29557 conftest$ac_exeext conftest.$ac_ext
29558 LIBS=$ac_check_lib_save_LIBS
29560 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29561 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29562 if test $ac_cv_lib_c_r_pthread_create = yes; then
29563 PTHREAD_LIB="-lc_r"
29565 echo "$as_me:$LINENO: checking for pthread_create" >&5
29566 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29567 if test "${ac_cv_func_pthread_create+set}" = set; then
29568 echo $ECHO_N "(cached) $ECHO_C" >&6
29570 cat >conftest.$ac_ext <<_ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h. */
29576 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29578 #define pthread_create innocuous_pthread_create
29580 /* System header to define __stub macros and hopefully few prototypes,
29581 which can conflict with char pthread_create (); below.
29582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29583 <limits.h> exists even on freestanding compilers. */
29586 # include <limits.h>
29588 # include <assert.h>
29591 #undef pthread_create
29593 /* Override any gcc2 internal prototype to avoid an error. */
29598 /* We use char because int might match the return type of a gcc2
29599 builtin and then its argument prototype would still apply. */
29600 char pthread_create ();
29601 /* The GNU C library defines this for functions which it implements
29602 to always fail with ENOSYS. Some functions are actually named
29603 something starting with __ and the normal name is an alias. */
29604 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29607 char (*f) () = pthread_create;
29616 return f != pthread_create;
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623 (eval $ac_link) 2>conftest.er1
29625 grep -v '^ *+' conftest.er1 >conftest.err
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); } &&
29630 { ac_try='test -z "$ac_c_werror_flag"
29631 || test ! -s conftest.err'
29632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633 (eval $ac_try) 2>&5
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; } &&
29637 { ac_try='test -s conftest$ac_exeext'
29638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639 (eval $ac_try) 2>&5
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); }; }; then
29643 ac_cv_func_pthread_create=yes
29645 echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29648 ac_cv_func_pthread_create=no
29650 rm -f conftest.err conftest.$ac_objext \
29651 conftest$ac_exeext conftest.$ac_ext
29653 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29654 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29667 cat >>confdefs.h <<\_ACEOF
29673 CFLAGS=${CFLAGS--O}
29675 if test x$have_gcc = xyes ; then
29676 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29677 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29679 LDFLAGS=${LDFLAGS--O}
29680 DB_LIBS="${SQL_LFLAGS}"
29681 CPPFLAGS="$CPPFLAGS"
29709 # Finally we set appropriate distribution specific
29710 # variables and defaults
29712 # PFILES are platform specific files
29713 PFILES="platforms/Makefile"
29717 hostname=`uname -n | cut -d '.' -f 1`
29718 if test x${hostname} = x ; then
29719 hostname="localhost"
29721 case "$DISTNAME" in
29724 PSCMD="ps -e -o pid,comm"
29725 PFILES="${PFILES} \
29726 platforms/aix/Makefile"
29727 TAPEDRIVE="/dev/rmt0.1"
29731 PTHREAD_LIB="-lpthread -lexc"
29732 if test "${CC}" = "gcc" ; then
29739 TAPEDRIVE="/dev/nrmt0"
29742 DISTVER=`uname -a |awk '{print $3}'`
29743 TAPEDRIVE="/dev/nrmt0"
29744 PTHREAD_LIB="-pthread"
29745 CFLAGS="${CFLAGS} -pthread"
29746 PSCMD="ps -ax -o pid,command"
29749 PFILES="${PFILES} \
29750 platforms/bsdi/Makefile \
29751 platforms/bsdi/bacula-fd \
29752 platforms/bsdi/bacula-sd \
29753 platforms/bsdi/bacula-dir"
29754 largefile_support="yes"
29757 DISTVER=`uname -a |awk '{print $3}'`
29758 TAPEDRIVE="/dev/nrst0"
29760 WCFLAGS="-mwindows"
29761 WLDFLAGS="-mwindows"
29765 TAPEDRIVE="/dev/nst0"
29766 PSCMD="ps -e -o pid,command"
29768 PFILES="${PFILES} \
29769 platforms/darwin/Makefile"
29772 DISTVER=`cat /etc/debian_version`
29773 TAPEDRIVE="/dev/nrst0"
29774 PSCMD="ps -e -o pid,command"
29777 DISTVER=`uname -a |awk '{print $3}'`
29778 VER=`echo $DISTVER | cut -c 1`
29779 if test x$VER = x4 ; then
29780 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29781 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29785 TAPEDRIVE="/dev/nrsa0"
29786 PSCMD="ps -ax -o pid,command"
29787 PFILES="${PFILES} \
29788 platforms/freebsd/Makefile \
29789 platforms/freebsd/bacula-fd \
29790 platforms/freebsd/bacula-sd \
29791 platforms/freebsd/bacula-dir"
29792 largefile_support="yes"
29795 PSCMD="UNIX95=1 ps -e -o pid,comm"
29796 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29798 TAPEDRIVE="/dev/rmt/0hnb"
29799 PTHREAD_LIB="-lpthread"
29800 cat >>confdefs.h <<\_ACEOF
29801 #define _INCLUDE_LONGLONG 1
29807 TAPEDRIVE="/dev/rmt/0cbn"
29808 PSCMD="ps -e -o pid,comm"
29809 PFILES="${PFILES} \
29810 platforms/irix/Makefile \
29811 platforms/irix/bacula-fd \
29812 platforms/irix/bacula-sd \
29813 platforms/irix/bacula-dir"
29816 DISTVER=`uname -a |awk '{print $3}'`
29819 TAPEDRIVE="/dev/nrst0"
29820 PSCMD="ps -ax -o pid,command"
29821 PTHREAD_LIB="-pthread"
29822 CFLAGS="${CFLAGS} -pthread"
29825 DISTVER=`uname -a |awk '{print $3}'`
29828 TAPEDRIVE="/dev/nrst0"
29829 PSCMD="ps -ax -o pid,command"
29830 PTHREAD_LIB="-pthread"
29831 CFLAGS="${CFLAGS} -pthread"
29832 PFILES="${PFILES} \
29833 platforms/openbsd/Makefile \
29834 platforms/openbsd/bacula-fd \
29835 platforms/openbsd/bacula-sd \
29836 platforms/openbsd/bacula-dir"
29839 if test -f /etc/whitebox-release ; then
29840 f=/etc/whitebox-release
29842 f=/etc/redhat-release
29844 if test `cat $f | grep release |\
29845 cut -f 3 -d ' '`x = "Enterprise"x ; then
29846 DISTVER="Enterprise "`cat $f | grep release |\
29849 DISTVER=`cat /etc/redhat-release | grep release |\
29852 TAPEDRIVE="/dev/nst0"
29853 PSCMD="ps -e -o pid,command"
29854 PFILES="${PFILES} \
29855 platforms/redhat/Makefile \
29856 platforms/redhat/bacula-fd \
29857 platforms/redhat/bacula-sd \
29858 platforms/redhat/bacula-dir \
29859 platforms/redhat/bacula.spec \
29863 DISTVER=`cat /etc/mandrake-release | grep release |\
29865 TAPEDRIVE="/dev/nst0"
29866 PSCMD="ps -e -o pid,command"
29867 PFILES="${PFILES} \
29868 platforms/mandrake/Makefile \
29869 platforms/mandrake/bacula-fd \
29870 platforms/mandrake/bacula-sd \
29871 platforms/mandrake/bacula-dir \
29872 platforms/mandrake/bacula.spec \
29876 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29877 TAPEDRIVE="/dev/nst0"
29878 PSCMD="ps -e -o pid,command"
29879 PFILES="${PFILES} \
29880 platforms/gentoo/Makefile \
29881 platforms/gentoo/bacula-init \
29882 platforms/gentoo/bacula-fd \
29883 platforms/gentoo/bacula-sd \
29884 platforms/gentoo/bacula-dir"
29887 DISTVER=`cat /etc/slackware-version`
29888 TAPEDRIVE="/dev/nst0"
29889 PSCMD="ps -e -o pid,command"
29890 PFILES="${PFILES} \
29891 platforms/slackware/Makefile \
29892 platforms/slackware/rc.bacula-fd \
29893 platforms/slackware/rc.bacula-sd \
29894 platforms/slackware/rc.bacula-dir\
29895 platforms/slackware/functions.bacula"
29899 TAPEDRIVE="/dev/rmt/0cbn"
29900 PSCMD="ps -e -o pid,comm"
29901 PFILES="${PFILES} \
29902 platforms/solaris/Makefile \
29903 platforms/solaris/bacula-fd \
29904 platforms/solaris/bacula-sd \
29905 platforms/solaris/bacula-dir"
29906 if test x$DISTVER = x5.6 ; then
29907 cat >>confdefs.h <<\_ACEOF
29908 #define HAVE_OLD_SOCKOPT 1
29912 LIBS="$LIBS -lresolv"
29915 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29917 TAPEDRIVE="/dev/nst0"
29918 PSCMD="ps -e -o pid,command"
29919 PFILES="${PFILES} \
29920 platforms/suse/Makefile \
29921 platforms/suse/bacula-fd \
29922 platforms/suse/bacula-sd \
29923 platforms/suse/bacula-dir \
29924 platforms/suse/bacula \
29925 platforms/suse/bacula.spec"
29930 TAPEDRIVE="/dev/nst0"
29931 PSCMD="ps -e -o pid,command"
29932 PFILES="${PFILES} \
29933 platforms/suse/Makefile \
29934 platforms/suse/bacula-fd \
29935 platforms/suse/bacula-sd \
29936 platforms/suse/bacula-dir"
29940 TAPEDRIVE="/dev/nst0"
29943 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29949 LIBS="$PTHREAD_LIB $LIBS"
29951 cat >>confdefs.h <<_ACEOF
29955 cat >>confdefs.h <<_ACEOF
29966 MCOMMON=./autoconf/Make.common
29969 if test "x${subsysdir}" = "x${sbindir}" ; then
29972 echo "You have set both --sbindir and --with-subsys-dir"
29973 echo " equal to: ${subsysdir} "
29974 echo "This is not permitted. Please reconfigure."
29976 echo "Aborting configuration ..."
29982 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"
29983 ac_config_commands="$ac_config_commands default"
29984 cat >confcache <<\_ACEOF
29985 # This file is a shell script that caches the results of configure
29986 # tests run on this system so they can be shared between configure
29987 # scripts and configure runs, see configure's option --config-cache.
29988 # It is not useful on other systems. If it contains results you don't
29989 # want to keep, you may remove or edit it.
29991 # config.status only pays attention to the cache file if you give it
29992 # the --recheck option to rerun configure.
29994 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29995 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29996 # following values.
30000 # The following way of writing the cache mishandles newlines in values,
30001 # but we know of no workaround that is simple, portable, and efficient.
30002 # So, don't put newlines in cache variables' values.
30003 # Ultrix sh set writes to stderr and can't be redirected directly,
30004 # and sets the high bit in the cache file unless we assign to the vars.
30007 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30009 # `set' does not quote correctly, so add quotes (double-quote
30010 # substitution turns \\\\ into \\, and sed turns \\ into \).
30013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30016 # `set' quotes correctly as required by POSIX, so do not add quotes.
30018 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30025 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30027 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30029 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30030 if test -w $cache_file; then
30031 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30032 cat confcache >$cache_file
30034 echo "not updating unwritable cache $cache_file"
30039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30040 # Let make expand exec_prefix.
30041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30045 # trailing colons and then remove the whole line if VPATH becomes empty
30046 # (actually we leave an empty line to preserve line numbers).
30047 if test "x$srcdir" = x.; then
30048 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30049 s/:*\$(srcdir):*/:/;
30050 s/:*\${srcdir}:*/:/;
30052 s/^\([^=]*=[ ]*\):*/\1/;
30058 DEFS=-DHAVE_CONFIG_H
30062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30063 # 1. Remove the extension, and $U if already installed.
30064 ac_i=`echo "$ac_i" |
30065 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30067 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30068 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30070 LIBOBJS=$ac_libobjs
30072 LTLIBOBJS=$ac_ltlibobjs
30076 : ${CONFIG_STATUS=./config.status}
30077 ac_clean_files_save=$ac_clean_files
30078 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30079 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30080 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30081 cat >$CONFIG_STATUS <<_ACEOF
30083 # Generated by $as_me.
30084 # Run this file to recreate the current configuration.
30085 # Compiler output produced by configure, useful for debugging
30086 # configure, is in config.log if it exists.
30089 ac_cs_recheck=false
30091 SHELL=\${CONFIG_SHELL-$SHELL}
30094 cat >>$CONFIG_STATUS <<\_ACEOF
30095 ## --------------------- ##
30096 ## M4sh Initialization. ##
30097 ## --------------------- ##
30099 # Be Bourne compatible
30100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30104 # is contrary to our usage. Disable this feature.
30105 alias -g '${1+"$@"}'='"$@"'
30106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30109 DUALCASE=1; export DUALCASE # for MKS sh
30111 # Support unset when possible.
30112 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30119 # Work around bugs in pre-3.0 UWIN ksh.
30120 $as_unset ENV MAIL MAILPATH
30127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30129 LC_TELEPHONE LC_TIME
30131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30132 eval $as_var=C; export $as_var
30138 # Required to use basename.
30139 if expr a : '\(a\)' >/dev/null 2>&1; then
30145 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30146 as_basename=basename
30152 # Name of the executable.
30153 as_me=`$as_basename "$0" ||
30154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30155 X"$0" : 'X\(//\)$' \| \
30156 X"$0" : 'X\(/\)$' \| \
30157 . : '\(.\)' 2>/dev/null ||
30159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30160 /^X\/\(\/\/\)$/{ s//\1/; q; }
30161 /^X\/\(\/\).*/{ s//\1/; q; }
30165 # PATH needs CR, and LINENO needs CR and PATH.
30166 # Avoid depending upon Character Ranges.
30167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30170 as_cr_digits='0123456789'
30171 as_cr_alnum=$as_cr_Letters$as_cr_digits
30173 # The user is always right.
30174 if test "${PATH_SEPARATOR+set}" != set; then
30175 echo "#! /bin/sh" >conf$$.sh
30176 echo "exit 0" >>conf$$.sh
30178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30187 as_lineno_1=$LINENO
30188 as_lineno_2=$LINENO
30189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30190 test "x$as_lineno_1" != "x$as_lineno_2" &&
30191 test "x$as_lineno_3" = "x$as_lineno_2" || {
30192 # Find who we are. Look in the path if we contain no path at all
30195 *[\\/]* ) as_myself=$0 ;;
30196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30197 for as_dir in $PATH
30200 test -z "$as_dir" && as_dir=.
30201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30206 # We did not find ourselves, most probably we were run as `sh COMMAND'
30207 # in which case we are not to be found in the path.
30208 if test "x$as_myself" = x; then
30211 if test ! -f "$as_myself"; then
30212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30213 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30214 { (exit 1); exit 1; }; }
30216 case $CONFIG_SHELL in
30218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30222 test -z "$as_dir" && as_dir=.
30223 for as_base in sh bash ksh sh5; do
30226 if ("$as_dir/$as_base" -c '
30227 as_lineno_1=$LINENO
30228 as_lineno_2=$LINENO
30229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30230 test "x$as_lineno_1" != "x$as_lineno_2" &&
30231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30234 CONFIG_SHELL=$as_dir/$as_base
30235 export CONFIG_SHELL
30236 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30245 # uniformly replaced by the line number. The first 'sed' inserts a
30246 # line-number line before each line; the second 'sed' does the real
30247 # work. The second script uses 'N' to pair each line-number line
30248 # with the numbered line, and appends trailing '-' during
30249 # substitution so that $LINENO is not a special case at line end.
30250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30252 sed '=' <$as_myself |
30257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30260 s,^['$as_cr_digits']*\n,,
30261 ' >$as_me.lineno &&
30262 chmod +x $as_me.lineno ||
30263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30264 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30265 { (exit 1); exit 1; }; }
30267 # Don't try to exec as it changes $[0], causing all sort of problems
30268 # (the dirname of $[0] is not the place where we might find the
30269 # original and so on. Autoconf is especially sensible to this).
30271 # Exit status is that of the last command.
30276 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30277 *c*,-n*) ECHO_N= ECHO_C='
30279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30283 if expr a : '\(a\)' >/dev/null 2>&1; then
30289 rm -f conf$$ conf$$.exe conf$$.file
30291 if ln -s conf$$.file conf$$ 2>/dev/null; then
30292 # We could just check for DJGPP; but this test a) works b) is more generic
30293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30294 if test -f conf$$.exe; then
30295 # Don't use ln at all; we don't have any links
30300 elif ln conf$$.file conf$$ 2>/dev/null; then
30305 rm -f conf$$ conf$$.exe conf$$.file
30307 if mkdir -p . 2>/dev/null; then
30310 test -d ./-p && rmdir ./-p
30314 as_executable_p="test -f"
30316 # Sed expression to map a string onto a valid CPP name.
30317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30319 # Sed expression to map a string onto a valid variable name.
30320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30324 # We need space, tab and new line, in precisely that order.
30334 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30335 # report actual input values of CONFIG_FILES etc. instead of their
30336 # values after options handling. Logging --version etc. is OK.
30340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30341 ## Running $as_me. ##
30346 This file was extended by $as_me, which was
30347 generated by GNU Autoconf 2.59. Invocation command line was
30349 CONFIG_FILES = $CONFIG_FILES
30350 CONFIG_HEADERS = $CONFIG_HEADERS
30351 CONFIG_LINKS = $CONFIG_LINKS
30352 CONFIG_COMMANDS = $CONFIG_COMMANDS
30356 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30360 # Files that config.status was made for.
30361 if test -n "$ac_config_files"; then
30362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30365 if test -n "$ac_config_headers"; then
30366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30369 if test -n "$ac_config_links"; then
30370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30373 if test -n "$ac_config_commands"; then
30374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30377 cat >>$CONFIG_STATUS <<\_ACEOF
30380 \`$as_me' instantiates files from templates according to the
30381 current configuration.
30383 Usage: $0 [OPTIONS] [FILE]...
30385 -h, --help print this help, then exit
30386 -V, --version print version number, then exit
30387 -q, --quiet do not print progress messages
30388 -d, --debug don't remove temporary files
30389 --recheck update $as_me by reconfiguring in the same conditions
30390 --file=FILE[:TEMPLATE]
30391 instantiate the configuration file FILE
30392 --header=FILE[:TEMPLATE]
30393 instantiate the configuration header FILE
30395 Configuration files:
30398 Configuration headers:
30401 Configuration commands:
30404 Report bugs to <bug-autoconf@gnu.org>."
30407 cat >>$CONFIG_STATUS <<_ACEOF
30410 configured by $0, generated by GNU Autoconf 2.59,
30411 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30413 Copyright (C) 2003 Free Software Foundation, Inc.
30414 This config.status script is free software; the Free Software Foundation
30415 gives unlimited permission to copy, distribute and modify it."
30420 cat >>$CONFIG_STATUS <<\_ACEOF
30421 # If no file are specified by the user, then we need to provide default
30422 # value. By we need to know if files were specified by the user.
30428 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30429 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30437 *) # This is not an option, so the user has probably given explicit
30440 ac_need_defaults=false;;
30444 # Handling of the options.
30446 cat >>$CONFIG_STATUS <<\_ACEOF
30447 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30449 --version | --vers* | -V )
30450 echo "$ac_cs_version"; exit 0 ;;
30452 # Conflict between --help and --header
30453 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30454 Try \`$0 --help' for more information." >&5
30455 echo "$as_me: error: ambiguous option: $1
30456 Try \`$0 --help' for more information." >&2;}
30457 { (exit 1); exit 1; }; };;
30458 --help | --hel | -h )
30459 echo "$ac_cs_usage"; exit 0 ;;
30460 --debug | --d* | -d )
30462 --file | --fil | --fi | --f )
30464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30465 ac_need_defaults=false;;
30466 --header | --heade | --head | --hea )
30468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30469 ac_need_defaults=false;;
30470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30471 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30474 # This is an error.
30475 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30476 Try \`$0 --help' for more information." >&5
30477 echo "$as_me: error: unrecognized option: $1
30478 Try \`$0 --help' for more information." >&2;}
30479 { (exit 1); exit 1; }; } ;;
30481 *) ac_config_targets="$ac_config_targets $1" ;;
30487 ac_configure_extra_args=
30489 if $ac_cs_silent; then
30491 ac_configure_extra_args="$ac_configure_extra_args --silent"
30495 cat >>$CONFIG_STATUS <<_ACEOF
30496 if \$ac_cs_recheck; then
30497 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30498 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30503 cat >>$CONFIG_STATUS <<_ACEOF
30505 # INIT-COMMANDS section.
30508 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30509 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30511 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30512 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30513 LINGUAS="${LINGUAS-%UNSET%}"
30520 cat >>$CONFIG_STATUS <<\_ACEOF
30521 for ac_config_target in $ac_config_targets
30523 case "$ac_config_target" in
30524 # Handling of arguments.
30525 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30526 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30527 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30528 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30529 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30530 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30531 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30532 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30533 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30534 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30535 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30536 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30537 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30538 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30539 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30540 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30541 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30542 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30543 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30544 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30545 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30546 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30547 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30548 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30549 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30550 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30551 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30552 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30553 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30554 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30555 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30556 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30557 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30558 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30559 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30560 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30561 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30562 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30563 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30564 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30565 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30566 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30567 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30568 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30569 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30570 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30571 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30572 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30573 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30574 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30575 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30576 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30577 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30578 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30579 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30580 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30581 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30582 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30583 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30584 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30585 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30586 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30587 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30588 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30589 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30590 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30591 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30592 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30593 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30594 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30595 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30596 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30597 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30598 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30599 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30600 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30601 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30602 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30603 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30604 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30605 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30606 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30607 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30608 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30609 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30610 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30611 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30612 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30613 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30614 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30615 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30616 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30617 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30618 "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30619 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30620 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30621 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30622 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30623 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30624 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30625 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30626 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30627 { (exit 1); exit 1; }; };;
30631 # If the user did not use the arguments to specify the items to instantiate,
30632 # then the envvar interface is used. Set only those that are not.
30633 # We use the long form for the default assignment because of an extremely
30634 # bizarre bug on SunOS 4.1.3.
30635 if $ac_need_defaults; then
30636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30641 # Have a temporary directory for convenience. Make it in the build tree
30642 # simply because there is no reason to put it here, and in addition,
30643 # creating and moving files from /tmp can sometimes cause problems.
30644 # Create a temporary directory, and hook for its removal unless debugging.
30647 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30648 trap '{ (exit 1); exit 1; }' 1 2 13 15
30651 # Create a (secure) tmp directory for tmp files.
30654 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30655 test -n "$tmp" && test -d "$tmp"
30658 tmp=./confstat$$-$RANDOM
30659 (umask 077 && mkdir $tmp)
30662 echo "$me: cannot create a temporary directory in ." >&2
30663 { (exit 1); exit 1; }
30668 cat >>$CONFIG_STATUS <<_ACEOF
30671 # CONFIG_FILES section.
30674 # No need to generate the scripts if there are no CONFIG_FILES.
30675 # This happens for instance when ./config.status config.h
30676 if test -n "\$CONFIG_FILES"; then
30677 # Protect against being on the right side of a sed subst in config.status.
30678 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30679 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30680 s,@SHELL@,$SHELL,;t t
30681 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30682 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30683 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30684 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30685 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30686 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30687 s,@exec_prefix@,$exec_prefix,;t t
30688 s,@prefix@,$prefix,;t t
30689 s,@program_transform_name@,$program_transform_name,;t t
30690 s,@bindir@,$bindir,;t t
30691 s,@sbindir@,$sbindir,;t t
30692 s,@libexecdir@,$libexecdir,;t t
30693 s,@datadir@,$datadir,;t t
30694 s,@sysconfdir@,$sysconfdir,;t t
30695 s,@sharedstatedir@,$sharedstatedir,;t t
30696 s,@localstatedir@,$localstatedir,;t t
30697 s,@libdir@,$libdir,;t t
30698 s,@includedir@,$includedir,;t t
30699 s,@oldincludedir@,$oldincludedir,;t t
30700 s,@infodir@,$infodir,;t t
30701 s,@mandir@,$mandir,;t t
30702 s,@build_alias@,$build_alias,;t t
30703 s,@host_alias@,$host_alias,;t t
30704 s,@target_alias@,$target_alias,;t t
30705 s,@DEFS@,$DEFS,;t t
30706 s,@ECHO_C@,$ECHO_C,;t t
30707 s,@ECHO_N@,$ECHO_N,;t t
30708 s,@ECHO_T@,$ECHO_T,;t t
30709 s,@LIBS@,$LIBS,;t t
30710 s,@BUILD_DIR@,$BUILD_DIR,;t t
30711 s,@TOP_DIR@,$TOP_DIR,;t t
30712 s,@TRUEPRG@,$TRUEPRG,;t t
30713 s,@FALSEPRG@,$FALSEPRG,;t t
30714 s,@VERSION@,$VERSION,;t t
30715 s,@DATE@,$DATE,;t t
30716 s,@LSMDATE@,$LSMDATE,;t t
30718 s,@CFLAGS@,$CFLAGS,;t t
30719 s,@LDFLAGS@,$LDFLAGS,;t t
30720 s,@CPPFLAGS@,$CPPFLAGS,;t t
30721 s,@ac_ct_CC@,$ac_ct_CC,;t t
30722 s,@EXEEXT@,$EXEEXT,;t t
30723 s,@OBJEXT@,$OBJEXT,;t t
30725 s,@CXXFLAGS@,$CXXFLAGS,;t t
30726 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30728 s,@EGREP@,$EGREP,;t t
30729 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30730 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30731 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30732 s,@RANLIB@,$RANLIB,;t t
30733 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30738 s,@ECHO@,$ECHO,;t t
30742 s,@OPENSSL@,$OPENSSL,;t t
30745 s,@MKISOFS@,$MKISOFS,;t t
30746 s,@PYTHON@,$PYTHON,;t t
30747 s,@GROWISOFS@,$GROWISOFS,;t t
30748 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30749 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30750 s,@PKGCONFIG@,$PKGCONFIG,;t t
30751 s,@WXCONFIG@,$WXCONFIG,;t t
30752 s,@WXFLAGS@,$WXFLAGS,;t t
30753 s,@CDRECORD@,$CDRECORD,;t t
30754 s,@PIDOF@,$PIDOF,;t t
30756 s,@ARFLAGS@,$ARFLAGS,;t t
30757 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30758 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30759 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30760 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30761 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30762 s,@build@,$build,;t t
30763 s,@build_cpu@,$build_cpu,;t t
30764 s,@build_vendor@,$build_vendor,;t t
30765 s,@build_os@,$build_os,;t t
30766 s,@host@,$host,;t t
30767 s,@host_cpu@,$host_cpu,;t t
30768 s,@host_vendor@,$host_vendor,;t t
30769 s,@host_os@,$host_os,;t t
30770 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30771 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30772 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30773 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30774 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30775 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30776 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30777 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30778 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30779 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30780 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30781 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30782 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30783 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30784 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30785 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30786 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30787 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30788 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30789 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30790 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30791 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30792 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30793 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30794 s,@SET_MAKE@,$SET_MAKE,;t t
30795 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30796 s,@USE_NLS@,$USE_NLS,;t t
30797 s,@MSGFMT@,$MSGFMT,;t t
30798 s,@GMSGFMT@,$GMSGFMT,;t t
30799 s,@XGETTEXT@,$XGETTEXT,;t t
30800 s,@MSGMERGE@,$MSGMERGE,;t t
30801 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30802 s,@LIBICONV@,$LIBICONV,;t t
30803 s,@LTLIBICONV@,$LTLIBICONV,;t t
30804 s,@INTLLIBS@,$INTLLIBS,;t t
30805 s,@LIBINTL@,$LIBINTL,;t t
30806 s,@LTLIBINTL@,$LTLIBINTL,;t t
30807 s,@POSUB@,$POSUB,;t t
30808 s,@GLIBC2@,$GLIBC2,;t t
30809 s,@ALLOCA@,$ALLOCA,;t t
30810 s,@GLIBC21@,$GLIBC21,;t t
30811 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30812 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30813 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30814 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30815 s,@INTLBISON@,$INTLBISON,;t t
30816 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30817 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30818 s,@CATOBJEXT@,$CATOBJEXT,;t t
30819 s,@DATADIRNAME@,$DATADIRNAME,;t t
30820 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30821 s,@GENCAT@,$GENCAT,;t t
30822 s,@INTLOBJS@,$INTLOBJS,;t t
30823 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30824 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30825 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30826 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30827 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30828 s,@GNOME_DIR@,$GNOME_DIR,;t t
30829 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30830 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30831 s,@WX_DIR@,$WX_DIR,;t t
30832 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30833 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30834 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30835 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30836 s,@STATIC_FD@,$STATIC_FD,;t t
30837 s,@STATIC_SD@,$STATIC_SD,;t t
30838 s,@STATIC_DIR@,$STATIC_DIR,;t t
30839 s,@STATIC_CONS@,$STATIC_CONS,;t t
30840 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30841 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30842 s,@ALL_DIRS@,$ALL_DIRS,;t t
30843 s,@DIRD_DIR@,$DIRD_DIR,;t t
30844 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30845 s,@STORED_DIR@,$STORED_DIR,;t t
30846 s,@CONS_INC@,$CONS_INC,;t t
30847 s,@CONS_OBJ@,$CONS_OBJ,;t t
30848 s,@CONS_SRC@,$CONS_SRC,;t t
30849 s,@CONS_LIBS@,$CONS_LIBS,;t t
30850 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30851 s,@READLINE_SRC@,$READLINE_SRC,;t t
30852 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30853 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30854 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30855 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30856 s,@working_dir@,$working_dir,;t t
30857 s,@scriptdir@,$scriptdir,;t t
30858 s,@dump_email@,$dump_email,;t t
30859 s,@job_email@,$job_email,;t t
30860 s,@smtp_host@,$smtp_host,;t t
30861 s,@piddir@,$piddir,;t t
30862 s,@subsysdir@,$subsysdir,;t t
30863 s,@baseport@,$baseport,;t t
30864 s,@dir_port@,$dir_port,;t t
30865 s,@fd_port@,$fd_port,;t t
30866 s,@sd_port@,$sd_port,;t t
30867 s,@dir_password@,$dir_password,;t t
30868 s,@fd_password@,$fd_password,;t t
30869 s,@sd_password@,$sd_password,;t t
30870 s,@mon_dir_password@,$mon_dir_password,;t t
30871 s,@mon_fd_password@,$mon_fd_password,;t t
30872 s,@mon_sd_password@,$mon_sd_password,;t t
30873 s,@dir_user@,$dir_user,;t t
30874 s,@dir_group@,$dir_group,;t t
30875 s,@sd_user@,$sd_user,;t t
30876 s,@sd_group@,$sd_group,;t t
30877 s,@fd_user@,$fd_user,;t t
30878 s,@fd_group@,$fd_group,;t t
30879 s,@SBINPERM@,$SBINPERM,;t t
30880 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30881 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30882 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30883 s,@cats@,$cats,;t t
30884 s,@DB_NAME@,$DB_NAME,;t t
30885 s,@GETCONF@,$GETCONF,;t t
30886 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30887 s,@X_CFLAGS@,$X_CFLAGS,;t t
30888 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30889 s,@X_LIBS@,$X_LIBS,;t t
30890 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30891 s,@LIBOBJS@,$LIBOBJS,;t t
30892 s,@FDLIBS@,$FDLIBS,;t t
30893 s,@DEBUG@,$DEBUG,;t t
30894 s,@DINCLUDE@,$DINCLUDE,;t t
30895 s,@DLIB@,$DLIB,;t t
30896 s,@DB_LIBS@,$DB_LIBS,;t t
30897 s,@WCFLAGS@,$WCFLAGS,;t t
30898 s,@WLDFLAGS@,$WLDFLAGS,;t t
30899 s,@WRAPLIBS@,$WRAPLIBS,;t t
30900 s,@OBJLIST@,$OBJLIST,;t t
30901 s,@hostname@,$hostname,;t t
30902 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30903 s,@PSCMD@,$PSCMD,;t t
30904 s,@WIN32@,$WIN32,;t t
30905 s,@MACOSX@,$MACOSX,;t t
30906 s,@DISTNAME@,$DISTNAME,;t t
30907 s,@DISTVER@,$DISTVER,;t t
30908 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30909 /@MCOMMON@/r $MCOMMON
30915 cat >>$CONFIG_STATUS <<\_ACEOF
30916 # Split the substitutions into bite-sized pieces for seds with
30917 # small command number limits, like on Digital OSF/1 and HP-UX.
30918 ac_max_sed_lines=48
30919 ac_sed_frag=1 # Number of current file.
30920 ac_beg=1 # First line for current file.
30921 ac_end=$ac_max_sed_lines # Line after last line for current file.
30924 while $ac_more_lines; do
30925 if test $ac_beg -gt 1; then
30926 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30928 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30930 if test ! -s $tmp/subs.frag; then
30931 ac_more_lines=false
30933 # The purpose of the label and of the branching condition is to
30934 # speed up the sed processing (if there are no `@' at all, there
30935 # is no need to browse any of the substitutions).
30936 # These are the two extra sed commands mentioned above.
30938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30939 if test -z "$ac_sed_cmds"; then
30940 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30942 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30944 ac_sed_frag=`expr $ac_sed_frag + 1`
30946 ac_end=`expr $ac_end + $ac_max_sed_lines`
30949 if test -z "$ac_sed_cmds"; then
30952 fi # test -n "$CONFIG_FILES"
30955 cat >>$CONFIG_STATUS <<\_ACEOF
30956 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30957 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30959 - | *:- | *:-:* ) # input from stdin
30961 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30963 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30964 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30965 * ) ac_file_in=$ac_file.in ;;
30968 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30969 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30971 X"$ac_file" : 'X\(//\)[^/]' \| \
30972 X"$ac_file" : 'X\(//\)$' \| \
30973 X"$ac_file" : 'X\(/\)' \| \
30974 . : '\(.\)' 2>/dev/null ||
30976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30978 /^X\(\/\/\)$/{ s//\1/; q; }
30979 /^X\(\/\).*/{ s//\1/; q; }
30981 { if $as_mkdir_p; then
30986 while test ! -d "$as_dir"; do
30987 as_dirs="$as_dir $as_dirs"
30988 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30990 X"$as_dir" : 'X\(//\)[^/]' \| \
30991 X"$as_dir" : 'X\(//\)$' \| \
30992 X"$as_dir" : 'X\(/\)' \| \
30993 . : '\(.\)' 2>/dev/null ||
30995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30997 /^X\(\/\/\)$/{ s//\1/; q; }
30998 /^X\(\/\).*/{ s//\1/; q; }
31001 test ! -n "$as_dirs" || mkdir $as_dirs
31002 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31003 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31004 { (exit 1); exit 1; }; }; }
31008 if test "$ac_dir" != .; then
31009 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31010 # A "../" for each directory in $ac_dir_suffix.
31011 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31013 ac_dir_suffix= ac_top_builddir=
31017 .) # No --srcdir option. We are building in place.
31019 if test -z "$ac_top_builddir"; then
31022 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31024 [\\/]* | ?:[\\/]* ) # Absolute path.
31025 ac_srcdir=$srcdir$ac_dir_suffix;
31026 ac_top_srcdir=$srcdir ;;
31027 *) # Relative path.
31028 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31029 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31032 # Do not use `cd foo && pwd` to compute absolute paths, because
31033 # the directories may not exist.
31035 .) ac_abs_builddir="$ac_dir";;
31038 .) ac_abs_builddir=`pwd`;;
31039 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31040 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31043 case $ac_abs_builddir in
31044 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31046 case ${ac_top_builddir}. in
31047 .) ac_abs_top_builddir=$ac_abs_builddir;;
31048 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31049 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31052 case $ac_abs_builddir in
31053 .) ac_abs_srcdir=$ac_srcdir;;
31056 .) ac_abs_srcdir=$ac_abs_builddir;;
31057 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31058 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31061 case $ac_abs_builddir in
31062 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31064 case $ac_top_srcdir in
31065 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31066 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31067 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31074 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31077 if test x"$ac_file" != x-; then
31078 { echo "$as_me:$LINENO: creating $ac_file" >&5
31079 echo "$as_me: creating $ac_file" >&6;}
31082 # Let's still pretend it is `configure' which instantiates (i.e., don't
31083 # use $as_me), people would be surprised to read:
31084 # /* config.h. Generated by config.status. */
31085 if test x"$ac_file" = x-; then
31088 configure_input="$ac_file. "
31090 configure_input=$configure_input"Generated from `echo $ac_file_in |
31091 sed 's,.*/,,'` by configure."
31093 # First look for the input files in the build tree, otherwise in the
31095 ac_file_inputs=`IFS=:
31096 for f in $ac_file_in; do
31098 -) echo $tmp/stdin ;;
31100 # Absolute (can't be DOS-style, as IFS=:)
31101 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31102 echo "$as_me: error: cannot find input file: $f" >&2;}
31103 { (exit 1); exit 1; }; }
31106 if test -f "$f"; then
31109 elif test -f "$srcdir/$f"; then
31114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31115 echo "$as_me: error: cannot find input file: $f" >&2;}
31116 { (exit 1); exit 1; }; }
31119 done` || { (exit 1); exit 1; }
31121 cat >>$CONFIG_STATUS <<_ACEOF
31125 cat >>$CONFIG_STATUS <<\_ACEOF
31127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31128 s,@configure_input@,$configure_input,;t t
31129 s,@srcdir@,$ac_srcdir,;t t
31130 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31131 s,@top_srcdir@,$ac_top_srcdir,;t t
31132 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31133 s,@builddir@,$ac_builddir,;t t
31134 s,@abs_builddir@,$ac_abs_builddir,;t t
31135 s,@top_builddir@,$ac_top_builddir,;t t
31136 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31137 s,@INSTALL@,$ac_INSTALL,;t t
31138 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31140 if test x"$ac_file" != x-; then
31141 mv $tmp/out $ac_file
31149 cat >>$CONFIG_STATUS <<\_ACEOF
31152 # CONFIG_HEADER section.
31155 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31156 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31158 # ac_d sets the value in "#define NAME VALUE" lines.
31159 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31160 ac_dB='[ ].*$,\1#\2'
31163 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31164 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31165 ac_uB='$,\1#\2define\3'
31169 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31172 - | *:- | *:-:* ) # input from stdin
31174 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31176 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31178 * ) ac_file_in=$ac_file.in ;;
31181 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31182 echo "$as_me: creating $ac_file" >&6;}
31184 # First look for the input files in the build tree, otherwise in the
31186 ac_file_inputs=`IFS=:
31187 for f in $ac_file_in; do
31189 -) echo $tmp/stdin ;;
31191 # Absolute (can't be DOS-style, as IFS=:)
31192 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31193 echo "$as_me: error: cannot find input file: $f" >&2;}
31194 { (exit 1); exit 1; }; }
31195 # Do quote $f, to prevent DOS paths from being IFS'd.
31198 if test -f "$f"; then
31201 elif test -f "$srcdir/$f"; then
31206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31207 echo "$as_me: error: cannot find input file: $f" >&2;}
31208 { (exit 1); exit 1; }; }
31211 done` || { (exit 1); exit 1; }
31212 # Remove the trailing spaces.
31213 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31217 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31218 # `conftest.undefs', that substitutes the proper values into
31219 # config.h.in to produce config.h. The first handles `#define'
31220 # templates, and the second `#undef' templates.
31221 # And first: Protect against being on the right side of a sed subst in
31222 # config.status. Protect against being in an unquoted here document
31223 # in config.status.
31224 rm -f conftest.defines conftest.undefs
31225 # Using a here document instead of a string reduces the quoting nightmare.
31226 # Putting comments in sed scripts is not portable.
31228 # `end' is used to avoid that the second main sed command (meant for
31229 # 0-ary CPP macros) applies to n-ary macro definitions.
31230 # See the Autoconf documentation for `clear'.
31231 cat >confdef2sed.sed <<\_ACEOF
31236 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31238 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31241 # If some macros were called several times there might be several times
31242 # the same #defines, which is useless. Nevertheless, we may not want to
31243 # sort them, since we want the *last* AC-DEFINE to be honored.
31244 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31245 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31246 rm -f confdef2sed.sed
31248 # This sed command replaces #undef with comments. This is necessary, for
31249 # example, in the case of _POSIX_SOURCE, which is predefined and required
31250 # on some systems where configure will not decide to define it.
31251 cat >>conftest.undefs <<\_ACEOF
31252 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31255 # Break up conftest.defines because some shells have a limit on the size
31256 # of here documents, and old seds have small limits too (100 cmds).
31257 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31258 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31259 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31260 echo ' :' >>$CONFIG_STATUS
31261 rm -f conftest.tail
31262 while grep . conftest.defines >/dev/null
31264 # Write a limited-size here document to $tmp/defines.sed.
31265 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31266 # Speed up: don't consider the non `#define' lines.
31267 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31268 # Work around the forget-to-reset-the-flag bug.
31269 echo 't clr' >>$CONFIG_STATUS
31270 echo ': clr' >>$CONFIG_STATUS
31271 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31273 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31275 mv $tmp/out $tmp/in
31277 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31278 rm -f conftest.defines
31279 mv conftest.tail conftest.defines
31281 rm -f conftest.defines
31282 echo ' fi # grep' >>$CONFIG_STATUS
31283 echo >>$CONFIG_STATUS
31285 # Break up conftest.undefs because some shells have a limit on the size
31286 # of here documents, and old seds have small limits too (100 cmds).
31287 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31288 rm -f conftest.tail
31289 while grep . conftest.undefs >/dev/null
31291 # Write a limited-size here document to $tmp/undefs.sed.
31292 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31293 # Speed up: don't consider the non `#undef'
31294 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31295 # Work around the forget-to-reset-the-flag bug.
31296 echo 't clr' >>$CONFIG_STATUS
31297 echo ': clr' >>$CONFIG_STATUS
31298 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31300 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31302 mv $tmp/out $tmp/in
31304 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31305 rm -f conftest.undefs
31306 mv conftest.tail conftest.undefs
31308 rm -f conftest.undefs
31310 cat >>$CONFIG_STATUS <<\_ACEOF
31311 # Let's still pretend it is `configure' which instantiates (i.e., don't
31312 # use $as_me), people would be surprised to read:
31313 # /* config.h. Generated by config.status. */
31314 if test x"$ac_file" = x-; then
31315 echo "/* Generated by configure. */" >$tmp/config.h
31317 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31319 cat $tmp/in >>$tmp/config.h
31321 if test x"$ac_file" != x-; then
31322 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31323 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31324 echo "$as_me: $ac_file is unchanged" >&6;}
31326 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31327 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31328 X"$ac_file" : 'X\(//\)[^/]' \| \
31329 X"$ac_file" : 'X\(//\)$' \| \
31330 X"$ac_file" : 'X\(/\)' \| \
31331 . : '\(.\)' 2>/dev/null ||
31333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31335 /^X\(\/\/\)$/{ s//\1/; q; }
31336 /^X\(\/\).*/{ s//\1/; q; }
31338 { if $as_mkdir_p; then
31343 while test ! -d "$as_dir"; do
31344 as_dirs="$as_dir $as_dirs"
31345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31347 X"$as_dir" : 'X\(//\)[^/]' \| \
31348 X"$as_dir" : 'X\(//\)$' \| \
31349 X"$as_dir" : 'X\(/\)' \| \
31350 . : '\(.\)' 2>/dev/null ||
31352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31354 /^X\(\/\/\)$/{ s//\1/; q; }
31355 /^X\(\/\).*/{ s//\1/; q; }
31358 test ! -n "$as_dirs" || mkdir $as_dirs
31359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31360 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31361 { (exit 1); exit 1; }; }; }
31364 mv $tmp/config.h $ac_file
31368 rm -f $tmp/config.h
31372 cat >>$CONFIG_STATUS <<\_ACEOF
31375 # CONFIG_COMMANDS section.
31377 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31378 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31379 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31380 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31381 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31382 X"$ac_dest" : 'X\(//\)[^/]' \| \
31383 X"$ac_dest" : 'X\(//\)$' \| \
31384 X"$ac_dest" : 'X\(/\)' \| \
31385 . : '\(.\)' 2>/dev/null ||
31387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31389 /^X\(\/\/\)$/{ s//\1/; q; }
31390 /^X\(\/\).*/{ s//\1/; q; }
31392 { if $as_mkdir_p; then
31397 while test ! -d "$as_dir"; do
31398 as_dirs="$as_dir $as_dirs"
31399 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31401 X"$as_dir" : 'X\(//\)[^/]' \| \
31402 X"$as_dir" : 'X\(//\)$' \| \
31403 X"$as_dir" : 'X\(/\)' \| \
31404 . : '\(.\)' 2>/dev/null ||
31406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31408 /^X\(\/\/\)$/{ s//\1/; q; }
31409 /^X\(\/\).*/{ s//\1/; q; }
31412 test ! -n "$as_dirs" || mkdir $as_dirs
31413 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31414 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31415 { (exit 1); exit 1; }; }; }
31419 if test "$ac_dir" != .; then
31420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31421 # A "../" for each directory in $ac_dir_suffix.
31422 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31424 ac_dir_suffix= ac_top_builddir=
31428 .) # No --srcdir option. We are building in place.
31430 if test -z "$ac_top_builddir"; then
31433 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31435 [\\/]* | ?:[\\/]* ) # Absolute path.
31436 ac_srcdir=$srcdir$ac_dir_suffix;
31437 ac_top_srcdir=$srcdir ;;
31438 *) # Relative path.
31439 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31440 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31443 # Do not use `cd foo && pwd` to compute absolute paths, because
31444 # the directories may not exist.
31446 .) ac_abs_builddir="$ac_dir";;
31449 .) ac_abs_builddir=`pwd`;;
31450 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31451 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31454 case $ac_abs_builddir in
31455 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31457 case ${ac_top_builddir}. in
31458 .) ac_abs_top_builddir=$ac_abs_builddir;;
31459 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31460 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31463 case $ac_abs_builddir in
31464 .) ac_abs_srcdir=$ac_srcdir;;
31467 .) ac_abs_srcdir=$ac_abs_builddir;;
31468 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31469 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31472 case $ac_abs_builddir in
31473 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31475 case $ac_top_srcdir in
31476 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31477 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31478 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31483 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31484 echo "$as_me: executing $ac_dest commands" >&6;}
31487 for ac_file in $CONFIG_FILES; do
31488 # Support "outfile[:infile[:infile...]]"
31490 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31492 # PO directories have a Makefile.in generated from Makefile.in.in.
31493 case "$ac_file" in */Makefile.in)
31494 # Adjust a relative srcdir.
31495 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31496 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31497 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31498 # In autoconf-2.13 it is called $ac_given_srcdir.
31499 # In autoconf-2.50 it is called $srcdir.
31500 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31501 case "$ac_given_srcdir" in
31502 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31503 /*) top_srcdir="$ac_given_srcdir" ;;
31504 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31506 # Treat a directory as a PO directory if and only if it has a
31507 # POTFILES.in file. This allows packages to have multiple PO
31508 # directories under different names or in different locations.
31509 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31510 rm -f "$ac_dir/POTFILES"
31511 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31512 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31513 POMAKEFILEDEPS="POTFILES.in"
31514 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31515 # on $ac_dir but don't depend on user-specified configuration
31517 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31518 # The LINGUAS file contains the set of available languages.
31519 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31520 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31522 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31523 # Hide the ALL_LINGUAS assigment from automake.
31524 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31525 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31527 # The set of available languages was given in configure.in.
31528 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31531 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31532 # Compute UPDATEPOFILES
31533 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31534 # Compute DUMMYPOFILES
31535 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31537 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31538 case "$ac_given_srcdir" in
31540 *) srcdirpre='$(srcdir)/' ;;
31546 for lang in $ALL_LINGUAS; do
31547 POFILES="$POFILES $srcdirpre$lang.po"
31548 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31549 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31550 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31552 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31553 # environment variable.
31555 if test -n "$ALL_LINGUAS"; then
31556 for presentlang in $ALL_LINGUAS; do
31558 if test "%UNSET%" != "$LINGUAS"; then
31559 desiredlanguages="$LINGUAS"
31561 desiredlanguages="$ALL_LINGUAS"
31563 for desiredlang in $desiredlanguages; do
31564 # Use the presentlang catalog if desiredlang is
31565 # a. equal to presentlang, or
31566 # b. a variant of presentlang (because in this case,
31567 # presentlang can be used as a fallback for messages
31568 # which are not translated in the desiredlang catalog).
31569 case "$desiredlang" in
31570 "$presentlang"*) useit=yes;;
31573 if test $useit = yes; then
31574 INST_LINGUAS="$INST_LINGUAS $presentlang"
31579 if test -n "$INST_LINGUAS"; then
31580 for lang in $INST_LINGUAS; do
31581 CATALOGS="$CATALOGS $lang.gmo"
31584 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31585 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"
31586 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31587 if test -f "$f"; then
31589 *.orig | *.bak | *~) ;;
31590 *) cat "$f" >> "$ac_dir/Makefile" ;;
31598 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31604 cat >>$CONFIG_STATUS <<\_ACEOF
31606 { (exit 0); exit 0; }
31608 chmod +x $CONFIG_STATUS
31609 ac_clean_files=$ac_clean_files_save
31612 # configure is writing to config.log, and then calls config.status.
31613 # config.status does its own redirection, appending to config.log.
31614 # Unfortunately, on DOS this fails, as config.log is still kept open
31615 # by configure, so config.status won't be able to write to it; its
31616 # output is simply discarded. So we exec the FD to /dev/null,
31617 # effectively closing config.log, so it can be properly (re)opened and
31618 # appended to by config.status. When coming back to configure, we
31619 # need to make the FD available again.
31620 if test "$no_create" != yes; then
31622 ac_config_status_args=
31623 test "$silent" = yes &&
31624 ac_config_status_args="$ac_config_status_args --quiet"
31626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31629 # would make configure fail if this is the last instruction.
31630 $ac_cs_success || { (exit 1); exit 1; }
31635 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31636 chmod 755 dvd-handler dvd-simulator
31637 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31642 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31643 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31645 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31646 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31648 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31649 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31651 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31652 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31654 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31655 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31657 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31658 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31660 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31661 chmod 755 $c/sqlite
31664 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31665 largefile_support="yes"
31669 # A whole lot of hand springs to get the compiler version.
31670 # This is because gcc changed the output in version 3.0
31672 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31673 if test "x${CCVERSION}" = "x" ; then
31674 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31676 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31677 if test x"${CXXVERSION}" = x ; then
31678 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31681 if test "x${subsysdir}" = "x${sbindir}" ; then
31684 echo "You have set --sbindir and --with-subsys-dir"
31685 echo " both equal to: ${subsysdir} "
31686 echo " This is not permitted. Please reconfigure."
31688 echo "Aborting configuration ..."
31694 if test "x${db_name}" = "xInternal" ; then
31697 echo "You have not specified either --enable-client-only or one of the"
31698 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31699 echo " This is not permitted. Please reconfigure."
31701 echo "Aborting the configuration ..."
31708 Configuration on `date`:
31710 Host: $host -- ${DISTNAME} ${DISTVER}
31711 Bacula version: ${VERSION} (${DATE})
31712 Source code location: ${srcdir}
31713 Install binaries: ${sbindir}
31714 Install config files: ${sysconfdir}
31715 Scripts directory: ${scriptdir}
31716 Working directory: ${working_dir}
31717 PID directory: ${piddir}
31718 Subsys directory: ${subsysdir}
31719 Man directory: ${mandir}
31720 Data directory: ${datadir}
31721 C Compiler: ${CC} ${CCVERSION}
31722 C++ Compiler: ${CXX} ${CXXVERSION}
31723 Compiler flags: ${WCFLAGS} ${CFLAGS}
31724 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31726 Statically Linked Tools: ${support_static_tools}
31727 Statically Linked FD: ${support_static_fd}
31728 Statically Linked SD: ${support_static_sd}
31729 Statically Linked DIR: ${support_static_dir}
31730 Statically Linked CONS: ${support_static_cons}
31731 Database type: ${db_name}
31732 Database lib: ${DB_LIBS}
31734 Job Output Email: ${job_email}
31735 Traceback Email: ${dump_email}
31736 SMTP Host Address: ${smtp_host}
31738 Director Port: ${dir_port}
31739 File daemon Port: ${fd_port}
31740 Storage daemon Port: ${sd_port}
31742 Director User: ${dir_user}
31743 Director Group: ${dir_group}
31744 Storage Daemon User: ${sd_user}
31745 Storage DaemonGroup: ${sd_group}
31746 File Daemon User: ${fd_user}
31747 File Daemon Group: ${fd_group}
31749 SQL binaries Directory ${SQL_BINDIR}
31751 Large file support: $largefile_support
31752 Bacula conio support: ${got_conio} ${CONS_LIBS}
31753 readline support: ${got_readline} ${PRTREADLINE_SRC}
31754 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31755 TLS support: ${support_tls}
31756 Encryption support: ${support_crypto}
31757 ZLIB support: ${have_zlib}
31758 enable-smartalloc: ${support_smartalloc}
31759 enable-gnome: ${support_gnome} ${gnome_version}
31760 enable-wx-console: ${support_wx_console} ${wx_version}
31761 enable-tray-monitor: ${support_tray_monitor}
31762 client-only: ${build_client_only}
31763 build-dird: ${build_dird}
31764 build-stored: ${build_stored}
31765 ACL support: ${have_acl}
31766 Python support: ${support_python} ${PYTHON_LIBS}