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 QMAKE QMAKEQT4 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 BAT_DIR QWT_INC QWT_LDFLAGS 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 archivedir 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 db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE 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 bgnome-console GUI disabled
870 --enable-bat enable build of bat Qt4 GUI disabled
871 --enable-bwx-console enable build of wxWidgets console disabled
872 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
873 --enable-smartalloc enable smartalloc debugging support disabled
874 --enable-static-tools enable static tape tools disabled
875 --enable-static-fd enable static File daemon disabled
876 --enable-static-sd enable static Storage daemon disabled
877 --enable-static-dir enable static Director disabled
878 --enable-static-cons enable static Console disabled
879 --enable-client-only build client (File daemon) only disabled
880 --enable-build-dird enable building of dird (Director) enabled
881 --enable-build-stored enable building of stored (Storage daemon) enabled
882 --disable-conio disable conio support enabled
884 --enable-ipv6 enable ipv6 support enabled
886 --disable-readline disable readline support disable
888 --enable-batch-insert enable the DB batch insert code disabled
889 --disable-largefile omit support for large files
892 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
893 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
894 --with-gnu-ld assume the C compiler uses GNU ld default=no
895 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
896 --without-libiconv-prefix don't search for libiconv in includedir and libdir
897 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
898 --without-libintl-prefix don't search for libintl in includedir and libdir
899 --with-included-gettext use the GNU gettext library included here
900 --with-qwt[=DIR] specify qwt library directory
901 --with-readline[=DIR] specify readline library directory
903 --with-python[=DIR] Include Python support. DIR is the Python base
904 install directory, default is to search through
905 a number of common places for the Python files.
906 --with-tcp-wrappers[=DIR] enable tcpwrappers support
908 Include OpenSSL support. DIR is the OpenSSL base
909 --with-working-dir=PATH specify path of Bacula working directory
910 --with-archivedir=PATH specify path of SD archive directory
911 --with-scriptdir=PATH specify path of Bacula scripts directory
912 --with-dump-email=EMAIL dump email address
913 --with-job-email=EMAIL job output email address
914 --with-smtp-host=HOST SMTP mail host address
915 --with-pid-dir=PATH specify location of Bacula pid files
916 --with-subsys-dir=PATH specify location of Bacula subsys file
917 --with-baseport=PORT specify base port address for daemons
918 --with-dir-password=PASSWORD specify Director's password
919 --with-fd-password=PASSWORD specify Client's password
920 --with-sd-password=PASSWORD specify Storage daemon's password
921 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
922 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
923 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
924 --with-db-name=DBNAME specify database name (default bacula)
925 --with-db-user=UNAME specify database user (default bacula)
926 --with-dir-user=USER specify user for Director daemon
927 --with-dir-group=GROUP specify group for Director daemon
928 --with-sd-user=USER specify user for Storage daemon
929 --with-sd-group=GROUP specify group for Storage daemon
930 --with-fd-user=USER specify user for File daemon
931 --with-fd-group=GROUP specify group for File daemon
932 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
933 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
934 base install directory, defaults to /usr/local/pgsql
936 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
937 install directory, default is to search through
938 a number of common places for the MySQL files.
940 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
941 install directory, default is to search through
942 a number of common places for the MySQL files.
944 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
945 install directory, default is to search through
946 a number of common places for the SQLite3 files.
948 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
949 install directory, default is to search through
950 a number of common places for the SQLite files.
951 --with-x use the X Window System
953 Some influential environment variables:
954 CC C compiler command
955 CFLAGS C compiler flags
956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
957 nonstandard directory <lib dir>
958 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
959 headers in a nonstandard directory <include dir>
960 CXX C++ compiler command
961 CXXFLAGS C++ compiler flags
963 WXCONFIG wx-config command. On some systems, you must set it to
964 wx-config-2.6 to use wxWidgets 2.6.
965 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
967 Use these variables to override the choices made by `configure' or to help
968 it to find libraries and programs with nonstandard names/locations.
973 if test "$ac_init_help" = "recursive"; then
974 # If there are subdirs, report their specific --help.
976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977 test -d $ac_dir || continue
980 if test "$ac_dir" != .; then
981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
982 # A "../" for each directory in $ac_dir_suffix.
983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
985 ac_dir_suffix= ac_top_builddir=
989 .) # No --srcdir option. We are building in place.
991 if test -z "$ac_top_builddir"; then
994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
996 [\\/]* | ?:[\\/]* ) # Absolute path.
997 ac_srcdir=$srcdir$ac_dir_suffix;
998 ac_top_srcdir=$srcdir ;;
1000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1004 # Do not use `cd foo && pwd` to compute absolute paths, because
1005 # the directories may not exist.
1007 .) ac_abs_builddir="$ac_dir";;
1010 .) ac_abs_builddir=`pwd`;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1018 case ${ac_top_builddir}. in
1019 .) ac_abs_top_builddir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1028 .) ac_abs_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1036 case $ac_top_srcdir in
1037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1044 # Check for guested configure; otherwise get Cygnus style configure.
1045 if test -f $ac_srcdir/configure.gnu; then
1047 $SHELL $ac_srcdir/configure.gnu --help=recursive
1048 elif test -f $ac_srcdir/configure; then
1050 $SHELL $ac_srcdir/configure --help=recursive
1051 elif test -f $ac_srcdir/configure.ac ||
1052 test -f $ac_srcdir/configure.in; then
1054 $ac_configure --help
1056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1066 Copyright (C) 2003 Free Software Foundation, Inc.
1067 This configure script is free software; the Free Software Foundation
1068 gives unlimited permission to copy, distribute and modify it.
1074 This file contains any messages produced by compilers while
1075 running configure, to aid debugging if configure makes a mistake.
1077 It was created by $as_me, which was
1078 generated by GNU Autoconf 2.59. Invocation command line was
1089 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1090 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1091 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1092 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1093 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1095 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1096 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1098 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1099 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1100 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1101 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1102 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1103 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1104 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1112 test -z "$as_dir" && as_dir=.
1113 echo "PATH: $as_dir"
1128 # Keep a trace of the command line.
1129 # Strip out --no-create and --no-recursion so they do not pile up.
1130 # Strip out --silent because we don't want to record it for future runs.
1131 # Also quote any args containing shell meta-characters.
1132 # Make two passes to allow for proper duplicate-argument suppression.
1137 ac_must_keep_next=false
1143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1147 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1148 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1151 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1153 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1154 if test $ac_must_keep_next = true; then
1155 ac_must_keep_next=false # Got value, back to normal.
1158 *=* | --config-cache | -C | -disable-* | --disable-* \
1159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1161 | -with-* | --with-* | -without-* | --without-* | --x)
1162 case "$ac_configure_args0 " in
1163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1166 -* ) ac_must_keep_next=true ;;
1169 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1170 # Get rid of the leading space.
1176 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1177 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1179 # When interrupted or exit'd, cleanup temporary files, and complete
1180 # config.log. We remove comments because anyway the quotes in there
1181 # would cause problems or look ugly.
1182 # WARNING: Be sure not to use single quotes in there, as some shells,
1183 # such as our DU 5.0 friend, will then `close' the trap.
1184 trap 'exit_status=$?
1185 # Save into config.log some information that might help in debugging.
1190 ## ---------------- ##
1191 ## Cache variables. ##
1192 ## ---------------- ##
1195 # The following way of writing the cache mishandles newlines in values,
1198 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1206 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1213 ## ----------------- ##
1214 ## Output variables. ##
1215 ## ----------------- ##
1218 for ac_var in $ac_subst_vars
1220 eval ac_val=$`echo $ac_var`
1221 echo "$ac_var='"'"'$ac_val'"'"'"
1225 if test -n "$ac_subst_files"; then
1232 for ac_var in $ac_subst_files
1234 eval ac_val=$`echo $ac_var`
1235 echo "$ac_var='"'"'$ac_val'"'"'"
1240 if test -s confdefs.h; then
1247 sed "/^$/d" confdefs.h | sort
1250 test "$ac_signal" != 0 &&
1251 echo "$as_me: caught signal $ac_signal"
1252 echo "$as_me: exit $exit_status"
1254 rm -f core *.core &&
1255 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1258 for ac_signal in 1 2 13 15; do
1259 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1263 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1264 rm -rf conftest* confdefs.h
1265 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1268 # Predefined preprocessor variables.
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_NAME "$PACKAGE_NAME"
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_STRING "$PACKAGE_STRING"
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1295 # Let the site file select an alternate cache file if it wants to.
1296 # Prefer explicitly selected file to automatically selected ones.
1297 if test -z "$CONFIG_SITE"; then
1298 if test "x$prefix" != xNONE; then
1299 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1301 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1304 for ac_site_file in $CONFIG_SITE; do
1305 if test -r "$ac_site_file"; then
1306 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1307 echo "$as_me: loading site script $ac_site_file" >&6;}
1308 sed 's/^/| /' "$ac_site_file" >&5
1313 if test -r "$cache_file"; then
1314 # Some versions of bash will fail to source /dev/null (special
1315 # files actually), so we avoid doing that.
1316 if test -f "$cache_file"; then
1317 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1318 echo "$as_me: loading cache $cache_file" >&6;}
1320 [\\/]* | ?:[\\/]* ) . $cache_file;;
1321 *) . ./$cache_file;;
1325 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1326 echo "$as_me: creating cache $cache_file" >&6;}
1330 # Check that the precious variables saved in the cache have kept the same
1332 ac_cache_corrupted=false
1333 for ac_var in `(set) 2>&1 |
1334 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1336 eval ac_new_set=\$ac_env_${ac_var}_set
1337 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1338 eval ac_new_val="\$ac_env_${ac_var}_value"
1339 case $ac_old_set,$ac_new_set in
1341 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1342 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1343 ac_cache_corrupted=: ;;
1345 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1346 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1347 ac_cache_corrupted=: ;;
1350 if test "x$ac_old_val" != "x$ac_new_val"; then
1351 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1352 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1353 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1354 echo "$as_me: former value: $ac_old_val" >&2;}
1355 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1356 echo "$as_me: current value: $ac_new_val" >&2;}
1357 ac_cache_corrupted=:
1360 # Pass precious variables to config.status.
1361 if test "$ac_new_set" = set; then
1363 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1364 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1365 *) ac_arg=$ac_var=$ac_new_val ;;
1367 case " $ac_configure_args " in
1368 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1369 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1373 if $ac_cache_corrupted; then
1374 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1375 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1376 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1377 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1378 { (exit 1); exit 1; }; }
1382 ac_cpp='$CPP $CPPFLAGS'
1383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1412 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1413 if test -f $ac_dir/install-sh; then
1415 ac_install_sh="$ac_aux_dir/install-sh -c"
1417 elif test -f $ac_dir/install.sh; then
1419 ac_install_sh="$ac_aux_dir/install.sh -c"
1421 elif test -f $ac_dir/shtool; then
1423 ac_install_sh="$ac_aux_dir/shtool install -c"
1427 if test -z "$ac_aux_dir"; then
1428 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1429 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1430 { (exit 1); exit 1; }; }
1432 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1433 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1434 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1436 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1444 # Extract the first word of "$ac_prog", so it can be a program name with args.
1445 set dummy $ac_prog; ac_word=$2
1446 echo "$as_me:$LINENO: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 TRUEPRG=$ac_cv_path_TRUEPRG
1475 if test -n "$TRUEPRG"; then
1476 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1477 echo "${ECHO_T}$TRUEPRG" >&6
1479 echo "$as_me:$LINENO: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1483 test -n "$TRUEPRG" && break
1485 test -n "$TRUEPRG" || TRUEPRG=":"
1487 for ac_prog in false
1489 # Extract the first word of "$ac_prog", so it can be a program name with args.
1490 set dummy $ac_prog; ac_word=$2
1491 echo "$as_me:$LINENO: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 FALSEPRG=$ac_cv_path_FALSEPRG
1520 if test -n "$FALSEPRG"; then
1521 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1522 echo "${ECHO_T}$FALSEPRG" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1528 test -n "$FALSEPRG" && break
1530 test -n "$FALSEPRG" || FALSEPRG=":"
1534 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1537 echo "configuring for bacula $VERSION ($DATE)"
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 if test -n "$ac_tool_prefix"; then
1547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 if test -n "$CC"; then
1575 echo "$as_me:$LINENO: result: $CC" >&5
1576 echo "${ECHO_T}$CC" >&6
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1583 if test -z "$ac_cv_prog_CC"; then
1585 # Extract the first word of "gcc", so it can be a program name with args.
1586 set dummy gcc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 if test -n "$ac_ct_CC"; then
1593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 ac_cv_prog_ac_ct_CC="gcc"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612 if test -n "$ac_ct_CC"; then
1613 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614 echo "${ECHO_T}$ac_ct_CC" >&6
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1625 if test -z "$CC"; then
1626 if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}cc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$CC"; then
1635 ac_cv_prog_CC="$CC" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_CC="${ac_tool_prefix}cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 if test -n "$CC"; then
1655 echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$ac_cv_prog_CC"; then
1665 # Extract the first word of "cc", so it can be a program name with args.
1666 set dummy cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1706 if test -z "$CC"; then
1707 # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726 ac_prog_rejected=yes
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test $ac_prog_rejected = yes; then
1737 # We found a bogon in the path, so make sure we never use it.
1738 set dummy $ac_cv_prog_CC
1740 if test $# != 0; then
1741 # We chose a different compiler from the bogus one.
1742 # However, it has the same basename, so the bogon will be chosen
1743 # first if we set CC to just the basename; use the full file name.
1745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1751 if test -n "$CC"; then
1752 echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1760 if test -z "$CC"; then
1761 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1799 test -n "$CC" && break
1802 if test -z "$CC"; then
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1841 test -n "$ac_ct_CC" && break
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1876 cat >conftest.$ac_ext <<_ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h. */
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914 test -f "$ac_file" || continue
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1919 # This is the source file.
1922 # We found the default executable, but exeext='' is most
1926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool,
1928 # but it would be cool to find out if it's true. Does anybody
1929 # maintain Libtool? --akim.
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&2;}
1944 { (exit 77); exit 77; }; }
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1951 # Check the compiler produces executables we can run. If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958 if { ac_try='./$ac_file'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1966 if test "$cross_compiling" = maybe; then
1969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'.
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot run C compiled programs.
1973 If you meant to cross compile, use \`--host'.
1974 See \`config.log' for more details." >&2;}
1975 { (exit 1); exit 1; }; }
1979 echo "$as_me:$LINENO: result: yes" >&5
1980 echo "${ECHO_T}yes" >&6
1982 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983 ac_clean_files=$ac_clean_files_save
1984 # Check the compiler produces executables we can run. If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989 echo "${ECHO_T}$cross_compiling" >&6
1991 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994 (eval $ac_link) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2000 # work properly (i.e., refer to `conftest.exe'), while it won't with
2002 for ac_file in conftest.exe conftest conftest.*; do
2003 test -f "$ac_file" || continue
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2013 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2020 rm -f conftest$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022 echo "${ECHO_T}$ac_cv_exeext" >&6
2024 rm -f conftest.$ac_ext
2025 EXEEXT=$ac_cv_exeext
2027 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029 if test "${ac_cv_objext+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2047 rm -f conftest.o conftest.obj
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2061 echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2073 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074 echo "${ECHO_T}$ac_cv_objext" >&6
2075 OBJEXT=$ac_cv_objext
2077 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 cat >conftest.$ac_ext <<_ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h. */
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>conftest.er1
2104 grep -v '^ *+' conftest.er1 >conftest.err
2106 cat conftest.err >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -z "$ac_c_werror_flag"
2110 || test ! -s conftest.err'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2163 grep -v '^ *+' conftest.er1 >conftest.err
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193 CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195 if test "$GCC" = yes; then
2201 if test "$GCC" = yes; then
2207 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 ac_cv_prog_cc_stdc=no
2214 cat >conftest.$ac_ext <<_ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2238 s = g (p, va_arg (v,int));
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2244 function prototypes and stuff, but not '\xHH' hex character constants.
2245 These don't provoke an error unfortunately, instead are silently treated
2246 as 'x'. The following induces an error, until -std1 is added to get
2247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2248 array size at least. It's necessary to write '\x00'==0 to get something
2249 that's true only with -std1. */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX -qlanglvl=ansi
2269 # Ultrix and OSF/1 -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions -Aa -D_HPUX_SOURCE
2272 # SVR4 -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2275 CC="$ac_save_CC $ac_arg"
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2280 grep -v '^ *+' conftest.er1 >conftest.err
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cc_stdc=$ac_arg
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2305 rm -f conftest.err conftest.$ac_objext
2307 rm -f conftest.$ac_ext conftest.$ac_objext
2312 case "x$ac_cv_prog_cc_stdc" in
2314 echo "$as_me:$LINENO: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6 ;;
2317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319 CC="$CC $ac_cv_prog_cc_stdc" ;;
2322 # Some people use a C++ compiler to compile C. Since we use `exit',
2323 # in C++ we need to declare it. In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1 >conftest.err
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 for ac_declaration in \
2355 'extern "C" void std::exit (int) throw (); using std::exit;' \
2356 'extern "C" void std::exit (int); using std::exit;' \
2357 'extern "C" void exit (int) throw ();' \
2358 'extern "C" void exit (int);' \
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 if test -n "$ac_declaration"; then
2454 echo '#ifdef __cplusplus' >>confdefs.h
2455 echo $ac_declaration >>confdefs.h
2456 echo '#endif' >>confdefs.h
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 ac_cpp='$CXXCPP $CPPFLAGS'
2473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CXX+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$CXX"; then
2487 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CXX"; then
2507 echo "$as_me:$LINENO: result: $CXX" >&5
2508 echo "${ECHO_T}$CXX" >&6
2510 echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$CXX" && break
2517 if test -z "$CXX"; then
2519 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$ac_ct_CXX"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_ac_ct_CXX="$ac_prog"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2548 if test -n "$ac_ct_CXX"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2550 echo "${ECHO_T}$ac_ct_CXX" >&6
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 test -n "$ac_ct_CXX" && break
2558 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566 "checking for C++ compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569 (eval $ac_compiler --version </dev/null >&5) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574 (eval $ac_compiler -v </dev/null >&5) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579 (eval $ac_compiler -V </dev/null >&5) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2586 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_cxx_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2642 GXX=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CXXFLAGS=${CXXFLAGS+set}
2644 ac_save_CXXFLAGS=$CXXFLAGS
2646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cxx_g+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_cxx_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_prog_cxx_g=yes
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2699 if test "$ac_test_CXXFLAGS" = set; then
2700 CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702 if test "$GXX" = yes; then
2708 if test "$GXX" = yes; then
2714 for ac_declaration in \
2716 'extern "C" void std::exit (int) throw (); using std::exit;' \
2717 'extern "C" void std::exit (int); using std::exit;' \
2718 'extern "C" void exit (int) throw ();' \
2719 'extern "C" void exit (int);' \
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2742 grep -v '^ *+' conftest.er1 >conftest.err
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_cxx_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_cxx_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 if test -n "$ac_declaration"; then
2815 echo '#ifdef __cplusplus' >>confdefs.h
2816 echo $ac_declaration >>confdefs.h
2817 echo '#endif' >>confdefs.h
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 if test "x$CC" != xcc; then
2827 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2828 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2830 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2831 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2833 set dummy $CC; ac_cc=`echo $2 |
2834 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2835 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2853 # Make sure it works both with $CC and with simple cc.
2854 # We do the test twice because some compilers refuse to overwrite an
2855 # existing .o file with -o, though they will create one.
2856 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); };
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2869 if test "x$CC" != xcc; then
2870 # Test first that cc exists at all.
2871 if { ac_try='cc -c conftest.$ac_ext >&5'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2878 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); };
2892 # cc exists but doesn't like -o.
2893 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2898 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2904 echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2910 cat >>confdefs.h <<\_ACEOF
2911 #define NO_MINUS_C_MINUS_O 1
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2927 if test -z "$CPP"; then
2928 if test "${ac_cv_prog_CPP+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 # Double quotes because CPP needs to be expanded
2932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2935 for ac_c_preproc_warn_flag in '' yes
2937 # Use a header file that comes with gcc, so configuring glibc
2938 # with a fresh cross-compiler works.
2939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940 # <limits.h> exists even on freestanding compilers.
2941 # On the NeXT, cc -E runs the code through the compiler's parser,
2942 # not just through cpp. "Syntax error" is here to catch this case.
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2950 # include <limits.h>
2952 # include <assert.h>
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } >/dev/null; then
2964 if test -s conftest.err; then
2965 ac_cpp_err=$ac_c_preproc_warn_flag
2966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2973 if test -z "$ac_cpp_err"; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Broken: fails on valid input.
2982 rm -f conftest.err conftest.$ac_ext
2984 # OK, works on sane cases. Now check whether non-existent headers
2985 # can be detected and how.
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <ac_nonexistent.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3012 # Broken: success on invalid input.
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 # Passes both tests.
3022 rm -f conftest.err conftest.$ac_ext
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.$ac_ext
3027 if $ac_preproc_ok; then
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3042 for ac_c_preproc_warn_flag in '' yes
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047 # <limits.h> exists even on freestanding compilers.
3048 # On the NeXT, cc -E runs the code through the compiler's parser,
3049 # not just through cpp. "Syntax error" is here to catch this case.
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3057 # include <limits.h>
3059 # include <assert.h>
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev/null; then
3071 if test -s conftest.err; then
3072 ac_cpp_err=$ac_c_preproc_warn_flag
3073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3080 if test -z "$ac_cpp_err"; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Broken: fails on valid input.
3089 rm -f conftest.err conftest.$ac_ext
3091 # OK, works on sane cases. Now check whether non-existent headers
3092 # can be detected and how.
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 #include <ac_nonexistent.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3119 # Broken: success on invalid input.
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 # Passes both tests.
3129 rm -f conftest.err conftest.$ac_ext
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 echo "$as_me:$LINENO: checking for egrep" >&5
3152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3153 if test "${ac_cv_prog_egrep+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3157 then ac_cv_prog_egrep='grep -E'
3158 else ac_cv_prog_egrep='egrep'
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3162 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3163 EGREP=$ac_cv_prog_egrep
3166 if test $ac_cv_c_compiler_gnu = yes; then
3167 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3168 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3169 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 ac_pattern="Autoconf.*'x'"
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3184 ac_cv_prog_gcc_traditional=yes
3186 ac_cv_prog_gcc_traditional=no
3191 if test $ac_cv_prog_gcc_traditional = no; then
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3203 ac_cv_prog_gcc_traditional=yes
3209 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3210 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3211 if test $ac_cv_prog_gcc_traditional = yes; then
3212 CC="$CC -traditional"
3216 BASECC=`basename $CC`
3218 if test "x$BASECC" = xgcc; then
3219 cat >>confdefs.h <<\_ACEOF
3225 # Extract the first word of "$CXX", so it can be a program name with args.
3226 set dummy $CXX; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3257 if test -n "$CXX"; then
3258 echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3265 if test ! -e $CXX; then
3266 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3267 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3268 { (exit 1); exit 1; }; }
3271 # Find a good install program. We prefer a C program (faster),
3272 # so one script is as good as another. But avoid the broken or
3273 # incompatible versions:
3274 # SysV /etc/install, /usr/sbin/install
3275 # SunOS /usr/etc/install
3276 # IRIX /sbin/install
3278 # AmigaOS /C/install, which installs bootblocks on floppy discs
3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282 # OS/2's system install, which has a completely different semantic
3283 # ./install, which can be erroneously created by make from ./install.sh.
3284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286 if test -z "$INSTALL"; then
3287 if test "${ac_cv_path_install+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 # Account for people who put trailing slashes in PATH elements.
3297 ./ | .// | /cC/* | \
3298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3302 # OSF1 and SCO ODT 3.0 have their own names for install.
3303 # Don't use installbsd from OSF since it installs stuff as root
3305 for ac_prog in ginstall scoinst install; do
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308 if test $ac_prog = install &&
3309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310 # AIX install. It has an incompatible calling convention.
3312 elif test $ac_prog = install &&
3313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314 # program-specific install script used by HP pwplus--don't use.
3317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3329 if test "${ac_cv_path_install+set}" = set; then
3330 INSTALL=$ac_cv_path_install
3332 # As a last resort, use the slow shell script. We don't cache a
3333 # path for INSTALL within a source directory, because that will
3334 # break other packages using the cache if that directory is
3335 # removed, or if the path is relative.
3336 INSTALL=$ac_install_sh
3339 echo "$as_me:$LINENO: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_RANLIB+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$RANLIB"; then
3359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379 echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388 ac_ct_RANLIB=$RANLIB
3389 # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_RANLIB"; then
3397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 RANLIB=$ac_ct_RANLIB
3427 RANLIB="$ac_cv_prog_RANLIB"
3430 # Extract the first word of "mv", so it can be a program name with args.
3431 set dummy mv; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_path_MV+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3462 if test -n "$MV"; then
3463 echo "$as_me:$LINENO: result: $MV" >&5
3464 echo "${ECHO_T}$MV" >&6
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3470 # Extract the first word of "rm", so it can be a program name with args.
3471 set dummy rm; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_path_RM+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3502 if test -n "$RM"; then
3503 echo "$as_me:$LINENO: result: $RM" >&5
3504 echo "${ECHO_T}$RM" >&6
3506 echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3510 # Extract the first word of "cp", so it can be a program name with args.
3511 set dummy cp; ac_word=$2
3512 echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514 if test "${ac_cv_path_CP+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3542 if test -n "$CP"; then
3543 echo "$as_me:$LINENO: result: $CP" >&5
3544 echo "${ECHO_T}$CP" >&6
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 # Extract the first word of "sed", so it can be a program name with args.
3551 set dummy sed; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_path_SED+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3582 if test -n "$SED"; then
3583 echo "$as_me:$LINENO: result: $SED" >&5
3584 echo "${ECHO_T}$SED" >&6
3586 echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3590 # Extract the first word of "echo", so it can be a program name with args.
3591 set dummy echo; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_path_ECHO+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3620 ECHO=$ac_cv_path_ECHO
3622 if test -n "$ECHO"; then
3623 echo "$as_me:$LINENO: result: $ECHO" >&5
3624 echo "${ECHO_T}$ECHO" >&6
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3630 # Extract the first word of "cmp", so it can be a program name with args.
3631 set dummy cmp; ac_word=$2
3632 echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_path_CMP+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3662 if test -n "$CMP"; then
3663 echo "$as_me:$LINENO: result: $CMP" >&5
3664 echo "${ECHO_T}$CMP" >&6
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3670 # Extract the first word of "tbl", so it can be a program name with args.
3671 set dummy tbl; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_TBL+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3702 if test -n "$TBL"; then
3703 echo "$as_me:$LINENO: result: $TBL" >&5
3704 echo "${ECHO_T}$TBL" >&6
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3710 # Extract the first word of "ar", so it can be a program name with args.
3711 set dummy ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_AR+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3742 if test -n "$AR"; then
3743 echo "$as_me:$LINENO: result: $AR" >&5
3744 echo "${ECHO_T}$AR" >&6
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3750 # Extract the first word of "openssl", so it can be a program name with args.
3751 set dummy openssl; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_path_OPENSSL+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3780 OPENSSL=$ac_cv_path_OPENSSL
3782 if test -n "$OPENSSL"; then
3783 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3784 echo "${ECHO_T}$OPENSSL" >&6
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3790 # Extract the first word of "mtx", so it can be a program name with args.
3791 set dummy mtx; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_MTX+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3822 if test -n "$MTX"; then
3823 echo "$as_me:$LINENO: result: $MTX" >&5
3824 echo "${ECHO_T}$MTX" >&6
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 # Extract the first word of "dd", so it can be a program name with args.
3831 set dummy dd; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_DD+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3862 if test -n "$DD"; then
3863 echo "$as_me:$LINENO: result: $DD" >&5
3864 echo "${ECHO_T}$DD" >&6
3866 echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3870 # Extract the first word of "mkisofs", so it can be a program name with args.
3871 set dummy mkisofs; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_path_MKISOFS+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3900 MKISOFS=$ac_cv_path_MKISOFS
3902 if test -n "$MKISOFS"; then
3903 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3904 echo "${ECHO_T}$MKISOFS" >&6
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 # Extract the first word of "python", so it can be a program name with args.
3911 set dummy python; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_PYTHON+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3940 PYTHON=$ac_cv_path_PYTHON
3942 if test -n "$PYTHON"; then
3943 echo "$as_me:$LINENO: result: $PYTHON" >&5
3944 echo "${ECHO_T}$PYTHON" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 # Extract the first word of "growisofs", so it can be a program name with args.
3951 set dummy growisofs; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3980 GROWISOFS=$ac_cv_path_GROWISOFS
3982 if test -n "$GROWISOFS"; then
3983 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3984 echo "${ECHO_T}$GROWISOFS" >&6
3986 echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3990 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3991 set dummy dvd+rw-mediainfo; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 case $DVDRWMEDIAINFO in
3999 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4020 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4022 if test -n "$DVDRWMEDIAINFO"; then
4023 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4024 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4026 echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4030 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4031 set dummy dvd+rw-format; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 case $DVDRWFORMAT in
4039 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4060 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4062 if test -n "$DVDRWFORMAT"; then
4063 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4064 echo "${ECHO_T}$DVDRWFORMAT" >&6
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4100 PKGCONFIG=$ac_cv_path_PKGCONFIG
4102 if test -n "$PKGCONFIG"; then
4103 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4104 echo "${ECHO_T}$PKGCONFIG" >&6
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4110 # Extract the first word of "qmake", so it can be a program name with args.
4111 set dummy qmake; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_path_QMAKE+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4140 QMAKE=$ac_cv_path_QMAKE
4142 if test -n "$QMAKE"; then
4143 echo "$as_me:$LINENO: result: $QMAKE" >&5
4144 echo "${ECHO_T}$QMAKE" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4151 set dummy qmake-qt4; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4180 QMAKEQT4=$ac_cv_path_QMAKEQT4
4182 if test -n "$QMAKEQT4"; then
4183 echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4184 echo "${ECHO_T}$QMAKEQT4" >&6
4186 echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4191 if test "x$WXCONFIG" = x; then
4194 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4195 set dummy ${WXCONFIG}; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4224 WXCONFIG=$ac_cv_path_WXCONFIG
4226 if test -n "$WXCONFIG"; then
4227 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4228 echo "${ECHO_T}$WXCONFIG" >&6
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4235 # Extract the first word of "cdrecord", so it can be a program name with args.
4236 set dummy cdrecord; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_path_CDRECORD+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4265 CDRECORD=$ac_cv_path_CDRECORD
4267 if test -n "$CDRECORD"; then
4268 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4269 echo "${ECHO_T}$CDRECORD" >&6
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4275 # Extract the first word of "pidof", so it can be a program name with args.
4276 set dummy pidof; ac_word=$2
4277 echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279 if test "${ac_cv_path_PIDOF+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4305 PIDOF=$ac_cv_path_PIDOF
4307 if test -n "$PIDOF"; then
4308 echo "$as_me:$LINENO: result: $PIDOF" >&5
4309 echo "${ECHO_T}$PIDOF" >&6
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4315 for ac_prog in gawk mawk nawk awk
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321 if test "${ac_cv_prog_AWK+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if test -n "$AWK"; then
4325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_AWK="$ac_prog"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 if test -n "$AWK"; then
4345 echo "$as_me:$LINENO: result: $AWK" >&5
4346 echo "${ECHO_T}$AWK" >&6
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4352 test -n "$AWK" && break
4355 # Some AWK programs fail, so test it and warn the user
4356 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4357 { if ((prog == $2) || (("(" prog ")") == $2) ||
4358 (("" prog "") == $2) ||
4359 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4361 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4362 The regex engine of $AWK is too broken to be used you
4363 might want to install GNU AWK.
4364 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4365 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4366 The regex engine of $AWK is too broken to be used you
4367 might want to install GNU AWK.
4368 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4369 { (exit 1); exit 1; }; }
4372 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4373 set dummy $THE_AWK; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_path_AWK+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4404 if test -n "$AWK"; then
4405 echo "$as_me:$LINENO: result: $AWK" >&5
4406 echo "${ECHO_T}$AWK" >&6
4408 echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6
4414 test -n "$ARFLAG" || ARFLAGS="cr"
4425 # Make sure we can run config.sub.
4426 $ac_config_sub sun4 >/dev/null 2>&1 ||
4427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4429 { (exit 1); exit 1; }; }
4431 echo "$as_me:$LINENO: checking build system type" >&5
4432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4433 if test "${ac_cv_build+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 ac_cv_build_alias=$build_alias
4437 test -z "$ac_cv_build_alias" &&
4438 ac_cv_build_alias=`$ac_config_guess`
4439 test -z "$ac_cv_build_alias" &&
4440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4442 { (exit 1); exit 1; }; }
4443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4446 { (exit 1); exit 1; }; }
4449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4450 echo "${ECHO_T}$ac_cv_build" >&6
4452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4458 echo "$as_me:$LINENO: checking host system type" >&5
4459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4460 if test "${ac_cv_host+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 ac_cv_host_alias=$host_alias
4464 test -z "$ac_cv_host_alias" &&
4465 ac_cv_host_alias=$ac_cv_build_alias
4466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4467 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4469 { (exit 1); exit 1; }; }
4472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4473 echo "${ECHO_T}$ac_cv_host" >&6
4475 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4476 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4477 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4481 *cygwin* ) CYGWIN=yes;;
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4491 HAVE_SUN_OS_FALSE='#'
4493 HAVE_SUN_OS_TRUE='#'
4496 cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_SUN_OS 1
4505 HAVE_SUN_OS_FALSE='#'
4507 HAVE_SUN_OS_TRUE='#'
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4518 HAVE_OSF1_OS_FALSE='#'
4520 HAVE_OSF1_OS_TRUE='#'
4523 cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_OSF1_OS 1
4532 HAVE_OSF1_OS_FALSE='#'
4534 HAVE_OSF1_OS_TRUE='#'
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4545 HAVE_AIX_OS_FALSE='#'
4547 HAVE_AIX_OS_TRUE='#'
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_AIX_OS 1
4559 HAVE_AIX_OS_FALSE='#'
4561 HAVE_AIX_OS_TRUE='#'
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4572 HAVE_HPUX_OS_FALSE='#'
4574 HAVE_HPUX_OS_TRUE='#'
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_HPUX_OS 1
4586 HAVE_HPUX_OS_FALSE='#'
4588 HAVE_HPUX_OS_TRUE='#'
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4599 HAVE_LINUX_OS_FALSE='#'
4601 HAVE_LINUX_OS_TRUE='#'
4602 HAVE_LINUX_OS_FALSE=
4604 cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_LINUX_OS 1
4613 HAVE_LINUX_OS_FALSE='#'
4615 HAVE_LINUX_OS_TRUE='#'
4616 HAVE_LINUX_OS_FALSE=
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4625 HAVE_FREEBSD_OS_TRUE=
4626 HAVE_FREEBSD_OS_FALSE='#'
4628 HAVE_FREEBSD_OS_TRUE='#'
4629 HAVE_FREEBSD_OS_FALSE=
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_FREEBSD_OS 1
4639 HAVE_FREEBSD_OS_TRUE=
4640 HAVE_FREEBSD_OS_FALSE='#'
4642 HAVE_FREEBSD_OS_TRUE='#'
4643 HAVE_FREEBSD_OS_FALSE=
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4652 HAVE_NETBSD_OS_TRUE=
4653 HAVE_NETBSD_OS_FALSE='#'
4655 HAVE_NETBSD_OS_TRUE='#'
4656 HAVE_NETBSD_OS_FALSE=
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_NETBSD_OS 1
4666 HAVE_NETBSD_OS_TRUE=
4667 HAVE_NETBSD_OS_FALSE='#'
4669 HAVE_NETBSD_OS_TRUE='#'
4670 HAVE_NETBSD_OS_FALSE=
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4679 HAVE_OPENBSD_OS_TRUE=
4680 HAVE_OPENBSD_OS_FALSE='#'
4682 HAVE_OPENBSD_OS_TRUE='#'
4683 HAVE_OPENBSD_OS_FALSE=
4685 cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_OPENBSD_OS 1
4693 HAVE_OPENBSD_OS_TRUE=
4694 HAVE_OPENBSD_OS_FALSE='#'
4696 HAVE_OPENBSD_OS_TRUE='#'
4697 HAVE_OPENBSD_OS_FALSE=
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4707 HAVE_BSDI_OS_FALSE='#'
4709 HAVE_BSDI_OS_TRUE='#'
4712 cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_BSDI_OS 1
4721 HAVE_BSDI_OS_FALSE='#'
4723 HAVE_BSDI_OS_TRUE='#'
4728 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4734 HAVE_SGI_OS_FALSE='#'
4736 HAVE_SGI_OS_TRUE='#'
4739 cat >>confdefs.h <<\_ACEOF
4740 #define HAVE_SGI_OS 1
4748 HAVE_SGI_OS_FALSE='#'
4750 HAVE_SGI_OS_TRUE='#'
4755 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4761 HAVE_IRIX_OS_FALSE='#'
4763 HAVE_IRIX_OS_TRUE='#'
4766 cat >>confdefs.h <<\_ACEOF
4767 #define HAVE_IRIX_OS 1
4775 HAVE_IRIX_OS_FALSE='#'
4777 HAVE_IRIX_OS_TRUE='#'
4782 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4787 HAVE_DARWIN_OS_TRUE=
4788 HAVE_DARWIN_OS_FALSE='#'
4790 HAVE_DARWIN_OS_TRUE='#'
4791 HAVE_DARWIN_OS_FALSE=
4793 cat >>confdefs.h <<\_ACEOF
4794 #define HAVE_DARWIN_OS 1
4801 HAVE_DARWIN_OS_TRUE=
4802 HAVE_DARWIN_OS_FALSE='#'
4804 HAVE_DARWIN_OS_TRUE='#'
4805 HAVE_DARWIN_OS_FALSE=
4810 # -----------------------------------------------------------
4811 # ----------------------------------------------------------
4812 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4813 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4814 if test "x$DISTNAME" != "x"
4816 echo "distname set to $DISTNAME"
4817 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4820 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4823 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4826 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4829 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4832 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4835 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4838 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4841 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4844 elif test -f /etc/SuSE-release
4847 elif test -d /etc/SuSEconfig
4850 elif test -f /etc/mandrake-release
4853 elif test -f /etc/whitebox-release
4856 elif test -f /etc/redhat-release
4859 elif test -f /etc/gentoo-release
4862 elif test -f /etc/debian_version
4865 elif test -f /etc/slackware-version
4868 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4871 elif test -f /etc/engarde-version
4874 elif test "$CYGWIN" = yes
4877 cat >>confdefs.h <<\_ACEOF
4878 #define HAVE_CYGWIN 1
4884 echo "$as_me:$LINENO: result: done" >&5
4885 echo "${ECHO_T}done" >&6
4888 # --------------------------------------------------
4889 # Suppport for gettext (translations)
4890 # By default, $datadir is ${prefix}/share
4891 # --------------------------------------------------
4892 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4893 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4895 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 cat >conftest.make <<\_ACEOF
4900 @echo 'ac_maketemp="$(MAKE)"'
4902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4903 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4904 if test -n "$ac_maketemp"; then
4905 eval ac_cv_prog_make_${ac_make}_set=yes
4907 eval ac_cv_prog_make_${ac_make}_set=no
4911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4912 echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6
4916 echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4918 SET_MAKE="MAKE=${MAKE-make}"
4924 if test -n "$ac_aux_dir"; then
4925 case "$ac_aux_dir" in
4926 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4927 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4930 if test -z "$MKINSTALLDIRS"; then
4931 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4936 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4937 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4938 # Check whether --enable-nls or --disable-nls was given.
4939 if test "${enable_nls+set}" = set; then
4940 enableval="$enable_nls"
4945 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4946 echo "${ECHO_T}$USE_NLS" >&6
4953 # Prepare PATH_SEPARATOR.
4954 # The user is always right.
4955 if test "${PATH_SEPARATOR+set}" != set; then
4956 echo "#! /bin/sh" >conf$$.sh
4957 echo "exit 0" >>conf$$.sh
4959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4967 # Find out how to test for executable files. Don't use a zero-byte file,
4968 # as systems may use methods other than mode bits to determine executability.
4969 cat >conf$$.file <<_ASEOF
4973 chmod +x conf$$.file
4974 if test -x conf$$.file >/dev/null 2>&1; then
4975 ac_executable_p="test -x"
4977 ac_executable_p="test -f"
4981 # Extract the first word of "msgfmt", so it can be a program name with args.
4982 set dummy msgfmt; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_path_MSGFMT+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4993 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4994 for ac_dir in $PATH; do
4996 test -z "$ac_dir" && ac_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4999 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5000 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5001 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5002 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5009 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5013 MSGFMT="$ac_cv_path_MSGFMT"
5014 if test "$MSGFMT" != ":"; then
5015 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5016 echo "${ECHO_T}$MSGFMT" >&6
5018 echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5022 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5023 set dummy gmsgfmt; ac_word=$2
5024 echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5052 GMSGFMT=$ac_cv_path_GMSGFMT
5054 if test -n "$GMSGFMT"; then
5055 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5056 echo "${ECHO_T}$GMSGFMT" >&6
5058 echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5064 # Prepare PATH_SEPARATOR.
5065 # The user is always right.
5066 if test "${PATH_SEPARATOR+set}" != set; then
5067 echo "#! /bin/sh" >conf$$.sh
5068 echo "exit 0" >>conf$$.sh
5070 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5078 # Find out how to test for executable files. Don't use a zero-byte file,
5079 # as systems may use methods other than mode bits to determine executability.
5080 cat >conf$$.file <<_ASEOF
5084 chmod +x conf$$.file
5085 if test -x conf$$.file >/dev/null 2>&1; then
5086 ac_executable_p="test -x"
5088 ac_executable_p="test -f"
5092 # Extract the first word of "xgettext", so it can be a program name with args.
5093 set dummy xgettext; ac_word=$2
5094 echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5104 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5105 for ac_dir in $PATH; do
5107 test -z "$ac_dir" && ac_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5110 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5111 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5112 (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
5113 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5120 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5124 XGETTEXT="$ac_cv_path_XGETTEXT"
5125 if test "$XGETTEXT" != ":"; then
5126 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5127 echo "${ECHO_T}$XGETTEXT" >&6
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5136 # Prepare PATH_SEPARATOR.
5137 # The user is always right.
5138 if test "${PATH_SEPARATOR+set}" != set; then
5139 echo "#! /bin/sh" >conf$$.sh
5140 echo "exit 0" >>conf$$.sh
5142 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5150 # Find out how to test for executable files. Don't use a zero-byte file,
5151 # as systems may use methods other than mode bits to determine executability.
5152 cat >conf$$.file <<_ASEOF
5156 chmod +x conf$$.file
5157 if test -x conf$$.file >/dev/null 2>&1; then
5158 ac_executable_p="test -x"
5160 ac_executable_p="test -f"
5164 # Extract the first word of "msgmerge", so it can be a program name with args.
5165 set dummy msgmerge; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5176 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5177 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5182 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5183 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5184 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5191 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5195 MSGMERGE="$ac_cv_path_MSGMERGE"
5196 if test "$MSGMERGE" != ":"; then
5197 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5198 echo "${ECHO_T}$MSGMERGE" >&6
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5205 if test "$GMSGFMT" != ":"; then
5206 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5207 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5210 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5211 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5212 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5217 if test "$XGETTEXT" != ":"; then
5218 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5219 (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
5222 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5223 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5229 ac_config_commands="$ac_config_commands default-1"
5233 if test "X$prefix" = "XNONE"; then
5234 acl_final_prefix="$ac_default_prefix"
5236 acl_final_prefix="$prefix"
5238 if test "X$exec_prefix" = "XNONE"; then
5239 acl_final_exec_prefix='${prefix}'
5241 acl_final_exec_prefix="$exec_prefix"
5243 acl_save_prefix="$prefix"
5244 prefix="$acl_final_prefix"
5245 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5246 prefix="$acl_save_prefix"
5249 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5250 if test "${with_gnu_ld+set}" = set; then
5251 withval="$with_gnu_ld"
5252 test "$withval" = no || with_gnu_ld=yes
5256 # Prepare PATH_SEPARATOR.
5257 # The user is always right.
5258 if test "${PATH_SEPARATOR+set}" != set; then
5259 echo "#! /bin/sh" >conf$$.sh
5260 echo "exit 0" >>conf$$.sh
5262 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5270 if test "$GCC" = yes; then
5271 # Check if gcc -print-prog-name=ld gives a path.
5272 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5273 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5276 # gcc leaves a trailing carriage return which upsets mingw
5277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5282 # Accept absolute paths.
5283 [\\/]* | [A-Za-z]:[\\/]*)
5284 re_direlt='/[^/][^/]*/\.\./'
5285 # Canonicalize the path of ld
5286 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5287 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5288 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5290 test -z "$LD" && LD="$ac_prog"
5293 # If it fails, then pretend we aren't using GCC.
5297 # If it is relative, then search for the first ld in PATH.
5301 elif test "$with_gnu_ld" = yes; then
5302 echo "$as_me:$LINENO: checking for GNU ld" >&5
5303 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5305 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5306 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5308 if test "${acl_cv_path_LD+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 if test -z "$LD"; then
5312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5313 for ac_dir in $PATH; do
5314 test -z "$ac_dir" && ac_dir=.
5315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5316 acl_cv_path_LD="$ac_dir/$ac_prog"
5317 # Check to see if the program is GNU ld. I'd rather use --version,
5318 # but apparently some GNU ld's only accept -v.
5319 # Break only if it was the GNU/non-GNU ld that we prefer.
5320 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5321 *GNU* | *'with BFD'*)
5322 test "$with_gnu_ld" != no && break ;;
5324 test "$with_gnu_ld" != yes && break ;;
5330 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5334 LD="$acl_cv_path_LD"
5335 if test -n "$LD"; then
5336 echo "$as_me:$LINENO: result: $LD" >&5
5337 echo "${ECHO_T}$LD" >&6
5339 echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5342 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5343 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5344 { (exit 1); exit 1; }; }
5345 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5346 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5347 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5351 case `$LD -v 2>&1 </dev/null` in
5352 *GNU* | *'with BFD'*)
5353 acl_cv_prog_gnu_ld=yes ;;
5355 acl_cv_prog_gnu_ld=no ;;
5358 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5359 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5360 with_gnu_ld=$acl_cv_prog_gnu_ld
5365 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5366 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5367 if test "${acl_cv_rpath+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5372 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5378 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5379 echo "${ECHO_T}$acl_cv_rpath" >&6
5381 libext="$acl_cv_libext"
5382 shlibext="$acl_cv_shlibext"
5383 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5384 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5385 hardcode_direct="$acl_cv_hardcode_direct"
5386 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5387 # Check whether --enable-rpath or --disable-rpath was given.
5388 if test "${enable_rpath+set}" = set; then
5389 enableval="$enable_rpath"
5403 acl_save_prefix="$prefix"
5404 prefix="$acl_final_prefix"
5405 acl_save_exec_prefix="$exec_prefix"
5406 exec_prefix="$acl_final_exec_prefix"
5408 eval additional_includedir=\"$includedir\"
5409 eval additional_libdir=\"$libdir\"
5411 exec_prefix="$acl_save_exec_prefix"
5412 prefix="$acl_save_prefix"
5415 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5416 if test "${with_libiconv_prefix+set}" = set; then
5417 withval="$with_libiconv_prefix"
5419 if test "X$withval" = "Xno"; then
5422 if test "X$withval" = "X"; then
5424 acl_save_prefix="$prefix"
5425 prefix="$acl_final_prefix"
5426 acl_save_exec_prefix="$exec_prefix"
5427 exec_prefix="$acl_final_exec_prefix"
5429 eval additional_includedir=\"$includedir\"
5430 eval additional_libdir=\"$libdir\"
5432 exec_prefix="$acl_save_exec_prefix"
5433 prefix="$acl_save_prefix"
5436 additional_includedir="$withval/include"
5437 additional_libdir="$withval/lib"
5447 names_already_handled=
5448 names_next_round='iconv '
5449 while test -n "$names_next_round"; do
5450 names_this_round="$names_next_round"
5452 for name in $names_this_round; do
5454 for n in $names_already_handled; do
5455 if test "$n" = "$name"; then
5460 if test -z "$already_handled"; then
5461 names_already_handled="$names_already_handled $name"
5462 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5463 eval value=\"\$HAVE_LIB$uppername\"
5464 if test -n "$value"; then
5465 if test "$value" = yes; then
5466 eval value=\"\$LIB$uppername\"
5467 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5468 eval value=\"\$LTLIB$uppername\"
5469 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5478 if test $use_additional = yes; then
5479 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5480 found_dir="$additional_libdir"
5481 found_so="$additional_libdir/lib$name.$shlibext"
5482 if test -f "$additional_libdir/lib$name.la"; then
5483 found_la="$additional_libdir/lib$name.la"
5486 if test -f "$additional_libdir/lib$name.$libext"; then
5487 found_dir="$additional_libdir"
5488 found_a="$additional_libdir/lib$name.$libext"
5489 if test -f "$additional_libdir/lib$name.la"; then
5490 found_la="$additional_libdir/lib$name.la"
5495 if test "X$found_dir" = "X"; then
5496 for x in $LDFLAGS $LTLIBICONV; do
5498 acl_save_prefix="$prefix"
5499 prefix="$acl_final_prefix"
5500 acl_save_exec_prefix="$exec_prefix"
5501 exec_prefix="$acl_final_exec_prefix"
5503 exec_prefix="$acl_save_exec_prefix"
5504 prefix="$acl_save_prefix"
5508 dir=`echo "X$x" | sed -e 's/^X-L//'`
5509 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5511 found_so="$dir/lib$name.$shlibext"
5512 if test -f "$dir/lib$name.la"; then
5513 found_la="$dir/lib$name.la"
5516 if test -f "$dir/lib$name.$libext"; then
5518 found_a="$dir/lib$name.$libext"
5519 if test -f "$dir/lib$name.la"; then
5520 found_la="$dir/lib$name.la"
5526 if test "X$found_dir" != "X"; then
5531 if test "X$found_dir" != "X"; then
5532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5533 if test "X$found_so" != "X"; then
5534 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5535 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5538 for x in $ltrpathdirs; do
5539 if test "X$x" = "X$found_dir"; then
5544 if test -z "$haveit"; then
5545 ltrpathdirs="$ltrpathdirs $found_dir"
5547 if test "$hardcode_direct" = yes; then
5548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5550 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5551 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5553 for x in $rpathdirs; do
5554 if test "X$x" = "X$found_dir"; then
5559 if test -z "$haveit"; then
5560 rpathdirs="$rpathdirs $found_dir"
5564 for x in $LDFLAGS $LIBICONV; do
5566 acl_save_prefix="$prefix"
5567 prefix="$acl_final_prefix"
5568 acl_save_exec_prefix="$exec_prefix"
5569 exec_prefix="$acl_final_exec_prefix"
5571 exec_prefix="$acl_save_exec_prefix"
5572 prefix="$acl_save_prefix"
5574 if test "X$x" = "X-L$found_dir"; then
5579 if test -z "$haveit"; then
5580 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5582 if test "$hardcode_minus_L" != no; then
5583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5585 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5591 if test "X$found_a" != "X"; then
5592 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5594 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5597 additional_includedir=
5598 case "$found_dir" in
5600 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5601 additional_includedir="$basedir/include"
5604 if test "X$additional_includedir" != "X"; then
5605 if test "X$additional_includedir" != "X/usr/include"; then
5607 if test "X$additional_includedir" = "X/usr/local/include"; then
5608 if test -n "$GCC"; then
5610 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5614 if test -z "$haveit"; then
5615 for x in $CPPFLAGS $INCICONV; do
5617 acl_save_prefix="$prefix"
5618 prefix="$acl_final_prefix"
5619 acl_save_exec_prefix="$exec_prefix"
5620 exec_prefix="$acl_final_exec_prefix"
5622 exec_prefix="$acl_save_exec_prefix"
5623 prefix="$acl_save_prefix"
5625 if test "X$x" = "X-I$additional_includedir"; then
5630 if test -z "$haveit"; then
5631 if test -d "$additional_includedir"; then
5632 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5638 if test -n "$found_la"; then
5639 save_libdir="$libdir"
5641 */* | *\\*) . "$found_la" ;;
5642 *) . "./$found_la" ;;
5644 libdir="$save_libdir"
5645 for dep in $dependency_libs; do
5648 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5649 if test "X$additional_libdir" != "X/usr/lib"; then
5651 if test "X$additional_libdir" = "X/usr/local/lib"; then
5652 if test -n "$GCC"; then
5654 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5658 if test -z "$haveit"; then
5660 for x in $LDFLAGS $LIBICONV; do
5662 acl_save_prefix="$prefix"
5663 prefix="$acl_final_prefix"
5664 acl_save_exec_prefix="$exec_prefix"
5665 exec_prefix="$acl_final_exec_prefix"
5667 exec_prefix="$acl_save_exec_prefix"
5668 prefix="$acl_save_prefix"
5670 if test "X$x" = "X-L$additional_libdir"; then
5675 if test -z "$haveit"; then
5676 if test -d "$additional_libdir"; then
5677 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5681 for x in $LDFLAGS $LTLIBICONV; do
5683 acl_save_prefix="$prefix"
5684 prefix="$acl_final_prefix"
5685 acl_save_exec_prefix="$exec_prefix"
5686 exec_prefix="$acl_final_exec_prefix"
5688 exec_prefix="$acl_save_exec_prefix"
5689 prefix="$acl_save_prefix"
5691 if test "X$x" = "X-L$additional_libdir"; then
5696 if test -z "$haveit"; then
5697 if test -d "$additional_libdir"; then
5698 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5705 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5706 if test "$enable_rpath" != no; then
5708 for x in $rpathdirs; do
5709 if test "X$x" = "X$dir"; then
5714 if test -z "$haveit"; then
5715 rpathdirs="$rpathdirs $dir"
5718 for x in $ltrpathdirs; do
5719 if test "X$x" = "X$dir"; then
5724 if test -z "$haveit"; then
5725 ltrpathdirs="$ltrpathdirs $dir"
5730 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5733 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5736 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5737 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5743 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5744 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5750 if test "X$rpathdirs" != "X"; then
5751 if test -n "$hardcode_libdir_separator"; then
5753 for found_dir in $rpathdirs; do
5754 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5756 acl_save_libdir="$libdir"
5758 eval flag=\"$hardcode_libdir_flag_spec\"
5759 libdir="$acl_save_libdir"
5760 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5762 for found_dir in $rpathdirs; do
5763 acl_save_libdir="$libdir"
5765 eval flag=\"$hardcode_libdir_flag_spec\"
5766 libdir="$acl_save_libdir"
5767 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5771 if test "X$ltrpathdirs" != "X"; then
5772 for found_dir in $ltrpathdirs; do
5773 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5794 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5795 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5796 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 gt_save_CPPFLAGS="$CPPFLAGS"
5800 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5801 gt_save_LIBS="$LIBS"
5802 LIBS="$LIBS -framework CoreFoundation"
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <CFPreferences.h>
5813 CFPreferencesCopyAppValue(NULL, NULL)
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820 (eval $ac_link) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest$ac_exeext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 gt_cv_func_CFPreferencesCopyAppValue=yes
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 gt_cv_func_CFPreferencesCopyAppValue=no
5847 rm -f conftest.err conftest.$ac_objext \
5848 conftest$ac_exeext conftest.$ac_ext
5849 CPPFLAGS="$gt_save_CPPFLAGS"
5850 LIBS="$gt_save_LIBS"
5852 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5853 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5854 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5856 cat >>confdefs.h <<\_ACEOF
5857 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5861 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5862 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5863 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 gt_save_CPPFLAGS="$CPPFLAGS"
5867 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5868 gt_save_LIBS="$LIBS"
5869 LIBS="$LIBS -framework CoreFoundation"
5870 cat >conftest.$ac_ext <<_ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <CFLocale.h>
5880 CFLocaleCopyCurrent();
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887 (eval $ac_link) 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try='test -z "$ac_c_werror_flag"
5895 || test ! -s conftest.err'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest$ac_exeext'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 gt_cv_func_CFLocaleCopyCurrent=yes
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5912 gt_cv_func_CFLocaleCopyCurrent=no
5914 rm -f conftest.err conftest.$ac_objext \
5915 conftest$ac_exeext conftest.$ac_ext
5916 CPPFLAGS="$gt_save_CPPFLAGS"
5917 LIBS="$gt_save_LIBS"
5919 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5920 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5921 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_CFLOCALECOPYCURRENT 1
5929 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5930 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5936 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5937 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5938 # Check whether --enable-nls or --disable-nls was given.
5939 if test "${enable_nls+set}" = set; then
5940 enableval="$enable_nls"
5945 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5946 echo "${ECHO_T}$USE_NLS" >&6
5955 if test "$USE_NLS" = "yes"; then
5956 gt_use_preinstalled_gnugettext=no
5963 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5964 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5965 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <libintl.h>
5975 extern int _nl_msg_cat_cntr;
5976 extern int *_nl_domain_bindings;
5980 bindtextdomain ("", "");
5981 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988 (eval $ac_link) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest$ac_exeext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 gt_cv_func_gnugettext1_libc=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 gt_cv_func_gnugettext1_libc=no
6015 rm -f conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6019 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6021 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6027 am_save_CPPFLAGS="$CPPFLAGS"
6029 for element in $INCICONV; do
6031 for x in $CPPFLAGS; do
6033 acl_save_prefix="$prefix"
6034 prefix="$acl_final_prefix"
6035 acl_save_exec_prefix="$exec_prefix"
6036 exec_prefix="$acl_final_exec_prefix"
6038 exec_prefix="$acl_save_exec_prefix"
6039 prefix="$acl_save_prefix"
6041 if test "X$x" = "X$element"; then
6046 if test -z "$haveit"; then
6047 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6052 echo "$as_me:$LINENO: checking for iconv" >&5
6053 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6054 if test "${am_cv_func_iconv+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 am_cv_func_iconv="no, consider installing GNU libiconv"
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6071 iconv_t cd = iconv_open("","");
6072 iconv(cd,NULL,NULL,NULL,NULL);
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 am_cv_func_iconv=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6106 rm -f conftest.err conftest.$ac_objext \
6107 conftest$ac_exeext conftest.$ac_ext
6108 if test "$am_cv_func_iconv" != yes; then
6109 am_save_LIBS="$LIBS"
6110 LIBS="$LIBS $LIBICONV"
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6122 iconv_t cd = iconv_open("","");
6123 iconv(cd,NULL,NULL,NULL,NULL);
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6152 am_cv_func_iconv=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6158 rm -f conftest.err conftest.$ac_objext \
6159 conftest$ac_exeext conftest.$ac_ext
6160 LIBS="$am_save_LIBS"
6164 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6165 echo "${ECHO_T}$am_cv_func_iconv" >&6
6166 if test "$am_cv_func_iconv" = yes; then
6168 cat >>confdefs.h <<\_ACEOF
6169 #define HAVE_ICONV 1
6173 if test "$am_cv_lib_iconv" = yes; then
6174 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6175 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6176 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6177 echo "${ECHO_T}$LIBICONV" >&6
6179 CPPFLAGS="$am_save_CPPFLAGS"
6191 acl_save_prefix="$prefix"
6192 prefix="$acl_final_prefix"
6193 acl_save_exec_prefix="$exec_prefix"
6194 exec_prefix="$acl_final_exec_prefix"
6196 eval additional_includedir=\"$includedir\"
6197 eval additional_libdir=\"$libdir\"
6199 exec_prefix="$acl_save_exec_prefix"
6200 prefix="$acl_save_prefix"
6203 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6204 if test "${with_libintl_prefix+set}" = set; then
6205 withval="$with_libintl_prefix"
6207 if test "X$withval" = "Xno"; then
6210 if test "X$withval" = "X"; then
6212 acl_save_prefix="$prefix"
6213 prefix="$acl_final_prefix"
6214 acl_save_exec_prefix="$exec_prefix"
6215 exec_prefix="$acl_final_exec_prefix"
6217 eval additional_includedir=\"$includedir\"
6218 eval additional_libdir=\"$libdir\"
6220 exec_prefix="$acl_save_exec_prefix"
6221 prefix="$acl_save_prefix"
6224 additional_includedir="$withval/include"
6225 additional_libdir="$withval/lib"
6235 names_already_handled=
6236 names_next_round='intl '
6237 while test -n "$names_next_round"; do
6238 names_this_round="$names_next_round"
6240 for name in $names_this_round; do
6242 for n in $names_already_handled; do
6243 if test "$n" = "$name"; then
6248 if test -z "$already_handled"; then
6249 names_already_handled="$names_already_handled $name"
6250 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6251 eval value=\"\$HAVE_LIB$uppername\"
6252 if test -n "$value"; then
6253 if test "$value" = yes; then
6254 eval value=\"\$LIB$uppername\"
6255 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6256 eval value=\"\$LTLIB$uppername\"
6257 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6266 if test $use_additional = yes; then
6267 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6268 found_dir="$additional_libdir"
6269 found_so="$additional_libdir/lib$name.$shlibext"
6270 if test -f "$additional_libdir/lib$name.la"; then
6271 found_la="$additional_libdir/lib$name.la"
6274 if test -f "$additional_libdir/lib$name.$libext"; then
6275 found_dir="$additional_libdir"
6276 found_a="$additional_libdir/lib$name.$libext"
6277 if test -f "$additional_libdir/lib$name.la"; then
6278 found_la="$additional_libdir/lib$name.la"
6283 if test "X$found_dir" = "X"; then
6284 for x in $LDFLAGS $LTLIBINTL; do
6286 acl_save_prefix="$prefix"
6287 prefix="$acl_final_prefix"
6288 acl_save_exec_prefix="$exec_prefix"
6289 exec_prefix="$acl_final_exec_prefix"
6291 exec_prefix="$acl_save_exec_prefix"
6292 prefix="$acl_save_prefix"
6296 dir=`echo "X$x" | sed -e 's/^X-L//'`
6297 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6299 found_so="$dir/lib$name.$shlibext"
6300 if test -f "$dir/lib$name.la"; then
6301 found_la="$dir/lib$name.la"
6304 if test -f "$dir/lib$name.$libext"; then
6306 found_a="$dir/lib$name.$libext"
6307 if test -f "$dir/lib$name.la"; then
6308 found_la="$dir/lib$name.la"
6314 if test "X$found_dir" != "X"; then
6319 if test "X$found_dir" != "X"; then
6320 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6321 if test "X$found_so" != "X"; then
6322 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6326 for x in $ltrpathdirs; do
6327 if test "X$x" = "X$found_dir"; then
6332 if test -z "$haveit"; then
6333 ltrpathdirs="$ltrpathdirs $found_dir"
6335 if test "$hardcode_direct" = yes; then
6336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6338 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6339 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6341 for x in $rpathdirs; do
6342 if test "X$x" = "X$found_dir"; then
6347 if test -z "$haveit"; then
6348 rpathdirs="$rpathdirs $found_dir"
6352 for x in $LDFLAGS $LIBINTL; do
6354 acl_save_prefix="$prefix"
6355 prefix="$acl_final_prefix"
6356 acl_save_exec_prefix="$exec_prefix"
6357 exec_prefix="$acl_final_exec_prefix"
6359 exec_prefix="$acl_save_exec_prefix"
6360 prefix="$acl_save_prefix"
6362 if test "X$x" = "X-L$found_dir"; then
6367 if test -z "$haveit"; then
6368 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6370 if test "$hardcode_minus_L" != no; then
6371 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6373 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6379 if test "X$found_a" != "X"; then
6380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6382 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6385 additional_includedir=
6386 case "$found_dir" in
6388 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6389 additional_includedir="$basedir/include"
6392 if test "X$additional_includedir" != "X"; then
6393 if test "X$additional_includedir" != "X/usr/include"; then
6395 if test "X$additional_includedir" = "X/usr/local/include"; then
6396 if test -n "$GCC"; then
6398 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6402 if test -z "$haveit"; then
6403 for x in $CPPFLAGS $INCINTL; do
6405 acl_save_prefix="$prefix"
6406 prefix="$acl_final_prefix"
6407 acl_save_exec_prefix="$exec_prefix"
6408 exec_prefix="$acl_final_exec_prefix"
6410 exec_prefix="$acl_save_exec_prefix"
6411 prefix="$acl_save_prefix"
6413 if test "X$x" = "X-I$additional_includedir"; then
6418 if test -z "$haveit"; then
6419 if test -d "$additional_includedir"; then
6420 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6426 if test -n "$found_la"; then
6427 save_libdir="$libdir"
6429 */* | *\\*) . "$found_la" ;;
6430 *) . "./$found_la" ;;
6432 libdir="$save_libdir"
6433 for dep in $dependency_libs; do
6436 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6437 if test "X$additional_libdir" != "X/usr/lib"; then
6439 if test "X$additional_libdir" = "X/usr/local/lib"; then
6440 if test -n "$GCC"; then
6442 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6446 if test -z "$haveit"; then
6448 for x in $LDFLAGS $LIBINTL; do
6450 acl_save_prefix="$prefix"
6451 prefix="$acl_final_prefix"
6452 acl_save_exec_prefix="$exec_prefix"
6453 exec_prefix="$acl_final_exec_prefix"
6455 exec_prefix="$acl_save_exec_prefix"
6456 prefix="$acl_save_prefix"
6458 if test "X$x" = "X-L$additional_libdir"; then
6463 if test -z "$haveit"; then
6464 if test -d "$additional_libdir"; then
6465 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6469 for x in $LDFLAGS $LTLIBINTL; do
6471 acl_save_prefix="$prefix"
6472 prefix="$acl_final_prefix"
6473 acl_save_exec_prefix="$exec_prefix"
6474 exec_prefix="$acl_final_exec_prefix"
6476 exec_prefix="$acl_save_exec_prefix"
6477 prefix="$acl_save_prefix"
6479 if test "X$x" = "X-L$additional_libdir"; then
6484 if test -z "$haveit"; then
6485 if test -d "$additional_libdir"; then
6486 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6493 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6494 if test "$enable_rpath" != no; then
6496 for x in $rpathdirs; do
6497 if test "X$x" = "X$dir"; then
6502 if test -z "$haveit"; then
6503 rpathdirs="$rpathdirs $dir"
6506 for x in $ltrpathdirs; do
6507 if test "X$x" = "X$dir"; then
6512 if test -z "$haveit"; then
6513 ltrpathdirs="$ltrpathdirs $dir"
6518 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6521 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6524 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6525 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6531 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6532 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6538 if test "X$rpathdirs" != "X"; then
6539 if test -n "$hardcode_libdir_separator"; then
6541 for found_dir in $rpathdirs; do
6542 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6544 acl_save_libdir="$libdir"
6546 eval flag=\"$hardcode_libdir_flag_spec\"
6547 libdir="$acl_save_libdir"
6548 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6550 for found_dir in $rpathdirs; do
6551 acl_save_libdir="$libdir"
6553 eval flag=\"$hardcode_libdir_flag_spec\"
6554 libdir="$acl_save_libdir"
6555 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6559 if test "X$ltrpathdirs" != "X"; then
6560 for found_dir in $ltrpathdirs; do
6561 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6565 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6566 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6567 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 gt_save_CPPFLAGS="$CPPFLAGS"
6571 CPPFLAGS="$CPPFLAGS $INCINTL"
6572 gt_save_LIBS="$LIBS"
6573 LIBS="$LIBS $LIBINTL"
6574 cat >conftest.$ac_ext <<_ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <libintl.h>
6581 extern int _nl_msg_cat_cntr;
6586 const char *_nl_expand_alias (const char *);
6590 bindtextdomain ("", "");
6591 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 gt_cv_func_gnugettext1_libintl=yes
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 gt_cv_func_gnugettext1_libintl=no
6625 rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6628 LIBS="$LIBS $LIBICONV"
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <libintl.h>
6636 extern int _nl_msg_cat_cntr;
6641 const char *_nl_expand_alias (const char *);
6645 bindtextdomain ("", "");
6646 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 LIBINTL="$LIBINTL $LIBICONV"
6674 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6675 gt_cv_func_gnugettext1_libintl=yes
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6682 rm -f conftest.err conftest.$ac_objext \
6683 conftest$ac_exeext conftest.$ac_ext
6685 CPPFLAGS="$gt_save_CPPFLAGS"
6686 LIBS="$gt_save_LIBS"
6688 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6689 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6692 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6693 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6694 && test "$PACKAGE" != gettext-runtime \
6695 && test "$PACKAGE" != gettext-tools; }; then
6696 gt_use_preinstalled_gnugettext=yes
6705 if test -n "$INTL_MACOSX_LIBS"; then
6706 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6707 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6708 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6709 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6713 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6714 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6716 cat >>confdefs.h <<\_ACEOF
6717 #define ENABLE_NLS 1
6725 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6726 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6727 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6728 echo "${ECHO_T}$USE_NLS" >&6
6729 if test "$USE_NLS" = "yes"; then
6730 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6731 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6732 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6733 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6734 gt_source="external libintl"
6739 gt_source="included intl directory"
6741 echo "$as_me:$LINENO: result: $gt_source" >&5
6742 echo "${ECHO_T}$gt_source" >&6
6745 if test "$USE_NLS" = "yes"; then
6747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6748 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6749 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6750 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6751 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6752 echo "${ECHO_T}$LIBINTL" >&6
6754 for element in $INCINTL; do
6756 for x in $CPPFLAGS; do
6758 acl_save_prefix="$prefix"
6759 prefix="$acl_final_prefix"
6760 acl_save_exec_prefix="$exec_prefix"
6761 exec_prefix="$acl_final_exec_prefix"
6763 exec_prefix="$acl_save_exec_prefix"
6764 prefix="$acl_save_prefix"
6766 if test "X$x" = "X$element"; then
6771 if test -z "$haveit"; then
6772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_GETTEXT 1
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_DCGETTEXT 1
6802 if test x${prefix} = xNONE ; then
6803 if test `eval echo ${datadir}` = NONE/share ; then
6808 # ------------------------------------------------------------------
6809 # If the user has not set --prefix, we set our default to nothing.
6810 # In this case, if the user has not set --sysconfdir, we set it
6811 # to the package default of /etc/bacula. If either --prefix or
6812 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6813 # ------------------------------------------------------------------
6814 if test x${prefix} = xNONE ; then
6815 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6816 sysconfdir=/etc/bacula
6820 sysconfdir=`eval echo ${sysconfdir}`
6821 datadir=`eval echo ${datadir}`
6822 localedir=`eval echo ${datadir}/locale`
6823 cat >>confdefs.h <<_ACEOF
6824 #define LOCALEDIR "$localedir"
6827 cat >>confdefs.h <<_ACEOF
6828 #define SYSCONFDIR "$sysconfdir"
6832 # -------------------------------------------------------------------------
6833 # If the user has not set --exec-prefix, we default to ${prefix}
6834 # -------------------------------------------------------------------------
6835 if test x${exec_prefix} = xNONE ; then
6836 exec_prefix=${prefix}
6839 # ------------------------------------------------------------------
6840 # If the user has not set --sbindir, we set our default as /sbin
6841 # ------------------------------------------------------------------
6842 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6843 sbindir=${exec_prefix}/sbin
6845 sbindir=`eval echo ${sbindir}`
6848 # -------------------------------------------------------------------------
6849 # If the user has not set --mandir, we default to /usr/share/man
6850 # -------------------------------------------------------------------------
6851 if test x$mandir = x'${prefix}/man' ; then
6852 mandir=/usr/share/man
6856 for ac_prog in msgfmt
6858 # Extract the first word of "$ac_prog", so it can be a program name with args.
6859 set dummy $ac_prog; ac_word=$2
6860 echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6862 if test "${ac_cv_path_MSGFMT+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 MSGFMT=$ac_cv_path_MSGFMT
6889 if test -n "$MSGFMT"; then
6890 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6891 echo "${ECHO_T}$MSGFMT" >&6
6893 echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6
6897 test -n "$MSGFMT" && break
6899 test -n "$MSGFMT" || MSGFMT="no"
6901 if test "$MSGFMT" = "no"
6903 echo 'msgfmt program not found, disabling NLS !'
6905 USE_INCLUDED_LIBINTL=no
6908 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6909 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6910 if test "${ac_cv_gnu_library_2+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6920 #include <features.h>
6921 #ifdef __GNU_LIBRARY__
6922 #if (__GLIBC__ >= 2)
6928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6929 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6930 ac_cv_gnu_library_2=yes
6932 ac_cv_gnu_library_2=no
6939 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6940 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6942 GLIBC2="$ac_cv_gnu_library_2"
6946 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6947 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6948 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 ac_check_lib_save_LIBS=$LIBS
6952 LIBS="-lcposix $LIBS"
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6960 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -z "$ac_c_werror_flag"
6985 || test ! -s conftest.err'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_lib_cposix_strerror=yes
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_cv_lib_cposix_strerror=no
7004 rm -f conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7008 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7009 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
7010 if test $ac_cv_lib_cposix_strerror = yes; then
7011 LIBS="$LIBS -lcposix"
7016 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7018 if test "${ac_cv_header_stdc+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042 (eval $ac_compile) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest.$ac_objext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_header_stdc=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_header_stdc=no
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071 if test $ac_cv_header_stdc = yes; then
7072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "memchr" >/dev/null 2>&1; then
7086 ac_cv_header_stdc=no
7092 if test $ac_cv_header_stdc = yes; then
7093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "free" >/dev/null 2>&1; then
7107 ac_cv_header_stdc=no
7113 if test $ac_cv_header_stdc = yes; then
7114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7115 if test "$cross_compiling" = yes; then
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7125 #if ((' ' & 0x0FF) == 0x020)
7126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7129 # define ISLOWER(c) \
7130 (('a' <= (c) && (c) <= 'i') \
7131 || ('j' <= (c) && (c) <= 'r') \
7132 || ('s' <= (c) && (c) <= 'z'))
7133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7141 for (i = 0; i < 256; i++)
7142 if (XOR (islower (i), ISLOWER (i))
7143 || toupper (i) != TOUPPER (i))
7148 rm -f conftest$ac_exeext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7150 (eval $ac_link) 2>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7161 echo "$as_me: program exited with status $ac_status" >&5
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_cv_header_stdc=no
7168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7174 if test $ac_cv_header_stdc = yes; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define STDC_HEADERS 1
7182 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7183 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7184 if test "${ac_cv_c_const+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7197 /* FIXME: Include the comments suggested by Paul. */
7199 /* Ultrix mips cc rejects this. */
7200 typedef int charset[2];
7202 /* SunOS 4.1.1 cc rejects this. */
7203 char const *const *ccp;
7205 /* NEC SVR4.0.2 mips cc rejects this. */
7206 struct point {int x, y;};
7207 static struct point const zero = {0,0};
7208 /* AIX XL C 1.02.0.0 rejects this.
7209 It does not let you subtract one const X* pointer from another in
7210 an arm of an if-expression whose if-part is not a constant
7212 const char *g = "string";
7213 ccp = &g + (g ? g-g : 0);
7214 /* HPUX 7.0 cc rejects these. */
7217 ccp = (char const *const *) p;
7218 { /* SCO 3.2v4 cc rejects this. */
7220 char const *s = 0 ? (char *) 0 : (char const *) 0;
7224 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7226 const int *foo = &x[0];
7229 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7230 typedef const int *iptr;
7234 { /* AIX XL C 1.02.0.0 rejects this saying
7235 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7236 struct s { int j; const int *ap[3]; };
7237 struct s *b; b->j = 5;
7239 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250 (eval $ac_compile) 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -z "$ac_c_werror_flag"
7258 || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7279 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7280 echo "${ECHO_T}$ac_cv_c_const" >&6
7281 if test $ac_cv_c_const = no; then
7283 cat >>confdefs.h <<\_ACEOF
7290 echo "$as_me:$LINENO: checking for signed" >&5
7291 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7292 if test "${bh_cv_c_signed+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312 (eval $ac_compile) 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -z "$ac_c_werror_flag"
7320 || test ! -s conftest.err'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; } &&
7326 { ac_try='test -s conftest.$ac_objext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7341 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7342 echo "${ECHO_T}$bh_cv_c_signed" >&6
7343 if test $bh_cv_c_signed = no; then
7345 cat >>confdefs.h <<\_ACEOF
7351 echo "$as_me:$LINENO: checking for inline" >&5
7352 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7353 if test "${ac_cv_c_inline+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 for ac_kw in inline __inline__ __inline; do
7358 cat >conftest.$ac_ext <<_ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7366 static $ac_kw foo_t static_foo () {return 0; }
7367 $ac_kw foo_t foo () {return 0; }
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -z "$ac_c_werror_flag"
7381 || test ! -s conftest.err'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; } &&
7387 { ac_try='test -s conftest.$ac_objext'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_c_inline=$ac_kw; break
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7404 echo "${ECHO_T}$ac_cv_c_inline" >&6
7407 case $ac_cv_c_inline in
7410 case $ac_cv_c_inline in
7412 *) ac_val=$ac_cv_c_inline;;
7414 cat >>confdefs.h <<_ACEOF
7416 #define inline $ac_val
7422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7433 inttypes.h stdint.h unistd.h
7435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7436 echo "$as_me:$LINENO: checking for $ac_header" >&5
7437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 $ac_includes_default
7449 #include <$ac_header>
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_c_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 eval "$as_ac_Header=yes"
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7478 eval "$as_ac_Header=no"
7480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7494 echo "$as_me:$LINENO: checking for off_t" >&5
7495 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7496 if test "${ac_cv_type_off_t+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 $ac_includes_default
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_cv_type_off_t=yes
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7548 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7549 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7550 if test $ac_cv_type_off_t = yes; then
7554 cat >>confdefs.h <<_ACEOF
7560 echo "$as_me:$LINENO: checking for size_t" >&5
7561 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7562 if test "${ac_cv_type_size_t+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7577 if (sizeof (size_t))
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7587 grep -v '^ *+' conftest.er1 >conftest.err
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_type_size_t=yes
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 ac_cv_type_size_t=no
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7614 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7615 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7616 if test $ac_cv_type_size_t = yes; then
7620 cat >>confdefs.h <<_ACEOF
7621 #define size_t unsigned
7627 echo "$as_me:$LINENO: checking for long long" >&5
7628 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7629 if test "${ac_cv_type_long_long+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 long long ll = 1LL; int i = 63;
7642 long long llmax = (long long) -1;
7643 return ll << i | ll >> i | llmax / ll | llmax % ll;
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_type_long_long=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_type_long_long=no
7677 rm -f conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7682 if test $ac_cv_type_long_long = yes; then
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_LONG_LONG 1
7691 echo "$as_me:$LINENO: checking for long double" >&5
7692 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7693 if test "${gt_cv_c_long_double+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 if test "$GCC" = yes; then
7697 gt_cv_c_long_double=yes
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7706 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7707 long double foo = 0.0;
7708 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7709 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest.$ac_objext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 gt_cv_c_long_double=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 gt_cv_c_long_double=no
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7752 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7753 if test $gt_cv_c_long_double = yes; then
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_LONG_DOUBLE 1
7762 echo "$as_me:$LINENO: checking for wchar_t" >&5
7763 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7764 if test "${gt_cv_c_wchar_t+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7774 wchar_t foo = (wchar_t)'\0';
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7814 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7815 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7816 if test $gt_cv_c_wchar_t = yes; then
7818 cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_WCHAR_T 1
7825 echo "$as_me:$LINENO: checking for wint_t" >&5
7826 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7827 if test "${gt_cv_c_wint_t+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 cat >conftest.$ac_ext <<_ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h. */
7837 wint_t foo = (wchar_t)'\0';
7846 rm -f conftest.$ac_objext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7877 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7878 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7879 if test $gt_cv_c_wint_t = yes; then
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_WINT_T 1
7888 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7889 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7890 if test "${gl_cv_header_inttypes_h+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 cat >conftest.$ac_ext <<_ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 #include <sys/types.h>
7900 #include <inttypes.h>
7904 uintmax_t i = (uintmax_t) -1;
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7911 (eval $ac_compile) 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag"
7919 || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest.$ac_objext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 gl_cv_header_inttypes_h=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 gl_cv_header_inttypes_h=no
7938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7941 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7942 if test $gl_cv_header_inttypes_h = yes; then
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7951 echo "$as_me:$LINENO: checking for stdint.h" >&5
7952 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7953 if test "${gl_cv_header_stdint_h+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 #include <sys/types.h>
7967 uintmax_t i = (uintmax_t) -1;
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974 (eval $ac_compile) 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag"
7982 || test ! -s conftest.err'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest.$ac_objext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 gl_cv_header_stdint_h=yes
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7999 gl_cv_header_stdint_h=no
8001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8003 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8004 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8005 if test $gl_cv_header_stdint_h = yes; then
8007 cat >>confdefs.h <<_ACEOF
8008 #define HAVE_STDINT_H_WITH_UINTMAX 1
8016 echo "$as_me:$LINENO: checking for intmax_t" >&5
8017 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8018 if test "${gt_cv_c_intmax_t+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8030 #if HAVE_STDINT_H_WITH_UINTMAX
8033 #if HAVE_INTTYPES_H_WITH_UINTMAX
8034 #include <inttypes.h>
8045 rm -f conftest.$ac_objext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try='test -s conftest.$ac_objext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 gt_cv_c_intmax_t=yes
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8076 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8077 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8078 if test $gt_cv_c_intmax_t = yes; then
8080 cat >>confdefs.h <<\_ACEOF
8081 #define HAVE_INTMAX_T 1
8088 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8089 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8090 if test "${gt_cv_func_printf_posix+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 if test "$cross_compiling" = yes; then
8096 cat >conftest.$ac_ext <<_ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8103 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8109 $EGREP "notposix" >/dev/null 2>&1; then
8110 gt_cv_func_printf_posix="guessing no"
8112 gt_cv_func_printf_posix="guessing yes"
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8127 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8128 dollar expansion (possibly an autoconf bug). */
8129 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8130 static char buf[100];
8133 sprintf (buf, format, 33, 55);
8134 return (strcmp (buf, "55 33") != 0);
8137 rm -f conftest$ac_exeext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8139 (eval $ac_link) 2>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 gt_cv_func_printf_posix=yes
8150 echo "$as_me: program exited with status $ac_status" >&5
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8155 gt_cv_func_printf_posix=no
8157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8161 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8162 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8163 case $gt_cv_func_printf_posix in
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_POSIX_PRINTF 1
8173 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8174 # for constant arguments. Useless!
8175 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8176 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8177 if test "${ac_cv_working_alloca_h+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8190 char *p = (char *) alloca (2 * sizeof (int));
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag"
8205 || test ! -s conftest.err'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest$ac_exeext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_working_alloca_h=yes
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 ac_cv_working_alloca_h=no
8224 rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8228 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8229 if test $ac_cv_working_alloca_h = yes; then
8231 cat >>confdefs.h <<\_ACEOF
8232 #define HAVE_ALLOCA_H 1
8237 echo "$as_me:$LINENO: checking for alloca" >&5
8238 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8239 if test "${ac_cv_func_alloca_works+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8249 # define alloca __builtin_alloca
8252 # include <malloc.h>
8253 # define alloca _alloca
8256 # include <alloca.h>
8261 # ifndef alloca /* predefined by HP cc +Olibcalls */
8272 char *p = (char *) alloca (1);
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_cv_func_alloca_works=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_func_alloca_works=no
8306 rm -f conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8309 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8310 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8312 if test $ac_cv_func_alloca_works = yes; then
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_ALLOCA 1
8319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8320 # that cause trouble. Some versions do not even contain alloca or
8321 # contain a buggy version. If you still want to use their alloca,
8322 # use ar to extract alloca.o from them instead of compiling alloca.c.
8324 ALLOCA=alloca.$ac_objext
8326 cat >>confdefs.h <<\_ACEOF
8331 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8332 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8333 if test "${ac_cv_os_cray+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 #if defined(CRAY) && ! defined(CRAY2)
8349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8350 $EGREP "webecray" >/dev/null 2>&1; then
8358 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8359 echo "${ECHO_T}$ac_cv_os_cray" >&6
8360 if test $ac_cv_os_cray = yes; then
8361 for ac_func in _getb67 GETB67 getb67; do
8362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8363 echo "$as_me:$LINENO: checking for $ac_func" >&5
8364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8365 if eval "test \"\${$as_ac_var+set}\" = set"; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 cat >conftest.$ac_ext <<_ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8376 #define $ac_func innocuous_$ac_func
8378 /* System header to define __stub macros and hopefully few prototypes,
8379 which can conflict with char $ac_func (); below.
8380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8381 <limits.h> exists even on freestanding compilers. */
8384 # include <limits.h>
8386 # include <assert.h>
8391 /* Override any gcc2 internal prototype to avoid an error. */
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8399 /* The GNU C library defines this for functions which it implements
8400 to always fail with ENOSYS. Some functions are actually named
8401 something starting with __ and the normal name is an alias. */
8402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8405 char (*f) () = $ac_func;
8414 return f != $ac_func;
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421 (eval $ac_link) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -z "$ac_c_werror_flag"
8429 || test ! -s conftest.err'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; } &&
8435 { ac_try='test -s conftest$ac_exeext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 eval "$as_ac_var=yes"
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 eval "$as_ac_var=no"
8448 rm -f conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8453 if test `eval echo '${'$as_ac_var'}'` = yes; then
8455 cat >>confdefs.h <<_ACEOF
8456 #define CRAY_STACKSEG_END $ac_func
8465 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8466 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8467 if test "${ac_cv_c_stack_direction+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 if test "$cross_compiling" = yes; then
8471 ac_cv_c_stack_direction=0
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8480 find_stack_direction ()
8482 static char *addr = 0;
8487 return find_stack_direction ();
8490 return (&dummy > addr) ? 1 : -1;
8496 exit (find_stack_direction () < 0);
8499 rm -f conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_c_stack_direction=1
8512 echo "$as_me: program exited with status $ac_status" >&5
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_cv_c_stack_direction=-1
8519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8523 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8525 cat >>confdefs.h <<_ACEOF
8526 #define STACK_DIRECTION $ac_cv_c_stack_direction
8534 for ac_header in stdlib.h unistd.h
8536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538 echo "$as_me:$LINENO: checking for $ac_header" >&5
8539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8546 # Is the header compilable?
8547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #include <$ac_header>
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest.$ac_objext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_header_compiler=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_header_compiler=no
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8589 echo "${ECHO_T}$ac_header_compiler" >&6
8591 # Is the header present?
8592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 #include <$ac_header>
8602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } >/dev/null; then
8610 if test -s conftest.err; then
8611 ac_cpp_err=$ac_c_preproc_warn_flag
8612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8619 if test -z "$ac_cpp_err"; then
8620 ac_header_preproc=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_header_preproc=no
8627 rm -f conftest.err conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6
8631 # So? What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc=yes
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8655 ## ------------------------------------------ ##
8656 ## Report this to the AC_PACKAGE_NAME lists. ##
8657 ## ------------------------------------------ ##
8660 sed "s/^/$as_me: WARNING: /" >&2
8663 echo "$as_me:$LINENO: checking for $ac_header" >&5
8664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 eval "$as_ac_Header=\$ac_header_preproc"
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8675 cat >>confdefs.h <<_ACEOF
8676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8684 for ac_func in getpagesize
8686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:$LINENO: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8700 #define $ac_func innocuous_$ac_func
8702 /* System header to define __stub macros and hopefully few prototypes,
8703 which can conflict with char $ac_func (); below.
8704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8705 <limits.h> exists even on freestanding compilers. */
8708 # include <limits.h>
8710 # include <assert.h>
8715 /* Override any gcc2 internal prototype to avoid an error. */
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8723 /* The GNU C library defines this for functions which it implements
8724 to always fail with ENOSYS. Some functions are actually named
8725 something starting with __ and the normal name is an alias. */
8726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8729 char (*f) () = $ac_func;
8738 return f != $ac_func;
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745 (eval $ac_link) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag"
8753 || test ! -s conftest.err'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 eval "$as_ac_var=yes"
8767 echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 eval "$as_ac_var=no"
8772 rm -f conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8777 if test `eval echo '${'$as_ac_var'}'` = yes; then
8778 cat >>confdefs.h <<_ACEOF
8779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8785 echo "$as_me:$LINENO: checking for working mmap" >&5
8786 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8787 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 if test "$cross_compiling" = yes; then
8791 ac_cv_func_mmap_fixed_mapped=no
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8800 /* malloc might have been renamed as rpl_malloc. */
8803 /* Thanks to Mike Haertel and Jim Avera for this test.
8804 Here is a matrix of mmap possibilities:
8805 mmap private not fixed
8806 mmap private fixed at somewhere currently unmapped
8807 mmap private fixed at somewhere already mapped
8808 mmap shared not fixed
8809 mmap shared fixed at somewhere currently unmapped
8810 mmap shared fixed at somewhere already mapped
8811 For private mappings, we should verify that changes cannot be read()
8812 back from the file, nor mmap's back from the file at a different
8813 address. (There have been systems where private was not correctly
8814 implemented like the infamous i386 svr4.0, and systems where the
8815 VM page cache was not coherent with the file system buffer cache
8816 like early versions of FreeBSD and possibly contemporary NetBSD.)
8817 For shared mappings, we should conversely verify that changes get
8818 propagated back to all the places they're supposed to be.
8820 Grep wants private fixed already mapped.
8821 The main things grep needs to know about mmap are:
8822 * does it exist and is it safe to write into the mmap'd area
8823 * how to use it (BSD variants) */
8826 #include <sys/mman.h>
8828 #if !STDC_HEADERS && !HAVE_STDLIB_H
8832 /* This mess was copied from the GNU getpagesize.h. */
8833 #if !HAVE_GETPAGESIZE
8834 /* Assume that all systems that can run configure have sys/param.h. */
8835 # if !HAVE_SYS_PARAM_H
8836 # define HAVE_SYS_PARAM_H 1
8839 # ifdef _SC_PAGESIZE
8840 # define getpagesize() sysconf(_SC_PAGESIZE)
8841 # else /* no _SC_PAGESIZE */
8842 # if HAVE_SYS_PARAM_H
8843 # include <sys/param.h>
8844 # ifdef EXEC_PAGESIZE
8845 # define getpagesize() EXEC_PAGESIZE
8846 # else /* no EXEC_PAGESIZE */
8848 # define getpagesize() NBPG * CLSIZE
8851 # endif /* no CLSIZE */
8852 # else /* no NBPG */
8854 # define getpagesize() NBPC
8855 # else /* no NBPC */
8857 # define getpagesize() PAGESIZE
8858 # endif /* PAGESIZE */
8859 # endif /* no NBPC */
8860 # endif /* no NBPG */
8861 # endif /* no EXEC_PAGESIZE */
8862 # else /* no HAVE_SYS_PARAM_H */
8863 # define getpagesize() 8192 /* punt totally */
8864 # endif /* no HAVE_SYS_PARAM_H */
8865 # endif /* no _SC_PAGESIZE */
8867 #endif /* no HAVE_GETPAGESIZE */
8872 char *data, *data2, *data3;
8876 pagesize = getpagesize ();
8878 /* First, make a file with some known garbage in it. */
8879 data = (char *) malloc (pagesize);
8882 for (i = 0; i < pagesize; ++i)
8883 *(data + i) = rand ();
8885 fd = creat ("conftest.mmap", 0600);
8888 if (write (fd, data, pagesize) != pagesize)
8892 /* Next, try to mmap the file at a fixed address which already has
8893 something else allocated at it. If we can, also make sure that
8894 we see the same garbage. */
8895 fd = open ("conftest.mmap", O_RDWR);
8898 data2 = (char *) malloc (2 * pagesize);
8901 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8902 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8903 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8905 for (i = 0; i < pagesize; ++i)
8906 if (*(data + i) != *(data2 + i))
8909 /* Finally, make sure that changes to the mapped area do not
8910 percolate back to the file as seen by read(). (This is a bug on
8911 some variants of i386 svr4.0.) */
8912 for (i = 0; i < pagesize; ++i)
8913 *(data2 + i) = *(data2 + i) + 1;
8914 data3 = (char *) malloc (pagesize);
8917 if (read (fd, data3, pagesize) != pagesize)
8919 for (i = 0; i < pagesize; ++i)
8920 if (*(data + i) != *(data3 + i))
8926 rm -f conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_cv_func_mmap_fixed_mapped=yes
8939 echo "$as_me: program exited with status $ac_status" >&5
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8944 ac_cv_func_mmap_fixed_mapped=no
8946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8950 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8951 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8953 cat >>confdefs.h <<\_ACEOF
8961 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8962 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8963 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8973 #include <features.h>
8974 #ifdef __GNU_LIBRARY__
8975 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8983 ac_cv_gnu_library_2_1=yes
8985 ac_cv_gnu_library_2_1=no
8992 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8993 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8995 GLIBC21="$ac_cv_gnu_library_2_1"
9000 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9001 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9002 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 if test "$cross_compiling" = yes; then
9008 # Guess based on the CPU.
9010 alpha* | i3456786 | m68k | s390*)
9011 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9013 gt_cv_int_divbyzero_sigfpe="guessing no";;
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9029 sigfpe_handler (int sig)
9031 sigfpe_handler (sig) int sig;
9034 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9035 exit (sig != SIGFPE);
9045 signal (SIGFPE, sigfpe_handler);
9046 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9047 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9048 signal (SIGTRAP, sigfpe_handler);
9050 /* Linux/SPARC yields signal SIGILL. */
9051 #if defined (__sparc__) && defined (__linux__)
9052 signal (SIGILL, sigfpe_handler);
9061 rm -f conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 gt_cv_int_divbyzero_sigfpe=yes
9074 echo "$as_me: program exited with status $ac_status" >&5
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9079 gt_cv_int_divbyzero_sigfpe=no
9081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9086 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9087 case "$gt_cv_int_divbyzero_sigfpe" in
9092 cat >>confdefs.h <<_ACEOF
9093 #define INTDIV0_RAISES_SIGFPE $value
9098 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9099 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9100 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 unsigned long long ull = 1ULL; int i = 63;
9113 unsigned long long ullmax = (unsigned long long) -1;
9114 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9119 rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag"
9129 || test ! -s conftest.err'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; } &&
9135 { ac_try='test -s conftest$ac_exeext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_type_unsigned_long_long=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 ac_cv_type_unsigned_long_long=no
9148 rm -f conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9151 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9152 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9153 if test $ac_cv_type_unsigned_long_long = yes; then
9155 cat >>confdefs.h <<\_ACEOF
9156 #define HAVE_UNSIGNED_LONG_LONG 1
9164 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9166 test $ac_cv_type_unsigned_long_long = yes \
9167 && ac_type='unsigned long long' \
9168 || ac_type='unsigned long'
9170 cat >>confdefs.h <<_ACEOF
9171 #define uintmax_t $ac_type
9176 cat >>confdefs.h <<\_ACEOF
9177 #define HAVE_UINTMAX_T 1
9183 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9184 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9185 if test "${gt_cv_header_inttypes_h+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 cat >conftest.$ac_ext <<_ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <sys/types.h>
9196 #include <inttypes.h>
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag"
9215 || test ! -s conftest.err'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; } &&
9221 { ac_try='test -s conftest.$ac_objext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 gt_cv_header_inttypes_h=yes
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 gt_cv_header_inttypes_h=no
9234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9237 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9238 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9239 if test $gt_cv_header_inttypes_h = yes; then
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_INTTYPES_H 1
9249 if test $gt_cv_header_inttypes_h = yes; then
9250 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9251 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9252 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9262 #include <inttypes.h>
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277 (eval $ac_compile) 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } &&
9284 { ac_try='test -z "$ac_c_werror_flag"
9285 || test ! -s conftest.err'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest.$ac_objext'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9297 gt_cv_inttypes_pri_broken=no
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 gt_cv_inttypes_pri_broken=yes
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9308 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9310 if test "$gt_cv_inttypes_pri_broken" = yes; then
9312 cat >>confdefs.h <<_ACEOF
9313 #define PRI_MACROS_BROKEN 1
9320 for ac_header in stdint.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9332 # Is the header compilable?
9333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 $ac_includes_default
9342 #include <$ac_header>
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest.$ac_objext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_header_compiler=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_compiler=no
9373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 echo "${ECHO_T}$ac_header_compiler" >&6
9377 # Is the header present?
9378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #include <$ac_header>
9388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9391 grep -v '^ *+' conftest.er1 >conftest.err
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } >/dev/null; then
9396 if test -s conftest.err; then
9397 ac_cpp_err=$ac_c_preproc_warn_flag
9398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9405 if test -z "$ac_cpp_err"; then
9406 ac_header_preproc=yes
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_header_preproc=no
9413 rm -f conftest.err conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6
9417 # So? What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424 ac_header_preproc=yes
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9441 ## ------------------------------------------ ##
9442 ## Report this to the AC_PACKAGE_NAME lists. ##
9443 ## ------------------------------------------ ##
9446 sed "s/^/$as_me: WARNING: /" >&2
9449 echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 eval "$as_ac_Header=\$ac_header_preproc"
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9469 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9470 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9489 $EGREP "Found it" >/dev/null 2>&1; then
9494 if test -z "$result"; then
9495 if test "$cross_compiling" = yes; then
9496 # Depending upon the size, compute the lo and hi bounds.
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9507 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9548 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>conftest.er1
9559 grep -v '^ *+' conftest.er1 >conftest.err
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_hi=$ac_mid; break
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_lo=`expr $ac_mid + 1`
9583 if test $ac_lo -le $ac_mid; then
9587 ac_mid=`expr 2 '*' $ac_mid + 1`
9589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9605 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9612 rm -f conftest.$ac_objext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 (eval $ac_compile) 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9646 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655 (eval $ac_compile) 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest.$ac_objext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_lo=$ac_mid; break
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_hi=`expr '(' $ac_mid ')' - 1`
9681 if test $ac_mid -le $ac_hi; then
9685 ac_mid=`expr 2 '*' $ac_mid`
9687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9698 # Binary search between lo and hi bounds.
9699 while test "x$ac_lo" != "x$ac_hi"; do
9700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9711 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_lo=`expr '(' $ac_mid ')' + 1`
9747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9754 if test "$cross_compiling" = yes; then
9755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9756 See \`config.log' for more details." >&5
9757 echo "$as_me: error: cannot run test program while cross compiling
9758 See \`config.log' for more details." >&2;}
9759 { (exit 1); exit 1; }; }
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9768 long longval () { return ~(size_t)0 / 10; }
9769 unsigned long ulongval () { return ~(size_t)0 / 10; }
9776 FILE *f = fopen ("conftest.val", "w");
9779 if ((~(size_t)0 / 10) < 0)
9781 long i = longval ();
9782 if (i != (~(size_t)0 / 10))
9784 fprintf (f, "%ld\n", i);
9788 unsigned long i = ulongval ();
9789 if (i != (~(size_t)0 / 10))
9791 fprintf (f, "%lu\n", i);
9793 exit (ferror (f) || fclose (f) != 0);
9799 rm -f conftest$ac_exeext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9801 (eval $ac_link) 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 res_hi=`cat conftest.val`
9812 echo "$as_me: program exited with status $ac_status" >&5
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9823 if test "$cross_compiling" = yes; then
9824 # Depending upon the size, compute the lo and hi bounds.
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9835 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844 (eval $ac_compile) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1 >conftest.err
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest.$ac_objext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9876 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9883 rm -f conftest.$ac_objext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885 (eval $ac_compile) 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag"
9893 || test ! -s conftest.err'
9894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; } &&
9899 { ac_try='test -s conftest.$ac_objext'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_hi=$ac_mid; break
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_lo=`expr $ac_mid + 1`
9911 if test $ac_lo -le $ac_mid; then
9915 ac_mid=`expr 2 '*' $ac_mid + 1`
9917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9933 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9944 grep -v '^ *+' conftest.er1 >conftest.err
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9974 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9981 rm -f conftest.$ac_objext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983 (eval $ac_compile) 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -z "$ac_c_werror_flag"
9991 || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_lo=$ac_mid; break
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_hi=`expr '(' $ac_mid ')' - 1`
10009 if test $ac_mid -le $ac_hi; then
10013 ac_mid=`expr 2 '*' $ac_mid`
10015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10026 # Binary search between lo and hi bounds.
10027 while test "x$ac_lo" != "x$ac_hi"; do
10028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <stddef.h>
10039 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10050 grep -v '^ *+' conftest.er1 >conftest.err
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_lo=`expr '(' $ac_mid ')' + 1`
10075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10078 ?*) res_lo=$ac_lo;;
10082 if test "$cross_compiling" = yes; then
10083 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10084 See \`config.log' for more details." >&5
10085 echo "$as_me: error: cannot run test program while cross compiling
10086 See \`config.log' for more details." >&2;}
10087 { (exit 1); exit 1; }; }
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 #include <stddef.h>
10096 long longval () { return ~(size_t)0 % 10; }
10097 unsigned long ulongval () { return ~(size_t)0 % 10; }
10099 #include <stdlib.h>
10104 FILE *f = fopen ("conftest.val", "w");
10107 if ((~(size_t)0 % 10) < 0)
10109 long i = longval ();
10110 if (i != (~(size_t)0 % 10))
10112 fprintf (f, "%ld\n", i);
10116 unsigned long i = ulongval ();
10117 if (i != (~(size_t)0 % 10))
10119 fprintf (f, "%lu\n", i);
10121 exit (ferror (f) || fclose (f) != 0);
10127 rm -f conftest$ac_exeext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10129 (eval $ac_link) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 res_lo=`cat conftest.val`
10140 echo "$as_me: program exited with status $ac_status" >&5
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ( exit $ac_status )
10147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10151 if test "$cross_compiling" = yes; then
10152 # Depending upon the size, compute the lo and hi bounds.
10153 cat >conftest.$ac_ext <<_ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 #include <stddef.h>
10163 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <stddef.h>
10204 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10211 rm -f conftest.$ac_objext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>conftest.er1
10215 grep -v '^ *+' conftest.er1 >conftest.err
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -z "$ac_c_werror_flag"
10221 || test ! -s conftest.err'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest.$ac_objext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_hi=$ac_mid; break
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ac_lo=`expr $ac_mid + 1`
10239 if test $ac_lo -le $ac_mid; then
10243 ac_mid=`expr 2 '*' $ac_mid + 1`
10245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 cat >conftest.$ac_ext <<_ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 #include <stddef.h>
10261 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270 (eval $ac_compile) 2>conftest.er1
10272 grep -v '^ *+' conftest.er1 >conftest.err
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -z "$ac_c_werror_flag"
10278 || test ! -s conftest.err'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest.$ac_objext'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <stddef.h>
10302 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311 (eval $ac_compile) 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -z "$ac_c_werror_flag"
10319 || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_lo=$ac_mid; break
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_hi=`expr '(' $ac_mid ')' - 1`
10337 if test $ac_mid -le $ac_hi; then
10341 ac_mid=`expr 2 '*' $ac_mid`
10343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10354 # Binary search between lo and hi bounds.
10355 while test "x$ac_lo" != "x$ac_hi"; do
10356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10357 cat >conftest.$ac_ext <<_ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 #include <stddef.h>
10367 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10374 rm -f conftest.$ac_objext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10376 (eval $ac_compile) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest.$ac_objext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_lo=`expr '(' $ac_mid ')' + 1`
10403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10406 ?*) fits_in_uint=$ac_lo;;
10410 if test "$cross_compiling" = yes; then
10411 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10412 See \`config.log' for more details." >&5
10413 echo "$as_me: error: cannot run test program while cross compiling
10414 See \`config.log' for more details." >&2;}
10415 { (exit 1); exit 1; }; }
10417 cat >conftest.$ac_ext <<_ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 #include <stddef.h>
10424 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10425 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10427 #include <stdlib.h>
10432 FILE *f = fopen ("conftest.val", "w");
10435 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10437 long i = longval ();
10438 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10440 fprintf (f, "%ld\n", i);
10444 unsigned long i = ulongval ();
10445 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10447 fprintf (f, "%lu\n", i);
10449 exit (ferror (f) || fclose (f) != 0);
10455 rm -f conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 fits_in_uint=`cat conftest.val`
10468 echo "$as_me: program exited with status $ac_status" >&5
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 ( exit $ac_status )
10475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10479 if test "$fits_in_uint" = 1; then
10480 cat >conftest.$ac_ext <<_ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 #include <stddef.h>
10488 extern unsigned long foo;
10498 rm -f conftest.$ac_objext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500 (eval $ac_compile) 2>conftest.er1
10502 grep -v '^ *+' conftest.er1 >conftest.err
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -z "$ac_c_werror_flag"
10508 || test ! -s conftest.err'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; } &&
10514 { ac_try='test -s conftest.$ac_objext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10522 echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10528 if test -z "$result"; then
10529 if test "$fits_in_uint" = 1; then
10530 result="$res_hi$res_lo"U
10532 result="$res_hi$res_lo"UL
10535 result='~(size_t)0'
10538 echo "$as_me:$LINENO: result: $result" >&5
10539 echo "${ECHO_T}$result" >&6
10540 if test "$result" != yes; then
10542 cat >>confdefs.h <<_ACEOF
10543 #define SIZE_MAX $result
10552 for ac_header in stdint.h
10554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10556 echo "$as_me:$LINENO: checking for $ac_header" >&5
10557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10564 # Is the header compilable?
10565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10567 cat >conftest.$ac_ext <<_ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 $ac_includes_default
10574 #include <$ac_header>
10576 rm -f conftest.$ac_objext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578 (eval $ac_compile) 2>conftest.er1
10580 grep -v '^ *+' conftest.er1 >conftest.err
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -z "$ac_c_werror_flag"
10586 || test ! -s conftest.err'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_header_compiler=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_compiler=no
10605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6
10609 # Is the header present?
10610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #include <$ac_header>
10620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev/null; then
10628 if test -s conftest.err; then
10629 ac_cpp_err=$ac_c_preproc_warn_flag
10630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10637 if test -z "$ac_cpp_err"; then
10638 ac_header_preproc=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_header_preproc=no
10645 rm -f conftest.err conftest.$ac_ext
10646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 echo "${ECHO_T}$ac_header_preproc" >&6
10649 # So? What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656 ac_header_preproc=yes
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 ## ------------------------------------------ ##
10674 ## Report this to the AC_PACKAGE_NAME lists. ##
10675 ## ------------------------------------------ ##
10678 sed "s/^/$as_me: WARNING: /" >&2
10681 echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 eval "$as_ac_Header=\$ac_header_preproc"
10688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10708 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10709 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10710 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 cat >conftest.$ac_ext <<_ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 $ac_includes_default
10723 if ((ptrdiff_t *) 0)
10725 if (sizeof (ptrdiff_t))
10731 rm -f conftest.$ac_objext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733 (eval $ac_compile) 2>conftest.er1
10735 grep -v '^ *+' conftest.er1 >conftest.err
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } &&
10740 { ac_try='test -z "$ac_c_werror_flag"
10741 || test ! -s conftest.err'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; } &&
10747 { ac_try='test -s conftest.$ac_objext'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_cv_type_ptrdiff_t=yes
10755 echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10758 ac_cv_type_ptrdiff_t=no
10760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10762 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10763 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10764 if test $ac_cv_type_ptrdiff_t = yes; then
10768 cat >>confdefs.h <<\_ACEOF
10769 #define ptrdiff_t long
10785 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10786 stdlib.h string.h unistd.h sys/param.h
10788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10790 echo "$as_me:$LINENO: checking for $ac_header" >&5
10791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10798 # Is the header compilable?
10799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10801 cat >conftest.$ac_ext <<_ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 $ac_includes_default
10808 #include <$ac_header>
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag"
10820 || test ! -s conftest.err'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; } &&
10826 { ac_try='test -s conftest.$ac_objext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_header_compiler=yes
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 ac_header_compiler=no
10839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10841 echo "${ECHO_T}$ac_header_compiler" >&6
10843 # Is the header present?
10844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 #include <$ac_header>
10854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } >/dev/null; then
10862 if test -s conftest.err; then
10863 ac_cpp_err=$ac_c_preproc_warn_flag
10864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10871 if test -z "$ac_cpp_err"; then
10872 ac_header_preproc=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ac_header_preproc=no
10879 rm -f conftest.err conftest.$ac_ext
10880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10881 echo "${ECHO_T}$ac_header_preproc" >&6
10883 # So? What about this header?
10884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10890 ac_header_preproc=yes
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10907 ## ------------------------------------------ ##
10908 ## Report this to the AC_PACKAGE_NAME lists. ##
10909 ## ------------------------------------------ ##
10912 sed "s/^/$as_me: WARNING: /" >&2
10915 echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 eval "$as_ac_Header=\$ac_header_preproc"
10922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10927 cat >>confdefs.h <<_ACEOF
10928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10958 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10959 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10960 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10964 echo "$as_me:$LINENO: checking for $ac_func" >&5
10965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10966 if eval "test \"\${$as_ac_var+set}\" = set"; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10977 #define $ac_func innocuous_$ac_func
10979 /* System header to define __stub macros and hopefully few prototypes,
10980 which can conflict with char $ac_func (); below.
10981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982 <limits.h> exists even on freestanding compilers. */
10985 # include <limits.h>
10987 # include <assert.h>
10992 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
11000 /* The GNU C library defines this for functions which it implements
11001 to always fail with ENOSYS. Some functions are actually named
11002 something starting with __ and the normal name is an alias. */
11003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11006 char (*f) () = $ac_func;
11015 return f != $ac_func;
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022 (eval $ac_link) 2>conftest.er1
11024 grep -v '^ *+' conftest.er1 >conftest.err
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag"
11030 || test ! -s conftest.err'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 eval "$as_ac_var=yes"
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 eval "$as_ac_var=no"
11049 rm -f conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11054 if test `eval echo '${'$as_ac_var'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11064 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11065 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11066 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 cat >conftest.$ac_ext <<_ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11081 char *p = (char *) _snprintf;
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11110 ac_cv_have_decl__snprintf=yes
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_cv_have_decl__snprintf=no
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11120 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11121 if test $ac_cv_have_decl__snprintf = yes; then
11127 cat >>confdefs.h <<_ACEOF
11128 #define HAVE_DECL__SNPRINTF $gt_value
11133 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11134 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11135 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11150 char *p = (char *) _snwprintf;
11157 rm -f conftest.$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159 (eval $ac_compile) 2>conftest.er1
11161 grep -v '^ *+' conftest.er1 >conftest.err
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -z "$ac_c_werror_flag"
11167 || test ! -s conftest.err'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest.$ac_objext'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_cv_have_decl__snwprintf=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_cv_have_decl__snwprintf=no
11186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11188 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11189 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11190 if test $ac_cv_have_decl__snwprintf = yes; then
11196 cat >>confdefs.h <<_ACEOF
11197 #define HAVE_DECL__SNWPRINTF $gt_value
11203 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11204 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11205 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11219 #ifndef feof_unlocked
11220 char *p = (char *) feof_unlocked;
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229 (eval $ac_compile) 2>conftest.er1
11231 grep -v '^ *+' conftest.er1 >conftest.err
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 ac_cv_have_decl_feof_unlocked=yes
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 ac_cv_have_decl_feof_unlocked=no
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11258 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11259 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11260 if test $ac_cv_have_decl_feof_unlocked = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11272 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11273 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11274 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11288 #ifndef fgets_unlocked
11289 char *p = (char *) fgets_unlocked;
11296 rm -f conftest.$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298 (eval $ac_compile) 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag"
11306 || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_have_decl_fgets_unlocked=yes
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_cv_have_decl_fgets_unlocked=no
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11328 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11329 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11341 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11342 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11343 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11357 #ifndef getc_unlocked
11358 char *p = (char *) getc_unlocked;
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367 (eval $ac_compile) 2>conftest.er1
11369 grep -v '^ *+' conftest.er1 >conftest.err
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag"
11375 || test ! -s conftest.err'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; } &&
11381 { ac_try='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 ac_cv_have_decl_getc_unlocked=yes
11389 echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 ac_cv_have_decl_getc_unlocked=no
11394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11396 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11397 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11398 if test $ac_cv_have_decl_getc_unlocked = yes; then
11404 cat >>confdefs.h <<_ACEOF
11405 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11410 case $gt_cv_func_printf_posix in
11411 *yes) HAVE_POSIX_PRINTF=1 ;;
11412 *) HAVE_POSIX_PRINTF=0 ;;
11415 if test "$ac_cv_func_asprintf" = yes; then
11421 if test "$ac_cv_func_snprintf" = yes; then
11427 if test "$ac_cv_func_wprintf" = yes; then
11439 am_save_CPPFLAGS="$CPPFLAGS"
11441 for element in $INCICONV; do
11443 for x in $CPPFLAGS; do
11445 acl_save_prefix="$prefix"
11446 prefix="$acl_final_prefix"
11447 acl_save_exec_prefix="$exec_prefix"
11448 exec_prefix="$acl_final_exec_prefix"
11450 exec_prefix="$acl_save_exec_prefix"
11451 prefix="$acl_save_prefix"
11453 if test "X$x" = "X$element"; then
11458 if test -z "$haveit"; then
11459 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11464 echo "$as_me:$LINENO: checking for iconv" >&5
11465 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11466 if test "${am_cv_func_iconv+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 am_cv_func_iconv="no, consider installing GNU libiconv"
11472 cat >conftest.$ac_ext <<_ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 #include <stdlib.h>
11483 iconv_t cd = iconv_open("","");
11484 iconv(cd,NULL,NULL,NULL,NULL);
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>conftest.er1
11494 grep -v '^ *+' conftest.er1 >conftest.err
11496 cat conftest.err >&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest$ac_exeext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 am_cv_func_iconv=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11518 rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 if test "$am_cv_func_iconv" != yes; then
11521 am_save_LIBS="$LIBS"
11522 LIBS="$LIBS $LIBICONV"
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 #include <stdlib.h>
11534 iconv_t cd = iconv_open("","");
11535 iconv(cd,NULL,NULL,NULL,NULL);
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 (eval $ac_link) 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } &&
11550 { ac_try='test -z "$ac_c_werror_flag"
11551 || test ! -s conftest.err'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; } &&
11557 { ac_try='test -s conftest$ac_exeext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 am_cv_lib_iconv=yes
11564 am_cv_func_iconv=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11570 rm -f conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS="$am_save_LIBS"
11576 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11577 echo "${ECHO_T}$am_cv_func_iconv" >&6
11578 if test "$am_cv_func_iconv" = yes; then
11580 cat >>confdefs.h <<\_ACEOF
11581 #define HAVE_ICONV 1
11585 if test "$am_cv_lib_iconv" = yes; then
11586 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11587 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11588 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11589 echo "${ECHO_T}$LIBICONV" >&6
11591 CPPFLAGS="$am_save_CPPFLAGS"
11598 if test "$am_cv_func_iconv" = yes; then
11599 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11600 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11601 if test "${am_cv_proto_iconv+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11612 #include <stdlib.h>
11618 #if defined(__STDC__) || defined(__cplusplus)
11619 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11632 rm -f conftest.$ac_objext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11634 (eval $ac_compile) 2>conftest.er1
11636 grep -v '^ *+' conftest.er1 >conftest.err
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_c_werror_flag"
11642 || test ! -s conftest.err'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest.$ac_objext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 am_cv_proto_iconv_arg1=""
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 am_cv_proto_iconv_arg1="const"
11661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11662 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);"
11665 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11666 echo "$as_me:$LINENO: result: ${ac_t:-
11667 }$am_cv_proto_iconv" >&5
11668 echo "${ECHO_T}${ac_t:-
11669 }$am_cv_proto_iconv" >&6
11671 cat >>confdefs.h <<_ACEOF
11672 #define ICONV_CONST $am_cv_proto_iconv_arg1
11678 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11679 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11680 if test "${am_cv_langinfo_codeset+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <langinfo.h>
11693 char* cs = nl_langinfo(CODESET);
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 am_cv_langinfo_codeset=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 am_cv_langinfo_codeset=no
11727 rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11732 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11733 if test $am_cv_langinfo_codeset = yes; then
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_LANGINFO_CODESET 1
11741 if test $ac_cv_header_locale_h = yes; then
11743 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11744 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11745 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <locale.h>
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag"
11773 || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest$ac_exeext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 gt_cv_val_LC_MESSAGES=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 gt_cv_val_LC_MESSAGES=no
11792 rm -f conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11795 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11796 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11797 if test $gt_cv_val_LC_MESSAGES = yes; then
11799 cat >>confdefs.h <<\_ACEOF
11800 #define HAVE_LC_MESSAGES 1
11807 if test -n "$INTL_MACOSX_LIBS"; then
11808 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11811 for ac_prog in bison
11813 # Extract the first word of "$ac_prog", so it can be a program name with args.
11814 set dummy $ac_prog; ac_word=$2
11815 echo "$as_me:$LINENO: checking for $ac_word" >&5
11816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11817 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 if test -n "$INTLBISON"; then
11821 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_prog_INTLBISON="$ac_prog"
11831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 INTLBISON=$ac_cv_prog_INTLBISON
11840 if test -n "$INTLBISON"; then
11841 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11842 echo "${ECHO_T}$INTLBISON" >&6
11844 echo "$as_me:$LINENO: result: no" >&5
11845 echo "${ECHO_T}no" >&6
11848 test -n "$INTLBISON" && break
11851 if test -z "$INTLBISON"; then
11854 echo "$as_me:$LINENO: checking version of bison" >&5
11855 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11856 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11857 case $ac_prog_version in
11858 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11859 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11860 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11861 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11863 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11864 echo "${ECHO_T}$ac_prog_version" >&6
11866 if test $ac_verc_fail = yes; then
11885 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11886 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11887 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 gt_save_CPPFLAGS="$CPPFLAGS"
11891 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11892 gt_save_LIBS="$LIBS"
11893 LIBS="$LIBS -framework CoreFoundation"
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <CFPreferences.h>
11904 CFPreferencesCopyAppValue(NULL, NULL)
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911 (eval $ac_link) 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 gt_cv_func_CFPreferencesCopyAppValue=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 gt_cv_func_CFPreferencesCopyAppValue=no
11938 rm -f conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 CPPFLAGS="$gt_save_CPPFLAGS"
11941 LIBS="$gt_save_LIBS"
11943 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11944 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11945 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11952 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11953 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11954 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 gt_save_CPPFLAGS="$CPPFLAGS"
11958 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11959 gt_save_LIBS="$LIBS"
11960 LIBS="$LIBS -framework CoreFoundation"
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 #include <CFLocale.h>
11971 CFLocaleCopyCurrent();
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978 (eval $ac_link) 2>conftest.er1
11980 grep -v '^ *+' conftest.er1 >conftest.err
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest$ac_exeext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 gt_cv_func_CFLocaleCopyCurrent=yes
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 gt_cv_func_CFLocaleCopyCurrent=no
12005 rm -f conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 CPPFLAGS="$gt_save_CPPFLAGS"
12008 LIBS="$gt_save_LIBS"
12010 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12011 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
12012 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12014 cat >>confdefs.h <<\_ACEOF
12015 #define HAVE_CFLOCALECOPYCURRENT 1
12020 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12021 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12027 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12028 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12029 # Check whether --enable-nls or --disable-nls was given.
12030 if test "${enable_nls+set}" = set; then
12031 enableval="$enable_nls"
12036 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12037 echo "${ECHO_T}$USE_NLS" >&6
12042 BUILD_INCLUDED_LIBINTL=no
12043 USE_INCLUDED_LIBINTL=no
12049 if test "$USE_NLS" = "yes"; then
12050 gt_use_preinstalled_gnugettext=no
12052 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12053 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12055 # Check whether --with-included-gettext or --without-included-gettext was given.
12056 if test "${with_included_gettext+set}" = set; then
12057 withval="$with_included_gettext"
12058 nls_cv_force_use_gnu_gettext=$withval
12060 nls_cv_force_use_gnu_gettext=no
12062 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12063 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12065 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12066 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12073 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12074 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12075 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <libintl.h>
12085 extern int _nl_msg_cat_cntr;
12086 extern int *_nl_domain_bindings;
12090 bindtextdomain ("", "");
12091 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 gt_cv_func_gnugettext1_libc=yes
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12123 gt_cv_func_gnugettext1_libc=no
12125 rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12129 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12131 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12137 acl_save_prefix="$prefix"
12138 prefix="$acl_final_prefix"
12139 acl_save_exec_prefix="$exec_prefix"
12140 exec_prefix="$acl_final_exec_prefix"
12142 eval additional_includedir=\"$includedir\"
12143 eval additional_libdir=\"$libdir\"
12145 exec_prefix="$acl_save_exec_prefix"
12146 prefix="$acl_save_prefix"
12149 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12150 if test "${with_libintl_prefix+set}" = set; then
12151 withval="$with_libintl_prefix"
12153 if test "X$withval" = "Xno"; then
12156 if test "X$withval" = "X"; then
12158 acl_save_prefix="$prefix"
12159 prefix="$acl_final_prefix"
12160 acl_save_exec_prefix="$exec_prefix"
12161 exec_prefix="$acl_final_exec_prefix"
12163 eval additional_includedir=\"$includedir\"
12164 eval additional_libdir=\"$libdir\"
12166 exec_prefix="$acl_save_exec_prefix"
12167 prefix="$acl_save_prefix"
12170 additional_includedir="$withval/include"
12171 additional_libdir="$withval/lib"
12181 names_already_handled=
12182 names_next_round='intl '
12183 while test -n "$names_next_round"; do
12184 names_this_round="$names_next_round"
12186 for name in $names_this_round; do
12188 for n in $names_already_handled; do
12189 if test "$n" = "$name"; then
12190 already_handled=yes
12194 if test -z "$already_handled"; then
12195 names_already_handled="$names_already_handled $name"
12196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12197 eval value=\"\$HAVE_LIB$uppername\"
12198 if test -n "$value"; then
12199 if test "$value" = yes; then
12200 eval value=\"\$LIB$uppername\"
12201 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12202 eval value=\"\$LTLIB$uppername\"
12203 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12212 if test $use_additional = yes; then
12213 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12214 found_dir="$additional_libdir"
12215 found_so="$additional_libdir/lib$name.$shlibext"
12216 if test -f "$additional_libdir/lib$name.la"; then
12217 found_la="$additional_libdir/lib$name.la"
12220 if test -f "$additional_libdir/lib$name.$libext"; then
12221 found_dir="$additional_libdir"
12222 found_a="$additional_libdir/lib$name.$libext"
12223 if test -f "$additional_libdir/lib$name.la"; then
12224 found_la="$additional_libdir/lib$name.la"
12229 if test "X$found_dir" = "X"; then
12230 for x in $LDFLAGS $LTLIBINTL; do
12232 acl_save_prefix="$prefix"
12233 prefix="$acl_final_prefix"
12234 acl_save_exec_prefix="$exec_prefix"
12235 exec_prefix="$acl_final_exec_prefix"
12237 exec_prefix="$acl_save_exec_prefix"
12238 prefix="$acl_save_prefix"
12242 dir=`echo "X$x" | sed -e 's/^X-L//'`
12243 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12245 found_so="$dir/lib$name.$shlibext"
12246 if test -f "$dir/lib$name.la"; then
12247 found_la="$dir/lib$name.la"
12250 if test -f "$dir/lib$name.$libext"; then
12252 found_a="$dir/lib$name.$libext"
12253 if test -f "$dir/lib$name.la"; then
12254 found_la="$dir/lib$name.la"
12260 if test "X$found_dir" != "X"; then
12265 if test "X$found_dir" != "X"; then
12266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12267 if test "X$found_so" != "X"; then
12268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12269 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12272 for x in $ltrpathdirs; do
12273 if test "X$x" = "X$found_dir"; then
12278 if test -z "$haveit"; then
12279 ltrpathdirs="$ltrpathdirs $found_dir"
12281 if test "$hardcode_direct" = yes; then
12282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12284 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12285 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12287 for x in $rpathdirs; do
12288 if test "X$x" = "X$found_dir"; then
12293 if test -z "$haveit"; then
12294 rpathdirs="$rpathdirs $found_dir"
12298 for x in $LDFLAGS $LIBINTL; do
12300 acl_save_prefix="$prefix"
12301 prefix="$acl_final_prefix"
12302 acl_save_exec_prefix="$exec_prefix"
12303 exec_prefix="$acl_final_exec_prefix"
12305 exec_prefix="$acl_save_exec_prefix"
12306 prefix="$acl_save_prefix"
12308 if test "X$x" = "X-L$found_dir"; then
12313 if test -z "$haveit"; then
12314 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12316 if test "$hardcode_minus_L" != no; then
12317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12319 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12325 if test "X$found_a" != "X"; then
12326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12328 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12331 additional_includedir=
12332 case "$found_dir" in
12334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12335 additional_includedir="$basedir/include"
12338 if test "X$additional_includedir" != "X"; then
12339 if test "X$additional_includedir" != "X/usr/include"; then
12341 if test "X$additional_includedir" = "X/usr/local/include"; then
12342 if test -n "$GCC"; then
12344 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12348 if test -z "$haveit"; then
12349 for x in $CPPFLAGS $INCINTL; do
12351 acl_save_prefix="$prefix"
12352 prefix="$acl_final_prefix"
12353 acl_save_exec_prefix="$exec_prefix"
12354 exec_prefix="$acl_final_exec_prefix"
12356 exec_prefix="$acl_save_exec_prefix"
12357 prefix="$acl_save_prefix"
12359 if test "X$x" = "X-I$additional_includedir"; then
12364 if test -z "$haveit"; then
12365 if test -d "$additional_includedir"; then
12366 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12372 if test -n "$found_la"; then
12373 save_libdir="$libdir"
12374 case "$found_la" in
12375 */* | *\\*) . "$found_la" ;;
12376 *) . "./$found_la" ;;
12378 libdir="$save_libdir"
12379 for dep in $dependency_libs; do
12382 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12383 if test "X$additional_libdir" != "X/usr/lib"; then
12385 if test "X$additional_libdir" = "X/usr/local/lib"; then
12386 if test -n "$GCC"; then
12388 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12392 if test -z "$haveit"; then
12394 for x in $LDFLAGS $LIBINTL; do
12396 acl_save_prefix="$prefix"
12397 prefix="$acl_final_prefix"
12398 acl_save_exec_prefix="$exec_prefix"
12399 exec_prefix="$acl_final_exec_prefix"
12401 exec_prefix="$acl_save_exec_prefix"
12402 prefix="$acl_save_prefix"
12404 if test "X$x" = "X-L$additional_libdir"; then
12409 if test -z "$haveit"; then
12410 if test -d "$additional_libdir"; then
12411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12415 for x in $LDFLAGS $LTLIBINTL; do
12417 acl_save_prefix="$prefix"
12418 prefix="$acl_final_prefix"
12419 acl_save_exec_prefix="$exec_prefix"
12420 exec_prefix="$acl_final_exec_prefix"
12422 exec_prefix="$acl_save_exec_prefix"
12423 prefix="$acl_save_prefix"
12425 if test "X$x" = "X-L$additional_libdir"; then
12430 if test -z "$haveit"; then
12431 if test -d "$additional_libdir"; then
12432 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12439 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12440 if test "$enable_rpath" != no; then
12442 for x in $rpathdirs; do
12443 if test "X$x" = "X$dir"; then
12448 if test -z "$haveit"; then
12449 rpathdirs="$rpathdirs $dir"
12452 for x in $ltrpathdirs; do
12453 if test "X$x" = "X$dir"; then
12458 if test -z "$haveit"; then
12459 ltrpathdirs="$ltrpathdirs $dir"
12464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12470 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12477 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12478 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12484 if test "X$rpathdirs" != "X"; then
12485 if test -n "$hardcode_libdir_separator"; then
12487 for found_dir in $rpathdirs; do
12488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12490 acl_save_libdir="$libdir"
12492 eval flag=\"$hardcode_libdir_flag_spec\"
12493 libdir="$acl_save_libdir"
12494 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12496 for found_dir in $rpathdirs; do
12497 acl_save_libdir="$libdir"
12498 libdir="$found_dir"
12499 eval flag=\"$hardcode_libdir_flag_spec\"
12500 libdir="$acl_save_libdir"
12501 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12505 if test "X$ltrpathdirs" != "X"; then
12506 for found_dir in $ltrpathdirs; do
12507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12511 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12512 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12513 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 gt_save_CPPFLAGS="$CPPFLAGS"
12517 CPPFLAGS="$CPPFLAGS $INCINTL"
12518 gt_save_LIBS="$LIBS"
12519 LIBS="$LIBS $LIBINTL"
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 #include <libintl.h>
12527 extern int _nl_msg_cat_cntr;
12532 const char *_nl_expand_alias (const char *);
12536 bindtextdomain ("", "");
12537 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 gt_cv_func_gnugettext1_libintl=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 gt_cv_func_gnugettext1_libintl=no
12571 rm -f conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
12573 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12574 LIBS="$LIBS $LIBICONV"
12575 cat >conftest.$ac_ext <<_ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 #include <libintl.h>
12582 extern int _nl_msg_cat_cntr;
12587 const char *_nl_expand_alias (const char *);
12591 bindtextdomain ("", "");
12592 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>conftest.er1
12601 grep -v '^ *+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 LIBINTL="$LIBINTL $LIBICONV"
12620 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12621 gt_cv_func_gnugettext1_libintl=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12628 rm -f conftest.err conftest.$ac_objext \
12629 conftest$ac_exeext conftest.$ac_ext
12631 CPPFLAGS="$gt_save_CPPFLAGS"
12632 LIBS="$gt_save_LIBS"
12634 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12635 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12638 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12639 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12640 && test "$PACKAGE" != gettext-runtime \
12641 && test "$PACKAGE" != gettext-tools; }; then
12642 gt_use_preinstalled_gnugettext=yes
12650 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12651 nls_cv_use_gnu_gettext=yes
12655 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12656 BUILD_INCLUDED_LIBINTL=yes
12657 USE_INCLUDED_LIBINTL=yes
12658 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12659 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12660 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12664 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12665 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12670 if test -n "$INTL_MACOSX_LIBS"; then
12671 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12672 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12673 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12674 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12678 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12679 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define ENABLE_NLS 1
12690 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12691 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12692 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12693 echo "${ECHO_T}$USE_NLS" >&6
12694 if test "$USE_NLS" = "yes"; then
12695 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12696 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12697 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12698 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12699 gt_source="external libintl"
12704 gt_source="included intl directory"
12706 echo "$as_me:$LINENO: result: $gt_source" >&5
12707 echo "${ECHO_T}$gt_source" >&6
12710 if test "$USE_NLS" = "yes"; then
12712 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12713 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12714 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12715 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12716 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12717 echo "${ECHO_T}$LIBINTL" >&6
12719 for element in $INCINTL; do
12721 for x in $CPPFLAGS; do
12723 acl_save_prefix="$prefix"
12724 prefix="$acl_final_prefix"
12725 acl_save_exec_prefix="$exec_prefix"
12726 exec_prefix="$acl_final_exec_prefix"
12728 exec_prefix="$acl_save_exec_prefix"
12729 prefix="$acl_save_prefix"
12731 if test "X$x" = "X$element"; then
12736 if test -z "$haveit"; then
12737 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12744 cat >>confdefs.h <<\_ACEOF
12745 #define HAVE_GETTEXT 1
12749 cat >>confdefs.h <<\_ACEOF
12750 #define HAVE_DCGETTEXT 1
12759 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12760 BUILD_INCLUDED_LIBINTL=yes
12767 nls_cv_header_intl=
12768 nls_cv_header_libgt=
12780 if test "$USE_INCLUDED_LIBINTL" = yes; then
12781 INTLOBJS="\$(GETTOBJS)"
12785 INTL_LIBTOOL_SUFFIX_PREFIX=
12789 INTLLIBS="$LIBINTL"
12802 support_postgresql=no
12803 support_smartalloc=yes
12804 support_readline=yes
12808 support_wx_console=no
12813 support_static_tools=no
12814 support_static_fd=no
12815 support_static_sd=no
12816 support_static_dir=no
12817 support_static_cons=no
12819 build_client_only=no
12827 # -------------------------------------------
12828 # gnome (default off)
12829 # -------------------------------------------
12830 # Check whether --enable-gnome or --disable-gnome was given.
12831 if test "${enable_gnome+set}" = set; then
12832 enableval="$enable_gnome"
12833 if test x$enableval = xyes; then
12839 if test x$support_gnome = xyes; then
12840 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12842 if test $pkg = 0; then
12843 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12844 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12845 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12846 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12851 GNOME_DIR=src/gnome2-console
12852 gnome_version="Version 2.x"
12854 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12855 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12856 { (exit 1); exit 1; }; }
12861 # -------------------------------------------
12862 # bat (default off)
12863 # -------------------------------------------
12864 # Check whether --enable-bat or --disable-bat was given.
12865 if test "${enable_bat+set}" = set; then
12866 enableval="$enable_bat"
12867 if test x$enableval = xyes; then
12869 cat >>confdefs.h <<\_ACEOF
12878 if test x$support_bat = xyes; then
12879 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12881 if test $pkg = 0; then
12882 BAT_DIR=src/qt-console
12884 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12885 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12886 { (exit 1); exit 1; }; }
12891 # If bat is enabled, we need the qwt library
12895 if test x$support_bat = xyes; then
12896 echo "$as_me:$LINENO: checking for qwt support" >&5
12897 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12899 # Check whether --with-qwt or --without-qwt was given.
12900 if test "${with_qwt+set}" = set; then
12901 withval="$with_qwt"
12903 case "$with_qwt" in
12907 if test -f ${with_qwt}/include/qwt.h; then
12908 QWT_INC="${with_qwt}/include"
12909 QWT_LDFLAGS="-L${with_qwt}/lib"
12917 # Search in standard places, or --with-qwt not specified
12919 if test x$QWT_INC = x; then
12920 for root in /usr /usr/local; do
12921 for ver in qwt qwt5 qwt-qt4; do
12922 if test -f ${root}/include/${ver}/qwt.h; then
12923 QWT_INC="${root}/include/${ver}"
12924 if test -d ${root}/lib64/; then
12925 QWT_LDFLAGS="-L${root}/lib64"
12927 QWT_LDFLAGS="-L${root}/lib"
12935 if test x$QWT_INC = x; then
12936 echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6
12938 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12939 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12940 { (exit 1); exit 1; }; }
12944 echo "$as_me:$LINENO: result: yes" >&5
12945 echo "${ECHO_T}yes" >&6
12954 # -------------------------------------------
12955 # bwx-console (default off)
12956 # -------------------------------------------
12957 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12958 if test "${enable_bwx_console+set}" = set; then
12959 enableval="$enable_bwx_console"
12960 if test x$enableval = xyes; then
12961 support_wx_console=yes
12966 if test x$support_wx_console = xyes; then
12967 abc=`$WXCONFIG $WXFLAGS --cppflags`
12969 if test $pkg = 0; then
12970 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12971 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12972 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12976 WX_DIR=src/wx-console
12979 echo "wx-config program not found. bwx-console disabled."
12981 support_wx_console=no
12987 # -------------------------------------------
12988 # tray-monitor (default off)
12989 # -------------------------------------------
12990 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12991 if test "${enable_tray_monitor+set}" = set; then
12992 enableval="$enable_tray_monitor"
12993 if test x$enableval = xyes; then
12994 support_tray_monitor=yes
12999 if test x$support_tray_monitor = xyes; then
13000 abc=`$PKGCONFIG --exists gtk+-2.0`
13002 if test $pkg = 0; then
13003 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13004 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13007 TRAY_MONITOR_DIR=src/tray-monitor
13008 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13010 if test $pkg = 0; then
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HAVE_GTK_2_4 1
13021 # -------------------------------------------
13022 # smartalloc (default off)
13023 # -------------------------------------------
13024 # Check whether --enable-smartalloc or --disable-smartalloc was given.
13025 if test "${enable_smartalloc+set}" = set; then
13026 enableval="$enable_smartalloc"
13027 if test x$enableval = xno; then
13028 support_smartalloc=no
13032 if test x$support_smartalloc = xyes; then
13034 cat >>confdefs.h <<\_ACEOF
13035 #define SMARTALLOC 1
13040 # -------------------------------------------
13041 # static-tools (default off)
13042 # -------------------------------------------
13043 # Check whether --enable-static-tools or --disable-static-tools was given.
13044 if test "${enable_static_tools+set}" = set; then
13045 enableval="$enable_static_tools"
13046 if test x$enableval = xyes; then
13047 support_static_tools=yes
13052 if test x$support_static_tools = xyes; then
13053 TTOOL_LDFLAGS="-static"
13057 # -------------------------------------------
13058 # static-fd (default off)
13059 # -------------------------------------------
13060 # Check whether --enable-static-fd or --disable-static-fd was given.
13061 if test "${enable_static_fd+set}" = set; then
13062 enableval="$enable_static_fd"
13063 if test x$enableval = xyes; then
13064 support_static_fd=yes
13069 if test x$support_static_fd = xyes; then
13070 STATIC_FD="static-bacula-fd"
13074 # -------------------------------------------
13075 # static-sd (default off)
13076 # -------------------------------------------
13077 # Check whether --enable-static-sd or --disable-static-sd was given.
13078 if test "${enable_static_sd+set}" = set; then
13079 enableval="$enable_static_sd"
13080 if test x$enableval = xyes; then
13081 support_static_sd=yes
13086 if test x$support_static_sd = xyes; then
13087 STATIC_SD="static-bacula-sd"
13091 # -------------------------------------------
13092 # static-dir (default off)
13093 # -------------------------------------------
13094 # Check whether --enable-static-dir or --disable-static-dir was given.
13095 if test "${enable_static_dir+set}" = set; then
13096 enableval="$enable_static_dir"
13097 if test x$enableval = xyes; then
13098 support_static_dir=yes
13103 if test x$support_static_dir = xyes; then
13104 STATIC_DIR="static-bacula-dir"
13108 # -------------------------------------------
13109 # static-cons (default off)
13110 # -------------------------------------------
13111 # Check whether --enable-static-cons or --disable-static-cons was given.
13112 if test "${enable_static_cons+set}" = set; then
13113 enableval="$enable_static_cons"
13114 if test x$enableval = xyes; then
13115 support_static_cons=yes
13122 if test x$support_static_cons = xyes; then
13123 STATIC_CONS="static-bconsole"
13124 STATIC_GNOME_CONS="static-bgnome-console"
13125 STATIC_WX_CONS="static-bwx-console"
13131 # -------------------------------------------
13132 # client_only (default off)
13133 # -------------------------------------------
13134 # Check whether --enable-client-only or --disable-client-only was given.
13135 if test "${enable_client_only+set}" = set; then
13136 enableval="$enable_client_only"
13137 if test x$enableval = xyes; then
13138 build_client_only=yes
13143 if test x$build_client_only = xno; then
13150 # -------------------------------------------
13151 # director (default on)
13152 # -------------------------------------------
13153 # Check whether --enable-build-dird or --disable-build-dird was given.
13154 if test "${enable_build_dird+set}" = set; then
13155 enableval="$enable_build_dird"
13156 if test x$enableval = xno; then
13160 if test x$build_dird = xyes; then
13161 DIRD_DIR="src/dird"
13162 DIR_TOOLS="DIRTOOLS"
13165 DIR_TOOLS="NODIRTOOLS"
13170 # -------------------------------------------
13171 # stored (default on)
13172 # -------------------------------------------
13173 # Check whether --enable-build-stored or --disable-build-stored was given.
13174 if test "${enable_build_stored+set}" = set; then
13175 enableval="$enable_build_stored"
13176 if test x$enableval = xno; then
13180 if test x$build_stored = xyes; then
13181 STORED_DIR="src/stored"
13187 # ---------------------------------------------------
13188 # Check for conio (Bacula readline substitute)(
13189 # ---------------------------------------------------
13190 # this allows you to turn it completely off
13191 # Check whether --enable-conio or --disable-conio was given.
13192 if test "${enable_conio+set}" = set; then
13193 enableval="$enable_conio"
13194 if test x$enableval = xno; then
13201 # ---------------------------------------------------
13202 # Check for IPv6 support
13203 # ---------------------------------------------------
13204 # this allows you to turn it completely off
13206 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13207 if test "${enable_ipv6+set}" = set; then
13208 enableval="$enable_ipv6"
13209 if test x$enableval = xno; then
13215 if test x$support_ipv6 = xyes; then
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 #include <sys/types.h>
13223 #include <sys/socket.h>
13224 #include <netinet/in.h>
13228 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235 (eval $ac_link) 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_c_werror_flag"
13243 || test ! -s conftest.err'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; } &&
13249 { ac_try='test -s conftest$ac_exeext'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13266 if test x$support_ipv6 = xyes; then
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_IPV6 1
13277 if test x$support_conio = xyes; then
13278 if test "${ac_cv_header_termcap_h+set}" = set; then
13279 echo "$as_me:$LINENO: checking for termcap.h" >&5
13280 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13281 if test "${ac_cv_header_termcap_h+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13285 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13287 # Is the header compilable?
13288 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13289 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13290 cat >conftest.$ac_ext <<_ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296 $ac_includes_default
13297 #include <termcap.h>
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag"
13309 || test ! -s conftest.err'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_header_compiler=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ac_header_compiler=no
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13330 echo "${ECHO_T}$ac_header_compiler" >&6
13332 # Is the header present?
13333 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13334 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 #include <termcap.h>
13343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } >/dev/null; then
13351 if test -s conftest.err; then
13352 ac_cpp_err=$ac_c_preproc_warn_flag
13353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13360 if test -z "$ac_cpp_err"; then
13361 ac_header_preproc=yes
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13366 ac_header_preproc=no
13368 rm -f conftest.err conftest.$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13370 echo "${ECHO_T}$ac_header_preproc" >&6
13372 # So? What about this header?
13373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13375 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13376 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13378 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13379 ac_header_preproc=yes
13382 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13383 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13385 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13387 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13388 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13389 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13391 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13393 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13396 ## ------------------------------------------ ##
13397 ## Report this to the AC_PACKAGE_NAME lists. ##
13398 ## ------------------------------------------ ##
13401 sed "s/^/$as_me: WARNING: /" >&2
13404 echo "$as_me:$LINENO: checking for termcap.h" >&5
13405 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13406 if test "${ac_cv_header_termcap_h+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 ac_cv_header_termcap_h=$ac_header_preproc
13411 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13412 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13415 if test $ac_cv_header_termcap_h = yes; then
13416 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13417 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13418 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-ltermcap $LIBS"
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any gcc2 internal prototype to avoid an error. */
13434 /* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447 (eval $ac_link) 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); } &&
13454 { ac_try='test -z "$ac_c_werror_flag"
13455 || test ! -s conftest.err'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 ac_cv_lib_termcap_tgetent=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ac_cv_lib_termcap_tgetent=no
13474 rm -f conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13476 LIBS=$ac_check_lib_save_LIBS
13478 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13479 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13480 if test $ac_cv_lib_termcap_tgetent = yes; then
13481 CONS_LIBS="-ltermcap"
13485 support_readline=no
13487 cat >>confdefs.h <<\_ACEOF
13488 #define HAVE_CONIO 1
13493 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13494 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13495 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-lncurses $LIBS"
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13507 /* Override any gcc2 internal prototype to avoid an error. */
13511 /* We use char because int might match the return type of a gcc2
13512 builtin and then its argument prototype would still apply. */
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524 (eval $ac_link) 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -z "$ac_c_werror_flag"
13532 || test ! -s conftest.err'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 ac_cv_lib_ncurses_tgetent=yes
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13549 ac_cv_lib_ncurses_tgetent=no
13551 rm -f conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13555 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13556 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13557 if test $ac_cv_lib_ncurses_tgetent = yes; then
13558 CONS_LIBS="-lncurses"
13562 support_readline=no
13564 cat >>confdefs.h <<\_ACEOF
13565 #define HAVE_CONIO 1
13578 for ac_header in curses.h
13580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582 echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13590 # Is the header compilable?
13591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 #include <$ac_header>
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13624 ac_header_compiler=yes
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 ac_header_compiler=no
13631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6
13635 # Is the header present?
13636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <$ac_header>
13646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } >/dev/null; then
13654 if test -s conftest.err; then
13655 ac_cpp_err=$ac_c_preproc_warn_flag
13656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13663 if test -z "$ac_cpp_err"; then
13664 ac_header_preproc=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_header_preproc=no
13671 rm -f conftest.err conftest.$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13673 echo "${ECHO_T}$ac_header_preproc" >&6
13675 # So? What about this header?
13676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13682 ac_header_preproc=yes
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13699 ## ------------------------------------------ ##
13700 ## Report this to the AC_PACKAGE_NAME lists. ##
13701 ## ------------------------------------------ ##
13704 sed "s/^/$as_me: WARNING: /" >&2
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 eval "$as_ac_Header=\$ac_header_preproc"
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13719 cat >>confdefs.h <<_ACEOF
13720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13727 echo "$as_me:$LINENO: checking for term.h" >&5
13728 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13729 if test "${ac_cv_header_term_h+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 cat >conftest.$ac_ext <<_ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13739 #include <curses.h>
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_header_term_h=yes
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_cv_header_term_h=no
13774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13776 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13777 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13778 if test $ac_cv_header_term_h = yes; then
13779 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13780 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13781 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 ac_check_lib_save_LIBS=$LIBS
13785 LIBS="-lcurses $LIBS"
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13793 /* Override any gcc2 internal prototype to avoid an error. */
13797 /* We use char because int might match the return type of a gcc2
13798 builtin and then its argument prototype would still apply. */
13808 rm -f conftest.$ac_objext conftest$ac_exeext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13810 (eval $ac_link) 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -z "$ac_c_werror_flag"
13818 || test ! -s conftest.err'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; } &&
13824 { ac_try='test -s conftest$ac_exeext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_lib_curses_tgetent=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_cv_lib_curses_tgetent=no
13837 rm -f conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 LIBS=$ac_check_lib_save_LIBS
13841 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13842 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13843 if test $ac_cv_lib_curses_tgetent = yes; then
13844 CONS_LIBS="-lcurses"
13848 support_readline=no
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_CONIO 1
13859 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13870 # ---------------------------------------------------
13871 # Check for readline support/directory (default off)
13872 # ---------------------------------------------------
13873 # this allows you to turn it completely off
13874 # Check whether --enable-readline or --disable-readline was given.
13875 if test "${enable_readline+set}" = set; then
13876 enableval="$enable_readline"
13877 if test x$enableval = xno; then
13878 support_readline=no
13884 if test x$support_readline = xyes; then
13886 # Check whether --with-readline or --without-readline was given.
13887 if test "${with_readline+set}" = set; then
13888 withval="$with_readline"
13890 case "$with_readline" in
13893 if test -f ${with_readline}/readline.h; then
13894 CONS_INC="-I${with_readline}"
13895 CONS_LDFLAGS="-L$with_readline"
13896 elif test -f ${with_readline}/include/readline/readline.h; then
13897 CONS_INC="-I${with_readline}/include/readline"
13898 CONS_LDFLAGS="-L${with_readline}/lib"
13899 with_readline="${with_readline}/include/readline"
13901 with_readline="/usr/include/readline"
13903 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13905 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13906 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913 # Is the header compilable?
13914 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13915 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 $ac_includes_default
13923 #include <${with_readline}/readline.h>
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927 (eval $ac_compile) 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag"
13935 || test ! -s conftest.err'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; } &&
13941 { ac_try='test -s conftest.$ac_objext'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_header_compiler=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_compiler=no
13954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13956 echo "${ECHO_T}$ac_header_compiler" >&6
13958 # Is the header present?
13959 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13960 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <${with_readline}/readline.h>
13969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } >/dev/null; then
13977 if test -s conftest.err; then
13978 ac_cpp_err=$ac_c_preproc_warn_flag
13979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13986 if test -z "$ac_cpp_err"; then
13987 ac_header_preproc=yes
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_header_preproc=no
13994 rm -f conftest.err conftest.$ac_ext
13995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13996 echo "${ECHO_T}$ac_header_preproc" >&6
13998 # So? What about this header?
13999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14001 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14002 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14004 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14005 ac_header_preproc=yes
14008 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14009 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14011 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14013 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14015 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14017 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14019 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14022 ## ------------------------------------------ ##
14023 ## Report this to the AC_PACKAGE_NAME lists. ##
14024 ## ------------------------------------------ ##
14027 sed "s/^/$as_me: WARNING: /" >&2
14030 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14031 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 eval "$as_ac_Header=\$ac_header_preproc"
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<\_ACEOF
14044 #define HAVE_READLINE 1
14047 CONS_LIBS="-lreadline -lhistory -ltermcap"
14052 echo "readline.h not found. readline turned off ..."
14064 # check for standard readline library
14065 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14066 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14067 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14068 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14072 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14074 # Is the header compilable?
14075 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14076 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 $ac_includes_default
14084 #include </usr/include/readline/readline.h>
14086 rm -f conftest.$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088 (eval $ac_compile) 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest.$ac_objext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_header_compiler=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_header_compiler=no
14115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14117 echo "${ECHO_T}$ac_header_compiler" >&6
14119 # Is the header present?
14120 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14121 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include </usr/include/readline/readline.h>
14130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } >/dev/null; then
14138 if test -s conftest.err; then
14139 ac_cpp_err=$ac_c_preproc_warn_flag
14140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14147 if test -z "$ac_cpp_err"; then
14148 ac_header_preproc=yes
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14153 ac_header_preproc=no
14155 rm -f conftest.err conftest.$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14157 echo "${ECHO_T}$ac_header_preproc" >&6
14159 # So? What about this header?
14160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14162 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14163 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14165 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14166 ac_header_preproc=yes
14169 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14170 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14172 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14174 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14176 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14178 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14180 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14183 ## ------------------------------------------ ##
14184 ## Report this to the AC_PACKAGE_NAME lists. ##
14185 ## ------------------------------------------ ##
14188 sed "s/^/$as_me: WARNING: /" >&2
14191 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14192 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14193 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14198 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14199 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14202 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14204 cat >>confdefs.h <<\_ACEOF
14205 #define HAVE_READLINE 1
14209 CONS_INC="-I/usr/include/readline"
14210 CONS_LIBS="-lreadline -ltermcap"
14214 # Did not find standard library, so try Bacula's default
14215 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14218 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14225 # Is the header compilable?
14226 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14227 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 $ac_includes_default
14235 #include <${TOP_DIR}/depkgs/readline/readline.h>
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>conftest.er1
14241 grep -v '^ *+' conftest.er1 >conftest.err
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -z "$ac_c_werror_flag"
14247 || test ! -s conftest.err'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 ac_header_compiler=yes
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_header_compiler=no
14266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14268 echo "${ECHO_T}$ac_header_compiler" >&6
14270 # Is the header present?
14271 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14272 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14273 cat >conftest.$ac_ext <<_ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 #include <${TOP_DIR}/depkgs/readline/readline.h>
14281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14284 grep -v '^ *+' conftest.er1 >conftest.err
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } >/dev/null; then
14289 if test -s conftest.err; then
14290 ac_cpp_err=$ac_c_preproc_warn_flag
14291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14298 if test -z "$ac_cpp_err"; then
14299 ac_header_preproc=yes
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 ac_header_preproc=no
14306 rm -f conftest.err conftest.$ac_ext
14307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6
14310 # So? What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14313 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14317 ac_header_preproc=yes
14320 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14334 ## ------------------------------------------ ##
14335 ## Report this to the AC_PACKAGE_NAME lists. ##
14336 ## ------------------------------------------ ##
14339 sed "s/^/$as_me: WARNING: /" >&2
14342 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14343 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14347 eval "$as_ac_Header=\$ac_header_preproc"
14349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_READLINE 1
14360 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14361 CONS_LIBS="-lreadline -lhistory -ltermcap"
14362 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14363 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14367 echo "readline.h not found. readline turned off ..."
14393 # Minimal stuff for readline Makefile configuration
14396 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14397 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14398 if test "${ac_cv_header_stat_broken+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 cat >conftest.$ac_ext <<_ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <sys/types.h>
14408 #include <sys/stat.h>
14410 #if defined(S_ISBLK) && defined(S_IFDIR)
14411 # if S_ISBLK (S_IFDIR)
14416 #if defined(S_ISBLK) && defined(S_IFCHR)
14417 # if S_ISBLK (S_IFCHR)
14422 #if defined(S_ISLNK) && defined(S_IFREG)
14423 # if S_ISLNK (S_IFREG)
14428 #if defined(S_ISSOCK) && defined(S_IFREG)
14429 # if S_ISSOCK (S_IFREG)
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436 $EGREP "You lose" >/dev/null 2>&1; then
14437 ac_cv_header_stat_broken=yes
14439 ac_cv_header_stat_broken=no
14444 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14445 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14446 if test $ac_cv_header_stat_broken = yes; then
14448 cat >>confdefs.h <<\_ACEOF
14449 #define STAT_MACROS_BROKEN 1
14459 ac_header_dirent=no
14460 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14461 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14462 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14463 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 #include <sys/types.h>
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14507 eval "$as_ac_Header=yes"
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14512 eval "$as_ac_Header=no"
14514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519 cat >>confdefs.h <<_ACEOF
14520 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14523 ac_header_dirent=$ac_hdr; break
14527 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14528 if test $ac_header_dirent = dirent.h; then
14529 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14531 if test "${ac_cv_search_opendir+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 ac_func_search_save_LIBS=$LIBS
14535 ac_cv_search_opendir=no
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14543 /* Override any gcc2 internal prototype to avoid an error. */
14547 /* We use char because int might match the return type of a gcc2
14548 builtin and then its argument prototype would still apply. */
14558 rm -f conftest.$ac_objext conftest$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try='test -z "$ac_c_werror_flag"
14568 || test ! -s conftest.err'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest$ac_exeext'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_search_opendir="none required"
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14586 rm -f conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588 if test "$ac_cv_search_opendir" = no; then
14589 for ac_lib in dir; do
14590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14598 /* Override any gcc2 internal prototype to avoid an error. */
14602 /* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14615 (eval $ac_link) 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest$ac_exeext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_cv_search_opendir="-l$ac_lib"
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14642 rm -f conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_func_search_save_LIBS
14648 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14649 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14650 if test "$ac_cv_search_opendir" != no; then
14651 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14656 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14658 if test "${ac_cv_search_opendir+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 ac_func_search_save_LIBS=$LIBS
14662 ac_cv_search_opendir=no
14663 cat >conftest.$ac_ext <<_ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* Override any gcc2 internal prototype to avoid an error. */
14674 /* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14687 (eval $ac_link) 2>conftest.er1
14689 grep -v '^ *+' conftest.er1 >conftest.err
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
14694 { ac_try='test -z "$ac_c_werror_flag"
14695 || test ! -s conftest.err'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; } &&
14701 { ac_try='test -s conftest$ac_exeext'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_cv_search_opendir="none required"
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14713 rm -f conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 if test "$ac_cv_search_opendir" = no; then
14716 for ac_lib in x; do
14717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>conftest.er1
14744 grep -v '^ *+' conftest.er1 >conftest.err
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag"
14750 || test ! -s conftest.err'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 ac_cv_search_opendir="-l$ac_lib"
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14769 rm -f conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14773 LIBS=$ac_func_search_save_LIBS
14775 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14776 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14777 if test "$ac_cv_search_opendir" != no; then
14778 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14791 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794 echo "$as_me:$LINENO: checking for $ac_func" >&5
14795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14796 if eval "test \"\${$as_ac_var+set}\" = set"; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807 #define $ac_func innocuous_$ac_func
14809 /* System header to define __stub macros and hopefully few prototypes,
14810 which can conflict with char $ac_func (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14815 # include <limits.h>
14817 # include <assert.h>
14822 /* Override any gcc2 internal prototype to avoid an error. */
14827 /* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14830 /* The GNU C library defines this for functions which it implements
14831 to always fail with ENOSYS. Some functions are actually named
14832 something starting with __ and the normal name is an alias. */
14833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14836 char (*f) () = $ac_func;
14845 return f != $ac_func;
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag"
14860 || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 eval "$as_ac_var=yes"
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 eval "$as_ac_var=no"
14879 rm -f conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14884 if test `eval echo '${'$as_ac_var'}'` = yes; then
14885 cat >>confdefs.h <<_ACEOF
14886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14894 for ac_func in nanosleep nl_langinfo
14896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14897 echo "$as_me:$LINENO: checking for $ac_func" >&5
14898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14899 if eval "test \"\${$as_ac_var+set}\" = set"; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14910 #define $ac_func innocuous_$ac_func
14912 /* System header to define __stub macros and hopefully few prototypes,
14913 which can conflict with char $ac_func (); below.
14914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14915 <limits.h> exists even on freestanding compilers. */
14918 # include <limits.h>
14920 # include <assert.h>
14925 /* Override any gcc2 internal prototype to avoid an error. */
14930 /* We use char because int might match the return type of a gcc2
14931 builtin and then its argument prototype would still apply. */
14933 /* The GNU C library defines this for functions which it implements
14934 to always fail with ENOSYS. Some functions are actually named
14935 something starting with __ and the normal name is an alias. */
14936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14939 char (*f) () = $ac_func;
14948 return f != $ac_func;
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 eval "$as_ac_var=yes"
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14980 eval "$as_ac_var=no"
14982 rm -f conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14987 if test `eval echo '${'$as_ac_var'}'` = yes; then
14988 cat >>confdefs.h <<_ACEOF
14989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14996 for ac_header in varargs.h
14998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15000 echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15008 # Is the header compilable?
15009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15018 #include <$ac_header>
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15024 grep -v '^ *+' conftest.er1 >conftest.err
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_header_compiler=yes
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15047 ac_header_compiler=no
15049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15051 echo "${ECHO_T}$ac_header_compiler" >&6
15053 # Is the header present?
15054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15056 cat >conftest.$ac_ext <<_ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 #include <$ac_header>
15064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15067 grep -v '^ *+' conftest.er1 >conftest.err
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } >/dev/null; then
15072 if test -s conftest.err; then
15073 ac_cpp_err=$ac_c_preproc_warn_flag
15074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15081 if test -z "$ac_cpp_err"; then
15082 ac_header_preproc=yes
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_preproc=no
15089 rm -f conftest.err conftest.$ac_ext
15090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15091 echo "${ECHO_T}$ac_header_preproc" >&6
15093 # So? What about this header?
15094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15100 ac_header_preproc=yes
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15117 ## ------------------------------------------ ##
15118 ## Report this to the AC_PACKAGE_NAME lists. ##
15119 ## ------------------------------------------ ##
15122 sed "s/^/$as_me: WARNING: /" >&2
15125 echo "$as_me:$LINENO: checking for $ac_header" >&5
15126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 eval "$as_ac_Header=\$ac_header_preproc"
15132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15137 cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15146 # End of readline/conio stuff
15147 # -----------------------------------------------------------------------
15149 # -----------------------------------------------------------------------
15150 # Check for Python support
15152 echo "$as_me:$LINENO: checking for Python support" >&5
15153 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15155 # Check whether --with-python or --without-python was given.
15156 if test "${with_python+set}" = set; then
15157 withval="$with_python"
15161 if test "$withval" != "no"; then
15162 if test "$withval" = "yes"; then
15163 for python_root in /usr /usr/local /usr/sfw; do
15164 for ver in python2.2 python2.3 python2.4 python2.5; do
15165 if test -f $python_root/include/${ver}/Python.h; then
15166 PYTHON_INCDIR=-I$python_root/include/${ver}
15167 if test -d $python_root/lib64/${ver}/config; then
15168 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15170 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15176 if test x$PYTHON_INCDIR = x; then
15177 if test -f $prefix/include/Python.h; then
15178 PYTHON_INCDIR=-I$prefix/include
15179 if test -d $prefix/lib64/config; then
15180 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15182 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15185 echo "$as_me:$LINENO: result: no" >&5
15186 echo "${ECHO_T}no" >&6
15187 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15188 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15189 { (exit 1); exit 1; }; }
15193 if test -f $withval/Python.h; then
15194 PYTHON_INCDIR=-I$withval
15195 PYTHON_LIBS="-L$withval/config -lpython"
15196 elif test -f $withval/include/Python.h; then
15197 PYTHON_INCDIR=-I$withval/include
15198 if test -d $withval/lib64/config; then
15199 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15201 PYTHON_LIBS="-L$withval/lib/config -lpython"
15203 elif test -f $withval/include/python/Python.h; then
15204 PYTHON_INCDIR=-I$withval/include/python
15205 if test -d $withval/lib64/python/config; then
15206 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15208 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15211 echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15213 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15214 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15215 { (exit 1); exit 1; }; }
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_PYTHON 1
15222 echo "$as_me:$LINENO: result: yes" >&5
15223 echo "${ECHO_T}yes" >&6
15225 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15226 echo "$as_me: checking for more Python libs" >&6;}
15227 saved_LIBS="$LIBS"; LIBS=
15228 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15229 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15230 if test "${ac_cv_search_shm_open+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 ac_func_search_save_LIBS=$LIBS
15234 ac_cv_search_shm_open=no
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15242 /* Override any gcc2 internal prototype to avoid an error. */
15246 /* We use char because int might match the return type of a gcc2
15247 builtin and then its argument prototype would still apply. */
15257 rm -f conftest.$ac_objext conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_cv_search_shm_open="none required"
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15285 rm -f conftest.err conftest.$ac_objext \
15286 conftest$ac_exeext conftest.$ac_ext
15287 if test "$ac_cv_search_shm_open" = no; then
15288 for ac_lib in rt; do
15289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 /* Override any gcc2 internal prototype to avoid an error. */
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_search_shm_open="-l$ac_lib"
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15341 rm -f conftest.err conftest.$ac_objext \
15342 conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_func_search_save_LIBS
15347 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15348 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15349 if test "$ac_cv_search_shm_open" != no; then
15350 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15355 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15356 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15357 if test "${ac_cv_lib_util_openpty+set}" = set; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 ac_check_lib_save_LIBS=$LIBS
15361 LIBS="-lutil $LIBS"
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15369 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_cv_lib_util_openpty=yes
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_cv_lib_util_openpty=no
15413 rm -f conftest.err conftest.$ac_objext \
15414 conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15417 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15418 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15419 if test $ac_cv_lib_util_openpty = yes; then
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_LIBUTIL 1
15424 LIBS="-lutil $LIBS"
15428 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15431 echo "$as_me:$LINENO: result: no" >&5
15432 echo "${ECHO_T}no" >&6
15437 echo "$as_me:$LINENO: result: no" >&5
15438 echo "${ECHO_T}no" >&6
15445 # Find where sockets are (especially for Solaris)
15446 # Do this before the TCP Wrappers test since tcp wrappers
15447 # uses the socket library and some linkers are stupid.
15449 echo "$as_me:$LINENO: checking for socket" >&5
15450 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15451 if test "${ac_cv_func_socket+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15462 #define socket innocuous_socket
15464 /* System header to define __stub macros and hopefully few prototypes,
15465 which can conflict with char socket (); below.
15466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15467 <limits.h> exists even on freestanding compilers. */
15470 # include <limits.h>
15472 # include <assert.h>
15477 /* Override any gcc2 internal prototype to avoid an error. */
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15485 /* The GNU C library defines this for functions which it implements
15486 to always fail with ENOSYS. Some functions are actually named
15487 something starting with __ and the normal name is an alias. */
15488 #if defined (__stub_socket) || defined (__stub___socket)
15491 char (*f) () = socket;
15500 return f != socket;
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag"
15515 || test ! -s conftest.err'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest$ac_exeext'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_func_socket=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_cv_func_socket=no
15534 rm -f conftest.err conftest.$ac_objext \
15535 conftest$ac_exeext conftest.$ac_ext
15537 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15538 echo "${ECHO_T}$ac_cv_func_socket" >&6
15539 if test $ac_cv_func_socket = yes; then
15540 echo "$as_me:$LINENO: result: using libc's socket" >&5
15541 echo "${ECHO_T}using libc's socket" >&6
15544 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15545 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15546 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15549 ac_check_lib_save_LIBS=$LIBS
15550 LIBS="-lxnet $LIBS"
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15558 /* Override any gcc2 internal prototype to avoid an error. */
15562 /* We use char because int might match the return type of a gcc2
15563 builtin and then its argument prototype would still apply. */
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>conftest.er1
15577 grep -v '^ *+' conftest.er1 >conftest.err
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_lib_xnet_socket=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_lib_xnet_socket=no
15602 rm -f conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_check_lib_save_LIBS
15606 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15607 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15608 if test $ac_cv_lib_xnet_socket = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define HAVE_LIBXNET 1
15613 LIBS="-lxnet $LIBS"
15618 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15619 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15620 if test "${ac_cv_lib_socket_socket+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 ac_check_lib_save_LIBS=$LIBS
15624 LIBS="-lsocket $LIBS"
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15632 /* Override any gcc2 internal prototype to avoid an error. */
15636 /* We use char because int might match the return type of a gcc2
15637 builtin and then its argument prototype would still apply. */
15647 rm -f conftest.$ac_objext conftest$ac_exeext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15649 (eval $ac_link) 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_c_werror_flag"
15657 || test ! -s conftest.err'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest$ac_exeext'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 ac_cv_lib_socket_socket=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_cv_lib_socket_socket=no
15676 rm -f conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15680 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15681 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15682 if test $ac_cv_lib_socket_socket = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_LIBSOCKET 1
15687 LIBS="-lsocket $LIBS"
15692 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15693 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15694 if test "${ac_cv_lib_inet_socket+set}" = set; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 ac_check_lib_save_LIBS=$LIBS
15698 LIBS="-linet $LIBS"
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 /* Override any gcc2 internal prototype to avoid an error. */
15710 /* We use char because int might match the return type of a gcc2
15711 builtin and then its argument prototype would still apply. */
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_c_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_lib_inet_socket=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_cv_lib_inet_socket=no
15750 rm -f conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15754 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15755 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15756 if test $ac_cv_lib_inet_socket = yes; then
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_LIBINET 1
15761 LIBS="-linet $LIBS"
15769 # -----------------------------------------------------------
15770 # Check whether user wants TCP wrappers support (default off)
15771 # -----------------------------------------------------------
15775 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15776 if test "${with_tcp_wrappers+set}" = set; then
15777 withval="$with_tcp_wrappers"
15779 if test "x$withval" != "xno" ; then
15781 LIBS="$saved_LIBS -lwrap"
15782 echo "$as_me:$LINENO: checking for libwrap" >&5
15783 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15784 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15785 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15786 if test "${ac_cv_search_nanosleep+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 ac_func_search_save_LIBS=$LIBS
15790 ac_cv_search_nanosleep=no
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15798 /* Override any gcc2 internal prototype to avoid an error. */
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>conftest.er1
15817 grep -v '^ *+' conftest.er1 >conftest.err
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_c_werror_flag"
15823 || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest$ac_exeext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_search_nanosleep="none required"
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15841 rm -f conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 if test "$ac_cv_search_nanosleep" = no; then
15844 for ac_lib in rt; do
15845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15853 /* Override any gcc2 internal prototype to avoid an error. */
15857 /* We use char because int might match the return type of a gcc2
15858 builtin and then its argument prototype would still apply. */
15868 rm -f conftest.$ac_objext conftest$ac_exeext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870 (eval $ac_link) 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -z "$ac_c_werror_flag"
15878 || test ! -s conftest.err'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest$ac_exeext'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_cv_search_nanosleep="-l$ac_lib"
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15897 rm -f conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_func_search_save_LIBS
15903 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15904 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15905 if test "$ac_cv_search_nanosleep" != no; then
15906 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15910 cat >conftest.$ac_ext <<_ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916 #include <sys/types.h>
15918 int deny_severity = 0;
15919 int allow_severity = 0;
15920 struct request_info *req;
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15931 (eval $ac_link) 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
15938 { ac_try='test -z "$ac_c_werror_flag"
15939 || test ! -s conftest.err'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; } &&
15945 { ac_try='test -s conftest$ac_exeext'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15952 echo "$as_me:$LINENO: result: yes" >&5
15953 echo "${ECHO_T}yes" >&6
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_LIBWRAP 1
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15968 LIBS="$saved_LIBS -lwrap -lnsl"
15969 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <sys/types.h>
15978 int deny_severity = 0;
15979 int allow_severity = 0;
15980 struct request_info *req;
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991 (eval $ac_link) 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -z "$ac_c_werror_flag"
15999 || test ! -s conftest.err'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; } &&
16005 { ac_try='test -s conftest$ac_exeext'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16012 echo "$as_me:$LINENO: result: yes" >&5
16013 echo "${ECHO_T}yes" >&6
16015 cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_LIBWRAP 1
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16028 echo "$as_me: error: *** libwrap missing" >&2;}
16029 { (exit 1); exit 1; }; }
16032 rm -f conftest.err conftest.$ac_objext \
16033 conftest$ac_exeext conftest.$ac_ext
16036 rm -f conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16043 # -----------------------------------------------------------
16044 # Check whether OpenSSL is available
16045 # -----------------------------------------------------------
16046 echo "$as_me:$LINENO: checking for OpenSSL" >&5
16047 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
16049 # Check whether --with-openssl or --without-openssl was given.
16050 if test "${with_openssl+set}" = set; then
16051 withval="$with_openssl"
16052 with_openssl_directory=${withval}
16055 if test "x$with_openssl_directory" != "x"; then
16056 OPENSSL_LIBS="-lssl -lcrypto"
16059 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16060 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16061 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16064 saved_LIBS="${LIBS}"
16065 saved_CFLAGS="${CFLAGS}"
16066 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16067 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16069 cat >conftest.$ac_ext <<_ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #include <openssl/ssl.h>
16079 CRYPTO_set_id_callback(NULL);
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag"
16094 || test ! -s conftest.err'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest$ac_exeext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16108 support_crypto="yes"
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16117 rm -f conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16120 cat >conftest.$ac_ext <<_ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 #include <openssl/evp.h>
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag"
16145 || test ! -s conftest.err'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_openssl_sha2="yes"
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_cv_openssl_sha2="no"
16165 rm -f conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16168 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16169 # implementation, presumably for export reasons. If 192bit AES
16170 # is available, we assume that we're running with a 'non-export'
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <openssl/evp.h>
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16191 grep -v '^ *+' conftest.er1 >conftest.err
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_cv_openssl_export="no"
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_cv_openssl_export="yes"
16217 rm -f conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16220 LIBS="${saved_LIBS}"
16221 CFLAGS="${saved_CFLAGS}"
16223 if test "$support_tls" = "yes"; then
16225 cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_OPENSSL 1
16230 cat >>confdefs.h <<\_ACEOF
16235 cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_CRYPTO 1
16241 if test "$ac_cv_openssl_sha2" = "yes"; then
16243 cat >>confdefs.h <<\_ACEOF
16244 #define HAVE_SHA2 1
16249 if test "$ac_cv_openssl_export" = "yes"; then
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16258 support_crypto="no"
16263 echo "$as_me:$LINENO: result: $support_tls" >&5
16264 echo "${ECHO_T}$support_tls" >&6
16269 # -----------------------------------------------------------
16270 # Python and OpenSSL are using dlopen
16271 # -----------------------------------------------------------
16273 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16274 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16275 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16276 if test "${ac_cv_search_dlopen+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_func_search_save_LIBS=$LIBS
16280 ac_cv_search_dlopen=no
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16288 /* Override any gcc2 internal prototype to avoid an error. */
16292 /* We use char because int might match the return type of a gcc2
16293 builtin and then its argument prototype would still apply. */
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16305 (eval $ac_link) 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -z "$ac_c_werror_flag"
16313 || test ! -s conftest.err'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest$ac_exeext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_search_dlopen="none required"
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16331 rm -f conftest.err conftest.$ac_objext \
16332 conftest$ac_exeext conftest.$ac_ext
16333 if test "$ac_cv_search_dlopen" = no; then
16334 for ac_lib in dl; do
16335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16343 /* Override any gcc2 internal prototype to avoid an error. */
16347 /* We use char because int might match the return type of a gcc2
16348 builtin and then its argument prototype would still apply. */
16358 rm -f conftest.$ac_objext conftest$ac_exeext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16360 (eval $ac_link) 2>conftest.er1
16362 grep -v '^ *+' conftest.er1 >conftest.err
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest$ac_exeext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_cv_search_dlopen="-l$ac_lib"
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16387 rm -f conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16391 LIBS=$ac_func_search_save_LIBS
16393 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16394 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16395 if test "$ac_cv_search_dlopen" != no; then
16396 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16402 # ------------------------------------------
16403 # Where to place working dir
16404 # ------------------------------------------
16405 working_dir=`eval echo ${prefix}/var/bacula/working`
16407 # Check whether --with-working-dir or --without-working-dir was given.
16408 if test "${with_working_dir+set}" = set; then
16409 withval="$with_working_dir"
16411 if test "x$withval" != "xno" ; then
16412 working_dir=$withval
16420 # ------------------------------------------------------------------
16421 # If the user has not set archivedir, we set our default as /tmp
16422 # ------------------------------------------------------------------
16425 # Check whether --with-archivedir or --without-archivedir was given.
16426 if test "${with_archivedir+set}" = set; then
16427 withval="$with_archivedir"
16429 if test "x$withval" != "xno" ; then
16430 archivedir=$withval
16440 # ------------------------------------------
16441 # Where to place scriptdir (script files)
16442 # ------------------------------------------
16443 scriptdir=`eval echo ${sysconfdir}`
16445 # Check whether --with-scriptdir or --without-scriptdir was given.
16446 if test "${with_scriptdir+set}" = set; then
16447 withval="$with_scriptdir"
16449 if test "x$withval" != "xno" ; then
16459 # ------------------------------------------
16460 # Where to send dump email
16461 # ------------------------------------------
16462 dump_email=root@localhost
16464 # Check whether --with-dump-email or --without-dump-email was given.
16465 if test "${with_dump_email+set}" = set; then
16466 withval="$with_dump_email"
16468 if test "x$withval" != "xno" ; then
16469 dump_email=$withval
16477 # ------------------------------------------
16478 # Where to send job email
16479 # ------------------------------------------
16480 job_email=root@localhost
16482 # Check whether --with-job-email or --without-job-email was given.
16483 if test "${with_job_email+set}" = set; then
16484 withval="$with_job_email"
16486 if test "x$withval" != "xno" ; then
16495 # ------------------------------------------
16496 # Where to find smtp host
16497 # ------------------------------------------
16498 smtp_host=localhost
16500 # Check whether --with-smtp_host or --without-smtp_host was given.
16501 if test "${with_smtp_host+set}" = set; then
16502 withval="$with_smtp_host"
16504 if test "x$withval" != "xno" ; then
16514 # ------------------------------------
16515 # Where to place pid files
16516 # ------------------------------------
16519 # Check whether --with-pid-dir or --without-pid-dir was given.
16520 if test "${with_pid_dir+set}" = set; then
16521 withval="$with_pid_dir"
16523 if test "x$withval" != "xno" ; then
16530 cat >>confdefs.h <<_ACEOF
16531 #define _PATH_BACULA_PIDDIR "$piddir"
16537 # ------------------------------------
16538 # Where to place subsys "lock file"
16539 # ------------------------------------
16540 subsysdir=/var/run/subsys
16541 if test -d /var/run/subsys; then
16542 subsysdir=/var/run/subsys
16543 elif test -d /var/lock/subsys; then
16544 subsysdir=/var/lock/subsys
16546 subsysdir=/var/run/subsys
16549 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16550 if test "${with_subsys_dir+set}" = set; then
16551 withval="$with_subsys_dir"
16553 if test "x$withval" != "xno" ; then
16564 # ------------------------------------
16565 # Where to start assigning ports
16566 # ------------------------------------
16569 # Check whether --with-baseport or --without-baseport was given.
16570 if test "${with_baseport+set}" = set; then
16571 withval="$with_baseport"
16573 if test "x$withval" != "xno" ; then
16581 dir_port=`expr $baseport`
16582 fd_port=`expr $baseport + 1`
16583 sd_port=`expr $fd_port + 1`
16590 # ------------------------------------------
16591 # Generate passwords
16592 # ------------------------------------------
16595 # Check whether --with-dir-password or --without-dir-password was given.
16596 if test "${with_dir_password+set}" = set; then
16597 withval="$with_dir_password"
16599 if test "x$withval" != "xno" ; then
16600 dir_password=$withval
16606 if test "x$dir_password" = "x" ; then
16607 if test "x$OPENSSL" = "xnone" ; then
16608 key=`autoconf/randpass 33`
16610 key=`openssl rand -base64 33`
16617 # Check whether --with-fd-password or --without-fd-password was given.
16618 if test "${with_fd_password+set}" = set; then
16619 withval="$with_fd_password"
16621 if test "x$withval" != "xno" ; then
16622 fd_password=$withval
16628 if test "x$fd_password" = "x" ; then
16629 if test "x$OPENSSL" = "xnone" ; then
16630 key=`autoconf/randpass 37`
16632 key=`openssl rand -base64 33`
16639 # Check whether --with-sd-password or --without-sd-password was given.
16640 if test "${with_sd_password+set}" = set; then
16641 withval="$with_sd_password"
16643 if test "x$withval" != "xno" ; then
16644 sd_password=$withval
16650 if test "x$sd_password" = "x" ; then
16651 if test "x$OPENSSL" = "xnone" ; then
16652 key=`autoconf/randpass 41`
16654 key=`openssl rand -base64 33`
16661 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16662 if test "${with_mon_dir_password+set}" = set; then
16663 withval="$with_mon_dir_password"
16665 if test "x$withval" != "xno" ; then
16666 mon_dir_password=$withval
16672 if test "x$mon_dir_password" = "x" ; then
16673 if test "x$OPENSSL" = "xnone" ; then
16674 key=`autoconf/randpass 33`
16676 key=`openssl rand -base64 33`
16678 mon_dir_password=$key
16683 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16684 if test "${with_mon_fd_password+set}" = set; then
16685 withval="$with_mon_fd_password"
16687 if test "x$withval" != "xno" ; then
16688 mon_fd_password=$withval
16694 if test "x$mon_fd_password" = "x" ; then
16695 if test "x$OPENSSL" = "xnone" ; then
16696 key=`autoconf/randpass 37`
16698 key=`openssl rand -base64 33`
16700 mon_fd_password=$key
16705 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16706 if test "${with_mon_sd_password+set}" = set; then
16707 withval="$with_mon_sd_password"
16709 if test "x$withval" != "xno" ; then
16710 mon_sd_password=$withval
16716 if test "x$mon_sd_password" = "x" ; then
16717 if test "x$OPENSSL" = "xnone" ; then
16718 key=`autoconf/randpass 41`
16720 key=`openssl rand -base64 33`
16722 mon_sd_password=$key
16733 # Pickup any database name
16737 # Check whether --with-db_name or --without-db_name was given.
16738 if test "${with_db_name+set}" = set; then
16739 withval="$with_db_name"
16741 if test "x$withval" != "x" ; then
16751 # Check whether --with-db_user or --without-db_user was given.
16752 if test "${with_db_user+set}" = set; then
16753 withval="$with_db_user"
16755 if test "x$withval" != "x" ; then
16765 # Handle users and groups for each daemon
16769 # Check whether --with-dir_user or --without-dir_user was given.
16770 if test "${with_dir_user+set}" = set; then
16771 withval="$with_dir_user"
16773 if test "x$withval" != "x" ; then
16782 # Check whether --with-dir_group or --without-dir_group was given.
16783 if test "${with_dir_group+set}" = set; then
16784 withval="$with_dir_group"
16786 if test "x$withval" != "x" ; then
16795 # Check whether --with-sd_user or --without-sd_user was given.
16796 if test "${with_sd_user+set}" = set; then
16797 withval="$with_sd_user"
16799 if test "x$withval" != "x" ; then
16808 # Check whether --with-sd_group or --without-sd_group was given.
16809 if test "${with_sd_group+set}" = set; then
16810 withval="$with_sd_group"
16812 if test "x$withval" != "x" ; then
16821 # Check whether --with-fd_user or --without-fd_user was given.
16822 if test "${with_fd_user+set}" = set; then
16823 withval="$with_fd_user"
16825 if test "x$withval" != "x" ; then
16834 # Check whether --with-fd_group or --without-fd_group was given.
16835 if test "${with_fd_group+set}" = set; then
16836 withval="$with_fd_group"
16838 if test "x$withval" != "x" ; then
16853 # allow setting default executable permissions
16857 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16858 if test "${with_sbin_perm+set}" = set; then
16859 withval="$with_sbin_perm"
16861 if test "x$withval" != "x" ; then
16870 # ------------------------------------------------
16871 # Bacula check for various SQL database engines
16872 # ------------------------------------------------
16876 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16877 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16879 # Check whether --with-postgresql or --without-postgresql was given.
16880 if test "${with_postgresql+set}" = set; then
16881 withval="$with_postgresql"
16883 if test "$withval" != "no"; then
16884 if test "$db_found" = "yes"; then
16885 echo "$as_me:$LINENO: result: error" >&5
16886 echo "${ECHO_T}error" >&6
16887 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16888 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16889 { (exit 1); exit 1; }; };
16891 if test "$withval" = "yes"; then
16892 PG_CONFIG=`which pg_config`
16893 if test -n "$PG_CONFIG";then
16894 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16895 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16896 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16897 elif test -f /usr/local/include/libpq-fe.h; then
16898 POSTGRESQL_INCDIR=/usr/local/include
16899 if test -d /usr/local/lib64; then
16900 POSTGRESQL_LIBDIR=/usr/local/lib64
16902 POSTGRESQL_LIBDIR=/usr/local/lib
16904 POSTGRESQL_BINDIR=/usr/local/bin
16905 elif test -f /usr/include/libpq-fe.h; then
16906 POSTGRESQL_INCDIR=/usr/include
16907 if test -d /usr/lib64; then
16908 POSTGRESQL_LIBDIR=/usr/lib64
16910 POSTGRESQL_LIBDIR=/usr/lib
16912 POSTGRESQL_BINDIR=/usr/bin
16913 elif test -f /usr/include/pgsql/libpq-fe.h; then
16914 POSTGRESQL_INCDIR=/usr/include/pgsql
16915 if test -d /usr/lib64/pgsql; then
16916 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16918 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16920 POSTGRESQL_BINDIR=/usr/bin
16921 elif test -f /usr/include/postgresql/libpq-fe.h; then
16922 POSTGRESQL_INCDIR=/usr/include/postgresql
16923 if test -d /usr/lib64/postgresql; then
16924 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16926 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16928 POSTGRESQL_BINDIR=/usr/bin
16930 echo "$as_me:$LINENO: result: no" >&5
16931 echo "${ECHO_T}no" >&6
16932 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16933 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16934 { (exit 1); exit 1; }; }
16936 elif test -f $withval/include/libpq-fe.h; then
16937 POSTGRESQL_INCDIR=$withval/include
16938 POSTGRESQL_LIBDIR=$withval/lib
16939 POSTGRESQL_BINDIR=$withval/bin
16940 elif test -f $withval/include/postgresql/libpq-fe.h; then
16941 POSTGRESQL_INCDIR=$withval/include/postgresql
16942 if test -d $withval/lib64; then
16943 POSTGRESQL_LIBDIR=$withval/lib64
16945 POSTGRESQL_LIBDIR=$withval/lib
16947 POSTGRESQL_BINDIR=$withval/bin
16949 echo "$as_me:$LINENO: result: no" >&5
16950 echo "${ECHO_T}no" >&6
16951 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16952 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16953 { (exit 1); exit 1; }; }
16955 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16956 echo "$as_me:$LINENO: checking for crypt" >&5
16957 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16958 if test "${ac_cv_func_crypt+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16969 #define crypt innocuous_crypt
16971 /* System header to define __stub macros and hopefully few prototypes,
16972 which can conflict with char crypt (); below.
16973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974 <limits.h> exists even on freestanding compilers. */
16977 # include <limits.h>
16979 # include <assert.h>
16984 /* Override any gcc2 internal prototype to avoid an error. */
16989 /* We use char because int might match the return type of a gcc2
16990 builtin and then its argument prototype would still apply. */
16992 /* The GNU C library defines this for functions which it implements
16993 to always fail with ENOSYS. Some functions are actually named
16994 something starting with __ and the normal name is an alias. */
16995 #if defined (__stub_crypt) || defined (__stub___crypt)
16998 char (*f) () = crypt;
17012 rm -f conftest.$ac_objext conftest$ac_exeext
17013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17014 (eval $ac_link) 2>conftest.er1
17016 grep -v '^ *+' conftest.er1 >conftest.err
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } &&
17021 { ac_try='test -z "$ac_c_werror_flag"
17022 || test ! -s conftest.err'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_cv_func_crypt=yes
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_func_crypt=no
17041 rm -f conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17044 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17045 echo "${ECHO_T}$ac_cv_func_crypt" >&6
17046 if test $ac_cv_func_crypt = yes; then
17049 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17050 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
17051 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-lcrypt $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17063 /* Override any gcc2 internal prototype to avoid an error. */
17067 /* We use char because int might match the return type of a gcc2
17068 builtin and then its argument prototype would still apply. */
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080 (eval $ac_link) 2>conftest.er1
17082 grep -v '^ *+' conftest.er1 >conftest.err
17084 cat conftest.err >&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } &&
17087 { ac_try='test -z "$ac_c_werror_flag"
17088 || test ! -s conftest.err'
17089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090 (eval $ac_try) 2>&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; } &&
17094 { ac_try='test -s conftest$ac_exeext'
17095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096 (eval $ac_try) 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 ac_cv_lib_crypt_crypt=yes
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ac_cv_lib_crypt_crypt=no
17107 rm -f conftest.err conftest.$ac_objext \
17108 conftest$ac_exeext conftest.$ac_ext
17109 LIBS=$ac_check_lib_save_LIBS
17111 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17112 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17113 if test $ac_cv_lib_crypt_crypt = yes; then
17114 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17119 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17120 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17121 SQL_BINDIR=$POSTGRESQL_BINDIR
17122 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17124 cat >>confdefs.h <<\_ACEOF
17125 #define HAVE_POSTGRESQL 1
17128 echo "$as_me:$LINENO: result: yes" >&5
17129 echo "${ECHO_T}yes" >&6
17131 support_postgresql=yes
17135 echo "$as_me:$LINENO: result: no" >&5
17136 echo "${ECHO_T}no" >&6
17141 echo "$as_me:$LINENO: result: no" >&5
17142 echo "${ECHO_T}no" >&6
17153 echo "$as_me:$LINENO: checking for MySQL support" >&5
17154 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17156 # Check whether --with-mysql or --without-mysql was given.
17157 if test "${with_mysql+set}" = set; then
17158 withval="$with_mysql"
17160 if test "$withval" != "no"; then
17161 if test "$withval" = "yes"; then
17162 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17163 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17164 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17165 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17166 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17168 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17170 MYSQL_BINDIR=/usr/local/mysql/bin
17171 elif test -f /usr/include/mysql/mysql.h; then
17172 MYSQL_INCDIR=/usr/include/mysql
17173 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17174 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17175 MYSQL_LIBDIR=/usr/lib64/mysql
17176 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17177 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17178 MYSQL_LIBDIR=/usr/lib/mysql
17180 MYSQL_LIBDIR=/usr/lib
17182 MYSQL_BINDIR=/usr/bin
17183 elif test -f /usr/include/mysql.h; then
17184 MYSQL_INCDIR=/usr/include
17185 if test -f /usr/lib64/libmysqlclient_r.a \
17186 -o -f /usr/lib64/libmysqlclient_r.so; then
17187 MYSQL_LIBDIR=/usr/lib64
17189 MYSQL_LIBDIR=/usr/lib
17191 MYSQL_BINDIR=/usr/bin
17192 elif test -f /usr/local/include/mysql/mysql.h; then
17193 MYSQL_INCDIR=/usr/local/include/mysql
17194 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17195 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17196 MYSQL_LIBDIR=/usr/local/lib64/mysql
17198 MYSQL_LIBDIR=/usr/local/lib/mysql
17200 MYSQL_BINDIR=/usr/local/bin
17201 elif test -f /usr/local/include/mysql.h; then
17202 MYSQL_INCDIR=/usr/local/include
17203 if test -f /usr/local/lib64/libmysqlclient_r.a \
17204 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17205 MYSQL_LIBDIR=/usr/local/lib64
17207 MYSQL_LIBDIR=/usr/local/lib
17209 MYSQL_BINDIR=/usr/local/bin
17211 echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6
17213 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17214 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17215 { (exit 1); exit 1; }; }
17218 if test -f $withval/include/mysql/mysql.h; then
17219 MYSQL_INCDIR=$withval/include/mysql
17220 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17221 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17222 MYSQL_LIBDIR=$withval/lib64/mysql
17224 MYSQL_LIBDIR=$withval/lib/mysql
17226 if test -f $withval/lib/libmysqlclient_r.so; then
17227 MYSQL_LIBDIR=$withval/lib
17230 MYSQL_BINDIR=$withval/bin
17231 elif test -f $withval/include/mysql.h; then
17232 MYSQL_INCDIR=$withval/include
17233 if test -f $withval/lib64/libmysqlclient_r.a \
17234 -o -f $withval/lib64/libmysqlclient_r.so; then
17235 MYSQL_LIBDIR=$withval/lib64
17237 MYSQL_LIBDIR=$withval/lib
17239 MYSQL_BINDIR=$withval/bin
17241 echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17243 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17244 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17245 { (exit 1); exit 1; }; }
17248 SQL_INCLUDE=-I$MYSQL_INCDIR
17249 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17250 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17251 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17252 cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_THREAD_SAFE_MYSQL 1
17257 SQL_BINDIR=$MYSQL_BINDIR
17258 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17260 cat >>confdefs.h <<\_ACEOF
17261 #define HAVE_MYSQL 1
17264 echo "$as_me:$LINENO: result: yes" >&5
17265 echo "${ECHO_T}yes" >&6
17272 echo "$as_me:$LINENO: result: no" >&5
17273 echo "${ECHO_T}no" >&6
17280 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17281 if test "${with_embedded_mysql+set}" = set; then
17282 withval="$with_embedded_mysql"
17284 if test "$withval" != "no"; then
17285 if test "$withval" = "yes"; then
17286 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17287 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17288 if test -d /usr/local/mysql/lib64/mysql; then
17289 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17291 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17293 MYSQL_BINDIR=/usr/local/mysql/bin
17294 elif test -f /usr/include/mysql/mysql.h; then
17295 MYSQL_INCDIR=/usr/include/mysql
17296 if test -d /usr/lib64/mysql; then
17297 MYSQL_LIBDIR=/usr/lib64/mysql
17299 MYSQL_LIBDIR=/usr/lib/mysql
17301 MYSQL_BINDIR=/usr/bin
17302 elif test -f /usr/include/mysql.h; then
17303 MYSQL_INCDIR=/usr/include
17304 if test -d /usr/lib64; then
17305 MYSQL_LIBDIR=/usr/lib64
17307 MYSQL_LIBDIR=/usr/lib
17309 MYSQL_BINDIR=/usr/bin
17310 elif test -f /usr/local/include/mysql/mysql.h; then
17311 MYSQL_INCDIR=/usr/local/include/mysql
17312 if test -d /usr/local/lib64/mysql; then
17313 MYSQL_LIBDIR=/usr/local/lib64/mysql
17315 MYSQL_LIBDIR=/usr/local/lib/mysql
17317 MYSQL_BINDIR=/usr/local/bin
17318 elif test -f /usr/local/include/mysql.h; then
17319 MYSQL_INCDIR=/usr/local/include
17320 if test -d /usr/local/lib64; then
17321 MYSQL_LIBDIR=/usr/local/lib64
17323 MYSQL_LIBDIR=/usr/local/lib
17325 MYSQL_BINDIR=/usr/local/bin
17327 echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6
17329 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17330 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17331 { (exit 1); exit 1; }; }
17334 if test -f $withval/include/mysql/mysql.h; then
17335 MYSQL_INCDIR=$withval/include/mysql
17336 if test -d $withval/lib64/mysql; then
17337 MYSQL_LIBDIR=$withval/lib64/mysql
17339 MYSQL_LIBDIR=$withval/lib/mysql
17341 MYSQL_BINDIR=$withval/bin
17342 elif test -f $withval/include/mysql.h; then
17343 MYSQL_INCDIR=$withval/include
17344 if test -d $withval/lib64; then
17345 MYSQL_LIBDIR=$withval/lib64
17347 MYSQL_LIBDIR=$withval/lib
17349 MYSQL_BINDIR=$withval/bin
17351 echo "$as_me:$LINENO: result: no" >&5
17352 echo "${ECHO_T}no" >&6
17353 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17354 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17355 { (exit 1); exit 1; }; }
17358 SQL_INCLUDE=-I$MYSQL_INCDIR
17359 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17360 SQL_BINDIR=$MYSQL_BINDIR
17361 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_MYSQL 1
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_EMBEDDED_MYSQL 1
17371 echo "$as_me:$LINENO: result: yes" >&5
17372 echo "${ECHO_T}yes" >&6
17379 echo "$as_me:$LINENO: result: no" >&5
17380 echo "${ECHO_T}no" >&6
17395 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17396 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17398 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17399 if test "${with_sqlite3+set}" = set; then
17400 withval="$with_sqlite3"
17402 if test "$withval" != "no"; then
17403 if test "$withval" = "yes"; then
17404 if test -f /usr/local/include/sqlite3.h; then
17405 SQLITE_INCDIR=/usr/local/include
17406 if test -d /usr/local/lib64; then
17407 SQLITE_LIBDIR=/usr/local/lib64
17409 SQLITE_LIBDIR=/usr/local/lib
17411 SQLITE_BINDIR=/usr/local/bin
17412 elif test -f /usr/include/sqlite3.h; then
17413 SQLITE_INCDIR=/usr/include
17414 if test -d /usr/lib64; then
17415 SQLITE_LIBDIR=/usr/lib64
17417 SQLITE_LIBDIR=/usr/lib
17419 SQLITE_BINDIR=/usr/bin
17420 elif test -f $prefix/include/sqlite3.h; then
17421 SQLITE_INCDIR=$prefix/include
17422 if test -d $prefix/lib64; then
17423 SQLITE_LIBDIR=$prefix/lib64
17425 SQLITE_LIBDIR=$prefix/lib
17427 SQLITE_BINDIR=$prefix/bin
17429 echo "$as_me:$LINENO: result: no" >&5
17430 echo "${ECHO_T}no" >&6
17431 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17432 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17433 { (exit 1); exit 1; }; }
17436 if test -f $withval/sqlite3.h; then
17437 SQLITE_INCDIR=$withval
17438 SQLITE_LIBDIR=$withval
17439 SQLITE_BINDIR=$withval
17440 elif test -f $withval/include/sqlite3.h; then
17441 SQLITE_INCDIR=$withval/include
17442 if test -d $withval/lib64; then
17443 SQLITE_LIBDIR=$withval/lib64
17445 SQLITE_LIBDIR=$withval/lib
17447 SQLITE_BINDIR=$withval/bin
17449 echo "$as_me:$LINENO: result: no" >&5
17450 echo "${ECHO_T}no" >&6
17451 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17452 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17453 { (exit 1); exit 1; }; }
17456 SQL_INCLUDE=-I$SQLITE_INCDIR
17457 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17458 SQL_BINDIR=$SQLITE_BINDIR
17459 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17461 cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_SQLITE3 1
17465 echo "$as_me:$LINENO: result: yes" >&5
17466 echo "${ECHO_T}yes" >&6
17468 support_sqlite3=yes
17473 echo "$as_me:$LINENO: result: no" >&5
17474 echo "${ECHO_T}no" >&6
17479 echo "$as_me:$LINENO: result: no" >&5
17480 echo "${ECHO_T}no" >&6
17491 echo "$as_me:$LINENO: checking for SQLite support" >&5
17492 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17494 # Check whether --with-sqlite or --without-sqlite was given.
17495 if test "${with_sqlite+set}" = set; then
17496 withval="$with_sqlite"
17498 if test "$withval" != "no"; then
17499 if test "$withval" = "yes"; then
17500 if test -f /usr/local/include/sqlite.h; then
17501 SQLITE_INCDIR=/usr/local/include
17502 if test -d /usr/local/lib64; then
17503 SQLITE_LIBDIR=/usr/local/lib64
17505 SQLITE_LIBDIR=/usr/local/lib
17507 SQLITE_BINDIR=/usr/local/bin
17508 elif test -f /usr/include/sqlite.h; then
17509 SQLITE_INCDIR=/usr/include
17510 if test -d /usr/lib64; then
17511 SQLITE_LIBDIR=/usr/lib64
17513 SQLITE_LIBDIR=/usr/lib
17515 SQLITE_BINDIR=/usr/bin
17516 elif test -f $prefix/include/sqlite.h; then
17517 SQLITE_INCDIR=$prefix/include
17518 if test -d $prefix/lib64; then
17519 SQLITE_LIBDIR=$prefix/lib64
17521 SQLITE_LIBDIR=$prefix/lib
17523 SQLITE_BINDIR=$prefix/bin
17525 echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17527 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17528 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17529 { (exit 1); exit 1; }; }
17532 if test -f $withval/sqlite.h; then
17533 SQLITE_INCDIR=$withval
17534 SQLITE_LIBDIR=$withval
17535 SQLITE_BINDIR=$withval
17536 elif test -f $withval/include/sqlite.h; then
17537 SQLITE_INCDIR=$withval/include
17538 if test -d $withval/lib64; then
17539 SQLITE_LIBDIR=$withval/lib64
17541 SQLITE_LIBDIR=$withval/lib
17543 SQLITE_BINDIR=$withval/bin
17545 echo "$as_me:$LINENO: result: no" >&5
17546 echo "${ECHO_T}no" >&6
17547 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17548 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17549 { (exit 1); exit 1; }; }
17552 SQL_INCLUDE=-I$SQLITE_INCDIR
17553 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17554 SQL_BINDIR=$SQLITE_BINDIR
17555 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17557 cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_SQLITE 1
17561 echo "$as_me:$LINENO: result: yes" >&5
17562 echo "${ECHO_T}yes" >&6
17569 echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6
17575 echo "$as_me:$LINENO: result: no" >&5
17576 echo "${ECHO_T}no" >&6
17588 # -------------------------------------------
17589 # enable batch attribute DB insert (default on)
17590 # -------------------------------------------
17591 support_batch_insert=no
17592 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17594 if test $pkg = 0; then
17595 support_batch_insert=yes
17596 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17597 if test "${enable_batch_insert+set}" = set; then
17598 enableval="$enable_batch_insert"
17599 if test x$enableval = xno; then
17600 support_batch_insert=no
17602 support_batch_insert=yes
17607 # Check if postgresql support batch mode
17608 if test x$DB_TYPE = xpostgresql; then
17609 A=`nm $SQL_LIB | grep PQputCopyData`
17611 if test $pkg != 0; then
17612 support_batch_insert=no
17616 if test $support_batch_insert = yes ; then
17618 cat >>confdefs.h <<\_ACEOF
17619 #define HAVE_BATCH_FILE_INSERT 1
17625 cat >>confdefs.h <<\_ACEOF
17626 #define PROTOTYPES 1
17630 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17631 if test -z "$CCOPTS"; then
17632 CCOPTS='-g -O2 -Wall'
17640 largefile_support="no"
17642 # Check whether --enable-largefile or --disable-largefile was given.
17643 if test "${enable_largefile+set}" = set; then
17644 enableval="$enable_largefile"
17647 if test "$enable_largefile" != no; then
17648 if test -n "$ac_tool_prefix"; then
17649 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17650 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17651 echo "$as_me:$LINENO: checking for $ac_word" >&5
17652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17653 if test "${ac_cv_prog_GETCONF+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 if test -n "$GETCONF"; then
17657 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17663 test -z "$as_dir" && as_dir=.
17664 for ac_exec_ext in '' $ac_executable_extensions; do
17665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17666 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17675 GETCONF=$ac_cv_prog_GETCONF
17676 if test -n "$GETCONF"; then
17677 echo "$as_me:$LINENO: result: $GETCONF" >&5
17678 echo "${ECHO_T}$GETCONF" >&6
17680 echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6
17685 if test -z "$ac_cv_prog_GETCONF"; then
17686 ac_ct_GETCONF=$GETCONF
17687 # Extract the first word of "getconf", so it can be a program name with args.
17688 set dummy getconf; ac_word=$2
17689 echo "$as_me:$LINENO: checking for $ac_word" >&5
17690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17691 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 if test -n "$ac_ct_GETCONF"; then
17695 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698 for as_dir in $PATH
17701 test -z "$as_dir" && as_dir=.
17702 for ac_exec_ext in '' $ac_executable_extensions; do
17703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17704 ac_cv_prog_ac_ct_GETCONF="getconf"
17705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17713 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17714 if test -n "$ac_ct_GETCONF"; then
17715 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17716 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17718 echo "$as_me:$LINENO: result: no" >&5
17719 echo "${ECHO_T}no" >&6
17722 GETCONF=$ac_ct_GETCONF
17724 GETCONF="$ac_cv_prog_GETCONF"
17727 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17728 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17729 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17732 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17733 ac_cv_sys_largefile_CFLAGS=no
17735 # IRIX 6.2 and later require cc -n32.
17736 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17737 if test "$GCC" != yes; then
17738 ac_cv_sys_largefile_CFLAGS=-n32
17741 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17757 rm -f conftest.$ac_objext conftest$ac_exeext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759 (eval $ac_link) 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag"
17767 || test ! -s conftest.err'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest$ac_exeext'
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_sys_largefile_CFLAGS=no
17786 rm -f conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17792 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17793 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17794 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17795 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17796 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17800 ac_cv_sys_largefile_LDFLAGS=no
17804 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17805 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17806 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17807 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17808 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17812 ac_cv_sys_largefile_LIBS=no
17816 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17817 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17819 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17822 -D_FILE_OFFSET_BITS=*) ;;
17823 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17824 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17829 case "$CPPFLAGS" in
17830 '') CPPFLAGS="$ac_flag" ;;
17831 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17839 '') CFLAGS="$ac_flag" ;;
17840 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17845 case "$ac_cv_sys_largefile_LDFLAGS" in
17849 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17850 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17853 case "$ac_cv_sys_largefile_LIBS" in
17857 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17858 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17861 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17862 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17863 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 ac_cv_sys_file_offset_bits=no
17867 ac_cv_sys_file_offset_bits=64
17868 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17870 -D_FILE_OFFSET_BITS)
17871 ac_cv_sys_file_offset_bits=1 ;;
17872 -D_FILE_OFFSET_BITS=*)
17873 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17878 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17879 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17880 if test "$ac_cv_sys_file_offset_bits" != no; then
17882 cat >>confdefs.h <<_ACEOF
17883 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17887 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17888 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17889 if test "${ac_cv_sys_largefile_source+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17892 ac_cv_sys_largefile_source=no
17893 ac_cv_sys_largefile_source=1
17894 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17896 -D_LARGEFILE_SOURCE)
17897 ac_cv_sys_largefile_source=1 ;;
17898 -D_LARGEFILE_SOURCE=*)
17899 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17904 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17905 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17906 if test "$ac_cv_sys_largefile_source" != no; then
17908 cat >>confdefs.h <<_ACEOF
17909 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17913 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17914 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17915 if test "${ac_cv_sys_large_files+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 ac_cv_sys_large_files=no
17919 ac_cv_sys_large_files=1
17920 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17923 ac_cv_sys_large_files=1 ;;
17925 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17930 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17931 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17932 if test "$ac_cv_sys_large_files" != no; then
17934 cat >>confdefs.h <<_ACEOF
17935 #define _LARGE_FILES $ac_cv_sys_large_files
17943 echo "$as_me:$LINENO: checking for X" >&5
17944 echo $ECHO_N "checking for X... $ECHO_C" >&6
17947 # Check whether --with-x or --without-x was given.
17948 if test "${with_x+set}" = set; then
17952 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17953 if test "x$with_x" = xno; then
17954 # The user explicitly disabled X.
17957 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17958 # Both variables are already set.
17961 if test "${ac_cv_have_x+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 # One or both of the vars are not set, and there is no cached value.
17965 ac_x_includes=no ac_x_libraries=no
17966 rm -fr conftest.dir
17967 if mkdir conftest.dir; then
17969 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17970 cat >Imakefile <<'_ACEOF'
17972 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17978 for ac_extension in a so sl; do
17979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17980 test -f $ac_im_libdir/libX11.$ac_extension; then
17981 ac_im_usrlibdir=$ac_im_libdir; break
17984 # Screen out bogus values from the imake configuration. They are
17985 # bogus both because they are the default anyway, and because
17986 # using them would break gcc on systems where it needs fixed includes.
17987 case $ac_im_incroot in
17989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17991 case $ac_im_usrlibdir in
17992 /usr/lib | /lib) ;;
17993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17997 rm -fr conftest.dir
18000 # Standard set of common directories for X headers.
18001 # Check X11 before X11Rn because it is often a symlink to the current release.
18013 /usr/local/X11/include
18014 /usr/local/X11R6/include
18015 /usr/local/X11R5/include
18016 /usr/local/X11R4/include
18018 /usr/local/include/X11
18019 /usr/local/include/X11R6
18020 /usr/local/include/X11R5
18021 /usr/local/include/X11R4
18025 /usr/XFree86/include/X11
18029 /usr/unsupported/include
18030 /usr/athena/include
18031 /usr/local/x11r5/include
18032 /usr/lpp/Xamples/include
18034 /usr/openwin/include
18035 /usr/openwin/share/include'
18037 if test "$ac_x_includes" = no; then
18038 # Guess where to find include files, by looking for Xlib.h.
18039 # First, try using that file with no special directory specified.
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 #include <X11/Xlib.h>
18048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } >/dev/null; then
18056 if test -s conftest.err; then
18057 ac_cpp_err=$ac_c_preproc_warn_flag
18058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18065 if test -z "$ac_cpp_err"; then
18066 # We can compile using X headers with no special include directory.
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 for ac_dir in $ac_x_header_dirs; do
18073 if test -r "$ac_dir/X11/Xlib.h"; then
18074 ac_x_includes=$ac_dir
18079 rm -f conftest.err conftest.$ac_ext
18080 fi # $ac_x_includes = no
18082 if test "$ac_x_libraries" = no; then
18083 # Check for the libraries.
18084 # See if we find them without any special options.
18085 # Don't add to $LIBS permanently.
18088 cat >conftest.$ac_ext <<_ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 #include <X11/Xlib.h>
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105 (eval $ac_link) 2>conftest.er1
18107 grep -v '^ *+' conftest.er1 >conftest.err
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try='test -z "$ac_c_werror_flag"
18113 || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18126 # We can link X programs with no special library path.
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18133 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18135 # Don't even attempt the hair of trying to link an X program!
18136 for ac_extension in a so sl; do
18137 if test -r $ac_dir/libXt.$ac_extension; then
18138 ac_x_libraries=$ac_dir
18144 rm -f conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 fi # $ac_x_libraries = no
18148 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18149 # Didn't find X anywhere. Cache the known absence of X.
18150 ac_cv_have_x="have_x=no"
18152 # Record where we found X for the cache.
18153 ac_cv_have_x="have_x=yes \
18154 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18159 eval "$ac_cv_have_x"
18162 if test "$have_x" != yes; then
18163 echo "$as_me:$LINENO: result: $have_x" >&5
18164 echo "${ECHO_T}$have_x" >&6
18167 # If each of the values was on the command line, it overrides each guess.
18168 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18169 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18170 # Update the cache value to reflect the command line values.
18171 ac_cv_have_x="have_x=yes \
18172 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18173 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18174 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18177 if test "$no_x" = yes; then
18178 # Not all programs may use this symbol, but it does not hurt to define it.
18180 cat >>confdefs.h <<\_ACEOF
18181 #define X_DISPLAY_MISSING 1
18184 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18186 if test -n "$x_includes"; then
18187 X_CFLAGS="$X_CFLAGS -I$x_includes"
18190 # It would also be nice to do this for all -L options, not just this one.
18191 if test -n "$x_libraries"; then
18192 X_LIBS="$X_LIBS -L$x_libraries"
18193 # For Solaris; some versions of Sun CC require a space after -R and
18194 # others require no space. Words are not sufficient . . . .
18195 case `(uname -sr) 2>/dev/null` in
18197 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18198 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18199 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>conftest.er1
18219 grep -v '^ *+' conftest.er1 >conftest.err
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18244 rm -f conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246 if test $ac_R_nospace = yes; then
18247 echo "$as_me:$LINENO: result: no" >&5
18248 echo "${ECHO_T}no" >&6
18249 X_LIBS="$X_LIBS -R$x_libraries"
18251 LIBS="$ac_xsave_LIBS -R $x_libraries"
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269 (eval $ac_link) 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_c_werror_flag"
18277 || test ! -s conftest.err'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; } &&
18283 { ac_try='test -s conftest$ac_exeext'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; }; then
18291 echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18296 rm -f conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18298 if test $ac_R_space = yes; then
18299 echo "$as_me:$LINENO: result: yes" >&5
18300 echo "${ECHO_T}yes" >&6
18301 X_LIBS="$X_LIBS -R $x_libraries"
18303 echo "$as_me:$LINENO: result: neither works" >&5
18304 echo "${ECHO_T}neither works" >&6
18307 LIBS=$ac_xsave_LIBS
18311 # Check for system-dependent libraries X programs must link with.
18312 # Do this before checking for the system-independent R6 libraries
18313 # (-lICE), since we may need -lsocket or whatever for X linking.
18315 if test "$ISC" = yes; then
18316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18318 # Martyn Johnson says this is needed for Ultrix, if the X
18319 # libraries were built with DECnet support. And Karl Berry says
18320 # the Alpha needs dnet_stub (dnet does not exist).
18321 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18322 cat >conftest.$ac_ext <<_ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18329 /* Override any gcc2 internal prototype to avoid an error. */
18333 /* We use char because int might match the return type of a gcc2
18334 builtin and then its argument prototype would still apply. */
18335 char XOpenDisplay ();
18344 rm -f conftest.$ac_objext conftest$ac_exeext
18345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18346 (eval $ac_link) 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -z "$ac_c_werror_flag"
18354 || test ! -s conftest.err'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; } &&
18360 { ac_try='test -s conftest$ac_exeext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18372 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18373 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 ac_check_lib_save_LIBS=$LIBS
18377 LIBS="-ldnet $LIBS"
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18385 /* Override any gcc2 internal prototype to avoid an error. */
18389 /* We use char because int might match the return type of a gcc2
18390 builtin and then its argument prototype would still apply. */
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402 (eval $ac_link) 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_lib_dnet_dnet_ntoa=yes
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18427 ac_cv_lib_dnet_dnet_ntoa=no
18429 rm -f conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18434 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18435 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18439 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18440 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18441 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18442 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-ldnet_stub $LIBS"
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18454 /* Override any gcc2 internal prototype to avoid an error. */
18458 /* We use char because int might match the return type of a gcc2
18459 builtin and then its argument prototype would still apply. */
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18471 (eval $ac_link) 2>conftest.er1
18473 grep -v '^ *+' conftest.er1 >conftest.err
18475 cat conftest.err >&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } &&
18478 { ac_try='test -z "$ac_c_werror_flag"
18479 || test ! -s conftest.err'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest$ac_exeext'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 ac_cv_lib_dnet_stub_dnet_ntoa=no
18498 rm -f conftest.err conftest.$ac_objext \
18499 conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS
18502 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18503 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18504 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18505 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18510 rm -f conftest.err conftest.$ac_objext \
18511 conftest$ac_exeext conftest.$ac_ext
18512 LIBS="$ac_xsave_LIBS"
18514 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18515 # to get the SysV transport functions.
18516 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18518 # The nsl library prevents programs from opening the X display
18519 # on Irix 5.2, according to T.E. Dickey.
18520 # The functions gethostbyname, getservbyname, and inet_addr are
18521 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18522 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18523 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18524 if test "${ac_cv_func_gethostbyname+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 cat >conftest.$ac_ext <<_ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18535 #define gethostbyname innocuous_gethostbyname
18537 /* System header to define __stub macros and hopefully few prototypes,
18538 which can conflict with char gethostbyname (); below.
18539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18540 <limits.h> exists even on freestanding compilers. */
18543 # include <limits.h>
18545 # include <assert.h>
18548 #undef gethostbyname
18550 /* Override any gcc2 internal prototype to avoid an error. */
18555 /* We use char because int might match the return type of a gcc2
18556 builtin and then its argument prototype would still apply. */
18557 char gethostbyname ();
18558 /* The GNU C library defines this for functions which it implements
18559 to always fail with ENOSYS. Some functions are actually named
18560 something starting with __ and the normal name is an alias. */
18561 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18564 char (*f) () = gethostbyname;
18573 return f != gethostbyname;
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18580 (eval $ac_link) 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest$ac_exeext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_func_gethostbyname=yes
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 ac_cv_func_gethostbyname=no
18607 rm -f conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18610 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18611 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18613 if test $ac_cv_func_gethostbyname = no; then
18614 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18615 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18616 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_check_lib_save_LIBS=$LIBS
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18628 /* Override any gcc2 internal prototype to avoid an error. */
18632 /* We use char because int might match the return type of a gcc2
18633 builtin and then its argument prototype would still apply. */
18634 char gethostbyname ();
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } &&
18652 { ac_try='test -z "$ac_c_werror_flag"
18653 || test ! -s conftest.err'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_lib_nsl_gethostbyname=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_lib_nsl_gethostbyname=no
18672 rm -f conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18676 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18677 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18678 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18679 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18682 if test $ac_cv_lib_nsl_gethostbyname = no; then
18683 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18684 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18685 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18688 ac_check_lib_save_LIBS=$LIBS
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18697 /* Override any gcc2 internal prototype to avoid an error. */
18701 /* We use char because int might match the return type of a gcc2
18702 builtin and then its argument prototype would still apply. */
18703 char gethostbyname ();
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || test ! -s conftest.err'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_lib_bsd_gethostbyname=yes
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ac_cv_lib_bsd_gethostbyname=no
18741 rm -f conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18745 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18746 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18747 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18754 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18755 # socket/setsockopt and other routines are undefined under SCO ODT
18756 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18757 # on later versions), says Simon Leinen: it contains gethostby*
18758 # variants that don't use the name server (or something). -lsocket
18759 # must be given before -lnsl if both are needed. We assume that
18760 # if connect needs -lnsl, so does gethostbyname.
18761 echo "$as_me:$LINENO: checking for connect" >&5
18762 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18763 if test "${ac_cv_func_connect+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18772 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18774 #define connect innocuous_connect
18776 /* System header to define __stub macros and hopefully few prototypes,
18777 which can conflict with char connect (); below.
18778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18779 <limits.h> exists even on freestanding compilers. */
18782 # include <limits.h>
18784 # include <assert.h>
18789 /* Override any gcc2 internal prototype to avoid an error. */
18794 /* We use char because int might match the return type of a gcc2
18795 builtin and then its argument prototype would still apply. */
18797 /* The GNU C library defines this for functions which it implements
18798 to always fail with ENOSYS. Some functions are actually named
18799 something starting with __ and the normal name is an alias. */
18800 #if defined (__stub_connect) || defined (__stub___connect)
18803 char (*f) () = connect;
18812 return f != connect;
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18819 (eval $ac_link) 2>conftest.er1
18821 grep -v '^ *+' conftest.er1 >conftest.err
18823 cat conftest.err >&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); } &&
18826 { ac_try='test -z "$ac_c_werror_flag"
18827 || test ! -s conftest.err'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest$ac_exeext'
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 ac_cv_func_connect=yes
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 ac_cv_func_connect=no
18846 rm -f conftest.err conftest.$ac_objext \
18847 conftest$ac_exeext conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18850 echo "${ECHO_T}$ac_cv_func_connect" >&6
18852 if test $ac_cv_func_connect = no; then
18853 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18854 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18855 if test "${ac_cv_lib_socket_connect+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 ac_check_lib_save_LIBS=$LIBS
18859 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 /* Override any gcc2 internal prototype to avoid an error. */
18871 /* We use char because int might match the return type of a gcc2
18872 builtin and then its argument prototype would still apply. */
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>conftest.er1
18886 grep -v '^ *+' conftest.er1 >conftest.err
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_lib_socket_connect=yes
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_cv_lib_socket_connect=no
18911 rm -f conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18915 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18916 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18917 if test $ac_cv_lib_socket_connect = yes; then
18918 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18923 # Guillermo Gomez says -lposix is necessary on A/UX.
18924 echo "$as_me:$LINENO: checking for remove" >&5
18925 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18926 if test "${ac_cv_func_remove+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18937 #define remove innocuous_remove
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char remove (); below.
18941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18942 <limits.h> exists even on freestanding compilers. */
18945 # include <limits.h>
18947 # include <assert.h>
18952 /* Override any gcc2 internal prototype to avoid an error. */
18957 /* We use char because int might match the return type of a gcc2
18958 builtin and then its argument prototype would still apply. */
18960 /* The GNU C library defines this for functions which it implements
18961 to always fail with ENOSYS. Some functions are actually named
18962 something starting with __ and the normal name is an alias. */
18963 #if defined (__stub_remove) || defined (__stub___remove)
18966 char (*f) () = remove;
18975 return f != remove;
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18982 (eval $ac_link) 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_c_werror_flag"
18990 || test ! -s conftest.err'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest$ac_exeext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_cv_func_remove=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_cv_func_remove=no
19009 rm -f conftest.err conftest.$ac_objext \
19010 conftest$ac_exeext conftest.$ac_ext
19012 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19013 echo "${ECHO_T}$ac_cv_func_remove" >&6
19015 if test $ac_cv_func_remove = no; then
19016 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19017 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19018 if test "${ac_cv_lib_posix_remove+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lposix $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any gcc2 internal prototype to avoid an error. */
19034 /* We use char because int might match the return type of a gcc2
19035 builtin and then its argument prototype would still apply. */
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047 (eval $ac_link) 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag"
19055 || test ! -s conftest.err'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; } &&
19061 { ac_try='test -s conftest$ac_exeext'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_posix_remove=yes
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_cv_lib_posix_remove=no
19074 rm -f conftest.err conftest.$ac_objext \
19075 conftest$ac_exeext conftest.$ac_ext
19076 LIBS=$ac_check_lib_save_LIBS
19078 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19079 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19080 if test $ac_cv_lib_posix_remove = yes; then
19081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19086 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19087 echo "$as_me:$LINENO: checking for shmat" >&5
19088 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19089 if test "${ac_cv_func_shmat+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19100 #define shmat innocuous_shmat
19102 /* System header to define __stub macros and hopefully few prototypes,
19103 which can conflict with char shmat (); below.
19104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19105 <limits.h> exists even on freestanding compilers. */
19108 # include <limits.h>
19110 # include <assert.h>
19115 /* Override any gcc2 internal prototype to avoid an error. */
19120 /* We use char because int might match the return type of a gcc2
19121 builtin and then its argument prototype would still apply. */
19123 /* The GNU C library defines this for functions which it implements
19124 to always fail with ENOSYS. Some functions are actually named
19125 something starting with __ and the normal name is an alias. */
19126 #if defined (__stub_shmat) || defined (__stub___shmat)
19129 char (*f) () = shmat;
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19145 (eval $ac_link) 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_c_werror_flag"
19153 || test ! -s conftest.err'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest$ac_exeext'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
19165 ac_cv_func_shmat=yes
19167 echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19170 ac_cv_func_shmat=no
19172 rm -f conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19175 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19176 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19178 if test $ac_cv_func_shmat = no; then
19179 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19180 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19181 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 ac_check_lib_save_LIBS=$LIBS
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19193 /* Override any gcc2 internal prototype to avoid an error. */
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_lib_ipc_shmat=yes
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_cv_lib_ipc_shmat=no
19237 rm -f conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19241 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19242 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19243 if test $ac_cv_lib_ipc_shmat = yes; then
19244 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19250 # Check for libraries that X11R6 Xt/Xaw programs need.
19251 ac_save_LDFLAGS=$LDFLAGS
19252 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19253 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19254 # check for ICE first), but we must link in the order -lSM -lICE or
19255 # we get undefined symbols. So assume we have SM if we have ICE.
19256 # These have to be linked with before -lX11, unlike the other
19257 # libraries we check for below, so use a different variable.
19258 # John Interrante, Karl Berry
19259 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19260 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19261 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 ac_check_lib_save_LIBS=$LIBS
19265 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19273 /* Override any gcc2 internal prototype to avoid an error. */
19277 /* We use char because int might match the return type of a gcc2
19278 builtin and then its argument prototype would still apply. */
19279 char IceConnectionNumber ();
19283 IceConnectionNumber ();
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19290 (eval $ac_link) 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_c_werror_flag"
19298 || test ! -s conftest.err'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest$ac_exeext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_lib_ICE_IceConnectionNumber=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_lib_ICE_IceConnectionNumber=no
19317 rm -f conftest.err conftest.$ac_objext \
19318 conftest$ac_exeext conftest.$ac_ext
19319 LIBS=$ac_check_lib_save_LIBS
19321 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19322 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19323 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19324 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19327 LDFLAGS=$ac_save_LDFLAGS
19395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19397 echo "$as_me:$LINENO: checking for $ac_header" >&5
19398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19405 # Is the header compilable?
19406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 $ac_includes_default
19415 #include <$ac_header>
19417 rm -f conftest.$ac_objext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19419 (eval $ac_compile) 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -z "$ac_c_werror_flag"
19427 || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19439 ac_header_compiler=yes
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19444 ac_header_compiler=no
19446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19448 echo "${ECHO_T}$ac_header_compiler" >&6
19450 # Is the header present?
19451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <$ac_header>
19461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19464 grep -v '^ *+' conftest.er1 >conftest.err
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } >/dev/null; then
19469 if test -s conftest.err; then
19470 ac_cpp_err=$ac_c_preproc_warn_flag
19471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19478 if test -z "$ac_cpp_err"; then
19479 ac_header_preproc=yes
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ac_header_preproc=no
19486 rm -f conftest.err conftest.$ac_ext
19487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19488 echo "${ECHO_T}$ac_header_preproc" >&6
19490 # So? What about this header?
19491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19497 ac_header_preproc=yes
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19514 ## ------------------------------------------ ##
19515 ## Report this to the AC_PACKAGE_NAME lists. ##
19516 ## ------------------------------------------ ##
19519 sed "s/^/$as_me: WARNING: /" >&2
19522 echo "$as_me:$LINENO: checking for $ac_header" >&5
19523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 eval "$as_ac_Header=\$ac_header_preproc"
19529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19534 cat >>confdefs.h <<_ACEOF
19535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19542 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19543 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19544 if test "${ac_cv_header_stdc+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <stdlib.h>
19554 #include <stdarg.h>
19555 #include <string.h>
19566 rm -f conftest.$ac_objext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_c_werror_flag"
19576 || test ! -s conftest.err'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_header_stdc=yes
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_cv_header_stdc=no
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 if test $ac_cv_header_stdc = yes; then
19598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include <string.h>
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "memchr" >/dev/null 2>&1; then
19612 ac_cv_header_stdc=no
19618 if test $ac_cv_header_stdc = yes; then
19619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19620 cat >conftest.$ac_ext <<_ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626 #include <stdlib.h>
19629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19630 $EGREP "free" >/dev/null 2>&1; then
19633 ac_cv_header_stdc=no
19639 if test $ac_cv_header_stdc = yes; then
19640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19641 if test "$cross_compiling" = yes; then
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19651 #if ((' ' & 0x0FF) == 0x020)
19652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19655 # define ISLOWER(c) \
19656 (('a' <= (c) && (c) <= 'i') \
19657 || ('j' <= (c) && (c) <= 'r') \
19658 || ('s' <= (c) && (c) <= 'z'))
19659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19667 for (i = 0; i < 256; i++)
19668 if (XOR (islower (i), ISLOWER (i))
19669 || toupper (i) != TOUPPER (i))
19674 rm -f conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676 (eval $ac_link) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19687 echo "$as_me: program exited with status $ac_status" >&5
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ( exit $ac_status )
19692 ac_cv_header_stdc=no
19694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19698 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19699 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19700 if test $ac_cv_header_stdc = yes; then
19702 cat >>confdefs.h <<\_ACEOF
19703 #define STDC_HEADERS 1
19708 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19709 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19710 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 cat >conftest.$ac_ext <<_ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 #include <sys/types.h>
19723 return makedev(0, 0);
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19730 (eval $ac_link) 2>conftest.er1
19732 grep -v '^ *+' conftest.er1 >conftest.err
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
19737 { ac_try='test -z "$ac_c_werror_flag"
19738 || test ! -s conftest.err'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; } &&
19744 { ac_try='test -s conftest$ac_exeext'
19745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 ac_cv_header_sys_types_h_makedev=yes
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_cv_header_sys_types_h_makedev=no
19757 rm -f conftest.err conftest.$ac_objext \
19758 conftest$ac_exeext conftest.$ac_ext
19761 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19762 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19764 if test $ac_cv_header_sys_types_h_makedev = no; then
19765 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19766 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19767 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19768 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19772 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19774 # Is the header compilable?
19775 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19776 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19777 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 #include <sys/mkdev.h>
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try='test -z "$ac_c_werror_flag"
19796 || test ! -s conftest.err'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; } &&
19802 { ac_try='test -s conftest.$ac_objext'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 ac_header_compiler=yes
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19813 ac_header_compiler=no
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19817 echo "${ECHO_T}$ac_header_compiler" >&6
19819 # Is the header present?
19820 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19821 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #include <sys/mkdev.h>
19830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } >/dev/null; then
19838 if test -s conftest.err; then
19839 ac_cpp_err=$ac_c_preproc_warn_flag
19840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19847 if test -z "$ac_cpp_err"; then
19848 ac_header_preproc=yes
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19853 ac_header_preproc=no
19855 rm -f conftest.err conftest.$ac_ext
19856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19857 echo "${ECHO_T}$ac_header_preproc" >&6
19859 # So? What about this header?
19860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19862 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19863 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19865 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19866 ac_header_preproc=yes
19869 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19870 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19871 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19872 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19874 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19876 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19878 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19880 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19883 ## ------------------------------------------ ##
19884 ## Report this to the AC_PACKAGE_NAME lists. ##
19885 ## ------------------------------------------ ##
19888 sed "s/^/$as_me: WARNING: /" >&2
19891 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19892 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19893 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19898 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19899 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19902 if test $ac_cv_header_sys_mkdev_h = yes; then
19904 cat >>confdefs.h <<\_ACEOF
19905 #define MAJOR_IN_MKDEV 1
19912 if test $ac_cv_header_sys_mkdev_h = no; then
19913 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19914 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19915 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19916 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19920 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19922 # Is the header compilable?
19923 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19924 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19932 #include <sys/sysmacros.h>
19934 rm -f conftest.$ac_objext
19935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19936 (eval $ac_compile) 2>conftest.er1
19938 grep -v '^ *+' conftest.er1 >conftest.err
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } &&
19943 { ac_try='test -z "$ac_c_werror_flag"
19944 || test ! -s conftest.err'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest.$ac_objext'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_header_compiler=yes
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_header_compiler=no
19963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19965 echo "${ECHO_T}$ac_header_compiler" >&6
19967 # Is the header present?
19968 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19969 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 #include <sys/sysmacros.h>
19978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19981 grep -v '^ *+' conftest.er1 >conftest.err
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } >/dev/null; then
19986 if test -s conftest.err; then
19987 ac_cpp_err=$ac_c_preproc_warn_flag
19988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19995 if test -z "$ac_cpp_err"; then
19996 ac_header_preproc=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_header_preproc=no
20003 rm -f conftest.err conftest.$ac_ext
20004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20005 echo "${ECHO_T}$ac_header_preproc" >&6
20007 # So? What about this header?
20008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20010 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20011 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20013 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20014 ac_header_preproc=yes
20017 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20018 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20019 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20020 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20021 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20022 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20023 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20024 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20025 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20026 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20028 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20031 ## ------------------------------------------ ##
20032 ## Report this to the AC_PACKAGE_NAME lists. ##
20033 ## ------------------------------------------ ##
20036 sed "s/^/$as_me: WARNING: /" >&2
20039 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20040 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20041 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20046 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20047 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20050 if test $ac_cv_header_sys_sysmacros_h = yes; then
20052 cat >>confdefs.h <<\_ACEOF
20053 #define MAJOR_IN_SYSMACROS 1
20067 ac_header_dirent=no
20068 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20069 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20070 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20071 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 #include <sys/types.h>
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 eval "$as_ac_Header=yes"
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 eval "$as_ac_Header=no"
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20127 cat >>confdefs.h <<_ACEOF
20128 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20131 ac_header_dirent=$ac_hdr; break
20135 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20136 if test $ac_header_dirent = dirent.h; then
20137 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20138 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20139 if test "${ac_cv_search_opendir+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 ac_func_search_save_LIBS=$LIBS
20143 ac_cv_search_opendir=no
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 /* Override any gcc2 internal prototype to avoid an error. */
20155 /* We use char because int might match the return type of a gcc2
20156 builtin and then its argument prototype would still apply. */
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>conftest.er1
20170 grep -v '^ *+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_search_opendir="none required"
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20194 rm -f conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20196 if test "$ac_cv_search_opendir" = no; then
20197 for ac_lib in dir; do
20198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20206 /* Override any gcc2 internal prototype to avoid an error. */
20210 /* We use char because int might match the return type of a gcc2
20211 builtin and then its argument prototype would still apply. */
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20223 (eval $ac_link) 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag"
20231 || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_search_opendir="-l$ac_lib"
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20250 rm -f conftest.err conftest.$ac_objext \
20251 conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_func_search_save_LIBS
20256 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20257 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20258 if test "$ac_cv_search_opendir" != no; then
20259 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20264 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20266 if test "${ac_cv_search_opendir+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 ac_func_search_save_LIBS=$LIBS
20270 ac_cv_search_opendir=no
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20278 /* Override any gcc2 internal prototype to avoid an error. */
20282 /* We use char because int might match the return type of a gcc2
20283 builtin and then its argument prototype would still apply. */
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20295 (eval $ac_link) 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_c_werror_flag"
20303 || test ! -s conftest.err'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } &&
20309 { ac_try='test -s conftest$ac_exeext'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315 ac_cv_search_opendir="none required"
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20321 rm -f conftest.err conftest.$ac_objext \
20322 conftest$ac_exeext conftest.$ac_ext
20323 if test "$ac_cv_search_opendir" = no; then
20324 for ac_lib in x; do
20325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 /* Override any gcc2 internal prototype to avoid an error. */
20337 /* We use char because int might match the return type of a gcc2
20338 builtin and then its argument prototype would still apply. */
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20350 (eval $ac_link) 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest$ac_exeext'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 ac_cv_search_opendir="-l$ac_lib"
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20377 rm -f conftest.err conftest.$ac_objext \
20378 conftest$ac_exeext conftest.$ac_ext
20381 LIBS=$ac_func_search_save_LIBS
20383 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20384 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20385 if test "$ac_cv_search_opendir" != no; then
20386 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20392 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20393 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20394 if test "${ac_cv_header_stat_broken+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 #include <sys/types.h>
20404 #include <sys/stat.h>
20406 #if defined(S_ISBLK) && defined(S_IFDIR)
20407 # if S_ISBLK (S_IFDIR)
20412 #if defined(S_ISBLK) && defined(S_IFCHR)
20413 # if S_ISBLK (S_IFCHR)
20418 #if defined(S_ISLNK) && defined(S_IFREG)
20419 # if S_ISLNK (S_IFREG)
20424 #if defined(S_ISSOCK) && defined(S_IFREG)
20425 # if S_ISSOCK (S_IFREG)
20431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20432 $EGREP "You lose" >/dev/null 2>&1; then
20433 ac_cv_header_stat_broken=yes
20435 ac_cv_header_stat_broken=no
20440 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20441 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20442 if test $ac_cv_header_stat_broken = yes; then
20444 cat >>confdefs.h <<\_ACEOF
20445 #define STAT_MACROS_BROKEN 1
20450 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20451 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20452 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <sys/types.h>
20462 #include <sys/wait.h>
20463 #ifndef WEXITSTATUS
20464 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20480 rm -f conftest.$ac_objext
20481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482 (eval $ac_compile) 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag"
20490 || test ! -s conftest.err'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } &&
20496 { ac_try='test -s conftest.$ac_objext'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_cv_header_sys_wait_h=yes
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ac_cv_header_sys_wait_h=no
20509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20511 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20512 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20513 if test $ac_cv_header_sys_wait_h = yes; then
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_SYS_WAIT_H 1
20521 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20522 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20523 if test "${ac_cv_header_time+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 cat >conftest.$ac_ext <<_ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 #include <sys/types.h>
20533 #include <sys/time.h>
20539 if ((struct tm *) 0)
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547 (eval $ac_compile) 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag"
20555 || test ! -s conftest.err'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20567 ac_cv_header_time=yes
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ac_cv_header_time=no
20574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20577 echo "${ECHO_T}$ac_cv_header_time" >&6
20578 if test $ac_cv_header_time = yes; then
20580 cat >>confdefs.h <<\_ACEOF
20581 #define TIME_WITH_SYS_TIME 1
20587 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 $ac_includes_default
20602 static struct stat ac_aggr;
20603 if (ac_aggr.st_blksize)
20609 rm -f conftest.$ac_objext
20610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611 (eval $ac_compile) 2>conftest.er1
20613 grep -v '^ *+' conftest.er1 >conftest.err
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -z "$ac_c_werror_flag"
20619 || test ! -s conftest.err'
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_member_struct_stat_st_blksize=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 $ac_includes_default
20646 static struct stat ac_aggr;
20647 if (sizeof ac_aggr.st_blksize)
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
20662 { ac_try='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_cv_member_struct_stat_st_blksize=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_member_struct_stat_st_blksize=no
20682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20686 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20687 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20688 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_ST_BLKSIZE 1
20702 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20703 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20704 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 $ac_includes_default
20717 static struct stat ac_aggr;
20718 if (ac_aggr.st_blocks)
20724 rm -f conftest.$ac_objext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726 (eval $ac_compile) 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag"
20734 || test ! -s conftest.err'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_cv_member_struct_stat_st_blocks=yes
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757 $ac_includes_default
20761 static struct stat ac_aggr;
20762 if (sizeof ac_aggr.st_blocks)
20768 rm -f conftest.$ac_objext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20770 (eval $ac_compile) 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
20777 { ac_try='test -z "$ac_c_werror_flag"
20778 || test ! -s conftest.err'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; }; then
20790 ac_cv_member_struct_stat_st_blocks=yes
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_cv_member_struct_stat_st_blocks=no
20797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20802 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20803 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_ST_BLOCKS 1
20816 "fileblocks.$ac_objext" | \
20817 *" fileblocks.$ac_objext" | \
20818 "fileblocks.$ac_objext "* | \
20819 *" fileblocks.$ac_objext "* ) ;;
20820 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20826 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20828 if test "${ac_cv_struct_tm+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 #include <sys/types.h>
20843 struct tm *tp; tp->tm_sec;
20848 rm -f conftest.$ac_objext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20850 (eval $ac_compile) 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -z "$ac_c_werror_flag"
20858 || test ! -s conftest.err'
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); }; } &&
20864 { ac_try='test -s conftest.$ac_objext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_cv_struct_tm=time.h
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_cv_struct_tm=sys/time.h
20877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20879 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20880 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20881 if test $ac_cv_struct_tm = sys/time.h; then
20883 cat >>confdefs.h <<\_ACEOF
20884 #define TM_IN_SYS_TIME 1
20889 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20890 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20891 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <sys/types.h>
20901 #include <$ac_cv_struct_tm>
20907 static struct tm ac_aggr;
20908 if (ac_aggr.tm_zone)
20914 rm -f conftest.$ac_objext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20916 (eval $ac_compile) 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_c_werror_flag"
20924 || test ! -s conftest.err'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest.$ac_objext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ac_cv_member_struct_tm_tm_zone=yes
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <sys/types.h>
20948 #include <$ac_cv_struct_tm>
20954 static struct tm ac_aggr;
20955 if (sizeof ac_aggr.tm_zone)
20961 rm -f conftest.$ac_objext
20962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20963 (eval $ac_compile) 2>conftest.er1
20965 grep -v '^ *+' conftest.er1 >conftest.err
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } &&
20970 { ac_try='test -z "$ac_c_werror_flag"
20971 || test ! -s conftest.err'
20972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; } &&
20977 { ac_try='test -s conftest.$ac_objext'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983 ac_cv_member_struct_tm_tm_zone=yes
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_cv_member_struct_tm_tm_zone=no
20990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20995 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20996 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20998 cat >>confdefs.h <<_ACEOF
20999 #define HAVE_STRUCT_TM_TM_ZONE 1
21005 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21007 cat >>confdefs.h <<\_ACEOF
21008 #define HAVE_TM_ZONE 1
21012 echo "$as_me:$LINENO: checking for tzname" >&5
21013 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21014 if test "${ac_cv_var_tzname+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 cat >conftest.$ac_ext <<_ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21024 #ifndef tzname /* For SGI. */
21025 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21036 rm -f conftest.$ac_objext conftest$ac_exeext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21038 (eval $ac_link) 2>conftest.er1
21040 grep -v '^ *+' conftest.er1 >conftest.err
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
21045 { ac_try='test -z "$ac_c_werror_flag"
21046 || test ! -s conftest.err'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest$ac_exeext'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_var_tzname=yes
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_cv_var_tzname=no
21065 rm -f conftest.err conftest.$ac_objext \
21066 conftest$ac_exeext conftest.$ac_ext
21068 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21069 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21070 if test $ac_cv_var_tzname = yes; then
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_TZNAME 1
21080 echo "$as_me:$LINENO: checking for utime.h" >&5
21081 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
21082 if test "${ba_cv_header_utime_h+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21092 #include <sys/types.h>
21102 rm -f conftest.$ac_objext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104 (eval $ac_compile) 2>conftest.er1
21106 grep -v '^ *+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -z "$ac_c_werror_flag"
21112 || test ! -s conftest.err'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest.$ac_objext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ba_cv_header_utime_h=yes
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 ba_cv_header_utime_h=no
21131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21134 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21135 test $ba_cv_header_utime_h = yes &&
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_UTIME_H 1
21141 echo "$as_me:$LINENO: checking for socklen_t" >&5
21142 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21143 if test "${ba_cv_header_socklen_t+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21153 #include <sys/types.h>
21154 #include <sys/socket.h>
21163 rm -f conftest.$ac_objext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165 (eval $ac_compile) 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 ba_cv_header_socklen_t=yes
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21190 ba_cv_header_socklen_t=no
21192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21194 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21195 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21196 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_SOCKLEN_T 1
21201 echo "$as_me:$LINENO: checking for bigendian" >&5
21202 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21203 if test "${ba_cv_bigendian+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 if test "$cross_compiling" = yes; then
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21215 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21217 rm -f conftest$ac_exeext
21218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21219 (eval $ac_link) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ba_cv_bigendian=yes
21230 echo "$as_me: program exited with status $ac_status" >&5
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ( exit $ac_status )
21237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21240 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21241 echo "${ECHO_T}$ba_cv_bigendian" >&6
21242 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21243 #define HAVE_BIGENDIAN 1
21248 ac_cpp='$CXXCPP $CPPFLAGS'
21249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21254 echo "$as_me:$LINENO: checking for typeof" >&5
21255 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21256 if test "${ba_cv_have_typeof+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 if test "$cross_compiling" = yes; then
21260 ba_cv_have_typeof=no
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 main(){char *a = 0; a = (typeof a)a;}
21270 rm -f conftest$ac_exeext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21272 (eval $ac_link) 2>&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ba_cv_have_typeof=yes
21283 echo "$as_me: program exited with status $ac_status" >&5
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ( exit $ac_status )
21288 ba_cv_have_typeof=no
21290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21293 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21294 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21295 test $ba_cv_have_typeof = yes &&
21296 cat >>confdefs.h <<\_ACEOF
21297 #define HAVE_TYPEOF 1
21301 ac_cpp='$CPP $CPPFLAGS'
21302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21307 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21308 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21309 if test "${ac_cv_c_const+set}" = set; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21312 cat >conftest.$ac_ext <<_ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21322 /* FIXME: Include the comments suggested by Paul. */
21323 #ifndef __cplusplus
21324 /* Ultrix mips cc rejects this. */
21325 typedef int charset[2];
21327 /* SunOS 4.1.1 cc rejects this. */
21328 char const *const *ccp;
21330 /* NEC SVR4.0.2 mips cc rejects this. */
21331 struct point {int x, y;};
21332 static struct point const zero = {0,0};
21333 /* AIX XL C 1.02.0.0 rejects this.
21334 It does not let you subtract one const X* pointer from another in
21335 an arm of an if-expression whose if-part is not a constant
21337 const char *g = "string";
21338 ccp = &g + (g ? g-g : 0);
21339 /* HPUX 7.0 cc rejects these. */
21342 ccp = (char const *const *) p;
21343 { /* SCO 3.2v4 cc rejects this. */
21345 char const *s = 0 ? (char *) 0 : (char const *) 0;
21349 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21350 int x[] = {25, 17};
21351 const int *foo = &x[0];
21354 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21355 typedef const int *iptr;
21359 { /* AIX XL C 1.02.0.0 rejects this saying
21360 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21361 struct s { int j; const int *ap[3]; };
21362 struct s *b; b->j = 5;
21364 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21365 const int foo = 10;
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375 (eval $ac_compile) 2>conftest.er1
21377 grep -v '^ *+' conftest.er1 >conftest.err
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21404 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21405 echo "${ECHO_T}$ac_cv_c_const" >&6
21406 if test $ac_cv_c_const = no; then
21408 cat >>confdefs.h <<\_ACEOF
21416 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21417 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21419 # The order of these tests is important.
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 #include <sys/statvfs.h>
21427 #include <sys/fstyp.h>
21429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } >/dev/null; then
21437 if test -s conftest.err; then
21438 ac_cpp_err=$ac_c_preproc_warn_flag
21439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21446 if test -z "$ac_cpp_err"; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define FSTYPE_STATVFS 1
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21457 rm -f conftest.err conftest.$ac_ext
21458 if test $fstype = no; then
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 #include <sys/statfs.h>
21466 #include <sys/fstyp.h>
21468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21471 grep -v '^ *+' conftest.er1 >conftest.err
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } >/dev/null; then
21476 if test -s conftest.err; then
21477 ac_cpp_err=$ac_c_preproc_warn_flag
21478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21485 if test -z "$ac_cpp_err"; then
21486 cat >>confdefs.h <<\_ACEOF
21487 #define FSTYPE_USG_STATFS 1
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21496 rm -f conftest.err conftest.$ac_ext
21498 if test $fstype = no; then
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 <sys/statfs.h>
21506 #include <sys/vmount.h>
21508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21511 grep -v '^ *+' conftest.er1 >conftest.err
21513 cat conftest.err >&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } >/dev/null; then
21516 if test -s conftest.err; then
21517 ac_cpp_err=$ac_c_preproc_warn_flag
21518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21525 if test -z "$ac_cpp_err"; then
21526 cat >>confdefs.h <<\_ACEOF
21527 #define FSTYPE_AIX_STATFS 1
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21536 rm -f conftest.err conftest.$ac_ext
21538 if test $fstype = no; then
21539 cat >conftest.$ac_ext <<_ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 #include <mntent.h>
21547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21550 grep -v '^ *+' conftest.er1 >conftest.err
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } >/dev/null; then
21555 if test -s conftest.err; then
21556 ac_cpp_err=$ac_c_preproc_warn_flag
21557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21564 if test -z "$ac_cpp_err"; then
21565 cat >>confdefs.h <<\_ACEOF
21566 #define FSTYPE_MNTENT 1
21570 echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21575 rm -f conftest.err conftest.$ac_ext
21577 if test $fstype = no; then
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <sys/mount.h>
21587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21588 $EGREP "f_type;" >/dev/null 2>&1; then
21589 cat >>confdefs.h <<\_ACEOF
21590 #define FSTYPE_STATFS 1
21597 if test $fstype = no; then
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 #include <sys/mount.h>
21605 #include <sys/fs_types.h>
21607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } >/dev/null; then
21615 if test -s conftest.err; then
21616 ac_cpp_err=$ac_c_preproc_warn_flag
21617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21624 if test -z "$ac_cpp_err"; then
21625 cat >>confdefs.h <<\_ACEOF
21626 #define FSTYPE_GETMNT 1
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21635 rm -f conftest.err conftest.$ac_ext
21637 echo "$as_me:$LINENO: result: $fstype" >&5
21638 echo "${ECHO_T}$fstype" >&6
21640 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21641 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21642 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21643 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21644 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21647 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21649 # Is the header compilable?
21650 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21651 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 #include <sys/statvfs.h>
21661 rm -f conftest.$ac_objext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21663 (eval $ac_compile) 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } &&
21670 { ac_try='test -z "$ac_c_werror_flag"
21671 || test ! -s conftest.err'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; } &&
21677 { ac_try='test -s conftest.$ac_objext'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }; then
21683 ac_header_compiler=yes
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_header_compiler=no
21690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21692 echo "${ECHO_T}$ac_header_compiler" >&6
21694 # Is the header present?
21695 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21696 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <sys/statvfs.h>
21705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } >/dev/null; then
21713 if test -s conftest.err; then
21714 ac_cpp_err=$ac_c_preproc_warn_flag
21715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21722 if test -z "$ac_cpp_err"; then
21723 ac_header_preproc=yes
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 ac_header_preproc=no
21730 rm -f conftest.err conftest.$ac_ext
21731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21732 echo "${ECHO_T}$ac_header_preproc" >&6
21734 # So? What about this header?
21735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21737 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21738 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21740 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21741 ac_header_preproc=yes
21744 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21745 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21747 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21749 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21751 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21753 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21755 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21758 ## ------------------------------------------ ##
21759 ## Report this to the AC_PACKAGE_NAME lists. ##
21760 ## ------------------------------------------ ##
21763 sed "s/^/$as_me: WARNING: /" >&2
21766 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21767 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21768 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21773 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21774 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21777 if test $ac_cv_header_sys_statvfs_h = yes; then
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_SYS_STATVFS_H 1
21787 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21788 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21789 if test "${ac_cv_type_signal+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798 #include <sys/types.h>
21799 #include <signal.h>
21804 extern "C" void (*signal (int, void (*)(int)))(int);
21806 void (*signal ()) ();
21817 rm -f conftest.$ac_objext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21819 (eval $ac_compile) 2>conftest.er1
21821 grep -v '^ *+' conftest.er1 >conftest.err
21823 cat conftest.err >&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } &&
21826 { ac_try='test -z "$ac_c_werror_flag"
21827 || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_cv_type_signal=void
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_cv_type_signal=int
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21848 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21849 echo "${ECHO_T}$ac_cv_type_signal" >&6
21851 cat >>confdefs.h <<_ACEOF
21852 #define RETSIGTYPE $ac_cv_type_signal
21857 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21858 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21859 if test "${bash_cv_signal_vintage+set}" = set; then
21860 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <signal.h>
21875 struct sigaction sa;
21876 sigemptyset(&ss); sigsuspend(&ss);
21877 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21878 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21886 (eval $ac_link) 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
21893 { ac_try='test -z "$ac_c_werror_flag"
21894 || test ! -s conftest.err'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; } &&
21900 { ac_try='test -s conftest$ac_exeext'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; }; then
21906 bash_cv_signal_vintage="posix"
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 #include <signal.h>
21923 int mask = sigmask(SIGINT);
21924 sigsetmask(mask); sigblock(mask); sigpause(mask);
21930 rm -f conftest.$ac_objext conftest$ac_exeext
21931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21932 (eval $ac_link) 2>conftest.er1
21934 grep -v '^ *+' conftest.er1 >conftest.err
21936 cat conftest.err >&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } &&
21939 { ac_try='test -z "$ac_c_werror_flag"
21940 || test ! -s conftest.err'
21941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942 (eval $ac_try) 2>&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); }; } &&
21946 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21952 bash_cv_signal_vintage="4.2bsd"
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21958 cat >conftest.$ac_ext <<_ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21965 #include <signal.h>
21966 RETSIGTYPE foo() { }
21971 int mask = sigmask(SIGINT);
21972 sigset(SIGINT, foo); sigrelse(SIGINT);
21973 sighold(SIGINT); sigpause(SIGINT);
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21981 (eval $ac_link) 2>conftest.er1
21983 grep -v '^ *+' conftest.er1 >conftest.err
21985 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
21988 { ac_try='test -z "$ac_c_werror_flag"
21989 || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest$ac_exeext'
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 bash_cv_signal_vintage="svr3"
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 bash_cv_signal_vintage="v7"
22009 rm -f conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22013 rm -f conftest.err conftest.$ac_objext \
22014 conftest$ac_exeext conftest.$ac_ext
22017 rm -f conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22022 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22023 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22024 if test "$bash_cv_signal_vintage" = "posix"; then
22025 cat >>confdefs.h <<\_ACEOF
22026 #define HAVE_POSIX_SIGNALS 1
22029 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22030 cat >>confdefs.h <<\_ACEOF
22031 #define HAVE_BSD_SIGNALS 1
22034 elif test "$bash_cv_signal_vintage" = "svr3"; then
22035 cat >>confdefs.h <<\_ACEOF
22036 #define HAVE_USG_SIGHOLD 1
22041 echo "$as_me:$LINENO: checking for mode_t" >&5
22042 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22043 if test "${ac_cv_type_mode_t+set}" = set; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22046 cat >conftest.$ac_ext <<_ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 $ac_includes_default
22058 if (sizeof (mode_t))
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066 (eval $ac_compile) 2>conftest.er1
22068 grep -v '^ *+' conftest.er1 >conftest.err
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } &&
22073 { ac_try='test -z "$ac_c_werror_flag"
22074 || test ! -s conftest.err'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; } &&
22080 { ac_try='test -s conftest.$ac_objext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 ac_cv_type_mode_t=yes
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_cv_type_mode_t=no
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22095 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22097 if test $ac_cv_type_mode_t = yes; then
22101 cat >>confdefs.h <<_ACEOF
22107 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22108 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22109 if test "${ac_cv_type_uid_t+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <sys/types.h>
22121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22122 $EGREP "uid_t" >/dev/null 2>&1; then
22123 ac_cv_type_uid_t=yes
22125 ac_cv_type_uid_t=no
22130 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22131 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22132 if test $ac_cv_type_uid_t = no; then
22134 cat >>confdefs.h <<\_ACEOF
22139 cat >>confdefs.h <<\_ACEOF
22145 echo "$as_me:$LINENO: checking for size_t" >&5
22146 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22147 if test "${ac_cv_type_size_t+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22156 $ac_includes_default
22162 if (sizeof (size_t))
22168 rm -f conftest.$ac_objext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22170 (eval $ac_compile) 2>conftest.er1
22172 grep -v '^ *+' conftest.er1 >conftest.err
22174 cat conftest.err >&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); } &&
22177 { ac_try='test -z "$ac_c_werror_flag"
22178 || test ! -s conftest.err'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; } &&
22184 { ac_try='test -s conftest.$ac_objext'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; }; then
22190 ac_cv_type_size_t=yes
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_cv_type_size_t=no
22197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22199 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22200 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22201 if test $ac_cv_type_size_t = yes; then
22205 cat >>confdefs.h <<_ACEOF
22206 #define size_t unsigned
22211 echo "$as_me:$LINENO: checking for pid_t" >&5
22212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22213 if test "${ac_cv_type_pid_t+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 cat >conftest.$ac_ext <<_ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 $ac_includes_default
22228 if (sizeof (pid_t))
22234 rm -f conftest.$ac_objext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22236 (eval $ac_compile) 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
22243 { ac_try='test -z "$ac_c_werror_flag"
22244 || test ! -s conftest.err'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest.$ac_objext'
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; }; then
22256 ac_cv_type_pid_t=yes
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ac_cv_type_pid_t=no
22263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22265 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22267 if test $ac_cv_type_pid_t = yes; then
22271 cat >>confdefs.h <<_ACEOF
22277 echo "$as_me:$LINENO: checking for off_t" >&5
22278 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22279 if test "${ac_cv_type_off_t+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 cat >conftest.$ac_ext <<_ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288 $ac_includes_default
22294 if (sizeof (off_t))
22300 rm -f conftest.$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302 (eval $ac_compile) 2>conftest.er1
22304 grep -v '^ *+' conftest.er1 >conftest.err
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
22309 { ac_try='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest.$ac_objext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_type_off_t=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_cv_type_off_t=no
22329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22331 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22332 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22333 if test $ac_cv_type_off_t = yes; then
22337 cat >>confdefs.h <<_ACEOF
22343 echo "$as_me:$LINENO: checking for ino_t" >&5
22344 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22345 if test "${ac_cv_type_ino_t+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 cat >conftest.$ac_ext <<_ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 $ac_includes_default
22360 if (sizeof (ino_t))
22366 rm -f conftest.$ac_objext
22367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22368 (eval $ac_compile) 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
22375 { ac_try='test -z "$ac_c_werror_flag"
22376 || test ! -s conftest.err'
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; } &&
22382 { ac_try='test -s conftest.$ac_objext'
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; }; then
22388 ac_cv_type_ino_t=yes
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22393 ac_cv_type_ino_t=no
22395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22397 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22398 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22399 if test $ac_cv_type_ino_t = yes; then
22403 cat >>confdefs.h <<_ACEOF
22404 #define ino_t unsigned long
22409 echo "$as_me:$LINENO: checking for dev_t" >&5
22410 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22411 if test "${ac_cv_type_dev_t+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 $ac_includes_default
22426 if (sizeof (dev_t))
22432 rm -f conftest.$ac_objext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434 (eval $ac_compile) 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -z "$ac_c_werror_flag"
22442 || test ! -s conftest.err'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; } &&
22448 { ac_try='test -s conftest.$ac_objext'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 ac_cv_type_dev_t=yes
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ac_cv_type_dev_t=no
22461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22463 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22464 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22465 if test $ac_cv_type_dev_t = yes; then
22469 cat >>confdefs.h <<_ACEOF
22470 #define dev_t unsigned long
22475 echo "$as_me:$LINENO: checking for daddr_t" >&5
22476 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22477 if test "${ac_cv_type_daddr_t+set}" = set; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 $ac_includes_default
22492 if (sizeof (daddr_t))
22498 rm -f conftest.$ac_objext
22499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22500 (eval $ac_compile) 2>conftest.er1
22502 grep -v '^ *+' conftest.er1 >conftest.err
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } &&
22507 { ac_try='test -z "$ac_c_werror_flag"
22508 || test ! -s conftest.err'
22509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510 (eval $ac_try) 2>&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; } &&
22514 { ac_try='test -s conftest.$ac_objext'
22515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516 (eval $ac_try) 2>&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); }; }; then
22520 ac_cv_type_daddr_t=yes
22522 echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22525 ac_cv_type_daddr_t=no
22527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22529 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22530 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22531 if test $ac_cv_type_daddr_t = yes; then
22535 cat >>confdefs.h <<_ACEOF
22536 #define daddr_t long
22541 echo "$as_me:$LINENO: checking for major_t" >&5
22542 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22543 if test "${ac_cv_type_major_t+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 $ac_includes_default
22558 if (sizeof (major_t))
22564 rm -f conftest.$ac_objext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22566 (eval $ac_compile) 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
22573 { ac_try='test -z "$ac_c_werror_flag"
22574 || test ! -s conftest.err'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest.$ac_objext'
22581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 ac_cv_type_major_t=yes
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 ac_cv_type_major_t=no
22593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22595 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22596 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22597 if test $ac_cv_type_major_t = yes; then
22601 cat >>confdefs.h <<_ACEOF
22602 #define major_t int
22607 echo "$as_me:$LINENO: checking for minor_t" >&5
22608 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22609 if test "${ac_cv_type_minor_t+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22612 cat >conftest.$ac_ext <<_ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h. */
22618 $ac_includes_default
22624 if (sizeof (minor_t))
22630 rm -f conftest.$ac_objext
22631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22632 (eval $ac_compile) 2>conftest.er1
22634 grep -v '^ *+' conftest.er1 >conftest.err
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); } &&
22639 { ac_try='test -z "$ac_c_werror_flag"
22640 || test ! -s conftest.err'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; } &&
22646 { ac_try='test -s conftest.$ac_objext'
22647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648 (eval $ac_try) 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); }; }; then
22652 ac_cv_type_minor_t=yes
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_cv_type_minor_t=no
22659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22661 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22662 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22663 if test $ac_cv_type_minor_t = yes; then
22667 cat >>confdefs.h <<_ACEOF
22668 #define minor_t int
22673 echo "$as_me:$LINENO: checking for ssize_t" >&5
22674 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22675 if test "${ac_cv_type_ssize_t+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 $ac_includes_default
22690 if (sizeof (ssize_t))
22696 rm -f conftest.$ac_objext
22697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22698 (eval $ac_compile) 2>conftest.er1
22700 grep -v '^ *+' conftest.er1 >conftest.err
22702 cat conftest.err >&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); } &&
22705 { ac_try='test -z "$ac_c_werror_flag"
22706 || test ! -s conftest.err'
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; } &&
22712 { ac_try='test -s conftest.$ac_objext'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; }; then
22718 ac_cv_type_ssize_t=yes
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 ac_cv_type_ssize_t=no
22725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22727 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22728 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22729 if test $ac_cv_type_ssize_t = yes; then
22733 cat >>confdefs.h <<_ACEOF
22734 #define ssize_t int
22739 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22740 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22741 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 cat >conftest.$ac_ext <<_ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22750 $ac_includes_default
22754 static struct stat ac_aggr;
22755 if (ac_aggr.st_blocks)
22761 rm -f conftest.$ac_objext
22762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22763 (eval $ac_compile) 2>conftest.er1
22765 grep -v '^ *+' conftest.er1 >conftest.err
22767 cat conftest.err >&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); } &&
22770 { ac_try='test -z "$ac_c_werror_flag"
22771 || test ! -s conftest.err'
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; } &&
22777 { ac_try='test -s conftest.$ac_objext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_member_struct_stat_st_blocks=yes
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 cat >conftest.$ac_ext <<_ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h. */
22794 $ac_includes_default
22798 static struct stat ac_aggr;
22799 if (sizeof ac_aggr.st_blocks)
22805 rm -f conftest.$ac_objext
22806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807 (eval $ac_compile) 2>conftest.er1
22809 grep -v '^ *+' conftest.er1 >conftest.err
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } &&
22814 { ac_try='test -z "$ac_c_werror_flag"
22815 || test ! -s conftest.err'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; } &&
22821 { ac_try='test -s conftest.$ac_objext'
22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823 (eval $ac_try) 2>&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; }; then
22827 ac_cv_member_struct_stat_st_blocks=yes
22829 echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_cv_member_struct_stat_st_blocks=no
22834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22838 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22839 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22840 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22842 cat >>confdefs.h <<_ACEOF
22843 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_ST_BLOCKS 1
22853 "fileblocks.$ac_objext" | \
22854 *" fileblocks.$ac_objext" | \
22855 "fileblocks.$ac_objext "* | \
22856 *" fileblocks.$ac_objext "* ) ;;
22857 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22864 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22865 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22866 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22869 cat >conftest.$ac_ext <<_ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22879 static struct stat ac_aggr;
22880 if (ac_aggr.st_rdev)
22886 rm -f conftest.$ac_objext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22888 (eval $ac_compile) 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } &&
22895 { ac_try='test -z "$ac_c_werror_flag"
22896 || test ! -s conftest.err'
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; } &&
22902 { ac_try='test -s conftest.$ac_objext'
22903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904 (eval $ac_try) 2>&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; }; then
22908 ac_cv_member_struct_stat_st_rdev=yes
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22913 cat >conftest.$ac_ext <<_ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h. */
22919 $ac_includes_default
22923 static struct stat ac_aggr;
22924 if (sizeof ac_aggr.st_rdev)
22930 rm -f conftest.$ac_objext
22931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22932 (eval $ac_compile) 2>conftest.er1
22934 grep -v '^ *+' conftest.er1 >conftest.err
22936 cat conftest.err >&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } &&
22939 { ac_try='test -z "$ac_c_werror_flag"
22940 || test ! -s conftest.err'
22941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942 (eval $ac_try) 2>&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); }; } &&
22946 { ac_try='test -s conftest.$ac_objext'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }; then
22952 ac_cv_member_struct_stat_st_rdev=yes
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 ac_cv_member_struct_stat_st_rdev=no
22959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22963 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22964 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22965 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22967 cat >>confdefs.h <<_ACEOF
22968 #define HAVE_STRUCT_STAT_ST_RDEV 1
22972 cat >>confdefs.h <<\_ACEOF
22973 #define HAVE_ST_RDEV 1
22979 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22980 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22981 if test "${ac_cv_struct_tm+set}" = set; then
22982 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 #include <sys/types.h>
22996 struct tm *tp; tp->tm_sec;
23001 rm -f conftest.$ac_objext
23002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23003 (eval $ac_compile) 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
23010 { ac_try='test -z "$ac_c_werror_flag"
23011 || test ! -s conftest.err'
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; } &&
23017 { ac_try='test -s conftest.$ac_objext'
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; }; then
23023 ac_cv_struct_tm=time.h
23025 echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23028 ac_cv_struct_tm=sys/time.h
23030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23032 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23033 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23034 if test $ac_cv_struct_tm = sys/time.h; then
23036 cat >>confdefs.h <<\_ACEOF
23037 #define TM_IN_SYS_TIME 1
23042 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23044 if test "${ac_cv_c_const+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23057 /* FIXME: Include the comments suggested by Paul. */
23058 #ifndef __cplusplus
23059 /* Ultrix mips cc rejects this. */
23060 typedef int charset[2];
23062 /* SunOS 4.1.1 cc rejects this. */
23063 char const *const *ccp;
23065 /* NEC SVR4.0.2 mips cc rejects this. */
23066 struct point {int x, y;};
23067 static struct point const zero = {0,0};
23068 /* AIX XL C 1.02.0.0 rejects this.
23069 It does not let you subtract one const X* pointer from another in
23070 an arm of an if-expression whose if-part is not a constant
23072 const char *g = "string";
23073 ccp = &g + (g ? g-g : 0);
23074 /* HPUX 7.0 cc rejects these. */
23077 ccp = (char const *const *) p;
23078 { /* SCO 3.2v4 cc rejects this. */
23080 char const *s = 0 ? (char *) 0 : (char const *) 0;
23084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23085 int x[] = {25, 17};
23086 const int *foo = &x[0];
23089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23090 typedef const int *iptr;
23094 { /* AIX XL C 1.02.0.0 rejects this saying
23095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23096 struct s { int j; const int *ap[3]; };
23097 struct s *b; b->j = 5;
23099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23100 const int foo = 10;
23108 rm -f conftest.$ac_objext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110 (eval $ac_compile) 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } &&
23117 { ac_try='test -z "$ac_c_werror_flag"
23118 || test ! -s conftest.err'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; } &&
23124 { ac_try='test -s conftest.$ac_objext'
23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126 (eval $ac_try) 2>&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); }; }; then
23132 echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23139 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23140 echo "${ECHO_T}$ac_cv_c_const" >&6
23141 if test $ac_cv_c_const = no; then
23143 cat >>confdefs.h <<\_ACEOF
23151 echo "$as_me:$LINENO: checking for char" >&5
23152 echo $ECHO_N "checking for char... $ECHO_C" >&6
23153 if test "${ac_cv_type_char+set}" = set; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23156 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162 $ac_includes_default
23174 rm -f conftest.$ac_objext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23176 (eval $ac_compile) 2>conftest.er1
23178 grep -v '^ *+' conftest.er1 >conftest.err
23180 cat conftest.err >&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } &&
23183 { ac_try='test -z "$ac_c_werror_flag"
23184 || test ! -s conftest.err'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; } &&
23190 { ac_try='test -s conftest.$ac_objext'
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; }; then
23196 ac_cv_type_char=yes
23198 echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23205 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23206 echo "${ECHO_T}$ac_cv_type_char" >&6
23208 echo "$as_me:$LINENO: checking size of char" >&5
23209 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23210 if test "${ac_cv_sizeof_char+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 if test "$ac_cv_type_char" = yes; then
23214 # The cast to unsigned long works around a bug in the HP C Compiler
23215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23217 # This bug is HP SR number 8606223364.
23218 if test "$cross_compiling" = yes; then
23219 # Depending upon the size, compute the lo and hi bounds.
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 $ac_includes_default
23230 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23237 rm -f conftest.$ac_objext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23239 (eval $ac_compile) 2>conftest.er1
23241 grep -v '^ *+' conftest.er1 >conftest.err
23243 cat conftest.err >&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } &&
23246 { ac_try='test -z "$ac_c_werror_flag"
23247 || test ! -s conftest.err'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; } &&
23253 { ac_try='test -s conftest.$ac_objext'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23261 cat >conftest.$ac_ext <<_ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h. */
23267 $ac_includes_default
23271 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23278 rm -f conftest.$ac_objext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23280 (eval $ac_compile) 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } &&
23287 { ac_try='test -z "$ac_c_werror_flag"
23288 || test ! -s conftest.err'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest.$ac_objext'
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 ac_hi=$ac_mid; break
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_lo=`expr $ac_mid + 1`
23306 if test $ac_lo -le $ac_mid; then
23310 ac_mid=`expr 2 '*' $ac_mid + 1`
23312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 cat >conftest.$ac_ext <<_ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 $ac_includes_default
23328 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23335 rm -f conftest.$ac_objext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23337 (eval $ac_compile) 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } &&
23344 { ac_try='test -z "$ac_c_werror_flag"
23345 || test ! -s conftest.err'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest.$ac_objext'
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23359 cat >conftest.$ac_ext <<_ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 $ac_includes_default
23369 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23376 rm -f conftest.$ac_objext
23377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23378 (eval $ac_compile) 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } &&
23385 { ac_try='test -z "$ac_c_werror_flag"
23386 || test ! -s conftest.err'
23387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388 (eval $ac_try) 2>&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest.$ac_objext'
23393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394 (eval $ac_try) 2>&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); }; }; then
23398 ac_lo=$ac_mid; break
23400 echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ac_hi=`expr '(' $ac_mid ')' - 1`
23404 if test $ac_mid -le $ac_hi; then
23408 ac_mid=`expr 2 '*' $ac_mid`
23410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23413 echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421 # Binary search between lo and hi bounds.
23422 while test "x$ac_lo" != "x$ac_hi"; do
23423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23424 cat >conftest.$ac_ext <<_ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23434 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23441 rm -f conftest.$ac_objext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23443 (eval $ac_compile) 2>conftest.er1
23445 grep -v '^ *+' conftest.er1 >conftest.err
23447 cat conftest.err >&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } &&
23450 { ac_try='test -z "$ac_c_werror_flag"
23451 || test ! -s conftest.err'
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; } &&
23457 { ac_try='test -s conftest.$ac_objext'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }; then
23465 echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23468 ac_lo=`expr '(' $ac_mid ')' + 1`
23470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23473 ?*) ac_cv_sizeof_char=$ac_lo;;
23474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23475 See \`config.log' for more details." >&5
23476 echo "$as_me: error: cannot compute sizeof (char), 77
23477 See \`config.log' for more details." >&2;}
23478 { (exit 1); exit 1; }; } ;;
23481 if test "$cross_compiling" = yes; then
23482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23483 See \`config.log' for more details." >&5
23484 echo "$as_me: error: cannot run test program while cross compiling
23485 See \`config.log' for more details." >&2;}
23486 { (exit 1); exit 1; }; }
23488 cat >conftest.$ac_ext <<_ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 $ac_includes_default
23495 long longval () { return (long) (sizeof (char)); }
23496 unsigned long ulongval () { return (long) (sizeof (char)); }
23498 #include <stdlib.h>
23503 FILE *f = fopen ("conftest.val", "w");
23506 if (((long) (sizeof (char))) < 0)
23508 long i = longval ();
23509 if (i != ((long) (sizeof (char))))
23511 fprintf (f, "%ld\n", i);
23515 unsigned long i = ulongval ();
23516 if (i != ((long) (sizeof (char))))
23518 fprintf (f, "%lu\n", i);
23520 exit (ferror (f) || fclose (f) != 0);
23526 rm -f conftest$ac_exeext
23527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23528 (eval $ac_link) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; }; then
23537 ac_cv_sizeof_char=`cat conftest.val`
23539 echo "$as_me: program exited with status $ac_status" >&5
23540 echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23543 ( exit $ac_status )
23544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23545 See \`config.log' for more details." >&5
23546 echo "$as_me: error: cannot compute sizeof (char), 77
23547 See \`config.log' for more details." >&2;}
23548 { (exit 1); exit 1; }; }
23550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23555 ac_cv_sizeof_char=0
23558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23559 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23560 cat >>confdefs.h <<_ACEOF
23561 #define SIZEOF_CHAR $ac_cv_sizeof_char
23565 echo "$as_me:$LINENO: checking for short int" >&5
23566 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23567 if test "${ac_cv_type_short_int+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23576 $ac_includes_default
23580 if ((short int *) 0)
23582 if (sizeof (short int))
23588 rm -f conftest.$ac_objext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23590 (eval $ac_compile) 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } &&
23597 { ac_try='test -z "$ac_c_werror_flag"
23598 || test ! -s conftest.err'
23599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; } &&
23604 { ac_try='test -s conftest.$ac_objext'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; }; then
23610 ac_cv_type_short_int=yes
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_cv_type_short_int=no
23617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23619 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23620 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23622 echo "$as_me:$LINENO: checking size of short int" >&5
23623 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23624 if test "${ac_cv_sizeof_short_int+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23627 if test "$ac_cv_type_short_int" = yes; then
23628 # The cast to unsigned long works around a bug in the HP C Compiler
23629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23631 # This bug is HP SR number 8606223364.
23632 if test "$cross_compiling" = yes; then
23633 # Depending upon the size, compute the lo and hi bounds.
23634 cat >conftest.$ac_ext <<_ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23640 $ac_includes_default
23644 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23651 rm -f conftest.$ac_objext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23653 (eval $ac_compile) 2>conftest.er1
23655 grep -v '^ *+' conftest.er1 >conftest.err
23657 cat conftest.err >&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); } &&
23660 { ac_try='test -z "$ac_c_werror_flag"
23661 || test ! -s conftest.err'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; } &&
23667 { ac_try='test -s conftest.$ac_objext'
23668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669 (eval $ac_try) 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); }; }; then
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23685 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23692 rm -f conftest.$ac_objext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23694 (eval $ac_compile) 2>conftest.er1
23696 grep -v '^ *+' conftest.er1 >conftest.err
23698 cat conftest.err >&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } &&
23701 { ac_try='test -z "$ac_c_werror_flag"
23702 || test ! -s conftest.err'
23703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704 (eval $ac_try) 2>&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); }; } &&
23708 { ac_try='test -s conftest.$ac_objext'
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; }; then
23714 ac_hi=$ac_mid; break
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 ac_lo=`expr $ac_mid + 1`
23720 if test $ac_lo -le $ac_mid; then
23724 ac_mid=`expr 2 '*' $ac_mid + 1`
23726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 $ac_includes_default
23742 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23749 rm -f conftest.$ac_objext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23751 (eval $ac_compile) 2>conftest.er1
23753 grep -v '^ *+' conftest.er1 >conftest.err
23755 cat conftest.err >&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } &&
23758 { ac_try='test -z "$ac_c_werror_flag"
23759 || test ! -s conftest.err'
23760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761 (eval $ac_try) 2>&5
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); }; } &&
23765 { ac_try='test -s conftest.$ac_objext'
23766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767 (eval $ac_try) 2>&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); }; }; then
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 $ac_includes_default
23783 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23790 rm -f conftest.$ac_objext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23792 (eval $ac_compile) 2>conftest.er1
23794 grep -v '^ *+' conftest.er1 >conftest.err
23796 cat conftest.err >&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
23799 { ac_try='test -z "$ac_c_werror_flag"
23800 || test ! -s conftest.err'
23801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802 (eval $ac_try) 2>&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; } &&
23806 { ac_try='test -s conftest.$ac_objext'
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_lo=$ac_mid; break
23814 echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23817 ac_hi=`expr '(' $ac_mid ')' - 1`
23818 if test $ac_mid -le $ac_hi; then
23822 ac_mid=`expr 2 '*' $ac_mid`
23824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23835 # Binary search between lo and hi bounds.
23836 while test "x$ac_lo" != "x$ac_hi"; do
23837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23838 cat >conftest.$ac_ext <<_ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h. */
23844 $ac_includes_default
23848 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23855 rm -f conftest.$ac_objext
23856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23857 (eval $ac_compile) 2>conftest.er1
23859 grep -v '^ *+' conftest.er1 >conftest.err
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } &&
23864 { ac_try='test -z "$ac_c_werror_flag"
23865 || test ! -s conftest.err'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; } &&
23871 { ac_try='test -s conftest.$ac_objext'
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; }; then
23879 echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23882 ac_lo=`expr '(' $ac_mid ')' + 1`
23884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23887 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23889 See \`config.log' for more details." >&5
23890 echo "$as_me: error: cannot compute sizeof (short int), 77
23891 See \`config.log' for more details." >&2;}
23892 { (exit 1); exit 1; }; } ;;
23895 if test "$cross_compiling" = yes; then
23896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23897 See \`config.log' for more details." >&5
23898 echo "$as_me: error: cannot run test program while cross compiling
23899 See \`config.log' for more details." >&2;}
23900 { (exit 1); exit 1; }; }
23902 cat >conftest.$ac_ext <<_ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h. */
23908 $ac_includes_default
23909 long longval () { return (long) (sizeof (short int)); }
23910 unsigned long ulongval () { return (long) (sizeof (short int)); }
23912 #include <stdlib.h>
23917 FILE *f = fopen ("conftest.val", "w");
23920 if (((long) (sizeof (short int))) < 0)
23922 long i = longval ();
23923 if (i != ((long) (sizeof (short int))))
23925 fprintf (f, "%ld\n", i);
23929 unsigned long i = ulongval ();
23930 if (i != ((long) (sizeof (short int))))
23932 fprintf (f, "%lu\n", i);
23934 exit (ferror (f) || fclose (f) != 0);
23940 rm -f conftest$ac_exeext
23941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23942 (eval $ac_link) 2>&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; }; then
23951 ac_cv_sizeof_short_int=`cat conftest.val`
23953 echo "$as_me: program exited with status $ac_status" >&5
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ( exit $ac_status )
23958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23959 See \`config.log' for more details." >&5
23960 echo "$as_me: error: cannot compute sizeof (short int), 77
23961 See \`config.log' for more details." >&2;}
23962 { (exit 1); exit 1; }; }
23964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23969 ac_cv_sizeof_short_int=0
23972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23973 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23974 cat >>confdefs.h <<_ACEOF
23975 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23979 echo "$as_me:$LINENO: checking for int" >&5
23980 echo $ECHO_N "checking for int... $ECHO_C" >&6
23981 if test "${ac_cv_type_int+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23990 $ac_includes_default
24002 rm -f conftest.$ac_objext
24003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24004 (eval $ac_compile) 2>conftest.er1
24006 grep -v '^ *+' conftest.er1 >conftest.err
24008 cat conftest.err >&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); } &&
24011 { ac_try='test -z "$ac_c_werror_flag"
24012 || test ! -s conftest.err'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; } &&
24018 { ac_try='test -s conftest.$ac_objext'
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24033 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24034 echo "${ECHO_T}$ac_cv_type_int" >&6
24036 echo "$as_me:$LINENO: checking size of int" >&5
24037 echo $ECHO_N "checking size of int... $ECHO_C" >&6
24038 if test "${ac_cv_sizeof_int+set}" = set; then
24039 echo $ECHO_N "(cached) $ECHO_C" >&6
24041 if test "$ac_cv_type_int" = yes; then
24042 # The cast to unsigned long works around a bug in the HP C Compiler
24043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24045 # This bug is HP SR number 8606223364.
24046 if test "$cross_compiling" = yes; then
24047 # Depending upon the size, compute the lo and hi bounds.
24048 cat >conftest.$ac_ext <<_ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24054 $ac_includes_default
24058 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
24065 rm -f conftest.$ac_objext
24066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24067 (eval $ac_compile) 2>conftest.er1
24069 grep -v '^ *+' conftest.er1 >conftest.err
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } &&
24074 { ac_try='test -z "$ac_c_werror_flag"
24075 || test ! -s conftest.err'
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; } &&
24081 { ac_try='test -s conftest.$ac_objext'
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24089 cat >conftest.$ac_ext <<_ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 $ac_includes_default
24099 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24106 rm -f conftest.$ac_objext
24107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24108 (eval $ac_compile) 2>conftest.er1
24110 grep -v '^ *+' conftest.er1 >conftest.err
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
24115 { ac_try='test -z "$ac_c_werror_flag"
24116 || test ! -s conftest.err'
24117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24118 (eval $ac_try) 2>&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); }; } &&
24122 { ac_try='test -s conftest.$ac_objext'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; }; then
24128 ac_hi=$ac_mid; break
24130 echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24133 ac_lo=`expr $ac_mid + 1`
24134 if test $ac_lo -le $ac_mid; then
24138 ac_mid=`expr 2 '*' $ac_mid + 1`
24140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24143 echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 $ac_includes_default
24156 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24163 rm -f conftest.$ac_objext
24164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24165 (eval $ac_compile) 2>conftest.er1
24167 grep -v '^ *+' conftest.er1 >conftest.err
24169 cat conftest.err >&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); } &&
24172 { ac_try='test -z "$ac_c_werror_flag"
24173 || test ! -s conftest.err'
24174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24175 (eval $ac_try) 2>&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); }; } &&
24179 { ac_try='test -s conftest.$ac_objext'
24180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24181 (eval $ac_try) 2>&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); }; }; then
24187 cat >conftest.$ac_ext <<_ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24193 $ac_includes_default
24197 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24204 rm -f conftest.$ac_objext
24205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24206 (eval $ac_compile) 2>conftest.er1
24208 grep -v '^ *+' conftest.er1 >conftest.err
24210 cat conftest.err >&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); } &&
24213 { ac_try='test -z "$ac_c_werror_flag"
24214 || test ! -s conftest.err'
24215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216 (eval $ac_try) 2>&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); }; } &&
24220 { ac_try='test -s conftest.$ac_objext'
24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }; }; then
24226 ac_lo=$ac_mid; break
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24231 ac_hi=`expr '(' $ac_mid ')' - 1`
24232 if test $ac_mid -le $ac_hi; then
24236 ac_mid=`expr 2 '*' $ac_mid`
24238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24241 echo "$as_me: failed program was:" >&5
24242 sed 's/^/| /' conftest.$ac_ext >&5
24246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24249 # Binary search between lo and hi bounds.
24250 while test "x$ac_lo" != "x$ac_hi"; do
24251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24252 cat >conftest.$ac_ext <<_ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24258 $ac_includes_default
24262 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24269 rm -f conftest.$ac_objext
24270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24271 (eval $ac_compile) 2>conftest.er1
24273 grep -v '^ *+' conftest.er1 >conftest.err
24275 cat conftest.err >&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } &&
24278 { ac_try='test -z "$ac_c_werror_flag"
24279 || test ! -s conftest.err'
24280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24281 (eval $ac_try) 2>&5
24283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284 (exit $ac_status); }; } &&
24285 { ac_try='test -s conftest.$ac_objext'
24286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24287 (eval $ac_try) 2>&5
24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); }; }; then
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ac_lo=`expr '(' $ac_mid ')' + 1`
24298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24301 ?*) ac_cv_sizeof_int=$ac_lo;;
24302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24303 See \`config.log' for more details." >&5
24304 echo "$as_me: error: cannot compute sizeof (int), 77
24305 See \`config.log' for more details." >&2;}
24306 { (exit 1); exit 1; }; } ;;
24309 if test "$cross_compiling" = yes; then
24310 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24311 See \`config.log' for more details." >&5
24312 echo "$as_me: error: cannot run test program while cross compiling
24313 See \`config.log' for more details." >&2;}
24314 { (exit 1); exit 1; }; }
24316 cat >conftest.$ac_ext <<_ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h. */
24322 $ac_includes_default
24323 long longval () { return (long) (sizeof (int)); }
24324 unsigned long ulongval () { return (long) (sizeof (int)); }
24326 #include <stdlib.h>
24331 FILE *f = fopen ("conftest.val", "w");
24334 if (((long) (sizeof (int))) < 0)
24336 long i = longval ();
24337 if (i != ((long) (sizeof (int))))
24339 fprintf (f, "%ld\n", i);
24343 unsigned long i = ulongval ();
24344 if (i != ((long) (sizeof (int))))
24346 fprintf (f, "%lu\n", i);
24348 exit (ferror (f) || fclose (f) != 0);
24354 rm -f conftest$ac_exeext
24355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24356 (eval $ac_link) 2>&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; }; then
24365 ac_cv_sizeof_int=`cat conftest.val`
24367 echo "$as_me: program exited with status $ac_status" >&5
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 ( exit $ac_status )
24372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24373 See \`config.log' for more details." >&5
24374 echo "$as_me: error: cannot compute sizeof (int), 77
24375 See \`config.log' for more details." >&2;}
24376 { (exit 1); exit 1; }; }
24378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24387 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24388 cat >>confdefs.h <<_ACEOF
24389 #define SIZEOF_INT $ac_cv_sizeof_int
24393 echo "$as_me:$LINENO: checking for long int" >&5
24394 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24395 if test "${ac_cv_type_long_int+set}" = set; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 cat >conftest.$ac_ext <<_ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24404 $ac_includes_default
24408 if ((long int *) 0)
24410 if (sizeof (long int))
24416 rm -f conftest.$ac_objext
24417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24418 (eval $ac_compile) 2>conftest.er1
24420 grep -v '^ *+' conftest.er1 >conftest.err
24422 cat conftest.err >&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
24425 { ac_try='test -z "$ac_c_werror_flag"
24426 || test ! -s conftest.err'
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; } &&
24432 { ac_try='test -s conftest.$ac_objext'
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; }; then
24438 ac_cv_type_long_int=yes
24440 echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24443 ac_cv_type_long_int=no
24445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24447 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24448 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24450 echo "$as_me:$LINENO: checking size of long int" >&5
24451 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24452 if test "${ac_cv_sizeof_long_int+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24455 if test "$ac_cv_type_long_int" = yes; then
24456 # The cast to unsigned long works around a bug in the HP C Compiler
24457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24459 # This bug is HP SR number 8606223364.
24460 if test "$cross_compiling" = yes; then
24461 # Depending upon the size, compute the lo and hi bounds.
24462 cat >conftest.$ac_ext <<_ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h. */
24468 $ac_includes_default
24472 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24479 rm -f conftest.$ac_objext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24481 (eval $ac_compile) 2>conftest.er1
24483 grep -v '^ *+' conftest.er1 >conftest.err
24485 cat conftest.err >&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } &&
24488 { ac_try='test -z "$ac_c_werror_flag"
24489 || test ! -s conftest.err'
24490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491 (eval $ac_try) 2>&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); }; } &&
24495 { ac_try='test -s conftest.$ac_objext'
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24509 $ac_includes_default
24513 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24520 rm -f conftest.$ac_objext
24521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24522 (eval $ac_compile) 2>conftest.er1
24524 grep -v '^ *+' conftest.er1 >conftest.err
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } &&
24529 { ac_try='test -z "$ac_c_werror_flag"
24530 || test ! -s conftest.err'
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; } &&
24536 { ac_try='test -s conftest.$ac_objext'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 ac_hi=$ac_mid; break
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 ac_lo=`expr $ac_mid + 1`
24548 if test $ac_lo -le $ac_mid; then
24552 ac_mid=`expr 2 '*' $ac_mid + 1`
24554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 $ac_includes_default
24570 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24577 rm -f conftest.$ac_objext
24578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24579 (eval $ac_compile) 2>conftest.er1
24581 grep -v '^ *+' conftest.er1 >conftest.err
24583 cat conftest.err >&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } &&
24586 { ac_try='test -z "$ac_c_werror_flag"
24587 || test ! -s conftest.err'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; } &&
24593 { ac_try='test -s conftest.$ac_objext'
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; }; then
24601 cat >conftest.$ac_ext <<_ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24611 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24618 rm -f conftest.$ac_objext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24620 (eval $ac_compile) 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
24627 { ac_try='test -z "$ac_c_werror_flag"
24628 || test ! -s conftest.err'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; } &&
24634 { ac_try='test -s conftest.$ac_objext'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 ac_lo=$ac_mid; break
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24645 ac_hi=`expr '(' $ac_mid ')' - 1`
24646 if test $ac_mid -le $ac_hi; then
24650 ac_mid=`expr 2 '*' $ac_mid`
24652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24655 echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24663 # Binary search between lo and hi bounds.
24664 while test "x$ac_lo" != "x$ac_hi"; do
24665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24666 cat >conftest.$ac_ext <<_ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h. */
24672 $ac_includes_default
24676 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24683 rm -f conftest.$ac_objext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24685 (eval $ac_compile) 2>conftest.er1
24687 grep -v '^ *+' conftest.er1 >conftest.err
24689 cat conftest.err >&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } &&
24692 { ac_try='test -z "$ac_c_werror_flag"
24693 || test ! -s conftest.err'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; } &&
24699 { ac_try='test -s conftest.$ac_objext'
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24710 ac_lo=`expr '(' $ac_mid ')' + 1`
24712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24715 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24717 See \`config.log' for more details." >&5
24718 echo "$as_me: error: cannot compute sizeof (long int), 77
24719 See \`config.log' for more details." >&2;}
24720 { (exit 1); exit 1; }; } ;;
24723 if test "$cross_compiling" = yes; then
24724 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24725 See \`config.log' for more details." >&5
24726 echo "$as_me: error: cannot run test program while cross compiling
24727 See \`config.log' for more details." >&2;}
24728 { (exit 1); exit 1; }; }
24730 cat >conftest.$ac_ext <<_ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 $ac_includes_default
24737 long longval () { return (long) (sizeof (long int)); }
24738 unsigned long ulongval () { return (long) (sizeof (long int)); }
24740 #include <stdlib.h>
24745 FILE *f = fopen ("conftest.val", "w");
24748 if (((long) (sizeof (long int))) < 0)
24750 long i = longval ();
24751 if (i != ((long) (sizeof (long int))))
24753 fprintf (f, "%ld\n", i);
24757 unsigned long i = ulongval ();
24758 if (i != ((long) (sizeof (long int))))
24760 fprintf (f, "%lu\n", i);
24762 exit (ferror (f) || fclose (f) != 0);
24768 rm -f conftest$ac_exeext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770 (eval $ac_link) 2>&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; }; then
24779 ac_cv_sizeof_long_int=`cat conftest.val`
24781 echo "$as_me: program exited with status $ac_status" >&5
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24785 ( exit $ac_status )
24786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24787 See \`config.log' for more details." >&5
24788 echo "$as_me: error: cannot compute sizeof (long int), 77
24789 See \`config.log' for more details." >&2;}
24790 { (exit 1); exit 1; }; }
24792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24797 ac_cv_sizeof_long_int=0
24800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24801 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24802 cat >>confdefs.h <<_ACEOF
24803 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24807 echo "$as_me:$LINENO: checking for long long int" >&5
24808 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24809 if test "${ac_cv_type_long_long_int+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 cat >conftest.$ac_ext <<_ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24818 $ac_includes_default
24822 if ((long long int *) 0)
24824 if (sizeof (long long int))
24830 rm -f conftest.$ac_objext
24831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24832 (eval $ac_compile) 2>conftest.er1
24834 grep -v '^ *+' conftest.er1 >conftest.err
24836 cat conftest.err >&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } &&
24839 { ac_try='test -z "$ac_c_werror_flag"
24840 || test ! -s conftest.err'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; } &&
24846 { ac_try='test -s conftest.$ac_objext'
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; }; then
24852 ac_cv_type_long_long_int=yes
24854 echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24857 ac_cv_type_long_long_int=no
24859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24861 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24862 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24864 echo "$as_me:$LINENO: checking size of long long int" >&5
24865 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24866 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 if test "$ac_cv_type_long_long_int" = yes; then
24870 # The cast to unsigned long works around a bug in the HP C Compiler
24871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24873 # This bug is HP SR number 8606223364.
24874 if test "$cross_compiling" = yes; then
24875 # Depending upon the size, compute the lo and hi bounds.
24876 cat >conftest.$ac_ext <<_ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882 $ac_includes_default
24886 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24893 rm -f conftest.$ac_objext
24894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24895 (eval $ac_compile) 2>conftest.er1
24897 grep -v '^ *+' conftest.er1 >conftest.err
24899 cat conftest.err >&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
24902 { ac_try='test -z "$ac_c_werror_flag"
24903 || test ! -s conftest.err'
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; } &&
24909 { ac_try='test -s conftest.$ac_objext'
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24917 cat >conftest.$ac_ext <<_ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h. */
24923 $ac_includes_default
24927 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24934 rm -f conftest.$ac_objext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936 (eval $ac_compile) 2>conftest.er1
24938 grep -v '^ *+' conftest.er1 >conftest.err
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } &&
24943 { ac_try='test -z "$ac_c_werror_flag"
24944 || test ! -s conftest.err'
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; } &&
24950 { ac_try='test -s conftest.$ac_objext'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24956 ac_hi=$ac_mid; break
24958 echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24961 ac_lo=`expr $ac_mid + 1`
24962 if test $ac_lo -le $ac_mid; then
24966 ac_mid=`expr 2 '*' $ac_mid + 1`
24968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24971 echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24980 $ac_includes_default
24984 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24991 rm -f conftest.$ac_objext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24993 (eval $ac_compile) 2>conftest.er1
24995 grep -v '^ *+' conftest.er1 >conftest.err
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag"
25001 || test ! -s conftest.err'
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; } &&
25007 { ac_try='test -s conftest.$ac_objext'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25025 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
25032 rm -f conftest.$ac_objext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25034 (eval $ac_compile) 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } &&
25041 { ac_try='test -z "$ac_c_werror_flag"
25042 || test ! -s conftest.err'
25043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044 (eval $ac_try) 2>&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); }; } &&
25048 { ac_try='test -s conftest.$ac_objext'
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
25054 ac_lo=$ac_mid; break
25056 echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25059 ac_hi=`expr '(' $ac_mid ')' - 1`
25060 if test $ac_mid -le $ac_hi; then
25064 ac_mid=`expr 2 '*' $ac_mid`
25066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25069 echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25077 # Binary search between lo and hi bounds.
25078 while test "x$ac_lo" != "x$ac_hi"; do
25079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25080 cat >conftest.$ac_ext <<_ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h. */
25086 $ac_includes_default
25090 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
25097 rm -f conftest.$ac_objext
25098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25099 (eval $ac_compile) 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } &&
25106 { ac_try='test -z "$ac_c_werror_flag"
25107 || test ! -s conftest.err'
25108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109 (eval $ac_try) 2>&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; } &&
25113 { ac_try='test -s conftest.$ac_objext'
25114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115 (eval $ac_try) 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; }; then
25121 echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25124 ac_lo=`expr '(' $ac_mid ')' + 1`
25126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25129 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25131 See \`config.log' for more details." >&5
25132 echo "$as_me: error: cannot compute sizeof (long long int), 77
25133 See \`config.log' for more details." >&2;}
25134 { (exit 1); exit 1; }; } ;;
25137 if test "$cross_compiling" = yes; then
25138 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25139 See \`config.log' for more details." >&5
25140 echo "$as_me: error: cannot run test program while cross compiling
25141 See \`config.log' for more details." >&2;}
25142 { (exit 1); exit 1; }; }
25144 cat >conftest.$ac_ext <<_ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h. */
25150 $ac_includes_default
25151 long longval () { return (long) (sizeof (long long int)); }
25152 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25154 #include <stdlib.h>
25159 FILE *f = fopen ("conftest.val", "w");
25162 if (((long) (sizeof (long long int))) < 0)
25164 long i = longval ();
25165 if (i != ((long) (sizeof (long long int))))
25167 fprintf (f, "%ld\n", i);
25171 unsigned long i = ulongval ();
25172 if (i != ((long) (sizeof (long long int))))
25174 fprintf (f, "%lu\n", i);
25176 exit (ferror (f) || fclose (f) != 0);
25182 rm -f conftest$ac_exeext
25183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25184 (eval $ac_link) 2>&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; }; then
25193 ac_cv_sizeof_long_long_int=`cat conftest.val`
25195 echo "$as_me: program exited with status $ac_status" >&5
25196 echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25199 ( exit $ac_status )
25200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25201 See \`config.log' for more details." >&5
25202 echo "$as_me: error: cannot compute sizeof (long long int), 77
25203 See \`config.log' for more details." >&2;}
25204 { (exit 1); exit 1; }; }
25206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25211 ac_cv_sizeof_long_long_int=0
25214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25215 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25216 cat >>confdefs.h <<_ACEOF
25217 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25221 echo "$as_me:$LINENO: checking for int *" >&5
25222 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25223 if test "${ac_cv_type_int_p+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 $ac_includes_default
25238 if (sizeof (int *))
25244 rm -f conftest.$ac_objext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246 (eval $ac_compile) 2>conftest.er1
25248 grep -v '^ *+' conftest.er1 >conftest.err
25250 cat conftest.err >&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); } &&
25253 { ac_try='test -z "$ac_c_werror_flag"
25254 || test ! -s conftest.err'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; } &&
25260 { ac_try='test -s conftest.$ac_objext'
25261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262 (eval $ac_try) 2>&5
25264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265 (exit $ac_status); }; }; then
25266 ac_cv_type_int_p=yes
25268 echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25271 ac_cv_type_int_p=no
25273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25275 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25276 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25278 echo "$as_me:$LINENO: checking size of int *" >&5
25279 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25280 if test "${ac_cv_sizeof_int_p+set}" = set; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25283 if test "$ac_cv_type_int_p" = yes; then
25284 # The cast to unsigned long works around a bug in the HP C Compiler
25285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25287 # This bug is HP SR number 8606223364.
25288 if test "$cross_compiling" = yes; then
25289 # Depending upon the size, compute the lo and hi bounds.
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25296 $ac_includes_default
25300 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25307 rm -f conftest.$ac_objext
25308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25309 (eval $ac_compile) 2>conftest.er1
25311 grep -v '^ *+' conftest.er1 >conftest.err
25313 cat conftest.err >&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } &&
25316 { ac_try='test -z "$ac_c_werror_flag"
25317 || test ! -s conftest.err'
25318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319 (eval $ac_try) 2>&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); }; } &&
25323 { ac_try='test -s conftest.$ac_objext'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; }; then
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 $ac_includes_default
25341 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350 (eval $ac_compile) 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
25357 { ac_try='test -z "$ac_c_werror_flag"
25358 || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 ac_hi=$ac_mid; break
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 ac_lo=`expr $ac_mid + 1`
25376 if test $ac_lo -le $ac_mid; then
25380 ac_mid=`expr 2 '*' $ac_mid + 1`
25382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25385 echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25388 cat >conftest.$ac_ext <<_ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h. */
25394 $ac_includes_default
25398 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25405 rm -f conftest.$ac_objext
25406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25407 (eval $ac_compile) 2>conftest.er1
25409 grep -v '^ *+' conftest.er1 >conftest.err
25411 cat conftest.err >&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } &&
25414 { ac_try='test -z "$ac_c_werror_flag"
25415 || test ! -s conftest.err'
25416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417 (eval $ac_try) 2>&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; } &&
25421 { ac_try='test -s conftest.$ac_objext'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; }; then
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 $ac_includes_default
25439 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25446 rm -f conftest.$ac_objext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25448 (eval $ac_compile) 2>conftest.er1
25450 grep -v '^ *+' conftest.er1 >conftest.err
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } &&
25455 { ac_try='test -z "$ac_c_werror_flag"
25456 || test ! -s conftest.err'
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; } &&
25462 { ac_try='test -s conftest.$ac_objext'
25463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464 (eval $ac_try) 2>&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 ac_lo=$ac_mid; break
25470 echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25473 ac_hi=`expr '(' $ac_mid ')' - 1`
25474 if test $ac_mid -le $ac_hi; then
25478 ac_mid=`expr 2 '*' $ac_mid`
25480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25483 echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25491 # Binary search between lo and hi bounds.
25492 while test "x$ac_lo" != "x$ac_hi"; do
25493 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 $ac_includes_default
25504 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25511 rm -f conftest.$ac_objext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25513 (eval $ac_compile) 2>conftest.er1
25515 grep -v '^ *+' conftest.er1 >conftest.err
25517 cat conftest.err >&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } &&
25520 { ac_try='test -z "$ac_c_werror_flag"
25521 || test ! -s conftest.err'
25522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; } &&
25527 { ac_try='test -s conftest.$ac_objext'
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; }; then
25535 echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25538 ac_lo=`expr '(' $ac_mid ')' + 1`
25540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25543 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25545 See \`config.log' for more details." >&5
25546 echo "$as_me: error: cannot compute sizeof (int *), 77
25547 See \`config.log' for more details." >&2;}
25548 { (exit 1); exit 1; }; } ;;
25551 if test "$cross_compiling" = yes; then
25552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25553 See \`config.log' for more details." >&5
25554 echo "$as_me: error: cannot run test program while cross compiling
25555 See \`config.log' for more details." >&2;}
25556 { (exit 1); exit 1; }; }
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 $ac_includes_default
25565 long longval () { return (long) (sizeof (int *)); }
25566 unsigned long ulongval () { return (long) (sizeof (int *)); }
25568 #include <stdlib.h>
25573 FILE *f = fopen ("conftest.val", "w");
25576 if (((long) (sizeof (int *))) < 0)
25578 long i = longval ();
25579 if (i != ((long) (sizeof (int *))))
25581 fprintf (f, "%ld\n", i);
25585 unsigned long i = ulongval ();
25586 if (i != ((long) (sizeof (int *))))
25588 fprintf (f, "%lu\n", i);
25590 exit (ferror (f) || fclose (f) != 0);
25596 rm -f conftest$ac_exeext
25597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25598 (eval $ac_link) 2>&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603 (eval $ac_try) 2>&5
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; }; then
25607 ac_cv_sizeof_int_p=`cat conftest.val`
25609 echo "$as_me: program exited with status $ac_status" >&5
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ( exit $ac_status )
25614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25615 See \`config.log' for more details." >&5
25616 echo "$as_me: error: cannot compute sizeof (int *), 77
25617 See \`config.log' for more details." >&2;}
25618 { (exit 1); exit 1; }; }
25620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25625 ac_cv_sizeof_int_p=0
25628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25629 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25630 cat >>confdefs.h <<_ACEOF
25631 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25636 # Check for sys/types.h types
25637 echo "$as_me:$LINENO: checking for u_int type" >&5
25638 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25639 if test "${ac_cv_have_u_int+set}" = set; then
25640 echo $ECHO_N "(cached) $ECHO_C" >&6
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25649 #include <sys/types.h>
25658 rm -f conftest.$ac_objext
25659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25660 (eval $ac_compile) 2>conftest.er1
25662 grep -v '^ *+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } &&
25667 { ac_try='test -z "$ac_c_werror_flag"
25668 || test ! -s conftest.err'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; } &&
25674 { ac_try='test -s conftest.$ac_objext'
25675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676 (eval $ac_try) 2>&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); }; }; then
25680 ac_cv_have_u_int="yes"
25682 echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25685 ac_cv_have_u_int="no"
25688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25691 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25692 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25693 if test "x$ac_cv_have_u_int" = "xyes" ; then
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_U_INT 1
25701 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25702 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25703 if test "${ac_cv_have_intmax_t+set}" = set; then
25704 echo $ECHO_N "(cached) $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h. */
25713 #include <sys/types.h>
25722 rm -f conftest.$ac_objext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25724 (eval $ac_compile) 2>conftest.er1
25726 grep -v '^ *+' conftest.er1 >conftest.err
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest.$ac_objext'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_cv_have_intmax_t="yes"
25746 echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25756 #include <stdint.h>
25765 rm -f conftest.$ac_objext
25766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25767 (eval $ac_compile) 2>conftest.er1
25769 grep -v '^ *+' conftest.er1 >conftest.err
25771 cat conftest.err >&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } &&
25774 { ac_try='test -z "$ac_c_werror_flag"
25775 || test ! -s conftest.err'
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; } &&
25781 { ac_try='test -s conftest.$ac_objext'
25782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783 (eval $ac_try) 2>&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 ac_cv_have_intmax_t="yes"
25789 echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25792 ac_cv_have_intmax_t="no"
25795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25803 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25804 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25805 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25806 cat >>confdefs.h <<\_ACEOF
25807 #define HAVE_INTMAX_T 1
25814 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25815 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25816 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25826 #include <sys/types.h>
25830 u_intmax_t a; a = 1;
25835 rm -f conftest.$ac_objext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25837 (eval $ac_compile) 2>conftest.er1
25839 grep -v '^ *+' conftest.er1 >conftest.err
25841 cat conftest.err >&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
25844 { ac_try='test -z "$ac_c_werror_flag"
25845 || test ! -s conftest.err'
25846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847 (eval $ac_try) 2>&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); }; } &&
25851 { ac_try='test -s conftest.$ac_objext'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 ac_cv_have_u_intmax_t="yes"
25859 echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25863 cat >conftest.$ac_ext <<_ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h. */
25869 #include <stdint.h>
25873 u_intmax_t a; a = 1;
25878 rm -f conftest.$ac_objext
25879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25880 (eval $ac_compile) 2>conftest.er1
25882 grep -v '^ *+' conftest.er1 >conftest.err
25884 cat conftest.err >&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } &&
25887 { ac_try='test -z "$ac_c_werror_flag"
25888 || test ! -s conftest.err'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; } &&
25894 { ac_try='test -s conftest.$ac_objext'
25895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896 (eval $ac_try) 2>&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); }; }; then
25900 ac_cv_have_u_intmax_t="yes"
25902 echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25905 ac_cv_have_u_intmax_t="no"
25908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25915 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25916 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25917 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25918 cat >>confdefs.h <<\_ACEOF
25919 #define HAVE_U_INTMAX_T 1
25926 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25927 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25928 if test "${ac_cv_have_intxx_t+set}" = set; then
25929 echo $ECHO_N "(cached) $ECHO_C" >&6
25932 cat >conftest.$ac_ext <<_ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h. */
25938 #include <sys/types.h>
25942 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25947 rm -f conftest.$ac_objext
25948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949 (eval $ac_compile) 2>conftest.er1
25951 grep -v '^ *+' conftest.er1 >conftest.err
25953 cat conftest.err >&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); } &&
25956 { ac_try='test -z "$ac_c_werror_flag"
25957 || test ! -s conftest.err'
25958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959 (eval $ac_try) 2>&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); }; } &&
25963 { ac_try='test -s conftest.$ac_objext'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; }; then
25969 ac_cv_have_intxx_t="yes"
25971 echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25974 ac_cv_have_intxx_t="no"
25977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25980 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25981 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25982 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25983 cat >>confdefs.h <<\_ACEOF
25984 #define HAVE_INTXX_T 1
25990 echo "$as_me:$LINENO: checking for int64_t type" >&5
25991 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25992 if test "${ac_cv_have_int64_t+set}" = set; then
25993 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 #include <sys/types.h>
26011 rm -f conftest.$ac_objext
26012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26013 (eval $ac_compile) 2>conftest.er1
26015 grep -v '^ *+' conftest.er1 >conftest.err
26017 cat conftest.err >&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } &&
26020 { ac_try='test -z "$ac_c_werror_flag"
26021 || test ! -s conftest.err'
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; } &&
26027 { ac_try='test -s conftest.$ac_objext'
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; }; then
26033 ac_cv_have_int64_t="yes"
26035 echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26038 ac_cv_have_int64_t="no"
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26044 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26045 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
26046 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26047 cat >>confdefs.h <<\_ACEOF
26048 #define HAVE_INT64_T 1
26054 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26055 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
26056 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26057 echo $ECHO_N "(cached) $ECHO_C" >&6
26060 cat >conftest.$ac_ext <<_ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h. */
26066 #include <sys/types.h>
26070 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26075 rm -f conftest.$ac_objext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26077 (eval $ac_compile) 2>conftest.er1
26079 grep -v '^ *+' conftest.er1 >conftest.err
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
26084 { ac_try='test -z "$ac_c_werror_flag"
26085 || test ! -s conftest.err'
26086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087 (eval $ac_try) 2>&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); }; } &&
26091 { ac_try='test -s conftest.$ac_objext'
26092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093 (eval $ac_try) 2>&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); }; }; then
26097 ac_cv_have_u_intxx_t="yes"
26099 echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26102 ac_cv_have_u_intxx_t="no"
26105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26108 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26109 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26110 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26111 cat >>confdefs.h <<\_ACEOF
26112 #define HAVE_U_INTXX_T 1
26118 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26119 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26120 if test "${ac_cv_have_u_int64_t+set}" = set; then
26121 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 cat >conftest.$ac_ext <<_ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h. */
26130 #include <sys/types.h>
26134 u_int64_t a; a = 1;
26139 rm -f conftest.$ac_objext
26140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26141 (eval $ac_compile) 2>conftest.er1
26143 grep -v '^ *+' conftest.er1 >conftest.err
26145 cat conftest.err >&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } &&
26148 { ac_try='test -z "$ac_c_werror_flag"
26149 || test ! -s conftest.err'
26150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151 (eval $ac_try) 2>&5
26153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); }; } &&
26155 { ac_try='test -s conftest.$ac_objext'
26156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157 (eval $ac_try) 2>&5
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); }; }; then
26161 ac_cv_have_u_int64_t="yes"
26163 echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26166 ac_cv_have_u_int64_t="no"
26169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26172 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26173 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26174 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26175 cat >>confdefs.h <<\_ACEOF
26176 #define HAVE_U_INT64_T 1
26182 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26183 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26185 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26186 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26187 cat >conftest.$ac_ext <<_ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h. */
26193 #include <sys/bitypes.h>
26197 int8_t a; int16_t b; int32_t c;
26198 u_int8_t e; u_int16_t f; u_int32_t g;
26199 a = b = c = e = f = g = 1;
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206 (eval $ac_compile) 2>conftest.er1
26208 grep -v '^ *+' conftest.er1 >conftest.err
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
26213 { ac_try='test -z "$ac_c_werror_flag"
26214 || test ! -s conftest.err'
26215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216 (eval $ac_try) 2>&5
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); }; } &&
26220 { ac_try='test -s conftest.$ac_objext'
26221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222 (eval $ac_try) 2>&5
26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); }; }; then
26226 cat >>confdefs.h <<\_ACEOF
26227 #define HAVE_U_INTXX_T 1
26230 cat >>confdefs.h <<\_ACEOF
26231 #define HAVE_INTXX_T 1
26234 cat >>confdefs.h <<\_ACEOF
26235 #define HAVE_SYS_BITYPES_H 1
26238 echo "$as_me:$LINENO: result: yes" >&5
26239 echo "${ECHO_T}yes" >&6
26241 echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26244 echo "$as_me:$LINENO: result: no" >&5
26245 echo "${ECHO_T}no" >&6
26248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26251 if test -z "$have_u_intxx_t" ; then
26252 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26253 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26254 if test "${ac_cv_have_uintxx_t+set}" = set; then
26255 echo $ECHO_N "(cached) $ECHO_C" >&6
26258 cat >conftest.$ac_ext <<_ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include <sys/types.h>
26268 uint8_t a; uint16_t b;
26269 uint32_t c; a = b = c = 1;
26274 rm -f conftest.$ac_objext
26275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26276 (eval $ac_compile) 2>conftest.er1
26278 grep -v '^ *+' conftest.er1 >conftest.err
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } &&
26283 { ac_try='test -z "$ac_c_werror_flag"
26284 || test ! -s conftest.err'
26285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; } &&
26290 { ac_try='test -s conftest.$ac_objext'
26291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292 (eval $ac_try) 2>&5
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); }; }; then
26296 ac_cv_have_uintxx_t="yes"
26298 echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26301 ac_cv_have_uintxx_t="no"
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26307 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26308 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26309 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26310 cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_UINTXX_T 1
26317 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26318 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26320 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26321 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26322 cat >conftest.$ac_ext <<_ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26328 #include <sys/bitypes.h>
26332 int64_t a; u_int64_t b;
26338 rm -f conftest.$ac_objext
26339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26340 (eval $ac_compile) 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } &&
26347 { ac_try='test -z "$ac_c_werror_flag"
26348 || test ! -s conftest.err'
26349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350 (eval $ac_try) 2>&5
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; } &&
26354 { ac_try='test -s conftest.$ac_objext'
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; }; then
26360 cat >>confdefs.h <<\_ACEOF
26361 #define HAVE_U_INT64_T 1
26364 cat >>confdefs.h <<\_ACEOF
26365 #define HAVE_INT64_T 1
26368 echo "$as_me:$LINENO: result: yes" >&5
26369 echo "${ECHO_T}yes" >&6
26371 echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26374 echo "$as_me:$LINENO: result: no" >&5
26375 echo "${ECHO_T}no" >&6
26378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26381 if (test -z "$have_uintxx_t" && \
26382 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26384 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26385 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26386 cat >conftest.$ac_ext <<_ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h. */
26392 #include <sys/bitypes.h>
26396 uint8_t a; uint16_t b;
26397 uint32_t c; a = b = c = 1;
26402 rm -f conftest.$ac_objext
26403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26404 (eval $ac_compile) 2>conftest.er1
26406 grep -v '^ *+' conftest.er1 >conftest.err
26408 cat conftest.err >&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); } &&
26411 { ac_try='test -z "$ac_c_werror_flag"
26412 || test ! -s conftest.err'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; } &&
26418 { ac_try='test -s conftest.$ac_objext'
26419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420 (eval $ac_try) 2>&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; }; then
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_UINTXX_T 1
26428 echo "$as_me:$LINENO: result: yes" >&5
26429 echo "${ECHO_T}yes" >&6
26431 echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26434 echo "$as_me:$LINENO: result: no" >&5
26435 echo "${ECHO_T}no" >&6
26438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26475 echo "$as_me:$LINENO: checking for $ac_func" >&5
26476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26477 if eval "test \"\${$as_ac_var+set}\" = set"; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26480 cat >conftest.$ac_ext <<_ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h. */
26486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26488 #define $ac_func innocuous_$ac_func
26490 /* System header to define __stub macros and hopefully few prototypes,
26491 which can conflict with char $ac_func (); below.
26492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26493 <limits.h> exists even on freestanding compilers. */
26496 # include <limits.h>
26498 # include <assert.h>
26503 /* Override any gcc2 internal prototype to avoid an error. */
26508 /* We use char because int might match the return type of a gcc2
26509 builtin and then its argument prototype would still apply. */
26511 /* The GNU C library defines this for functions which it implements
26512 to always fail with ENOSYS. Some functions are actually named
26513 something starting with __ and the normal name is an alias. */
26514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26517 char (*f) () = $ac_func;
26526 return f != $ac_func;
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533 (eval $ac_link) 2>conftest.er1
26535 grep -v '^ *+' conftest.er1 >conftest.err
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest$ac_exeext'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553 eval "$as_ac_var=yes"
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26558 eval "$as_ac_var=no"
26560 rm -f conftest.err conftest.$ac_objext \
26561 conftest$ac_exeext conftest.$ac_ext
26563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26565 if test `eval echo '${'$as_ac_var'}'` = yes; then
26566 cat >>confdefs.h <<_ACEOF
26567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26571 echo 'configure: cannot find needed function.'; exit 1
26578 for ac_func in fchdir
26580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26581 echo "$as_me:$LINENO: checking for $ac_func" >&5
26582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26583 if eval "test \"\${$as_ac_var+set}\" = set"; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26586 cat >conftest.$ac_ext <<_ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26594 #define $ac_func innocuous_$ac_func
26596 /* System header to define __stub macros and hopefully few prototypes,
26597 which can conflict with char $ac_func (); below.
26598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26599 <limits.h> exists even on freestanding compilers. */
26602 # include <limits.h>
26604 # include <assert.h>
26609 /* Override any gcc2 internal prototype to avoid an error. */
26614 /* We use char because int might match the return type of a gcc2
26615 builtin and then its argument prototype would still apply. */
26617 /* The GNU C library defines this for functions which it implements
26618 to always fail with ENOSYS. Some functions are actually named
26619 something starting with __ and the normal name is an alias. */
26620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26623 char (*f) () = $ac_func;
26632 return f != $ac_func;
26637 rm -f conftest.$ac_objext conftest$ac_exeext
26638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26639 (eval $ac_link) 2>conftest.er1
26641 grep -v '^ *+' conftest.er1 >conftest.err
26643 cat conftest.err >&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); } &&
26646 { ac_try='test -z "$ac_c_werror_flag"
26647 || test ! -s conftest.err'
26648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649 (eval $ac_try) 2>&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); }; } &&
26653 { ac_try='test -s conftest$ac_exeext'
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; }; then
26659 eval "$as_ac_var=yes"
26661 echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26664 eval "$as_ac_var=no"
26666 rm -f conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
26669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26671 if test `eval echo '${'$as_ac_var'}'` = yes; then
26672 cat >>confdefs.h <<_ACEOF
26673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26675 cat >>confdefs.h <<\_ACEOF
26676 #define HAVE_FCHDIR 1
26683 for ac_func in strtoll
26685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26686 echo "$as_me:$LINENO: checking for $ac_func" >&5
26687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26688 if eval "test \"\${$as_ac_var+set}\" = set"; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26691 cat >conftest.$ac_ext <<_ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h. */
26697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26699 #define $ac_func innocuous_$ac_func
26701 /* System header to define __stub macros and hopefully few prototypes,
26702 which can conflict with char $ac_func (); below.
26703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26704 <limits.h> exists even on freestanding compilers. */
26707 # include <limits.h>
26709 # include <assert.h>
26714 /* Override any gcc2 internal prototype to avoid an error. */
26719 /* We use char because int might match the return type of a gcc2
26720 builtin and then its argument prototype would still apply. */
26722 /* The GNU C library defines this for functions which it implements
26723 to always fail with ENOSYS. Some functions are actually named
26724 something starting with __ and the normal name is an alias. */
26725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26728 char (*f) () = $ac_func;
26737 return f != $ac_func;
26742 rm -f conftest.$ac_objext conftest$ac_exeext
26743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26744 (eval $ac_link) 2>conftest.er1
26746 grep -v '^ *+' conftest.er1 >conftest.err
26748 cat conftest.err >&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } &&
26751 { ac_try='test -z "$ac_c_werror_flag"
26752 || test ! -s conftest.err'
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; } &&
26758 { ac_try='test -s conftest$ac_exeext'
26759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760 (eval $ac_try) 2>&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 eval "$as_ac_var=yes"
26766 echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26769 eval "$as_ac_var=no"
26771 rm -f conftest.err conftest.$ac_objext \
26772 conftest$ac_exeext conftest.$ac_ext
26774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26776 if test `eval echo '${'$as_ac_var'}'` = yes; then
26777 cat >>confdefs.h <<_ACEOF
26778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26780 cat >>confdefs.h <<\_ACEOF
26781 #define HAVE_STRTOLL 1
26788 for ac_func in posix_fadvise
26790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791 echo "$as_me:$LINENO: checking for $ac_func" >&5
26792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26793 if eval "test \"\${$as_ac_var+set}\" = set"; then
26794 echo $ECHO_N "(cached) $ECHO_C" >&6
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26804 #define $ac_func innocuous_$ac_func
26806 /* System header to define __stub macros and hopefully few prototypes,
26807 which can conflict with char $ac_func (); below.
26808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26809 <limits.h> exists even on freestanding compilers. */
26812 # include <limits.h>
26814 # include <assert.h>
26819 /* Override any gcc2 internal prototype to avoid an error. */
26824 /* We use char because int might match the return type of a gcc2
26825 builtin and then its argument prototype would still apply. */
26827 /* The GNU C library defines this for functions which it implements
26828 to always fail with ENOSYS. Some functions are actually named
26829 something starting with __ and the normal name is an alias. */
26830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26833 char (*f) () = $ac_func;
26842 return f != $ac_func;
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849 (eval $ac_link) 2>conftest.er1
26851 grep -v '^ *+' conftest.er1 >conftest.err
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } &&
26856 { ac_try='test -z "$ac_c_werror_flag"
26857 || test ! -s conftest.err'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; } &&
26863 { ac_try='test -s conftest$ac_exeext'
26864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865 (eval $ac_try) 2>&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; }; then
26869 eval "$as_ac_var=yes"
26871 echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26874 eval "$as_ac_var=no"
26876 rm -f conftest.err conftest.$ac_objext \
26877 conftest$ac_exeext conftest.$ac_ext
26879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26881 if test `eval echo '${'$as_ac_var'}'` = yes; then
26882 cat >>confdefs.h <<_ACEOF
26883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26890 for ac_func in fdatasync
26892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26893 echo "$as_me:$LINENO: checking for $ac_func" >&5
26894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26895 if eval "test \"\${$as_ac_var+set}\" = set"; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26898 cat >conftest.$ac_ext <<_ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h. */
26904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26906 #define $ac_func innocuous_$ac_func
26908 /* System header to define __stub macros and hopefully few prototypes,
26909 which can conflict with char $ac_func (); below.
26910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26911 <limits.h> exists even on freestanding compilers. */
26914 # include <limits.h>
26916 # include <assert.h>
26921 /* Override any gcc2 internal prototype to avoid an error. */
26926 /* We use char because int might match the return type of a gcc2
26927 builtin and then its argument prototype would still apply. */
26929 /* The GNU C library defines this for functions which it implements
26930 to always fail with ENOSYS. Some functions are actually named
26931 something starting with __ and the normal name is an alias. */
26932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26935 char (*f) () = $ac_func;
26944 return f != $ac_func;
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951 (eval $ac_link) 2>conftest.er1
26953 grep -v '^ *+' conftest.er1 >conftest.err
26955 cat conftest.err >&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } &&
26958 { ac_try='test -z "$ac_c_werror_flag"
26959 || test ! -s conftest.err'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; } &&
26965 { ac_try='test -s conftest$ac_exeext'
26966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967 (eval $ac_try) 2>&5
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); }; }; then
26971 eval "$as_ac_var=yes"
26973 echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26976 eval "$as_ac_var=no"
26978 rm -f conftest.err conftest.$ac_objext \
26979 conftest$ac_exeext conftest.$ac_ext
26981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26983 if test `eval echo '${'$as_ac_var'}'` = yes; then
26984 cat >>confdefs.h <<_ACEOF
26985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26993 for ac_func in chflags
26995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26996 echo "$as_me:$LINENO: checking for $ac_func" >&5
26997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26998 if eval "test \"\${$as_ac_var+set}\" = set"; then
26999 echo $ECHO_N "(cached) $ECHO_C" >&6
27001 cat >conftest.$ac_ext <<_ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27009 #define $ac_func innocuous_$ac_func
27011 /* System header to define __stub macros and hopefully few prototypes,
27012 which can conflict with char $ac_func (); below.
27013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27014 <limits.h> exists even on freestanding compilers. */
27017 # include <limits.h>
27019 # include <assert.h>
27024 /* Override any gcc2 internal prototype to avoid an error. */
27029 /* We use char because int might match the return type of a gcc2
27030 builtin and then its argument prototype would still apply. */
27032 /* The GNU C library defines this for functions which it implements
27033 to always fail with ENOSYS. Some functions are actually named
27034 something starting with __ and the normal name is an alias. */
27035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27038 char (*f) () = $ac_func;
27047 return f != $ac_func;
27052 rm -f conftest.$ac_objext conftest$ac_exeext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27054 (eval $ac_link) 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
27061 { ac_try='test -z "$ac_c_werror_flag"
27062 || test ! -s conftest.err'
27063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064 (eval $ac_try) 2>&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); }; } &&
27068 { ac_try='test -s conftest$ac_exeext'
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; }; then
27074 eval "$as_ac_var=yes"
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27079 eval "$as_ac_var=no"
27081 rm -f conftest.err conftest.$ac_objext \
27082 conftest$ac_exeext conftest.$ac_ext
27084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27086 if test `eval echo '${'$as_ac_var'}'` = yes; then
27087 cat >>confdefs.h <<_ACEOF
27088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27099 for ac_func in snprintf vsnprintf gethostid fseeko
27101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27102 echo "$as_me:$LINENO: checking for $ac_func" >&5
27103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27104 if eval "test \"\${$as_ac_var+set}\" = set"; then
27105 echo $ECHO_N "(cached) $ECHO_C" >&6
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27115 #define $ac_func innocuous_$ac_func
27117 /* System header to define __stub macros and hopefully few prototypes,
27118 which can conflict with char $ac_func (); below.
27119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27120 <limits.h> exists even on freestanding compilers. */
27123 # include <limits.h>
27125 # include <assert.h>
27130 /* Override any gcc2 internal prototype to avoid an error. */
27135 /* We use char because int might match the return type of a gcc2
27136 builtin and then its argument prototype would still apply. */
27138 /* The GNU C library defines this for functions which it implements
27139 to always fail with ENOSYS. Some functions are actually named
27140 something starting with __ and the normal name is an alias. */
27141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27144 char (*f) () = $ac_func;
27153 return f != $ac_func;
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27160 (eval $ac_link) 2>conftest.er1
27162 grep -v '^ *+' conftest.er1 >conftest.err
27164 cat conftest.err >&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } &&
27167 { ac_try='test -z "$ac_c_werror_flag"
27168 || test ! -s conftest.err'
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); }; } &&
27174 { ac_try='test -s conftest$ac_exeext'
27175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176 (eval $ac_try) 2>&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); }; }; then
27180 eval "$as_ac_var=yes"
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 eval "$as_ac_var=no"
27187 rm -f conftest.err conftest.$ac_objext \
27188 conftest$ac_exeext conftest.$ac_ext
27190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27192 if test `eval echo '${'$as_ac_var'}'` = yes; then
27193 cat >>confdefs.h <<_ACEOF
27194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27201 echo "$as_me:$LINENO: checking for va_copy" >&5
27202 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27203 if test "${ba_cv_va_copy+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. */
27213 #include <stdarg.h>
27214 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27215 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27220 call_use_va_copy(1,2,3)
27225 rm -f conftest.$ac_objext conftest$ac_exeext
27226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27227 (eval $ac_link) 2>conftest.er1
27229 grep -v '^ *+' conftest.er1 >conftest.err
27231 cat conftest.err >&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); } &&
27234 { ac_try='test -z "$ac_c_werror_flag"
27235 || test ! -s conftest.err'
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; } &&
27241 { ac_try='test -s conftest$ac_exeext'
27242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243 (eval $ac_try) 2>&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; }; then
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27254 rm -f conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
27257 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27258 echo "${ECHO_T}$ba_cv_va_copy" >&6
27259 test $ba_cv_va_copy = yes &&
27260 cat >>confdefs.h <<\_ACEOF
27261 #define HAVE_VA_COPY 1
27270 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27273 echo "$as_me:$LINENO: checking for $ac_func" >&5
27274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27275 if eval "test \"\${$as_ac_var+set}\" = set"; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27278 cat >conftest.$ac_ext <<_ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h. */
27284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27286 #define $ac_func innocuous_$ac_func
27288 /* System header to define __stub macros and hopefully few prototypes,
27289 which can conflict with char $ac_func (); below.
27290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27291 <limits.h> exists even on freestanding compilers. */
27294 # include <limits.h>
27296 # include <assert.h>
27301 /* Override any gcc2 internal prototype to avoid an error. */
27306 /* We use char because int might match the return type of a gcc2
27307 builtin and then its argument prototype would still apply. */
27309 /* The GNU C library defines this for functions which it implements
27310 to always fail with ENOSYS. Some functions are actually named
27311 something starting with __ and the normal name is an alias. */
27312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27315 char (*f) () = $ac_func;
27324 return f != $ac_func;
27329 rm -f conftest.$ac_objext conftest$ac_exeext
27330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27331 (eval $ac_link) 2>conftest.er1
27333 grep -v '^ *+' conftest.er1 >conftest.err
27335 cat conftest.err >&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); } &&
27338 { ac_try='test -z "$ac_c_werror_flag"
27339 || test ! -s conftest.err'
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); }; } &&
27345 { ac_try='test -s conftest$ac_exeext'
27346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347 (eval $ac_try) 2>&5
27349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350 (exit $ac_status); }; }; then
27351 eval "$as_ac_var=yes"
27353 echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27356 eval "$as_ac_var=no"
27358 rm -f conftest.err conftest.$ac_objext \
27359 conftest$ac_exeext conftest.$ac_ext
27361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27363 if test `eval echo '${'$as_ac_var'}'` = yes; then
27364 cat >>confdefs.h <<_ACEOF
27365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27372 # If resolver functions are not in libc check for -lnsl or -lresolv.
27373 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27374 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27375 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27376 echo $ECHO_N "(cached) $ECHO_C" >&6
27378 cat >conftest.$ac_ext <<_ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h. */
27384 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27386 #define gethostbyname_r innocuous_gethostbyname_r
27388 /* System header to define __stub macros and hopefully few prototypes,
27389 which can conflict with char gethostbyname_r (); below.
27390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27391 <limits.h> exists even on freestanding compilers. */
27394 # include <limits.h>
27396 # include <assert.h>
27399 #undef gethostbyname_r
27401 /* Override any gcc2 internal prototype to avoid an error. */
27406 /* We use char because int might match the return type of a gcc2
27407 builtin and then its argument prototype would still apply. */
27408 char gethostbyname_r ();
27409 /* The GNU C library defines this for functions which it implements
27410 to always fail with ENOSYS. Some functions are actually named
27411 something starting with __ and the normal name is an alias. */
27412 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27415 char (*f) () = gethostbyname_r;
27424 return f != gethostbyname_r;
27429 rm -f conftest.$ac_objext conftest$ac_exeext
27430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27431 (eval $ac_link) 2>conftest.er1
27433 grep -v '^ *+' conftest.er1 >conftest.err
27435 cat conftest.err >&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); } &&
27438 { ac_try='test -z "$ac_c_werror_flag"
27439 || test ! -s conftest.err'
27440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27441 (eval $ac_try) 2>&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; } &&
27445 { ac_try='test -s conftest$ac_exeext'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27451 ac_cv_func_gethostbyname_r=yes
27453 echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.$ac_ext >&5
27456 ac_cv_func_gethostbyname_r=no
27458 rm -f conftest.err conftest.$ac_objext \
27459 conftest$ac_exeext conftest.$ac_ext
27461 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27462 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27463 if test $ac_cv_func_gethostbyname_r = yes; then
27464 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27465 echo "${ECHO_T}using libc's resolver" >&6
27468 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27469 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27470 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27473 ac_check_lib_save_LIBS=$LIBS
27475 cat >conftest.$ac_ext <<_ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27482 /* Override any gcc2 internal prototype to avoid an error. */
27486 /* We use char because int might match the return type of a gcc2
27487 builtin and then its argument prototype would still apply. */
27488 char gethostbyname_r ();
27492 gethostbyname_r ();
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27499 (eval $ac_link) 2>conftest.er1
27501 grep -v '^ *+' conftest.er1 >conftest.err
27503 cat conftest.err >&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); } &&
27506 { ac_try='test -z "$ac_c_werror_flag"
27507 || test ! -s conftest.err'
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; } &&
27513 { ac_try='test -s conftest$ac_exeext'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; }; then
27519 ac_cv_lib_nsl_gethostbyname_r=yes
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ac_cv_lib_nsl_gethostbyname_r=no
27526 rm -f conftest.err conftest.$ac_objext \
27527 conftest$ac_exeext conftest.$ac_ext
27528 LIBS=$ac_check_lib_save_LIBS
27530 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27531 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27532 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27533 cat >>confdefs.h <<_ACEOF
27534 #define HAVE_LIBNSL 1
27542 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27543 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27544 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27545 echo $ECHO_N "(cached) $ECHO_C" >&6
27547 ac_check_lib_save_LIBS=$LIBS
27548 LIBS="-lresolv $LIBS"
27549 cat >conftest.$ac_ext <<_ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27556 /* Override any gcc2 internal prototype to avoid an error. */
27560 /* We use char because int might match the return type of a gcc2
27561 builtin and then its argument prototype would still apply. */
27562 char gethostbyname_r ();
27566 gethostbyname_r ();
27571 rm -f conftest.$ac_objext conftest$ac_exeext
27572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27573 (eval $ac_link) 2>conftest.er1
27575 grep -v '^ *+' conftest.er1 >conftest.err
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
27580 { ac_try='test -z "$ac_c_werror_flag"
27581 || test ! -s conftest.err'
27582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27583 (eval $ac_try) 2>&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); }; } &&
27587 { ac_try='test -s conftest$ac_exeext'
27588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589 (eval $ac_try) 2>&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); }; }; then
27593 ac_cv_lib_resolv_gethostbyname_r=yes
27595 echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27598 ac_cv_lib_resolv_gethostbyname_r=no
27600 rm -f conftest.err conftest.$ac_objext \
27601 conftest$ac_exeext conftest.$ac_ext
27602 LIBS=$ac_check_lib_save_LIBS
27604 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27605 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27606 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27607 cat >>confdefs.h <<_ACEOF
27608 #define HAVE_LIBRESOLV 1
27611 LIBS="-lresolv $LIBS"
27621 for ac_func in inet_pton
27623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27624 echo "$as_me:$LINENO: checking for $ac_func" >&5
27625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27626 if eval "test \"\${$as_ac_var+set}\" = set"; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27629 cat >conftest.$ac_ext <<_ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h. */
27635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27637 #define $ac_func innocuous_$ac_func
27639 /* System header to define __stub macros and hopefully few prototypes,
27640 which can conflict with char $ac_func (); below.
27641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27642 <limits.h> exists even on freestanding compilers. */
27645 # include <limits.h>
27647 # include <assert.h>
27652 /* Override any gcc2 internal prototype to avoid an error. */
27657 /* We use char because int might match the return type of a gcc2
27658 builtin and then its argument prototype would still apply. */
27660 /* The GNU C library defines this for functions which it implements
27661 to always fail with ENOSYS. Some functions are actually named
27662 something starting with __ and the normal name is an alias. */
27663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27666 char (*f) () = $ac_func;
27675 return f != $ac_func;
27680 rm -f conftest.$ac_objext conftest$ac_exeext
27681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27682 (eval $ac_link) 2>conftest.er1
27684 grep -v '^ *+' conftest.er1 >conftest.err
27686 cat conftest.err >&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } &&
27689 { ac_try='test -z "$ac_c_werror_flag"
27690 || test ! -s conftest.err'
27691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692 (eval $ac_try) 2>&5
27694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695 (exit $ac_status); }; } &&
27696 { ac_try='test -s conftest$ac_exeext'
27697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698 (eval $ac_try) 2>&5
27700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701 (exit $ac_status); }; }; then
27702 eval "$as_ac_var=yes"
27704 echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27707 eval "$as_ac_var=no"
27709 rm -f conftest.err conftest.$ac_objext \
27710 conftest$ac_exeext conftest.$ac_ext
27712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27714 if test `eval echo '${'$as_ac_var'}'` = yes; then
27715 cat >>confdefs.h <<_ACEOF
27716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27718 cat >>confdefs.h <<\_ACEOF
27719 #define HAVE_INET_PTON 1
27726 for ac_func in inet_ntop
27728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27729 echo "$as_me:$LINENO: checking for $ac_func" >&5
27730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27731 if eval "test \"\${$as_ac_var+set}\" = set"; then
27732 echo $ECHO_N "(cached) $ECHO_C" >&6
27734 cat >conftest.$ac_ext <<_ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27742 #define $ac_func innocuous_$ac_func
27744 /* System header to define __stub macros and hopefully few prototypes,
27745 which can conflict with char $ac_func (); below.
27746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27747 <limits.h> exists even on freestanding compilers. */
27750 # include <limits.h>
27752 # include <assert.h>
27757 /* Override any gcc2 internal prototype to avoid an error. */
27762 /* We use char because int might match the return type of a gcc2
27763 builtin and then its argument prototype would still apply. */
27765 /* The GNU C library defines this for functions which it implements
27766 to always fail with ENOSYS. Some functions are actually named
27767 something starting with __ and the normal name is an alias. */
27768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27771 char (*f) () = $ac_func;
27780 return f != $ac_func;
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27787 (eval $ac_link) 2>conftest.er1
27789 grep -v '^ *+' conftest.er1 >conftest.err
27791 cat conftest.err >&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } &&
27794 { ac_try='test -z "$ac_c_werror_flag"
27795 || test ! -s conftest.err'
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803 (eval $ac_try) 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27807 eval "$as_ac_var=yes"
27809 echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27812 eval "$as_ac_var=no"
27814 rm -f conftest.err conftest.$ac_objext \
27815 conftest$ac_exeext conftest.$ac_ext
27817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27819 if test `eval echo '${'$as_ac_var'}'` = yes; then
27820 cat >>confdefs.h <<_ACEOF
27821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27823 cat >>confdefs.h <<\_ACEOF
27824 #define HAVE_INET_NTOP 1
27831 for ac_func in gethostbyname2
27833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27834 echo "$as_me:$LINENO: checking for $ac_func" >&5
27835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27836 if eval "test \"\${$as_ac_var+set}\" = set"; then
27837 echo $ECHO_N "(cached) $ECHO_C" >&6
27839 cat >conftest.$ac_ext <<_ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h. */
27845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27847 #define $ac_func innocuous_$ac_func
27849 /* System header to define __stub macros and hopefully few prototypes,
27850 which can conflict with char $ac_func (); below.
27851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27852 <limits.h> exists even on freestanding compilers. */
27855 # include <limits.h>
27857 # include <assert.h>
27862 /* Override any gcc2 internal prototype to avoid an error. */
27867 /* We use char because int might match the return type of a gcc2
27868 builtin and then its argument prototype would still apply. */
27870 /* The GNU C library defines this for functions which it implements
27871 to always fail with ENOSYS. Some functions are actually named
27872 something starting with __ and the normal name is an alias. */
27873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27876 char (*f) () = $ac_func;
27885 return f != $ac_func;
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892 (eval $ac_link) 2>conftest.er1
27894 grep -v '^ *+' conftest.er1 >conftest.err
27896 cat conftest.err >&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); } &&
27899 { ac_try='test -z "$ac_c_werror_flag"
27900 || test ! -s conftest.err'
27901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902 (eval $ac_try) 2>&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; } &&
27906 { ac_try='test -s conftest$ac_exeext'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; }; then
27912 eval "$as_ac_var=yes"
27914 echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27917 eval "$as_ac_var=no"
27919 rm -f conftest.err conftest.$ac_objext \
27920 conftest$ac_exeext conftest.$ac_ext
27922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27924 if test `eval echo '${'$as_ac_var'}'` = yes; then
27925 cat >>confdefs.h <<_ACEOF
27926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27928 cat >>confdefs.h <<\_ACEOF
27929 #define HAVE_GETHOSTBYNAME2 1
27936 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27937 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27938 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27941 cat >conftest.$ac_ext <<_ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27947 #include <sys/socket.h>
27951 struct sockaddr s; s.sa_len;
27956 rm -f conftest.$ac_objext
27957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27958 (eval $ac_compile) 2>conftest.er1
27960 grep -v '^ *+' conftest.er1 >conftest.err
27962 cat conftest.err >&5
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); } &&
27965 { ac_try='test -z "$ac_c_werror_flag"
27966 || test ! -s conftest.err'
27967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968 (eval $ac_try) 2>&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); }; } &&
27972 { ac_try='test -s conftest.$ac_objext'
27973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27974 (eval $ac_try) 2>&5
27976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977 (exit $ac_status); }; }; then
27978 ac_cv_struct_sockaddr_sa_len=yes
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27983 ac_cv_struct_sockaddr_sa_len=no
27985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27987 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27988 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27990 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27992 cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_SA_LEN 1
28002 for ac_func in strftime
28004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28005 echo "$as_me:$LINENO: checking for $ac_func" >&5
28006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28007 if eval "test \"\${$as_ac_var+set}\" = set"; then
28008 echo $ECHO_N "(cached) $ECHO_C" >&6
28010 cat >conftest.$ac_ext <<_ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h. */
28016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28018 #define $ac_func innocuous_$ac_func
28020 /* System header to define __stub macros and hopefully few prototypes,
28021 which can conflict with char $ac_func (); below.
28022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28023 <limits.h> exists even on freestanding compilers. */
28026 # include <limits.h>
28028 # include <assert.h>
28033 /* Override any gcc2 internal prototype to avoid an error. */
28038 /* We use char because int might match the return type of a gcc2
28039 builtin and then its argument prototype would still apply. */
28041 /* The GNU C library defines this for functions which it implements
28042 to always fail with ENOSYS. Some functions are actually named
28043 something starting with __ and the normal name is an alias. */
28044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28047 char (*f) () = $ac_func;
28056 return f != $ac_func;
28061 rm -f conftest.$ac_objext conftest$ac_exeext
28062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063 (eval $ac_link) 2>conftest.er1
28065 grep -v '^ *+' conftest.er1 >conftest.err
28067 cat conftest.err >&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); } &&
28070 { ac_try='test -z "$ac_c_werror_flag"
28071 || test ! -s conftest.err'
28072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; } &&
28077 { ac_try='test -s conftest$ac_exeext'
28078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079 (eval $ac_try) 2>&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; }; then
28083 eval "$as_ac_var=yes"
28085 echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28088 eval "$as_ac_var=no"
28090 rm -f conftest.err conftest.$ac_objext \
28091 conftest$ac_exeext conftest.$ac_ext
28093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28095 if test `eval echo '${'$as_ac_var'}'` = yes; then
28096 cat >>confdefs.h <<_ACEOF
28097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28101 # strftime is in -lintl on SCO UNIX.
28102 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28103 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
28104 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28107 ac_check_lib_save_LIBS=$LIBS
28108 LIBS="-lintl $LIBS"
28109 cat >conftest.$ac_ext <<_ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h. */
28116 /* Override any gcc2 internal prototype to avoid an error. */
28120 /* We use char because int might match the return type of a gcc2
28121 builtin and then its argument prototype would still apply. */
28131 rm -f conftest.$ac_objext conftest$ac_exeext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28133 (eval $ac_link) 2>conftest.er1
28135 grep -v '^ *+' conftest.er1 >conftest.err
28137 cat conftest.err >&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } &&
28140 { ac_try='test -z "$ac_c_werror_flag"
28141 || test ! -s conftest.err'
28142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143 (eval $ac_try) 2>&5
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); }; } &&
28147 { ac_try='test -s conftest$ac_exeext'
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
28153 ac_cv_lib_intl_strftime=yes
28155 echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28158 ac_cv_lib_intl_strftime=no
28160 rm -f conftest.err conftest.$ac_objext \
28161 conftest$ac_exeext conftest.$ac_ext
28162 LIBS=$ac_check_lib_save_LIBS
28164 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28165 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28166 if test $ac_cv_lib_intl_strftime = yes; then
28167 cat >>confdefs.h <<\_ACEOF
28168 #define HAVE_STRFTIME 1
28171 LIBS="-lintl $LIBS"
28178 for ac_func in vprintf
28180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28181 echo "$as_me:$LINENO: checking for $ac_func" >&5
28182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28183 if eval "test \"\${$as_ac_var+set}\" = set"; then
28184 echo $ECHO_N "(cached) $ECHO_C" >&6
28186 cat >conftest.$ac_ext <<_ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h. */
28192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28194 #define $ac_func innocuous_$ac_func
28196 /* System header to define __stub macros and hopefully few prototypes,
28197 which can conflict with char $ac_func (); below.
28198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199 <limits.h> exists even on freestanding compilers. */
28202 # include <limits.h>
28204 # include <assert.h>
28209 /* Override any gcc2 internal prototype to avoid an error. */
28214 /* We use char because int might match the return type of a gcc2
28215 builtin and then its argument prototype would still apply. */
28217 /* The GNU C library defines this for functions which it implements
28218 to always fail with ENOSYS. Some functions are actually named
28219 something starting with __ and the normal name is an alias. */
28220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28223 char (*f) () = $ac_func;
28232 return f != $ac_func;
28237 rm -f conftest.$ac_objext conftest$ac_exeext
28238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28239 (eval $ac_link) 2>conftest.er1
28241 grep -v '^ *+' conftest.er1 >conftest.err
28243 cat conftest.err >&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } &&
28246 { ac_try='test -z "$ac_c_werror_flag"
28247 || test ! -s conftest.err'
28248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249 (eval $ac_try) 2>&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; } &&
28253 { ac_try='test -s conftest$ac_exeext'
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 eval "$as_ac_var=yes"
28261 echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28264 eval "$as_ac_var=no"
28266 rm -f conftest.err conftest.$ac_objext \
28267 conftest$ac_exeext conftest.$ac_ext
28269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28271 if test `eval echo '${'$as_ac_var'}'` = yes; then
28272 cat >>confdefs.h <<_ACEOF
28273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28276 echo "$as_me:$LINENO: checking for _doprnt" >&5
28277 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28278 if test "${ac_cv_func__doprnt+set}" = set; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28281 cat >conftest.$ac_ext <<_ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h. */
28287 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28289 #define _doprnt innocuous__doprnt
28291 /* System header to define __stub macros and hopefully few prototypes,
28292 which can conflict with char _doprnt (); below.
28293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28294 <limits.h> exists even on freestanding compilers. */
28297 # include <limits.h>
28299 # include <assert.h>
28304 /* Override any gcc2 internal prototype to avoid an error. */
28309 /* We use char because int might match the return type of a gcc2
28310 builtin and then its argument prototype would still apply. */
28312 /* The GNU C library defines this for functions which it implements
28313 to always fail with ENOSYS. Some functions are actually named
28314 something starting with __ and the normal name is an alias. */
28315 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28318 char (*f) () = _doprnt;
28327 return f != _doprnt;
28332 rm -f conftest.$ac_objext conftest$ac_exeext
28333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28334 (eval $ac_link) 2>conftest.er1
28336 grep -v '^ *+' conftest.er1 >conftest.err
28338 cat conftest.err >&5
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); } &&
28341 { ac_try='test -z "$ac_c_werror_flag"
28342 || test ! -s conftest.err'
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; } &&
28348 { ac_try='test -s conftest$ac_exeext'
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 ac_cv_func__doprnt=yes
28356 echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28359 ac_cv_func__doprnt=no
28361 rm -f conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
28364 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28365 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28366 if test $ac_cv_func__doprnt = yes; then
28368 cat >>confdefs.h <<\_ACEOF
28369 #define HAVE_DOPRNT 1
28378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28379 # for constant arguments. Useless!
28380 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28381 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28382 if test "${ac_cv_working_alloca_h+set}" = set; then
28383 echo $ECHO_N "(cached) $ECHO_C" >&6
28385 cat >conftest.$ac_ext <<_ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28391 #include <alloca.h>
28395 char *p = (char *) alloca (2 * sizeof (int));
28400 rm -f conftest.$ac_objext conftest$ac_exeext
28401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28402 (eval $ac_link) 2>conftest.er1
28404 grep -v '^ *+' conftest.er1 >conftest.err
28406 cat conftest.err >&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); } &&
28409 { ac_try='test -z "$ac_c_werror_flag"
28410 || test ! -s conftest.err'
28411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest$ac_exeext'
28417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418 (eval $ac_try) 2>&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
28422 ac_cv_working_alloca_h=yes
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 ac_cv_working_alloca_h=no
28429 rm -f conftest.err conftest.$ac_objext \
28430 conftest$ac_exeext conftest.$ac_ext
28432 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28433 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28434 if test $ac_cv_working_alloca_h = yes; then
28436 cat >>confdefs.h <<\_ACEOF
28437 #define HAVE_ALLOCA_H 1
28442 echo "$as_me:$LINENO: checking for alloca" >&5
28443 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28444 if test "${ac_cv_func_alloca_works+set}" = set; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28447 cat >conftest.$ac_ext <<_ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h. */
28454 # define alloca __builtin_alloca
28457 # include <malloc.h>
28458 # define alloca _alloca
28461 # include <alloca.h>
28466 # ifndef alloca /* predefined by HP cc +Olibcalls */
28477 char *p = (char *) alloca (1);
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484 (eval $ac_link) 2>conftest.er1
28486 grep -v '^ *+' conftest.er1 >conftest.err
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag"
28492 || test ! -s conftest.err'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; } &&
28498 { ac_try='test -s conftest$ac_exeext'
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 ac_cv_func_alloca_works=yes
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 ac_cv_func_alloca_works=no
28511 rm -f conftest.err conftest.$ac_objext \
28512 conftest$ac_exeext conftest.$ac_ext
28514 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28515 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28517 if test $ac_cv_func_alloca_works = yes; then
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_ALLOCA 1
28524 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28525 # that cause trouble. Some versions do not even contain alloca or
28526 # contain a buggy version. If you still want to use their alloca,
28527 # use ar to extract alloca.o from them instead of compiling alloca.c.
28529 ALLOCA=alloca.$ac_objext
28531 cat >>confdefs.h <<\_ACEOF
28536 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28537 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28538 if test "${ac_cv_os_cray+set}" = set; then
28539 echo $ECHO_N "(cached) $ECHO_C" >&6
28541 cat >conftest.$ac_ext <<_ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h. */
28547 #if defined(CRAY) && ! defined(CRAY2)
28554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28555 $EGREP "webecray" >/dev/null 2>&1; then
28563 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28564 echo "${ECHO_T}$ac_cv_os_cray" >&6
28565 if test $ac_cv_os_cray = yes; then
28566 for ac_func in _getb67 GETB67 getb67; do
28567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28568 echo "$as_me:$LINENO: checking for $ac_func" >&5
28569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28570 if eval "test \"\${$as_ac_var+set}\" = set"; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28581 #define $ac_func innocuous_$ac_func
28583 /* System header to define __stub macros and hopefully few prototypes,
28584 which can conflict with char $ac_func (); below.
28585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28586 <limits.h> exists even on freestanding compilers. */
28589 # include <limits.h>
28591 # include <assert.h>
28596 /* Override any gcc2 internal prototype to avoid an error. */
28601 /* We use char because int might match the return type of a gcc2
28602 builtin and then its argument prototype would still apply. */
28604 /* The GNU C library defines this for functions which it implements
28605 to always fail with ENOSYS. Some functions are actually named
28606 something starting with __ and the normal name is an alias. */
28607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28610 char (*f) () = $ac_func;
28619 return f != $ac_func;
28624 rm -f conftest.$ac_objext conftest$ac_exeext
28625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28626 (eval $ac_link) 2>conftest.er1
28628 grep -v '^ *+' conftest.er1 >conftest.err
28630 cat conftest.err >&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
28633 { ac_try='test -z "$ac_c_werror_flag"
28634 || test ! -s conftest.err'
28635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636 (eval $ac_try) 2>&5
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; } &&
28640 { ac_try='test -s conftest$ac_exeext'
28641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642 (eval $ac_try) 2>&5
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; }; then
28646 eval "$as_ac_var=yes"
28648 echo "$as_me: failed program was:" >&5
28649 sed 's/^/| /' conftest.$ac_ext >&5
28651 eval "$as_ac_var=no"
28653 rm -f conftest.err conftest.$ac_objext \
28654 conftest$ac_exeext conftest.$ac_ext
28656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28658 if test `eval echo '${'$as_ac_var'}'` = yes; then
28660 cat >>confdefs.h <<_ACEOF
28661 #define CRAY_STACKSEG_END $ac_func
28670 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28671 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28672 if test "${ac_cv_c_stack_direction+set}" = set; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28675 if test "$cross_compiling" = yes; then
28676 ac_cv_c_stack_direction=0
28678 cat >conftest.$ac_ext <<_ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h. */
28685 find_stack_direction ()
28687 static char *addr = 0;
28692 return find_stack_direction ();
28695 return (&dummy > addr) ? 1 : -1;
28701 exit (find_stack_direction () < 0);
28704 rm -f conftest$ac_exeext
28705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28706 (eval $ac_link) 2>&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
28715 ac_cv_c_stack_direction=1
28717 echo "$as_me: program exited with status $ac_status" >&5
28718 echo "$as_me: failed program was:" >&5
28719 sed 's/^/| /' conftest.$ac_ext >&5
28721 ( exit $ac_status )
28722 ac_cv_c_stack_direction=-1
28724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28727 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28728 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28730 cat >>confdefs.h <<_ACEOF
28731 #define STACK_DIRECTION $ac_cv_c_stack_direction
28737 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28738 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28739 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28740 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28743 ac_check_lib_save_LIBS=$LIBS
28745 cat >conftest.$ac_ext <<_ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h. */
28752 /* Override any gcc2 internal prototype to avoid an error. */
28756 /* We use char because int might match the return type of a gcc2
28757 builtin and then its argument prototype would still apply. */
28767 rm -f conftest.$ac_objext conftest$ac_exeext
28768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28769 (eval $ac_link) 2>conftest.er1
28771 grep -v '^ *+' conftest.er1 >conftest.err
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
28776 { ac_try='test -z "$ac_c_werror_flag"
28777 || test ! -s conftest.err'
28778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; } &&
28783 { ac_try='test -s conftest$ac_exeext'
28784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785 (eval $ac_try) 2>&5
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; }; then
28789 ac_cv_lib_sun_getmntent=yes
28791 echo "$as_me: failed program was:" >&5
28792 sed 's/^/| /' conftest.$ac_ext >&5
28794 ac_cv_lib_sun_getmntent=no
28796 rm -f conftest.err conftest.$ac_objext \
28797 conftest$ac_exeext conftest.$ac_ext
28798 LIBS=$ac_check_lib_save_LIBS
28800 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28801 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28802 if test $ac_cv_lib_sun_getmntent = yes; then
28805 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28806 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28807 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28810 ac_check_lib_save_LIBS=$LIBS
28812 cat >conftest.$ac_ext <<_ACEOF
28815 cat confdefs.h >>conftest.$ac_ext
28816 cat >>conftest.$ac_ext <<_ACEOF
28817 /* end confdefs.h. */
28819 /* Override any gcc2 internal prototype to avoid an error. */
28823 /* We use char because int might match the return type of a gcc2
28824 builtin and then its argument prototype would still apply. */
28834 rm -f conftest.$ac_objext conftest$ac_exeext
28835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28836 (eval $ac_link) 2>conftest.er1
28838 grep -v '^ *+' conftest.er1 >conftest.err
28840 cat conftest.err >&5
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); } &&
28843 { ac_try='test -z "$ac_c_werror_flag"
28844 || test ! -s conftest.err'
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; } &&
28850 { ac_try='test -s conftest$ac_exeext'
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; }; then
28856 ac_cv_lib_seq_getmntent=yes
28858 echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28861 ac_cv_lib_seq_getmntent=no
28863 rm -f conftest.err conftest.$ac_objext \
28864 conftest$ac_exeext conftest.$ac_ext
28865 LIBS=$ac_check_lib_save_LIBS
28867 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28868 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28869 if test $ac_cv_lib_seq_getmntent = yes; then
28872 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28873 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28874 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28875 echo $ECHO_N "(cached) $ECHO_C" >&6
28877 ac_check_lib_save_LIBS=$LIBS
28879 cat >conftest.$ac_ext <<_ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h. */
28886 /* Override any gcc2 internal prototype to avoid an error. */
28890 /* We use char because int might match the return type of a gcc2
28891 builtin and then its argument prototype would still apply. */
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28903 (eval $ac_link) 2>conftest.er1
28905 grep -v '^ *+' conftest.er1 >conftest.err
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } &&
28910 { ac_try='test -z "$ac_c_werror_flag"
28911 || test ! -s conftest.err'
28912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913 (eval $ac_try) 2>&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; } &&
28917 { ac_try='test -s conftest$ac_exeext'
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 ac_cv_lib_gen_getmntent=yes
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 ac_cv_lib_gen_getmntent=no
28930 rm -f conftest.err conftest.$ac_objext \
28931 conftest$ac_exeext conftest.$ac_ext
28932 LIBS=$ac_check_lib_save_LIBS
28934 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28935 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28936 if test $ac_cv_lib_gen_getmntent = yes; then
28945 for ac_func in getmntent
28947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28948 echo "$as_me:$LINENO: checking for $ac_func" >&5
28949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28950 if eval "test \"\${$as_ac_var+set}\" = set"; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28961 #define $ac_func innocuous_$ac_func
28963 /* System header to define __stub macros and hopefully few prototypes,
28964 which can conflict with char $ac_func (); below.
28965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966 <limits.h> exists even on freestanding compilers. */
28969 # include <limits.h>
28971 # include <assert.h>
28976 /* Override any gcc2 internal prototype to avoid an error. */
28981 /* We use char because int might match the return type of a gcc2
28982 builtin and then its argument prototype would still apply. */
28984 /* The GNU C library defines this for functions which it implements
28985 to always fail with ENOSYS. Some functions are actually named
28986 something starting with __ and the normal name is an alias. */
28987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28990 char (*f) () = $ac_func;
28999 return f != $ac_func;
29004 rm -f conftest.$ac_objext conftest$ac_exeext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29006 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 eval "$as_ac_var=no"
29033 rm -f conftest.err conftest.$ac_objext \
29034 conftest$ac_exeext conftest.$ac_ext
29036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29038 if test `eval echo '${'$as_ac_var'}'` = yes; then
29039 cat >>confdefs.h <<_ACEOF
29040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29047 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29048 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
29049 if test "${ac_cv_func_closedir_void+set}" = set; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 if test "$cross_compiling" = yes; then
29053 ac_cv_func_closedir_void=yes
29055 cat >conftest.$ac_ext <<_ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h. */
29061 $ac_includes_default
29062 #include <$ac_header_dirent>
29063 #ifndef __cplusplus
29070 exit (closedir (opendir (".")) != 0);
29075 rm -f conftest$ac_exeext
29076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29077 (eval $ac_link) 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29082 (eval $ac_try) 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; }; then
29086 ac_cv_func_closedir_void=no
29088 echo "$as_me: program exited with status $ac_status" >&5
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29092 ( exit $ac_status )
29093 ac_cv_func_closedir_void=yes
29095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29098 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29099 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29100 if test $ac_cv_func_closedir_void = yes; then
29102 cat >>confdefs.h <<\_ACEOF
29103 #define CLOSEDIR_VOID 1
29108 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29109 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29110 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29113 if test "$cross_compiling" = yes; then
29114 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29115 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29116 { (exit 1); exit 1; }; }
29118 cat >conftest.$ac_ext <<_ACEOF
29121 cat confdefs.h >>conftest.$ac_ext
29122 cat >>conftest.$ac_ext <<_ACEOF
29123 /* end confdefs.h. */
29125 # include <unistd.h>
29131 /* If this system has a BSD-style setpgrp which takes arguments,
29132 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29133 exit successfully. */
29134 exit (setpgrp (1,1) == -1 ? 0 : 1);
29139 rm -f conftest$ac_exeext
29140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141 (eval $ac_link) 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29146 (eval $ac_try) 2>&5
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; }; then
29150 ac_cv_func_setpgrp_void=no
29152 echo "$as_me: program exited with status $ac_status" >&5
29153 echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29156 ( exit $ac_status )
29157 ac_cv_func_setpgrp_void=yes
29159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29162 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29163 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29164 if test $ac_cv_func_setpgrp_void = yes; then
29166 cat >>confdefs.h <<\_ACEOF
29167 #define SETPGRP_VOID 1
29171 # AC_FUNC_FNMATCH dnl use local version
29174 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29175 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29176 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29177 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 ac_check_lib_save_LIBS=$LIBS
29180 LIBS="-lintl $LIBS"
29181 cat >conftest.$ac_ext <<_ACEOF
29184 cat confdefs.h >>conftest.$ac_ext
29185 cat >>conftest.$ac_ext <<_ACEOF
29186 /* end confdefs.h. */
29188 /* Override any gcc2 internal prototype to avoid an error. */
29192 /* We use char because int might match the return type of a gcc2
29193 builtin and then its argument prototype would still apply. */
29203 rm -f conftest.$ac_objext conftest$ac_exeext
29204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29205 (eval $ac_link) 2>conftest.er1
29207 grep -v '^ *+' conftest.er1 >conftest.err
29209 cat conftest.err >&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); } &&
29212 { ac_try='test -z "$ac_c_werror_flag"
29213 || test ! -s conftest.err'
29214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215 (eval $ac_try) 2>&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; } &&
29219 { ac_try='test -s conftest$ac_exeext'
29220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221 (eval $ac_try) 2>&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; }; then
29225 ac_cv_lib_intl_gettext=yes
29227 echo "$as_me: failed program was:" >&5
29228 sed 's/^/| /' conftest.$ac_ext >&5
29230 ac_cv_lib_intl_gettext=no
29232 rm -f conftest.err conftest.$ac_objext \
29233 conftest$ac_exeext conftest.$ac_ext
29234 LIBS=$ac_check_lib_save_LIBS
29236 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29237 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29238 if test $ac_cv_lib_intl_gettext = yes; then
29239 LIBS="$LIBS -lintl"
29245 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29246 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29247 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29250 ac_check_lib_save_LIBS=$LIBS
29252 cat >conftest.$ac_ext <<_ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h. */
29259 /* Override any gcc2 internal prototype to avoid an error. */
29263 /* We use char because int might match the return type of a gcc2
29264 builtin and then its argument prototype would still apply. */
29274 rm -f conftest.$ac_objext conftest$ac_exeext
29275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29276 (eval $ac_link) 2>conftest.er1
29278 grep -v '^ *+' conftest.er1 >conftest.err
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } &&
29283 { ac_try='test -z "$ac_c_werror_flag"
29284 || test ! -s conftest.err'
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; } &&
29290 { ac_try='test -s conftest$ac_exeext'
29291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292 (eval $ac_try) 2>&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); }; }; then
29296 ac_cv_lib_sun_getpwnam=yes
29298 echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29301 ac_cv_lib_sun_getpwnam=no
29303 rm -f conftest.err conftest.$ac_objext \
29304 conftest$ac_exeext conftest.$ac_ext
29305 LIBS=$ac_check_lib_save_LIBS
29307 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29308 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29309 if test $ac_cv_lib_sun_getpwnam = yes; then
29310 cat >>confdefs.h <<_ACEOF
29311 #define HAVE_LIBSUN 1
29320 for ac_header in zlib.h
29322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29324 echo "$as_me:$LINENO: checking for $ac_header" >&5
29325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29327 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29332 # Is the header compilable?
29333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29335 cat >conftest.$ac_ext <<_ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29341 $ac_includes_default
29342 #include <$ac_header>
29344 rm -f conftest.$ac_objext
29345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29346 (eval $ac_compile) 2>conftest.er1
29348 grep -v '^ *+' conftest.er1 >conftest.err
29350 cat conftest.err >&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); } &&
29353 { ac_try='test -z "$ac_c_werror_flag"
29354 || test ! -s conftest.err'
29355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356 (eval $ac_try) 2>&5
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; } &&
29360 { ac_try='test -s conftest.$ac_objext'
29361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362 (eval $ac_try) 2>&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); }; }; then
29366 ac_header_compiler=yes
29368 echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29371 ac_header_compiler=no
29373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29375 echo "${ECHO_T}$ac_header_compiler" >&6
29377 # Is the header present?
29378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29380 cat >conftest.$ac_ext <<_ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h. */
29386 #include <$ac_header>
29388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29391 grep -v '^ *+' conftest.er1 >conftest.err
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } >/dev/null; then
29396 if test -s conftest.err; then
29397 ac_cpp_err=$ac_c_preproc_warn_flag
29398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29405 if test -z "$ac_cpp_err"; then
29406 ac_header_preproc=yes
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 ac_header_preproc=no
29413 rm -f conftest.err conftest.$ac_ext
29414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29415 echo "${ECHO_T}$ac_header_preproc" >&6
29417 # So? What about this header?
29418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29424 ac_header_preproc=yes
29427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29441 ## ------------------------------------------ ##
29442 ## Report this to the AC_PACKAGE_NAME lists. ##
29443 ## ------------------------------------------ ##
29446 sed "s/^/$as_me: WARNING: /" >&2
29449 echo "$as_me:$LINENO: checking for $ac_header" >&5
29450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
29454 eval "$as_ac_Header=\$ac_header_preproc"
29456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29461 cat >>confdefs.h <<_ACEOF
29462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29469 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29470 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29471 if test "${ac_cv_lib_z_deflate+set}" = set; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29474 ac_check_lib_save_LIBS=$LIBS
29476 cat >conftest.$ac_ext <<_ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h. */
29483 /* Override any gcc2 internal prototype to avoid an error. */
29487 /* We use char because int might match the return type of a gcc2
29488 builtin and then its argument prototype would still apply. */
29498 rm -f conftest.$ac_objext conftest$ac_exeext
29499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29500 (eval $ac_link) 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } &&
29507 { ac_try='test -z "$ac_c_werror_flag"
29508 || test ! -s conftest.err'
29509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29510 (eval $ac_try) 2>&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); }; } &&
29514 { ac_try='test -s conftest$ac_exeext'
29515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29516 (eval $ac_try) 2>&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; }; then
29520 ac_cv_lib_z_deflate=yes
29522 echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29525 ac_cv_lib_z_deflate=no
29527 rm -f conftest.err conftest.$ac_objext \
29528 conftest$ac_exeext conftest.$ac_ext
29529 LIBS=$ac_check_lib_save_LIBS
29531 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29532 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29533 if test $ac_cv_lib_z_deflate = yes; then
29538 if test x$FDLIBS = x-lz; then
29539 cat >>confdefs.h <<\_ACEOF
29540 #define HAVE_LIBZ 1
29547 # Check for ACL libraries
29550 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29551 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29552 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29553 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29554 echo $ECHO_N "(cached) $ECHO_C" >&6
29556 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29557 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29559 # Is the header compilable?
29560 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29561 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29562 cat >conftest.$ac_ext <<_ACEOF
29565 cat confdefs.h >>conftest.$ac_ext
29566 cat >>conftest.$ac_ext <<_ACEOF
29567 /* end confdefs.h. */
29568 $ac_includes_default
29569 #include <sys/acl.h>
29571 rm -f conftest.$ac_objext
29572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29573 (eval $ac_compile) 2>conftest.er1
29575 grep -v '^ *+' conftest.er1 >conftest.err
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } &&
29580 { ac_try='test -z "$ac_c_werror_flag"
29581 || test ! -s conftest.err'
29582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29583 (eval $ac_try) 2>&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; } &&
29587 { ac_try='test -s conftest.$ac_objext'
29588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589 (eval $ac_try) 2>&5
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; }; then
29593 ac_header_compiler=yes
29595 echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29598 ac_header_compiler=no
29600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29602 echo "${ECHO_T}$ac_header_compiler" >&6
29604 # Is the header present?
29605 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29606 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29607 cat >conftest.$ac_ext <<_ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h. */
29613 #include <sys/acl.h>
29615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29618 grep -v '^ *+' conftest.er1 >conftest.err
29620 cat conftest.err >&5
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); } >/dev/null; then
29623 if test -s conftest.err; then
29624 ac_cpp_err=$ac_c_preproc_warn_flag
29625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29632 if test -z "$ac_cpp_err"; then
29633 ac_header_preproc=yes
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ac_header_preproc=no
29640 rm -f conftest.err conftest.$ac_ext
29641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29642 echo "${ECHO_T}$ac_header_preproc" >&6
29644 # So? What about this header?
29645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29647 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29648 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29649 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29650 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29651 ac_header_preproc=yes
29654 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29655 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29656 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29657 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29658 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29659 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29660 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29661 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29662 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29663 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29664 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29665 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29668 ## ------------------------------------------ ##
29669 ## Report this to the AC_PACKAGE_NAME lists. ##
29670 ## ------------------------------------------ ##
29673 sed "s/^/$as_me: WARNING: /" >&2
29676 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29677 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29678 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29679 echo $ECHO_N "(cached) $ECHO_C" >&6
29681 ac_cv_header_sys_acl_h=$ac_header_preproc
29683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29684 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29689 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29690 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29691 if test "${ac_cv_func_acl_get_file+set}" = set; then
29692 echo $ECHO_N "(cached) $ECHO_C" >&6
29694 cat >conftest.$ac_ext <<_ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h. */
29700 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29702 #define acl_get_file innocuous_acl_get_file
29704 /* System header to define __stub macros and hopefully few prototypes,
29705 which can conflict with char acl_get_file (); below.
29706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29707 <limits.h> exists even on freestanding compilers. */
29710 # include <limits.h>
29712 # include <assert.h>
29715 #undef acl_get_file
29717 /* Override any gcc2 internal prototype to avoid an error. */
29722 /* We use char because int might match the return type of a gcc2
29723 builtin and then its argument prototype would still apply. */
29724 char acl_get_file ();
29725 /* The GNU C library defines this for functions which it implements
29726 to always fail with ENOSYS. Some functions are actually named
29727 something starting with __ and the normal name is an alias. */
29728 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29731 char (*f) () = acl_get_file;
29740 return f != acl_get_file;
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29747 (eval $ac_link) 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } &&
29754 { ac_try='test -z "$ac_c_werror_flag"
29755 || test ! -s conftest.err'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; } &&
29761 { ac_try='test -s conftest$ac_exeext'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; }; then
29767 ac_cv_func_acl_get_file=yes
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772 ac_cv_func_acl_get_file=no
29774 rm -f conftest.err conftest.$ac_objext \
29775 conftest$ac_exeext conftest.$ac_ext
29777 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29778 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29779 if test $ac_cv_func_acl_get_file = yes; then
29782 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29783 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29784 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29785 echo $ECHO_N "(cached) $ECHO_C" >&6
29787 ac_check_lib_save_LIBS=$LIBS
29789 cat >conftest.$ac_ext <<_ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h. */
29796 /* Override any gcc2 internal prototype to avoid an error. */
29800 /* We use char because int might match the return type of a gcc2
29801 builtin and then its argument prototype would still apply. */
29802 char acl_get_file ();
29811 rm -f conftest.$ac_objext conftest$ac_exeext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29813 (eval $ac_link) 2>conftest.er1
29815 grep -v '^ *+' conftest.er1 >conftest.err
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } &&
29820 { ac_try='test -z "$ac_c_werror_flag"
29821 || test ! -s conftest.err'
29822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823 (eval $ac_try) 2>&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); }; } &&
29827 { ac_try='test -s conftest$ac_exeext'
29828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829 (eval $ac_try) 2>&5
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 ac_cv_lib_acl_acl_get_file=yes
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_cv_lib_acl_acl_get_file=no
29840 rm -f conftest.err conftest.$ac_objext \
29841 conftest$ac_exeext conftest.$ac_ext
29842 LIBS=$ac_check_lib_save_LIBS
29844 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29845 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29846 if test $ac_cv_lib_acl_acl_get_file = yes; then
29847 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29849 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29850 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29851 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29854 ac_check_lib_save_LIBS=$LIBS
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29863 /* Override any gcc2 internal prototype to avoid an error. */
29867 /* We use char because int might match the return type of a gcc2
29868 builtin and then its argument prototype would still apply. */
29878 rm -f conftest.$ac_objext conftest$ac_exeext
29879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29880 (eval $ac_link) 2>conftest.er1
29882 grep -v '^ *+' conftest.er1 >conftest.err
29884 cat conftest.err >&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); } &&
29887 { ac_try='test -z "$ac_c_werror_flag"
29888 || test ! -s conftest.err'
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; } &&
29894 { ac_try='test -s conftest$ac_exeext'
29895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896 (eval $ac_try) 2>&5
29898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899 (exit $ac_status); }; }; then
29900 ac_cv_lib_sec_acltotext=yes
29902 echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29905 ac_cv_lib_sec_acltotext=no
29907 rm -f conftest.err conftest.$ac_objext \
29908 conftest$ac_exeext conftest.$ac_ext
29909 LIBS=$ac_check_lib_save_LIBS
29911 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29912 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29913 if test $ac_cv_lib_sec_acltotext = yes; then
29914 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29923 if test $have_acl = yes; then
29924 cat >>confdefs.h <<\_ACEOF
29931 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29932 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29933 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29934 echo $ECHO_N "(cached) $ECHO_C" >&6
29936 ac_check_lib_save_LIBS=$LIBS
29937 LIBS="-lpthread $LIBS"
29938 cat >conftest.$ac_ext <<_ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h. */
29945 /* Override any gcc2 internal prototype to avoid an error. */
29949 /* We use char because int might match the return type of a gcc2
29950 builtin and then its argument prototype would still apply. */
29951 char pthread_create ();
29960 rm -f conftest.$ac_objext conftest$ac_exeext
29961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29962 (eval $ac_link) 2>conftest.er1
29964 grep -v '^ *+' conftest.er1 >conftest.err
29966 cat conftest.err >&5
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); } &&
29969 { ac_try='test -z "$ac_c_werror_flag"
29970 || test ! -s conftest.err'
29971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972 (eval $ac_try) 2>&5
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest$ac_exeext'
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; }; then
29982 ac_cv_lib_pthread_pthread_create=yes
29984 echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29987 ac_cv_lib_pthread_pthread_create=no
29989 rm -f conftest.err conftest.$ac_objext \
29990 conftest$ac_exeext conftest.$ac_ext
29991 LIBS=$ac_check_lib_save_LIBS
29993 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29994 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29995 if test $ac_cv_lib_pthread_pthread_create = yes; then
29996 PTHREAD_LIB="-lpthread"
29998 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29999 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
30000 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
30001 echo $ECHO_N "(cached) $ECHO_C" >&6
30003 ac_check_lib_save_LIBS=$LIBS
30004 LIBS="-lpthreads $LIBS"
30005 cat >conftest.$ac_ext <<_ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30012 /* Override any gcc2 internal prototype to avoid an error. */
30016 /* We use char because int might match the return type of a gcc2
30017 builtin and then its argument prototype would still apply. */
30018 char pthread_create ();
30027 rm -f conftest.$ac_objext conftest$ac_exeext
30028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30029 (eval $ac_link) 2>conftest.er1
30031 grep -v '^ *+' conftest.er1 >conftest.err
30033 cat conftest.err >&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } &&
30036 { ac_try='test -z "$ac_c_werror_flag"
30037 || test ! -s conftest.err'
30038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30039 (eval $ac_try) 2>&5
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest$ac_exeext'
30044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045 (eval $ac_try) 2>&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; }; then
30049 ac_cv_lib_pthreads_pthread_create=yes
30051 echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30054 ac_cv_lib_pthreads_pthread_create=no
30056 rm -f conftest.err conftest.$ac_objext \
30057 conftest$ac_exeext conftest.$ac_ext
30058 LIBS=$ac_check_lib_save_LIBS
30060 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30061 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
30062 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30063 PTHREAD_LIB="-lpthreads"
30065 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30066 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
30067 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30068 echo $ECHO_N "(cached) $ECHO_C" >&6
30070 ac_check_lib_save_LIBS=$LIBS
30072 cat >conftest.$ac_ext <<_ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30079 /* Override any gcc2 internal prototype to avoid an error. */
30083 /* We use char because int might match the return type of a gcc2
30084 builtin and then its argument prototype would still apply. */
30085 char pthread_create ();
30094 rm -f conftest.$ac_objext conftest$ac_exeext
30095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30096 (eval $ac_link) 2>conftest.er1
30098 grep -v '^ *+' conftest.er1 >conftest.err
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } &&
30103 { ac_try='test -z "$ac_c_werror_flag"
30104 || test ! -s conftest.err'
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; } &&
30110 { ac_try='test -s conftest$ac_exeext'
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; }; then
30116 ac_cv_lib_c_r_pthread_create=yes
30118 echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30121 ac_cv_lib_c_r_pthread_create=no
30123 rm -f conftest.err conftest.$ac_objext \
30124 conftest$ac_exeext conftest.$ac_ext
30125 LIBS=$ac_check_lib_save_LIBS
30127 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30128 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30129 if test $ac_cv_lib_c_r_pthread_create = yes; then
30130 PTHREAD_LIB="-lc_r"
30132 echo "$as_me:$LINENO: checking for pthread_create" >&5
30133 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30134 if test "${ac_cv_func_pthread_create+set}" = set; then
30135 echo $ECHO_N "(cached) $ECHO_C" >&6
30137 cat >conftest.$ac_ext <<_ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h. */
30143 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30145 #define pthread_create innocuous_pthread_create
30147 /* System header to define __stub macros and hopefully few prototypes,
30148 which can conflict with char pthread_create (); below.
30149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30150 <limits.h> exists even on freestanding compilers. */
30153 # include <limits.h>
30155 # include <assert.h>
30158 #undef pthread_create
30160 /* Override any gcc2 internal prototype to avoid an error. */
30165 /* We use char because int might match the return type of a gcc2
30166 builtin and then its argument prototype would still apply. */
30167 char pthread_create ();
30168 /* The GNU C library defines this for functions which it implements
30169 to always fail with ENOSYS. Some functions are actually named
30170 something starting with __ and the normal name is an alias. */
30171 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30174 char (*f) () = pthread_create;
30183 return f != pthread_create;
30188 rm -f conftest.$ac_objext conftest$ac_exeext
30189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30190 (eval $ac_link) 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag"
30198 || test ! -s conftest.err'
30199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200 (eval $ac_try) 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; } &&
30204 { ac_try='test -s conftest$ac_exeext'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
30210 ac_cv_func_pthread_create=yes
30212 echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30215 ac_cv_func_pthread_create=no
30217 rm -f conftest.err conftest.$ac_objext \
30218 conftest$ac_exeext conftest.$ac_ext
30220 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30221 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30234 cat >>confdefs.h <<\_ACEOF
30240 CFLAGS=${CFLAGS--O}
30242 if test x$have_gcc = xyes ; then
30243 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30244 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30246 LDFLAGS=${LDFLAGS--O}
30247 DB_LIBS="${SQL_LFLAGS}"
30248 CPPFLAGS="$CPPFLAGS"
30276 # Finally we set appropriate distribution specific
30277 # variables and defaults
30279 # PFILES are platform specific files
30280 PFILES="platforms/Makefile"
30284 hostname=`uname -n | cut -d '.' -f 1`
30285 if test x${hostname} = x ; then
30286 hostname="localhost"
30288 case "$DISTNAME" in
30291 PSCMD="ps -e -o pid,comm"
30292 PFILES="${PFILES} \
30293 platforms/aix/Makefile"
30294 TAPEDRIVE="/dev/rmt0.1"
30298 PTHREAD_LIB="-lpthread -lexc"
30299 if test "${CC}" = "gcc" ; then
30306 TAPEDRIVE="/dev/nrmt0"
30309 DISTVER=`uname -a |awk '{print $3}'`
30310 TAPEDRIVE="/dev/nrmt0"
30311 PTHREAD_LIB="-pthread"
30312 CFLAGS="${CFLAGS} -pthread"
30313 PSCMD="ps -ax -o pid,command"
30316 PFILES="${PFILES} \
30317 platforms/bsdi/Makefile \
30318 platforms/bsdi/bacula-fd \
30319 platforms/bsdi/bacula-sd \
30320 platforms/bsdi/bacula-dir"
30321 largefile_support="yes"
30324 DISTVER=`uname -a |awk '{print $3}'`
30325 TAPEDRIVE="/dev/nrst0"
30327 WCFLAGS="-mwindows"
30328 WLDFLAGS="-mwindows"
30332 TAPEDRIVE="/dev/nst0"
30333 PSCMD="ps -e -o pid,command"
30335 PFILES="${PFILES} \
30336 platforms/darwin/Makefile"
30339 DISTVER=`cat /etc/debian_version`
30340 TAPEDRIVE="/dev/nrst0"
30341 PSCMD="ps -e -o pid,command"
30344 DISTVER=`uname -a |awk '{print $3}'`
30345 VER=`echo $DISTVER | cut -c 1`
30346 if test x$VER = x4 ; then
30347 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30348 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30352 TAPEDRIVE="/dev/nrsa0"
30353 PSCMD="ps -ax -o pid,command"
30354 PFILES="${PFILES} \
30355 platforms/freebsd/Makefile \
30356 platforms/freebsd/bacula-fd \
30357 platforms/freebsd/bacula-sd \
30358 platforms/freebsd/bacula-dir"
30359 largefile_support="yes"
30362 PSCMD="UNIX95=1; ps -e -o pid,comm"
30363 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30365 TAPEDRIVE="/dev/rmt/0hnb"
30366 PTHREAD_LIB="-lpthread"
30367 cat >>confdefs.h <<\_ACEOF
30368 #define _INCLUDE_LONGLONG 1
30374 TAPEDRIVE="/dev/rmt/0cbn"
30375 PSCMD="ps -e -o pid,comm"
30376 PFILES="${PFILES} \
30377 platforms/irix/Makefile \
30378 platforms/irix/bacula-fd \
30379 platforms/irix/bacula-sd \
30380 platforms/irix/bacula-dir"
30383 DISTVER=`uname -a |awk '{print $3}'`
30386 TAPEDRIVE="/dev/nrst0"
30387 PSCMD="ps -ax -o pid,command"
30388 PTHREAD_LIB="-pthread"
30389 CFLAGS="${CFLAGS} -pthread"
30392 DISTVER=`uname -a |awk '{print $3}'`
30395 TAPEDRIVE="/dev/nrst0"
30396 PSCMD="ps -ax -o pid,command"
30397 PTHREAD_LIB="-pthread"
30398 CFLAGS="${CFLAGS} -pthread"
30399 PFILES="${PFILES} \
30400 platforms/openbsd/Makefile \
30401 platforms/openbsd/bacula-fd \
30402 platforms/openbsd/bacula-sd \
30403 platforms/openbsd/bacula-dir"
30406 if test -f /etc/whitebox-release ; then
30407 f=/etc/whitebox-release
30409 f=/etc/redhat-release
30411 if test `cat $f | grep release |\
30412 cut -f 3 -d ' '`x = "Enterprise"x ; then
30413 DISTVER="Enterprise "`cat $f | grep release |\
30416 DISTVER=`cat /etc/redhat-release | grep release |\
30419 TAPEDRIVE="/dev/nst0"
30420 PSCMD="ps -e -o pid,command"
30421 PFILES="${PFILES} \
30422 platforms/redhat/Makefile \
30423 platforms/redhat/bacula-fd \
30424 platforms/redhat/bacula-sd \
30425 platforms/redhat/bacula-dir \
30426 platforms/redhat/bacula.spec \
30430 DISTVER=`cat /etc/mandrake-release | grep release |\
30432 TAPEDRIVE="/dev/nst0"
30433 PSCMD="ps -e -o pid,command"
30434 PFILES="${PFILES} \
30435 platforms/mandrake/Makefile \
30436 platforms/mandrake/bacula-fd \
30437 platforms/mandrake/bacula-sd \
30438 platforms/mandrake/bacula-dir \
30439 platforms/mandrake/bacula.spec \
30443 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30444 TAPEDRIVE="/dev/nst0"
30445 PSCMD="ps -e -o pid,command"
30446 PFILES="${PFILES} \
30447 platforms/gentoo/Makefile \
30448 platforms/gentoo/bacula-init \
30449 platforms/gentoo/bacula-fd \
30450 platforms/gentoo/bacula-sd \
30451 platforms/gentoo/bacula-dir"
30454 DISTVER=`cat /etc/slackware-version`
30455 TAPEDRIVE="/dev/nst0"
30456 PSCMD="ps -e -o pid,command"
30457 PFILES="${PFILES} \
30458 platforms/slackware/Makefile \
30459 platforms/slackware/rc.bacula-fd \
30460 platforms/slackware/rc.bacula-sd \
30461 platforms/slackware/rc.bacula-dir\
30462 platforms/slackware/functions.bacula"
30466 TAPEDRIVE="/dev/rmt/0cbn"
30467 PSCMD="ps -e -o pid,comm"
30468 PFILES="${PFILES} \
30469 platforms/solaris/Makefile \
30470 platforms/solaris/bacula-fd \
30471 platforms/solaris/bacula-sd \
30472 platforms/solaris/bacula-dir"
30473 if test x$DISTVER = x5.6 ; then
30474 cat >>confdefs.h <<\_ACEOF
30475 #define HAVE_OLD_SOCKOPT 1
30479 LIBS="$LIBS -lresolv"
30482 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30484 TAPEDRIVE="/dev/nst0"
30485 PSCMD="ps -e -o pid,command"
30486 PFILES="${PFILES} \
30487 platforms/suse/Makefile \
30488 platforms/suse/bacula-fd \
30489 platforms/suse/bacula-sd \
30490 platforms/suse/bacula-dir \
30491 platforms/suse/bacula \
30492 platforms/suse/bacula.spec"
30497 TAPEDRIVE="/dev/nst0"
30498 PSCMD="ps -e -o pid,command"
30499 PFILES="${PFILES} \
30500 platforms/suse/Makefile \
30501 platforms/suse/bacula-fd \
30502 platforms/suse/bacula-sd \
30503 platforms/suse/bacula-dir"
30507 TAPEDRIVE="/dev/nst0"
30510 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30516 LIBS="$PTHREAD_LIB $LIBS"
30518 cat >>confdefs.h <<_ACEOF
30522 cat >>confdefs.h <<_ACEOF
30533 MCOMMON=./autoconf/Make.common
30536 if test "x${subsysdir}" = "x${sbindir}" ; then
30539 echo "You have set both --sbindir and --with-subsys-dir"
30540 echo " equal to: ${subsysdir} "
30541 echo "This is not permitted. Please reconfigure."
30543 echo "Aborting configuration ..."
30549 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/bgnome-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 scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-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/tools/Makefile po/Makefile.in $PFILES"
30550 ac_config_commands="$ac_config_commands default"
30551 cat >confcache <<\_ACEOF
30552 # This file is a shell script that caches the results of configure
30553 # tests run on this system so they can be shared between configure
30554 # scripts and configure runs, see configure's option --config-cache.
30555 # It is not useful on other systems. If it contains results you don't
30556 # want to keep, you may remove or edit it.
30558 # config.status only pays attention to the cache file if you give it
30559 # the --recheck option to rerun configure.
30561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30563 # following values.
30567 # The following way of writing the cache mishandles newlines in values,
30568 # but we know of no workaround that is simple, portable, and efficient.
30569 # So, don't put newlines in cache variables' values.
30570 # Ultrix sh set writes to stderr and can't be redirected directly,
30571 # and sets the high bit in the cache file unless we assign to the vars.
30574 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30576 # `set' does not quote correctly, so add quotes (double-quote
30577 # substitution turns \\\\ into \\, and sed turns \\ into \).
30580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30583 # `set' quotes correctly as required by POSIX, so do not add quotes.
30585 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30594 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30596 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30597 if test -w $cache_file; then
30598 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30599 cat confcache >$cache_file
30601 echo "not updating unwritable cache $cache_file"
30606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30607 # Let make expand exec_prefix.
30608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30610 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30611 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30612 # trailing colons and then remove the whole line if VPATH becomes empty
30613 # (actually we leave an empty line to preserve line numbers).
30614 if test "x$srcdir" = x.; then
30615 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30616 s/:*\$(srcdir):*/:/;
30617 s/:*\${srcdir}:*/:/;
30619 s/^\([^=]*=[ ]*\):*/\1/;
30625 DEFS=-DHAVE_CONFIG_H
30629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30630 # 1. Remove the extension, and $U if already installed.
30631 ac_i=`echo "$ac_i" |
30632 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30634 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30635 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30637 LIBOBJS=$ac_libobjs
30639 LTLIBOBJS=$ac_ltlibobjs
30643 : ${CONFIG_STATUS=./config.status}
30644 ac_clean_files_save=$ac_clean_files
30645 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30646 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30647 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30648 cat >$CONFIG_STATUS <<_ACEOF
30650 # Generated by $as_me.
30651 # Run this file to recreate the current configuration.
30652 # Compiler output produced by configure, useful for debugging
30653 # configure, is in config.log if it exists.
30656 ac_cs_recheck=false
30658 SHELL=\${CONFIG_SHELL-$SHELL}
30661 cat >>$CONFIG_STATUS <<\_ACEOF
30662 ## --------------------- ##
30663 ## M4sh Initialization. ##
30664 ## --------------------- ##
30666 # Be Bourne compatible
30667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30670 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30671 # is contrary to our usage. Disable this feature.
30672 alias -g '${1+"$@"}'='"$@"'
30673 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30676 DUALCASE=1; export DUALCASE # for MKS sh
30678 # Support unset when possible.
30679 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30686 # Work around bugs in pre-3.0 UWIN ksh.
30687 $as_unset ENV MAIL MAILPATH
30694 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30695 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30696 LC_TELEPHONE LC_TIME
30698 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30699 eval $as_var=C; export $as_var
30705 # Required to use basename.
30706 if expr a : '\(a\)' >/dev/null 2>&1; then
30712 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30713 as_basename=basename
30719 # Name of the executable.
30720 as_me=`$as_basename "$0" ||
30721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30722 X"$0" : 'X\(//\)$' \| \
30723 X"$0" : 'X\(/\)$' \| \
30724 . : '\(.\)' 2>/dev/null ||
30726 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30727 /^X\/\(\/\/\)$/{ s//\1/; q; }
30728 /^X\/\(\/\).*/{ s//\1/; q; }
30732 # PATH needs CR, and LINENO needs CR and PATH.
30733 # Avoid depending upon Character Ranges.
30734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30737 as_cr_digits='0123456789'
30738 as_cr_alnum=$as_cr_Letters$as_cr_digits
30740 # The user is always right.
30741 if test "${PATH_SEPARATOR+set}" != set; then
30742 echo "#! /bin/sh" >conf$$.sh
30743 echo "exit 0" >>conf$$.sh
30745 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30754 as_lineno_1=$LINENO
30755 as_lineno_2=$LINENO
30756 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30757 test "x$as_lineno_1" != "x$as_lineno_2" &&
30758 test "x$as_lineno_3" = "x$as_lineno_2" || {
30759 # Find who we are. Look in the path if we contain no path at all
30762 *[\\/]* ) as_myself=$0 ;;
30763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30764 for as_dir in $PATH
30767 test -z "$as_dir" && as_dir=.
30768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30773 # We did not find ourselves, most probably we were run as `sh COMMAND'
30774 # in which case we are not to be found in the path.
30775 if test "x$as_myself" = x; then
30778 if test ! -f "$as_myself"; then
30779 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30780 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30781 { (exit 1); exit 1; }; }
30783 case $CONFIG_SHELL in
30785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30786 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30789 test -z "$as_dir" && as_dir=.
30790 for as_base in sh bash ksh sh5; do
30793 if ("$as_dir/$as_base" -c '
30794 as_lineno_1=$LINENO
30795 as_lineno_2=$LINENO
30796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30797 test "x$as_lineno_1" != "x$as_lineno_2" &&
30798 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30799 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30800 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30801 CONFIG_SHELL=$as_dir/$as_base
30802 export CONFIG_SHELL
30803 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30811 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30812 # uniformly replaced by the line number. The first 'sed' inserts a
30813 # line-number line before each line; the second 'sed' does the real
30814 # work. The second script uses 'N' to pair each line-number line
30815 # with the numbered line, and appends trailing '-' during
30816 # substitution so that $LINENO is not a special case at line end.
30817 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30818 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30819 sed '=' <$as_myself |
30824 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30827 s,^['$as_cr_digits']*\n,,
30828 ' >$as_me.lineno &&
30829 chmod +x $as_me.lineno ||
30830 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30831 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30832 { (exit 1); exit 1; }; }
30834 # Don't try to exec as it changes $[0], causing all sort of problems
30835 # (the dirname of $[0] is not the place where we might find the
30836 # original and so on. Autoconf is especially sensible to this).
30838 # Exit status is that of the last command.
30843 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30844 *c*,-n*) ECHO_N= ECHO_C='
30846 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30847 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30850 if expr a : '\(a\)' >/dev/null 2>&1; then
30856 rm -f conf$$ conf$$.exe conf$$.file
30858 if ln -s conf$$.file conf$$ 2>/dev/null; then
30859 # We could just check for DJGPP; but this test a) works b) is more generic
30860 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30861 if test -f conf$$.exe; then
30862 # Don't use ln at all; we don't have any links
30867 elif ln conf$$.file conf$$ 2>/dev/null; then
30872 rm -f conf$$ conf$$.exe conf$$.file
30874 if mkdir -p . 2>/dev/null; then
30877 test -d ./-p && rmdir ./-p
30881 as_executable_p="test -f"
30883 # Sed expression to map a string onto a valid CPP name.
30884 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30886 # Sed expression to map a string onto a valid variable name.
30887 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30891 # We need space, tab and new line, in precisely that order.
30901 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30902 # report actual input values of CONFIG_FILES etc. instead of their
30903 # values after options handling. Logging --version etc. is OK.
30907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30908 ## Running $as_me. ##
30913 This file was extended by $as_me, which was
30914 generated by GNU Autoconf 2.59. Invocation command line was
30916 CONFIG_FILES = $CONFIG_FILES
30917 CONFIG_HEADERS = $CONFIG_HEADERS
30918 CONFIG_LINKS = $CONFIG_LINKS
30919 CONFIG_COMMANDS = $CONFIG_COMMANDS
30923 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30927 # Files that config.status was made for.
30928 if test -n "$ac_config_files"; then
30929 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30932 if test -n "$ac_config_headers"; then
30933 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30936 if test -n "$ac_config_links"; then
30937 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30940 if test -n "$ac_config_commands"; then
30941 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30944 cat >>$CONFIG_STATUS <<\_ACEOF
30947 \`$as_me' instantiates files from templates according to the
30948 current configuration.
30950 Usage: $0 [OPTIONS] [FILE]...
30952 -h, --help print this help, then exit
30953 -V, --version print version number, then exit
30954 -q, --quiet do not print progress messages
30955 -d, --debug don't remove temporary files
30956 --recheck update $as_me by reconfiguring in the same conditions
30957 --file=FILE[:TEMPLATE]
30958 instantiate the configuration file FILE
30959 --header=FILE[:TEMPLATE]
30960 instantiate the configuration header FILE
30962 Configuration files:
30965 Configuration headers:
30968 Configuration commands:
30971 Report bugs to <bug-autoconf@gnu.org>."
30974 cat >>$CONFIG_STATUS <<_ACEOF
30977 configured by $0, generated by GNU Autoconf 2.59,
30978 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30980 Copyright (C) 2003 Free Software Foundation, Inc.
30981 This config.status script is free software; the Free Software Foundation
30982 gives unlimited permission to copy, distribute and modify it."
30987 cat >>$CONFIG_STATUS <<\_ACEOF
30988 # If no file are specified by the user, then we need to provide default
30989 # value. By we need to know if files were specified by the user.
30995 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30996 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31004 *) # This is not an option, so the user has probably given explicit
31007 ac_need_defaults=false;;
31011 # Handling of the options.
31013 cat >>$CONFIG_STATUS <<\_ACEOF
31014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31016 --version | --vers* | -V )
31017 echo "$ac_cs_version"; exit 0 ;;
31019 # Conflict between --help and --header
31020 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31021 Try \`$0 --help' for more information." >&5
31022 echo "$as_me: error: ambiguous option: $1
31023 Try \`$0 --help' for more information." >&2;}
31024 { (exit 1); exit 1; }; };;
31025 --help | --hel | -h )
31026 echo "$ac_cs_usage"; exit 0 ;;
31027 --debug | --d* | -d )
31029 --file | --fil | --fi | --f )
31031 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31032 ac_need_defaults=false;;
31033 --header | --heade | --head | --hea )
31035 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31036 ac_need_defaults=false;;
31037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31038 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31041 # This is an error.
31042 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31043 Try \`$0 --help' for more information." >&5
31044 echo "$as_me: error: unrecognized option: $1
31045 Try \`$0 --help' for more information." >&2;}
31046 { (exit 1); exit 1; }; } ;;
31048 *) ac_config_targets="$ac_config_targets $1" ;;
31054 ac_configure_extra_args=
31056 if $ac_cs_silent; then
31058 ac_configure_extra_args="$ac_configure_extra_args --silent"
31062 cat >>$CONFIG_STATUS <<_ACEOF
31063 if \$ac_cs_recheck; then
31064 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31065 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31070 cat >>$CONFIG_STATUS <<_ACEOF
31072 # INIT-COMMANDS section.
31075 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31076 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31078 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31079 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31080 LINGUAS="${LINGUAS-%UNSET%}"
31087 cat >>$CONFIG_STATUS <<\_ACEOF
31088 for ac_config_target in $ac_config_targets
31090 case "$ac_config_target" in
31091 # Handling of arguments.
31092 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31093 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31094 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31095 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31096 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31097 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31098 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31099 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31100 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31101 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31102 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31103 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31104 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31105 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31106 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31107 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31108 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31109 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31110 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31111 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31112 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31113 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31114 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31115 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31116 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31117 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31118 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31119 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31120 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31121 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31122 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31123 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31124 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31125 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31126 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31127 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31128 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31129 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31130 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31131 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31132 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31133 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31134 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31135 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31136 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31137 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31138 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31139 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31140 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31141 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31142 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31143 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31144 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31145 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31146 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31147 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31148 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31149 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31150 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31151 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31152 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31153 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31154 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31155 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31156 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31157 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31158 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31159 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31160 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31161 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31162 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31163 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31164 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31165 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31166 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31167 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31168 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31169 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31170 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31171 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31172 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31173 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31174 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31175 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31176 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31177 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31178 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31179 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31180 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31181 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31182 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31183 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31184 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31185 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31186 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31187 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31188 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31189 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31190 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31191 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31192 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31193 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31194 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31195 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31196 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31197 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31200 { (exit 1); exit 1; }; };;
31204 # If the user did not use the arguments to specify the items to instantiate,
31205 # then the envvar interface is used. Set only those that are not.
31206 # We use the long form for the default assignment because of an extremely
31207 # bizarre bug on SunOS 4.1.3.
31208 if $ac_need_defaults; then
31209 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31210 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31211 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31214 # Have a temporary directory for convenience. Make it in the build tree
31215 # simply because there is no reason to put it here, and in addition,
31216 # creating and moving files from /tmp can sometimes cause problems.
31217 # Create a temporary directory, and hook for its removal unless debugging.
31220 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31221 trap '{ (exit 1); exit 1; }' 1 2 13 15
31224 # Create a (secure) tmp directory for tmp files.
31227 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31228 test -n "$tmp" && test -d "$tmp"
31231 tmp=./confstat$$-$RANDOM
31232 (umask 077 && mkdir $tmp)
31235 echo "$me: cannot create a temporary directory in ." >&2
31236 { (exit 1); exit 1; }
31241 cat >>$CONFIG_STATUS <<_ACEOF
31244 # CONFIG_FILES section.
31247 # No need to generate the scripts if there are no CONFIG_FILES.
31248 # This happens for instance when ./config.status config.h
31249 if test -n "\$CONFIG_FILES"; then
31250 # Protect against being on the right side of a sed subst in config.status.
31251 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31252 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31253 s,@SHELL@,$SHELL,;t t
31254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31260 s,@exec_prefix@,$exec_prefix,;t t
31261 s,@prefix@,$prefix,;t t
31262 s,@program_transform_name@,$program_transform_name,;t t
31263 s,@bindir@,$bindir,;t t
31264 s,@sbindir@,$sbindir,;t t
31265 s,@libexecdir@,$libexecdir,;t t
31266 s,@datadir@,$datadir,;t t
31267 s,@sysconfdir@,$sysconfdir,;t t
31268 s,@sharedstatedir@,$sharedstatedir,;t t
31269 s,@localstatedir@,$localstatedir,;t t
31270 s,@libdir@,$libdir,;t t
31271 s,@includedir@,$includedir,;t t
31272 s,@oldincludedir@,$oldincludedir,;t t
31273 s,@infodir@,$infodir,;t t
31274 s,@mandir@,$mandir,;t t
31275 s,@build_alias@,$build_alias,;t t
31276 s,@host_alias@,$host_alias,;t t
31277 s,@target_alias@,$target_alias,;t t
31278 s,@DEFS@,$DEFS,;t t
31279 s,@ECHO_C@,$ECHO_C,;t t
31280 s,@ECHO_N@,$ECHO_N,;t t
31281 s,@ECHO_T@,$ECHO_T,;t t
31282 s,@LIBS@,$LIBS,;t t
31283 s,@BUILD_DIR@,$BUILD_DIR,;t t
31284 s,@TOP_DIR@,$TOP_DIR,;t t
31285 s,@TRUEPRG@,$TRUEPRG,;t t
31286 s,@FALSEPRG@,$FALSEPRG,;t t
31287 s,@VERSION@,$VERSION,;t t
31288 s,@DATE@,$DATE,;t t
31289 s,@LSMDATE@,$LSMDATE,;t t
31291 s,@CFLAGS@,$CFLAGS,;t t
31292 s,@LDFLAGS@,$LDFLAGS,;t t
31293 s,@CPPFLAGS@,$CPPFLAGS,;t t
31294 s,@ac_ct_CC@,$ac_ct_CC,;t t
31295 s,@EXEEXT@,$EXEEXT,;t t
31296 s,@OBJEXT@,$OBJEXT,;t t
31298 s,@CXXFLAGS@,$CXXFLAGS,;t t
31299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31301 s,@EGREP@,$EGREP,;t t
31302 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31303 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31305 s,@RANLIB@,$RANLIB,;t t
31306 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31311 s,@ECHO@,$ECHO,;t t
31315 s,@OPENSSL@,$OPENSSL,;t t
31318 s,@MKISOFS@,$MKISOFS,;t t
31319 s,@PYTHON@,$PYTHON,;t t
31320 s,@GROWISOFS@,$GROWISOFS,;t t
31321 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31322 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31323 s,@PKGCONFIG@,$PKGCONFIG,;t t
31324 s,@QMAKE@,$QMAKE,;t t
31325 s,@QMAKEQT4@,$QMAKEQT4,;t t
31326 s,@WXCONFIG@,$WXCONFIG,;t t
31327 s,@WXFLAGS@,$WXFLAGS,;t t
31328 s,@CDRECORD@,$CDRECORD,;t t
31329 s,@PIDOF@,$PIDOF,;t t
31331 s,@ARFLAGS@,$ARFLAGS,;t t
31332 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31333 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31334 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31335 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31336 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31337 s,@build@,$build,;t t
31338 s,@build_cpu@,$build_cpu,;t t
31339 s,@build_vendor@,$build_vendor,;t t
31340 s,@build_os@,$build_os,;t t
31341 s,@host@,$host,;t t
31342 s,@host_cpu@,$host_cpu,;t t
31343 s,@host_vendor@,$host_vendor,;t t
31344 s,@host_os@,$host_os,;t t
31345 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31346 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31347 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31348 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31349 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31350 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31351 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31352 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31353 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31354 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31355 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31356 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31357 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31358 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31359 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31360 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31361 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31362 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31363 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31364 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31365 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31366 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31367 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31368 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31369 s,@SET_MAKE@,$SET_MAKE,;t t
31370 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31371 s,@USE_NLS@,$USE_NLS,;t t
31372 s,@MSGFMT@,$MSGFMT,;t t
31373 s,@GMSGFMT@,$GMSGFMT,;t t
31374 s,@XGETTEXT@,$XGETTEXT,;t t
31375 s,@MSGMERGE@,$MSGMERGE,;t t
31376 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31377 s,@LIBICONV@,$LIBICONV,;t t
31378 s,@LTLIBICONV@,$LTLIBICONV,;t t
31379 s,@INTLLIBS@,$INTLLIBS,;t t
31380 s,@LIBINTL@,$LIBINTL,;t t
31381 s,@LTLIBINTL@,$LTLIBINTL,;t t
31382 s,@POSUB@,$POSUB,;t t
31383 s,@GLIBC2@,$GLIBC2,;t t
31384 s,@ALLOCA@,$ALLOCA,;t t
31385 s,@GLIBC21@,$GLIBC21,;t t
31386 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31387 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31388 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31389 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31390 s,@INTLBISON@,$INTLBISON,;t t
31391 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31392 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31393 s,@CATOBJEXT@,$CATOBJEXT,;t t
31394 s,@DATADIRNAME@,$DATADIRNAME,;t t
31395 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31396 s,@GENCAT@,$GENCAT,;t t
31397 s,@INTLOBJS@,$INTLOBJS,;t t
31398 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31399 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31400 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31401 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31402 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31403 s,@GNOME_DIR@,$GNOME_DIR,;t t
31404 s,@BAT_DIR@,$BAT_DIR,;t t
31405 s,@QWT_INC@,$QWT_INC,;t t
31406 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31407 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31408 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31409 s,@WX_DIR@,$WX_DIR,;t t
31410 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31411 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31412 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31413 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31414 s,@STATIC_FD@,$STATIC_FD,;t t
31415 s,@STATIC_SD@,$STATIC_SD,;t t
31416 s,@STATIC_DIR@,$STATIC_DIR,;t t
31417 s,@STATIC_CONS@,$STATIC_CONS,;t t
31418 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31419 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31420 s,@ALL_DIRS@,$ALL_DIRS,;t t
31421 s,@DIRD_DIR@,$DIRD_DIR,;t t
31422 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31423 s,@STORED_DIR@,$STORED_DIR,;t t
31424 s,@CONS_INC@,$CONS_INC,;t t
31425 s,@CONS_OBJ@,$CONS_OBJ,;t t
31426 s,@CONS_SRC@,$CONS_SRC,;t t
31427 s,@CONS_LIBS@,$CONS_LIBS,;t t
31428 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31429 s,@READLINE_SRC@,$READLINE_SRC,;t t
31430 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31431 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31432 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31433 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31434 s,@working_dir@,$working_dir,;t t
31435 s,@archivedir@,$archivedir,;t t
31436 s,@scriptdir@,$scriptdir,;t t
31437 s,@dump_email@,$dump_email,;t t
31438 s,@job_email@,$job_email,;t t
31439 s,@smtp_host@,$smtp_host,;t t
31440 s,@piddir@,$piddir,;t t
31441 s,@subsysdir@,$subsysdir,;t t
31442 s,@baseport@,$baseport,;t t
31443 s,@dir_port@,$dir_port,;t t
31444 s,@fd_port@,$fd_port,;t t
31445 s,@sd_port@,$sd_port,;t t
31446 s,@dir_password@,$dir_password,;t t
31447 s,@fd_password@,$fd_password,;t t
31448 s,@sd_password@,$sd_password,;t t
31449 s,@mon_dir_password@,$mon_dir_password,;t t
31450 s,@mon_fd_password@,$mon_fd_password,;t t
31451 s,@mon_sd_password@,$mon_sd_password,;t t
31452 s,@db_name@,$db_name,;t t
31453 s,@db_user@,$db_user,;t t
31454 s,@dir_user@,$dir_user,;t t
31455 s,@dir_group@,$dir_group,;t t
31456 s,@sd_user@,$sd_user,;t t
31457 s,@sd_group@,$sd_group,;t t
31458 s,@fd_user@,$fd_user,;t t
31459 s,@fd_group@,$fd_group,;t t
31460 s,@SBINPERM@,$SBINPERM,;t t
31461 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31462 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31463 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31464 s,@cats@,$cats,;t t
31465 s,@DB_TYPE@,$DB_TYPE,;t t
31466 s,@GETCONF@,$GETCONF,;t t
31467 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31468 s,@X_CFLAGS@,$X_CFLAGS,;t t
31469 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31470 s,@X_LIBS@,$X_LIBS,;t t
31471 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31472 s,@LIBOBJS@,$LIBOBJS,;t t
31473 s,@FDLIBS@,$FDLIBS,;t t
31474 s,@DEBUG@,$DEBUG,;t t
31475 s,@DINCLUDE@,$DINCLUDE,;t t
31476 s,@DLIB@,$DLIB,;t t
31477 s,@DB_LIBS@,$DB_LIBS,;t t
31478 s,@WCFLAGS@,$WCFLAGS,;t t
31479 s,@WLDFLAGS@,$WLDFLAGS,;t t
31480 s,@WRAPLIBS@,$WRAPLIBS,;t t
31481 s,@OBJLIST@,$OBJLIST,;t t
31482 s,@hostname@,$hostname,;t t
31483 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31484 s,@PSCMD@,$PSCMD,;t t
31485 s,@WIN32@,$WIN32,;t t
31486 s,@MACOSX@,$MACOSX,;t t
31487 s,@DISTNAME@,$DISTNAME,;t t
31488 s,@DISTVER@,$DISTVER,;t t
31489 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31490 /@MCOMMON@/r $MCOMMON
31496 cat >>$CONFIG_STATUS <<\_ACEOF
31497 # Split the substitutions into bite-sized pieces for seds with
31498 # small command number limits, like on Digital OSF/1 and HP-UX.
31499 ac_max_sed_lines=48
31500 ac_sed_frag=1 # Number of current file.
31501 ac_beg=1 # First line for current file.
31502 ac_end=$ac_max_sed_lines # Line after last line for current file.
31505 while $ac_more_lines; do
31506 if test $ac_beg -gt 1; then
31507 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31509 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31511 if test ! -s $tmp/subs.frag; then
31512 ac_more_lines=false
31514 # The purpose of the label and of the branching condition is to
31515 # speed up the sed processing (if there are no `@' at all, there
31516 # is no need to browse any of the substitutions).
31517 # These are the two extra sed commands mentioned above.
31519 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31520 if test -z "$ac_sed_cmds"; then
31521 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31523 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31525 ac_sed_frag=`expr $ac_sed_frag + 1`
31527 ac_end=`expr $ac_end + $ac_max_sed_lines`
31530 if test -z "$ac_sed_cmds"; then
31533 fi # test -n "$CONFIG_FILES"
31536 cat >>$CONFIG_STATUS <<\_ACEOF
31537 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31540 - | *:- | *:-:* ) # input from stdin
31542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31546 * ) ac_file_in=$ac_file.in ;;
31549 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31550 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31552 X"$ac_file" : 'X\(//\)[^/]' \| \
31553 X"$ac_file" : 'X\(//\)$' \| \
31554 X"$ac_file" : 'X\(/\)' \| \
31555 . : '\(.\)' 2>/dev/null ||
31557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31559 /^X\(\/\/\)$/{ s//\1/; q; }
31560 /^X\(\/\).*/{ s//\1/; q; }
31562 { if $as_mkdir_p; then
31567 while test ! -d "$as_dir"; do
31568 as_dirs="$as_dir $as_dirs"
31569 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31571 X"$as_dir" : 'X\(//\)[^/]' \| \
31572 X"$as_dir" : 'X\(//\)$' \| \
31573 X"$as_dir" : 'X\(/\)' \| \
31574 . : '\(.\)' 2>/dev/null ||
31576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31578 /^X\(\/\/\)$/{ s//\1/; q; }
31579 /^X\(\/\).*/{ s//\1/; q; }
31582 test ! -n "$as_dirs" || mkdir $as_dirs
31583 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31585 { (exit 1); exit 1; }; }; }
31589 if test "$ac_dir" != .; then
31590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31591 # A "../" for each directory in $ac_dir_suffix.
31592 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31594 ac_dir_suffix= ac_top_builddir=
31598 .) # No --srcdir option. We are building in place.
31600 if test -z "$ac_top_builddir"; then
31603 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31605 [\\/]* | ?:[\\/]* ) # Absolute path.
31606 ac_srcdir=$srcdir$ac_dir_suffix;
31607 ac_top_srcdir=$srcdir ;;
31608 *) # Relative path.
31609 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31610 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31613 # Do not use `cd foo && pwd` to compute absolute paths, because
31614 # the directories may not exist.
31616 .) ac_abs_builddir="$ac_dir";;
31619 .) ac_abs_builddir=`pwd`;;
31620 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31621 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31624 case $ac_abs_builddir in
31625 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31627 case ${ac_top_builddir}. in
31628 .) ac_abs_top_builddir=$ac_abs_builddir;;
31629 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31630 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31633 case $ac_abs_builddir in
31634 .) ac_abs_srcdir=$ac_srcdir;;
31637 .) ac_abs_srcdir=$ac_abs_builddir;;
31638 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31639 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31642 case $ac_abs_builddir in
31643 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31645 case $ac_top_srcdir in
31646 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31647 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31648 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31655 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31658 if test x"$ac_file" != x-; then
31659 { echo "$as_me:$LINENO: creating $ac_file" >&5
31660 echo "$as_me: creating $ac_file" >&6;}
31663 # Let's still pretend it is `configure' which instantiates (i.e., don't
31664 # use $as_me), people would be surprised to read:
31665 # /* config.h. Generated by config.status. */
31666 if test x"$ac_file" = x-; then
31669 configure_input="$ac_file. "
31671 configure_input=$configure_input"Generated from `echo $ac_file_in |
31672 sed 's,.*/,,'` by configure."
31674 # First look for the input files in the build tree, otherwise in the
31676 ac_file_inputs=`IFS=:
31677 for f in $ac_file_in; do
31679 -) echo $tmp/stdin ;;
31681 # Absolute (can't be DOS-style, as IFS=:)
31682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31683 echo "$as_me: error: cannot find input file: $f" >&2;}
31684 { (exit 1); exit 1; }; }
31687 if test -f "$f"; then
31690 elif test -f "$srcdir/$f"; then
31695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31696 echo "$as_me: error: cannot find input file: $f" >&2;}
31697 { (exit 1); exit 1; }; }
31700 done` || { (exit 1); exit 1; }
31702 cat >>$CONFIG_STATUS <<_ACEOF
31706 cat >>$CONFIG_STATUS <<\_ACEOF
31708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31709 s,@configure_input@,$configure_input,;t t
31710 s,@srcdir@,$ac_srcdir,;t t
31711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31712 s,@top_srcdir@,$ac_top_srcdir,;t t
31713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31714 s,@builddir@,$ac_builddir,;t t
31715 s,@abs_builddir@,$ac_abs_builddir,;t t
31716 s,@top_builddir@,$ac_top_builddir,;t t
31717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31718 s,@INSTALL@,$ac_INSTALL,;t t
31719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31721 if test x"$ac_file" != x-; then
31722 mv $tmp/out $ac_file
31730 cat >>$CONFIG_STATUS <<\_ACEOF
31733 # CONFIG_HEADER section.
31736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31739 # ac_d sets the value in "#define NAME VALUE" lines.
31740 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31741 ac_dB='[ ].*$,\1#\2'
31744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31745 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31746 ac_uB='$,\1#\2define\3'
31750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31753 - | *:- | *:-:* ) # input from stdin
31755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31759 * ) ac_file_in=$ac_file.in ;;
31762 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31763 echo "$as_me: creating $ac_file" >&6;}
31765 # First look for the input files in the build tree, otherwise in the
31767 ac_file_inputs=`IFS=:
31768 for f in $ac_file_in; do
31770 -) echo $tmp/stdin ;;
31772 # Absolute (can't be DOS-style, as IFS=:)
31773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31774 echo "$as_me: error: cannot find input file: $f" >&2;}
31775 { (exit 1); exit 1; }; }
31776 # Do quote $f, to prevent DOS paths from being IFS'd.
31779 if test -f "$f"; then
31782 elif test -f "$srcdir/$f"; then
31787 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31788 echo "$as_me: error: cannot find input file: $f" >&2;}
31789 { (exit 1); exit 1; }; }
31792 done` || { (exit 1); exit 1; }
31793 # Remove the trailing spaces.
31794 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31798 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31799 # `conftest.undefs', that substitutes the proper values into
31800 # config.h.in to produce config.h. The first handles `#define'
31801 # templates, and the second `#undef' templates.
31802 # And first: Protect against being on the right side of a sed subst in
31803 # config.status. Protect against being in an unquoted here document
31804 # in config.status.
31805 rm -f conftest.defines conftest.undefs
31806 # Using a here document instead of a string reduces the quoting nightmare.
31807 # Putting comments in sed scripts is not portable.
31809 # `end' is used to avoid that the second main sed command (meant for
31810 # 0-ary CPP macros) applies to n-ary macro definitions.
31811 # See the Autoconf documentation for `clear'.
31812 cat >confdef2sed.sed <<\_ACEOF
31817 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31819 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31822 # If some macros were called several times there might be several times
31823 # the same #defines, which is useless. Nevertheless, we may not want to
31824 # sort them, since we want the *last* AC-DEFINE to be honored.
31825 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31826 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31827 rm -f confdef2sed.sed
31829 # This sed command replaces #undef with comments. This is necessary, for
31830 # example, in the case of _POSIX_SOURCE, which is predefined and required
31831 # on some systems where configure will not decide to define it.
31832 cat >>conftest.undefs <<\_ACEOF
31833 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31836 # Break up conftest.defines because some shells have a limit on the size
31837 # of here documents, and old seds have small limits too (100 cmds).
31838 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31839 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31840 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31841 echo ' :' >>$CONFIG_STATUS
31842 rm -f conftest.tail
31843 while grep . conftest.defines >/dev/null
31845 # Write a limited-size here document to $tmp/defines.sed.
31846 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31847 # Speed up: don't consider the non `#define' lines.
31848 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31849 # Work around the forget-to-reset-the-flag bug.
31850 echo 't clr' >>$CONFIG_STATUS
31851 echo ': clr' >>$CONFIG_STATUS
31852 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31854 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31856 mv $tmp/out $tmp/in
31858 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31859 rm -f conftest.defines
31860 mv conftest.tail conftest.defines
31862 rm -f conftest.defines
31863 echo ' fi # grep' >>$CONFIG_STATUS
31864 echo >>$CONFIG_STATUS
31866 # Break up conftest.undefs because some shells have a limit on the size
31867 # of here documents, and old seds have small limits too (100 cmds).
31868 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31869 rm -f conftest.tail
31870 while grep . conftest.undefs >/dev/null
31872 # Write a limited-size here document to $tmp/undefs.sed.
31873 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31874 # Speed up: don't consider the non `#undef'
31875 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31876 # Work around the forget-to-reset-the-flag bug.
31877 echo 't clr' >>$CONFIG_STATUS
31878 echo ': clr' >>$CONFIG_STATUS
31879 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31881 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31883 mv $tmp/out $tmp/in
31885 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31886 rm -f conftest.undefs
31887 mv conftest.tail conftest.undefs
31889 rm -f conftest.undefs
31891 cat >>$CONFIG_STATUS <<\_ACEOF
31892 # Let's still pretend it is `configure' which instantiates (i.e., don't
31893 # use $as_me), people would be surprised to read:
31894 # /* config.h. Generated by config.status. */
31895 if test x"$ac_file" = x-; then
31896 echo "/* Generated by configure. */" >$tmp/config.h
31898 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31900 cat $tmp/in >>$tmp/config.h
31902 if test x"$ac_file" != x-; then
31903 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31904 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31905 echo "$as_me: $ac_file is unchanged" >&6;}
31907 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31909 X"$ac_file" : 'X\(//\)[^/]' \| \
31910 X"$ac_file" : 'X\(//\)$' \| \
31911 X"$ac_file" : 'X\(/\)' \| \
31912 . : '\(.\)' 2>/dev/null ||
31914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31916 /^X\(\/\/\)$/{ s//\1/; q; }
31917 /^X\(\/\).*/{ s//\1/; q; }
31919 { if $as_mkdir_p; then
31924 while test ! -d "$as_dir"; do
31925 as_dirs="$as_dir $as_dirs"
31926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31928 X"$as_dir" : 'X\(//\)[^/]' \| \
31929 X"$as_dir" : 'X\(//\)$' \| \
31930 X"$as_dir" : 'X\(/\)' \| \
31931 . : '\(.\)' 2>/dev/null ||
31933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31935 /^X\(\/\/\)$/{ s//\1/; q; }
31936 /^X\(\/\).*/{ s//\1/; q; }
31939 test ! -n "$as_dirs" || mkdir $as_dirs
31940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31942 { (exit 1); exit 1; }; }; }
31945 mv $tmp/config.h $ac_file
31949 rm -f $tmp/config.h
31953 cat >>$CONFIG_STATUS <<\_ACEOF
31956 # CONFIG_COMMANDS section.
31958 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31959 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31960 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31961 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31962 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31963 X"$ac_dest" : 'X\(//\)[^/]' \| \
31964 X"$ac_dest" : 'X\(//\)$' \| \
31965 X"$ac_dest" : 'X\(/\)' \| \
31966 . : '\(.\)' 2>/dev/null ||
31968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31970 /^X\(\/\/\)$/{ s//\1/; q; }
31971 /^X\(\/\).*/{ s//\1/; q; }
31973 { if $as_mkdir_p; then
31978 while test ! -d "$as_dir"; do
31979 as_dirs="$as_dir $as_dirs"
31980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31982 X"$as_dir" : 'X\(//\)[^/]' \| \
31983 X"$as_dir" : 'X\(//\)$' \| \
31984 X"$as_dir" : 'X\(/\)' \| \
31985 . : '\(.\)' 2>/dev/null ||
31987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31989 /^X\(\/\/\)$/{ s//\1/; q; }
31990 /^X\(\/\).*/{ s//\1/; q; }
31993 test ! -n "$as_dirs" || mkdir $as_dirs
31994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31996 { (exit 1); exit 1; }; }; }
32000 if test "$ac_dir" != .; then
32001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32002 # A "../" for each directory in $ac_dir_suffix.
32003 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32005 ac_dir_suffix= ac_top_builddir=
32009 .) # No --srcdir option. We are building in place.
32011 if test -z "$ac_top_builddir"; then
32014 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32016 [\\/]* | ?:[\\/]* ) # Absolute path.
32017 ac_srcdir=$srcdir$ac_dir_suffix;
32018 ac_top_srcdir=$srcdir ;;
32019 *) # Relative path.
32020 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32021 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32024 # Do not use `cd foo && pwd` to compute absolute paths, because
32025 # the directories may not exist.
32027 .) ac_abs_builddir="$ac_dir";;
32030 .) ac_abs_builddir=`pwd`;;
32031 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32032 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32035 case $ac_abs_builddir in
32036 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32038 case ${ac_top_builddir}. in
32039 .) ac_abs_top_builddir=$ac_abs_builddir;;
32040 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32041 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32044 case $ac_abs_builddir in
32045 .) ac_abs_srcdir=$ac_srcdir;;
32048 .) ac_abs_srcdir=$ac_abs_builddir;;
32049 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32050 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32053 case $ac_abs_builddir in
32054 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32056 case $ac_top_srcdir in
32057 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32058 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32059 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32064 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32065 echo "$as_me: executing $ac_dest commands" >&6;}
32068 for ac_file in $CONFIG_FILES; do
32069 # Support "outfile[:infile[:infile...]]"
32071 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32073 # PO directories have a Makefile.in generated from Makefile.in.in.
32074 case "$ac_file" in */Makefile.in)
32075 # Adjust a relative srcdir.
32076 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32077 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32078 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32079 # In autoconf-2.13 it is called $ac_given_srcdir.
32080 # In autoconf-2.50 it is called $srcdir.
32081 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32082 case "$ac_given_srcdir" in
32083 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32084 /*) top_srcdir="$ac_given_srcdir" ;;
32085 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32087 # Treat a directory as a PO directory if and only if it has a
32088 # POTFILES.in file. This allows packages to have multiple PO
32089 # directories under different names or in different locations.
32090 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32091 rm -f "$ac_dir/POTFILES"
32092 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32093 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32094 POMAKEFILEDEPS="POTFILES.in"
32095 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32096 # on $ac_dir but don't depend on user-specified configuration
32098 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32099 # The LINGUAS file contains the set of available languages.
32100 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32101 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32103 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32104 # Hide the ALL_LINGUAS assigment from automake.
32105 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32106 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32108 # The set of available languages was given in configure.in.
32109 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32112 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32113 # Compute UPDATEPOFILES
32114 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32115 # Compute DUMMYPOFILES
32116 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32118 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32119 case "$ac_given_srcdir" in
32121 *) srcdirpre='$(srcdir)/' ;;
32127 for lang in $ALL_LINGUAS; do
32128 POFILES="$POFILES $srcdirpre$lang.po"
32129 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32130 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32131 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32133 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32134 # environment variable.
32136 if test -n "$ALL_LINGUAS"; then
32137 for presentlang in $ALL_LINGUAS; do
32139 if test "%UNSET%" != "$LINGUAS"; then
32140 desiredlanguages="$LINGUAS"
32142 desiredlanguages="$ALL_LINGUAS"
32144 for desiredlang in $desiredlanguages; do
32145 # Use the presentlang catalog if desiredlang is
32146 # a. equal to presentlang, or
32147 # b. a variant of presentlang (because in this case,
32148 # presentlang can be used as a fallback for messages
32149 # which are not translated in the desiredlang catalog).
32150 case "$desiredlang" in
32151 "$presentlang"*) useit=yes;;
32154 if test $useit = yes; then
32155 INST_LINGUAS="$INST_LINGUAS $presentlang"
32160 if test -n "$INST_LINGUAS"; then
32161 for lang in $INST_LINGUAS; do
32162 CATALOGS="$CATALOGS $lang.gmo"
32165 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32166 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"
32167 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32168 if test -f "$f"; then
32170 *.orig | *.bak | *~) ;;
32171 *) cat "$f" >> "$ac_dir/Makefile" ;;
32185 cat >>$CONFIG_STATUS <<\_ACEOF
32187 { (exit 0); exit 0; }
32189 chmod +x $CONFIG_STATUS
32190 ac_clean_files=$ac_clean_files_save
32193 # configure is writing to config.log, and then calls config.status.
32194 # config.status does its own redirection, appending to config.log.
32195 # Unfortunately, on DOS this fails, as config.log is still kept open
32196 # by configure, so config.status won't be able to write to it; its
32197 # output is simply discarded. So we exec the FD to /dev/null,
32198 # effectively closing config.log, so it can be properly (re)opened and
32199 # appended to by config.status. When coming back to configure, we
32200 # need to make the FD available again.
32201 if test "$no_create" != yes; then
32203 ac_config_status_args=
32204 test "$silent" = yes &&
32205 ac_config_status_args="$ac_config_status_args --quiet"
32207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32210 # would make configure fail if this is the last instruction.
32211 $ac_cs_success || { (exit 1); exit 1; }
32215 if test "${support_bat}" = "yes" ; then
32216 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32217 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32223 if test "x$QMAKEQT4" != "xnone"; then
32230 chmod 755 install_conf_file build-depkgs-qt-console
32231 echo "Creating bat Makefile"
32236 echo "Doing make of dependencies"
32237 ${MAKE:-make} depend
32240 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32241 chmod 755 dvd-handler dvd-simulator
32242 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32247 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32248 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32250 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32251 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32253 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32254 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32256 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32257 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32259 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32260 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32262 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32263 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32265 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32266 chmod 755 $c/sqlite
32269 chmod 755 src/win32/build-depkgs-mingw32
32273 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32274 largefile_support="yes"
32278 # A whole lot of hand springs to get the compiler version.
32279 # This is because gcc changed the output in version 3.0
32281 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32282 if test "x${CCVERSION}" = "x" ; then
32283 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32285 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32286 if test x"${CXXVERSION}" = x ; then
32287 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32290 if test "x${subsysdir}" = "x${sbindir}" ; then
32293 echo "You have set --sbindir and --with-subsys-dir"
32294 echo " both equal to: ${subsysdir} "
32295 echo " This is not permitted. Please reconfigure."
32297 echo "Aborting configuration ..."
32303 if test "x${db_type}" = "xInternal" ; then
32306 echo "You have not specified either --enable-client-only or one of the"
32307 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32308 echo " This is not permitted. Please reconfigure."
32310 echo "Aborting the configuration ..."
32317 Configuration on `date`:
32319 Host: $host -- ${DISTNAME} ${DISTVER}
32320 Bacula version: ${VERSION} (${DATE})
32321 Source code location: ${srcdir}
32322 Install binaries: ${sbindir}
32323 Install config files: ${sysconfdir}
32324 Scripts directory: ${scriptdir}
32325 Archive directory: ${archivedir}
32326 Working directory: ${working_dir}
32327 PID directory: ${piddir}
32328 Subsys directory: ${subsysdir}
32329 Man directory: ${mandir}
32330 Data directory: ${datadir}
32331 C Compiler: ${CC} ${CCVERSION}
32332 C++ Compiler: ${CXX} ${CXXVERSION}
32333 Compiler flags: ${WCFLAGS} ${CFLAGS}
32334 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32336 Statically Linked Tools: ${support_static_tools}
32337 Statically Linked FD: ${support_static_fd}
32338 Statically Linked SD: ${support_static_sd}
32339 Statically Linked DIR: ${support_static_dir}
32340 Statically Linked CONS: ${support_static_cons}
32341 Database type: ${db_type}
32342 Database lib: ${DB_LIBS}
32343 Database name: ${db_name}
32344 Database user: ${db_user}
32346 Job Output Email: ${job_email}
32347 Traceback Email: ${dump_email}
32348 SMTP Host Address: ${smtp_host}
32350 Director Port: ${dir_port}
32351 File daemon Port: ${fd_port}
32352 Storage daemon Port: ${sd_port}
32354 Director User: ${dir_user}
32355 Director Group: ${dir_group}
32356 Storage Daemon User: ${sd_user}
32357 Storage DaemonGroup: ${sd_group}
32358 File Daemon User: ${fd_user}
32359 File Daemon Group: ${fd_group}
32361 SQL binaries Directory ${SQL_BINDIR}
32363 Large file support: $largefile_support
32364 Bacula conio support: ${got_conio} ${CONS_LIBS}
32365 readline support: ${got_readline} ${PRTREADLINE_SRC}
32366 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32367 TLS support: ${support_tls}
32368 Encryption support: ${support_crypto}
32369 ZLIB support: ${have_zlib}
32370 enable-smartalloc: ${support_smartalloc}
32371 bat support: ${support_bat} ${QWT_LDFLAGS}
32372 enable-gnome: ${support_gnome} ${gnome_version}
32373 enable-bwx-console: ${support_wx_console} ${wx_version}
32374 enable-tray-monitor: ${support_tray_monitor}
32375 client-only: ${build_client_only}
32376 build-dird: ${build_dird}
32377 build-stored: ${build_stored}
32378 ACL support: ${have_acl}
32379 Python support: ${support_python} ${PYTHON_LIBS}
32380 Batch insert enabled: ${support_batch_insert}