2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR 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 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-scriptdir=PATH specify path of Bacula scripts directory
911 --with-dump-email=EMAIL dump email address
912 --with-job-email=EMAIL job output email address
913 --with-smtp-host=HOST SMTP mail host address
914 --with-pid-dir=PATH specify location of Bacula pid files
915 --with-subsys-dir=PATH specify location of Bacula subsys file
916 --with-baseport=PORT specify base port address for daemons
917 --with-dir-password=PASSWORD specify Director's password
918 --with-fd-password=PASSWORD specify Client's password
919 --with-sd-password=PASSWORD specify Storage daemon's password
920 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
921 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
922 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
923 --with-db-name=DBNAME specify database name (default bacula)
924 --with-db-user=UNAME specify database user (default bacula)
925 --with-dir-user=USER specify user for Director daemon
926 --with-dir-group=GROUP specify group for Director daemon
927 --with-sd-user=USER specify user for Storage daemon
928 --with-sd-group=GROUP specify group for Storage daemon
929 --with-fd-user=USER specify user for File daemon
930 --with-fd-group=GROUP specify group for File daemon
931 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
932 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
933 base install directory, defaults to /usr/local/pgsql
935 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
936 install directory, default is to search through
937 a number of common places for the MySQL files.
939 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
940 install directory, default is to search through
941 a number of common places for the MySQL files.
943 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
944 install directory, default is to search through
945 a number of common places for the SQLite3 files.
947 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
948 install directory, default is to search through
949 a number of common places for the SQLite files.
950 --with-x use the X Window System
952 Some influential environment variables:
953 CC C compiler command
954 CFLAGS C compiler flags
955 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
956 nonstandard directory <lib dir>
957 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
958 headers in a nonstandard directory <include dir>
959 CXX C++ compiler command
960 CXXFLAGS C++ compiler flags
962 WXCONFIG wx-config command. On some systems, you must set it to
963 wx-config-2.6 to use wxWidgets 2.6.
964 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
972 if test "$ac_init_help" = "recursive"; then
973 # If there are subdirs, report their specific --help.
975 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
976 test -d $ac_dir || continue
979 if test "$ac_dir" != .; then
980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
981 # A "../" for each directory in $ac_dir_suffix.
982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 ac_dir_suffix= ac_top_builddir=
988 .) # No --srcdir option. We are building in place.
990 if test -z "$ac_top_builddir"; then
993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995 [\\/]* | ?:[\\/]* ) # Absolute path.
996 ac_srcdir=$srcdir$ac_dir_suffix;
997 ac_top_srcdir=$srcdir ;;
999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1003 # Do not use `cd foo && pwd` to compute absolute paths, because
1004 # the directories may not exist.
1006 .) ac_abs_builddir="$ac_dir";;
1009 .) ac_abs_builddir=`pwd`;;
1010 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1011 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1017 case ${ac_top_builddir}. in
1018 .) ac_abs_top_builddir=$ac_abs_builddir;;
1019 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1020 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1023 case $ac_abs_builddir in
1024 .) ac_abs_srcdir=$ac_srcdir;;
1027 .) ac_abs_srcdir=$ac_abs_builddir;;
1028 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1029 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1032 case $ac_abs_builddir in
1033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1035 case $ac_top_srcdir in
1036 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1037 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1038 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1043 # Check for guested configure; otherwise get Cygnus style configure.
1044 if test -f $ac_srcdir/configure.gnu; then
1046 $SHELL $ac_srcdir/configure.gnu --help=recursive
1047 elif test -f $ac_srcdir/configure; then
1049 $SHELL $ac_srcdir/configure --help=recursive
1050 elif test -f $ac_srcdir/configure.ac ||
1051 test -f $ac_srcdir/configure.in; then
1053 $ac_configure --help
1055 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1061 test -n "$ac_init_help" && exit 0
1062 if $ac_init_version; then
1065 Copyright (C) 2003 Free Software Foundation, Inc.
1066 This configure script is free software; the Free Software Foundation
1067 gives unlimited permission to copy, distribute and modify it.
1073 This file contains any messages produced by compilers while
1074 running configure, to aid debugging if configure makes a mistake.
1076 It was created by $as_me, which was
1077 generated by GNU Autoconf 2.59. Invocation command line was
1088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1095 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1097 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1098 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1100 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1101 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1102 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1103 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111 test -z "$as_dir" && as_dir=.
1112 echo "PATH: $as_dir"
1127 # Keep a trace of the command line.
1128 # Strip out --no-create and --no-recursion so they do not pile up.
1129 # Strip out --silent because we don't want to record it for future runs.
1130 # Also quote any args containing shell meta-characters.
1131 # Make two passes to allow for proper duplicate-argument suppression.
1136 ac_must_keep_next=false
1142 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1146 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1147 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1150 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1152 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1153 if test $ac_must_keep_next = true; then
1154 ac_must_keep_next=false # Got value, back to normal.
1157 *=* | --config-cache | -C | -disable-* | --disable-* \
1158 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1159 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1160 | -with-* | --with-* | -without-* | --without-* | --x)
1161 case "$ac_configure_args0 " in
1162 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1165 -* ) ac_must_keep_next=true ;;
1168 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169 # Get rid of the leading space.
1175 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1176 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1178 # When interrupted or exit'd, cleanup temporary files, and complete
1179 # config.log. We remove comments because anyway the quotes in there
1180 # would cause problems or look ugly.
1181 # WARNING: Be sure not to use single quotes in there, as some shells,
1182 # such as our DU 5.0 friend, will then `close' the trap.
1183 trap 'exit_status=$?
1184 # Save into config.log some information that might help in debugging.
1189 ## ---------------- ##
1190 ## Cache variables. ##
1191 ## ---------------- ##
1194 # The following way of writing the cache mishandles newlines in values,
1197 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1200 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1205 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1212 ## ----------------- ##
1213 ## Output variables. ##
1214 ## ----------------- ##
1217 for ac_var in $ac_subst_vars
1219 eval ac_val=$`echo $ac_var`
1220 echo "$ac_var='"'"'$ac_val'"'"'"
1224 if test -n "$ac_subst_files"; then
1231 for ac_var in $ac_subst_files
1233 eval ac_val=$`echo $ac_var`
1234 echo "$ac_var='"'"'$ac_val'"'"'"
1239 if test -s confdefs.h; then
1246 sed "/^$/d" confdefs.h | sort
1249 test "$ac_signal" != 0 &&
1250 echo "$as_me: caught signal $ac_signal"
1251 echo "$as_me: exit $exit_status"
1253 rm -f core *.core &&
1254 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1257 for ac_signal in 1 2 13 15; do
1258 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1267 # Predefined preprocessor variables.
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297 if test "x$prefix" != xNONE; then
1298 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1300 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1303 for ac_site_file in $CONFIG_SITE; do
1304 if test -r "$ac_site_file"; then
1305 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307 sed 's/^/| /' "$ac_site_file" >&5
1312 if test -r "$cache_file"; then
1313 # Some versions of bash will fail to source /dev/null (special
1314 # files actually), so we avoid doing that.
1315 if test -f "$cache_file"; then
1316 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1319 [\\/]* | ?:[\\/]* ) . $cache_file;;
1320 *) . ./$cache_file;;
1324 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1329 # Check that the precious variables saved in the cache have kept the same
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335 eval ac_new_set=\$ac_env_${ac_var}_set
1336 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337 eval ac_new_val="\$ac_env_${ac_var}_value"
1338 case $ac_old_set,$ac_new_set in
1340 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342 ac_cache_corrupted=: ;;
1344 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346 ac_cache_corrupted=: ;;
1349 if test "x$ac_old_val" != "x$ac_new_val"; then
1350 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1353 echo "$as_me: former value: $ac_old_val" >&2;}
1354 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1355 echo "$as_me: current value: $ac_new_val" >&2;}
1356 ac_cache_corrupted=:
1359 # Pass precious variables to config.status.
1360 if test "$ac_new_set" = set; then
1362 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364 *) ac_arg=$ac_var=$ac_new_val ;;
1366 case " $ac_configure_args " in
1367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1368 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 if $ac_cache_corrupted; then
1373 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377 { (exit 1); exit 1; }; }
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1411 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1412 if test -f $ac_dir/install-sh; then
1414 ac_install_sh="$ac_aux_dir/install-sh -c"
1416 elif test -f $ac_dir/install.sh; then
1418 ac_install_sh="$ac_aux_dir/install.sh -c"
1420 elif test -f $ac_dir/shtool; then
1422 ac_install_sh="$ac_aux_dir/shtool install -c"
1426 if test -z "$ac_aux_dir"; then
1427 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1429 { (exit 1); exit 1; }; }
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1443 # Extract the first word of "$ac_prog", so it can be a program name with args.
1444 set dummy $ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 TRUEPRG=$ac_cv_path_TRUEPRG
1474 if test -n "$TRUEPRG"; then
1475 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1476 echo "${ECHO_T}$TRUEPRG" >&6
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1482 test -n "$TRUEPRG" && break
1484 test -n "$TRUEPRG" || TRUEPRG=":"
1486 for ac_prog in false
1488 # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 FALSEPRG=$ac_cv_path_FALSEPRG
1519 if test -n "$FALSEPRG"; then
1520 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1521 echo "${ECHO_T}$FALSEPRG" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1527 test -n "$FALSEPRG" && break
1529 test -n "$FALSEPRG" || FALSEPRG=":"
1533 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1534 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 echo "configuring for bacula $VERSION ($DATE)"
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1582 if test -z "$ac_cv_prog_CC"; then
1584 # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC="gcc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1624 if test -z "$CC"; then
1625 if test -n "$ac_tool_prefix"; then
1626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1627 set dummy ${ac_tool_prefix}cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_CC="${ac_tool_prefix}cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 if test -n "$CC"; then
1654 echo "$as_me:$LINENO: result: $CC" >&5
1655 echo "${ECHO_T}$CC" >&6
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1662 if test -z "$ac_cv_prog_CC"; then
1664 # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_ac_ct_CC="cc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691 if test -n "$ac_ct_CC"; then
1692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693 echo "${ECHO_T}$ac_ct_CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1705 if test -z "$CC"; then
1706 # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1725 ac_prog_rejected=yes
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test $ac_prog_rejected = yes; then
1736 # We found a bogon in the path, so make sure we never use it.
1737 set dummy $ac_cv_prog_CC
1739 if test $# != 0; then
1740 # We chose a different compiler from the bogus one.
1741 # However, it has the same basename, so the bogon will be chosen
1742 # first if we set CC to just the basename; use the full file name.
1744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1750 if test -n "$CC"; then
1751 echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1759 if test -z "$CC"; then
1760 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 if test -n "$CC"; then
1791 echo "$as_me:$LINENO: result: $CC" >&5
1792 echo "${ECHO_T}$CC" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 test -n "$CC" && break
1801 if test -z "$CC"; then
1805 # Extract the first word of "$ac_prog", so it can be a program name with args.
1806 set dummy $ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 if test -n "$ac_ct_CC"; then
1813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_ac_ct_CC="$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1840 test -n "$ac_ct_CC" && break
1849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&2;}
1853 { (exit 1); exit 1; }; }
1855 # Provide some information about the compiler.
1856 echo "$as_me:$LINENO:" \
1857 "checking for C compiler version" >&5
1858 ac_compiler=`set X $ac_compile; echo $2`
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1860 (eval $ac_compiler --version </dev/null >&5) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1865 (eval $ac_compiler -v </dev/null >&5) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1870 (eval $ac_compiler -V </dev/null >&5) 2>&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }
1875 cat >conftest.$ac_ext <<_ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h. */
1890 ac_clean_files_save=$ac_clean_files
1891 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1895 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1896 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1897 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899 (eval $ac_link_default) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # Find the output, starting from the most likely. This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907 # Be careful to initialize this variable, since it used to be cached.
1908 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910 # b.out is created by i960 compilers.
1911 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913 test -f "$ac_file" || continue
1915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1918 # This is the source file.
1921 # We found the default executable, but exeext='' is most
1925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926 # FIXME: I believe we export ac_cv_exeext for Libtool,
1927 # but it would be cool to find out if it's true. Does anybody
1928 # maintain Libtool? --akim.
1936 echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&2;}
1943 { (exit 77); exit 77; }; }
1946 ac_exeext=$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_file" >&5
1948 echo "${ECHO_T}$ac_file" >&6
1950 # Check the compiler produces executables we can run. If not, either
1951 # the compiler is broken, or we cross compile.
1952 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1953 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1954 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1955 # If not cross compiling, check that we can run a simple program.
1956 if test "$cross_compiling" != yes; then
1957 if { ac_try='./$ac_file'
1958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; }; then
1965 if test "$cross_compiling" = maybe; then
1968 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'.
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
1978 echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6
1981 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982 ac_clean_files=$ac_clean_files_save
1983 # Check the compiler produces executables we can run. If not, either
1984 # the compiler is broken, or we cross compile.
1985 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988 echo "${ECHO_T}$cross_compiling" >&6
1990 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993 (eval $ac_link) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; then
1997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1999 # work properly (i.e., refer to `conftest.exe'), while it won't with
2001 for ac_file in conftest.exe conftest conftest.*; do
2002 test -f "$ac_file" || continue
2004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2012 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2019 rm -f conftest$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2021 echo "${ECHO_T}$ac_cv_exeext" >&6
2023 rm -f conftest.$ac_ext
2024 EXEEXT=$ac_cv_exeext
2026 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2027 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2028 if test "${ac_cv_objext+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 rm -f conftest.o conftest.obj
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; then
2052 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2060 echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2066 See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }
2070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2073 echo "${ECHO_T}$ac_cv_objext" >&6
2074 OBJEXT=$ac_cv_objext
2076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 cat >conftest.$ac_ext <<_ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2103 grep -v '^ *+' conftest.er1 >conftest.err
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2132 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2133 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2134 GCC=`test $ac_compiler_gnu = yes && echo yes`
2135 ac_test_CFLAGS=${CFLAGS+set}
2136 ac_save_CFLAGS=$CFLAGS
2138 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2139 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_g+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2162 grep -v '^ *+' conftest.er1 >conftest.err
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192 CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194 if test "$GCC" = yes; then
2200 if test "$GCC" = yes; then
2206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 ac_cv_prog_cc_stdc=no
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 #include <sys/types.h>
2222 #include <sys/stat.h>
2223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2224 struct buf { int x; };
2225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2226 static char *e (p, i)
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2237 s = g (p, va_arg (v,int));
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2243 function prototypes and stuff, but not '\xHH' hex character constants.
2244 These don't provoke an error unfortunately, instead are silently treated
2245 as 'x'. The following induces an error, until -std1 is added to get
2246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2247 array size at least. It's necessary to write '\x00'==0 to get something
2248 that's true only with -std1. */
2249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251 int test (int i, double x);
2252 struct s1 {int (*f) (int a);};
2253 struct s2 {int (*f) (double a);};
2254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2265 # Don't try gcc -ansi; that turns off useful extensions and
2266 # breaks some systems' header files.
2267 # AIX -qlanglvl=ansi
2268 # Ultrix and OSF/1 -std1
2269 # HP-UX 10.20 and later -Ae
2270 # HP-UX older versions -Aa -D_HPUX_SOURCE
2271 # SVR4 -Xc -D__EXTENSIONS__
2272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274 CC="$ac_save_CC $ac_arg"
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>conftest.er1
2279 grep -v '^ *+' conftest.er1 >conftest.err
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -z "$ac_c_werror_flag"
2285 || test ! -s conftest.err'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cc_stdc=$ac_arg
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2304 rm -f conftest.err conftest.$ac_objext
2306 rm -f conftest.$ac_ext conftest.$ac_objext
2311 case "x$ac_cv_prog_cc_stdc" in
2313 echo "$as_me:$LINENO: result: none needed" >&5
2314 echo "${ECHO_T}none needed" >&6 ;;
2316 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2318 CC="$CC $ac_cv_prog_cc_stdc" ;;
2321 # Some people use a C++ compiler to compile C. Since we use `exit',
2322 # in C++ we need to declare it. In case someone uses the same compiler
2323 # for both compiling C and C++ we need to have the C++ compiler decide
2324 # the declaration of exit, since it's the most demanding environment.
2325 cat >conftest.$ac_ext <<_ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1 >conftest.err
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 for ac_declaration in \
2354 'extern "C" void std::exit (int) throw (); using std::exit;' \
2355 'extern "C" void std::exit (int); using std::exit;' \
2356 'extern "C" void exit (int) throw ();' \
2357 'extern "C" void exit (int);' \
2360 cat >conftest.$ac_ext <<_ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 cat >conftest.$ac_ext <<_ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 if test -n "$ac_declaration"; then
2453 echo '#ifdef __cplusplus' >>confdefs.h
2454 echo $ac_declaration >>confdefs.h
2455 echo '#endif' >>confdefs.h
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 ac_cpp='$CXXCPP $CPPFLAGS'
2472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CXX+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CXX"; then
2486 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test -n "$CXX"; then
2506 echo "$as_me:$LINENO: result: $CXX" >&5
2507 echo "${ECHO_T}$CXX" >&6
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2513 test -n "$CXX" && break
2516 if test -z "$CXX"; then
2518 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_CXX"; then
2528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CXX="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2547 if test -n "$ac_ct_CXX"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2549 echo "${ECHO_T}$ac_ct_CXX" >&6
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 test -n "$ac_ct_CXX" && break
2557 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2563 # Provide some information about the compiler.
2564 echo "$as_me:$LINENO:" \
2565 "checking for C++ compiler version" >&5
2566 ac_compiler=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568 (eval $ac_compiler --version </dev/null >&5) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573 (eval $ac_compiler -v </dev/null >&5) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578 (eval $ac_compiler -V </dev/null >&5) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2583 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_cxx_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2639 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2645 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_cxx_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 ac_cv_prog_cxx_g=yes
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2698 if test "$ac_test_CXXFLAGS" = set; then
2699 CXXFLAGS=$ac_save_CXXFLAGS
2700 elif test $ac_cv_prog_cxx_g = yes; then
2701 if test "$GXX" = yes; then
2707 if test "$GXX" = yes; then
2713 for ac_declaration in \
2715 'extern "C" void std::exit (int) throw (); using std::exit;' \
2716 'extern "C" void std::exit (int); using std::exit;' \
2717 'extern "C" void exit (int) throw ();' \
2718 'extern "C" void exit (int);' \
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_cxx_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_cxx_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 if test -n "$ac_declaration"; then
2814 echo '#ifdef __cplusplus' >>confdefs.h
2815 echo $ac_declaration >>confdefs.h
2816 echo '#endif' >>confdefs.h
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 if test "x$CC" != xcc; then
2826 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2827 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2829 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2830 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2832 set dummy $CC; ac_cc=`echo $2 |
2833 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2834 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 # Make sure it works both with $CC and with simple cc.
2853 # We do the test twice because some compilers refuse to overwrite an
2854 # existing .o file with -o, though they will create one.
2855 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); };
2867 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2868 if test "x$CC" != xcc; then
2869 # Test first that cc exists at all.
2870 if { ac_try='cc -c conftest.$ac_ext >&5'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2877 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); };
2891 # cc exists but doesn't like -o.
2892 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2897 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2903 echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2909 cat >>confdefs.h <<\_ACEOF
2910 #define NO_MINUS_C_MINUS_O 1
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2922 # On Suns, sometimes $CPP names a directory.
2923 if test -n "$CPP" && test -d "$CPP"; then
2926 if test -z "$CPP"; then
2927 if test "${ac_cv_prog_CPP+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 # Double quotes because CPP needs to be expanded
2931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2934 for ac_c_preproc_warn_flag in '' yes
2936 # Use a header file that comes with gcc, so configuring glibc
2937 # with a fresh cross-compiler works.
2938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939 # <limits.h> exists even on freestanding compilers.
2940 # On the NeXT, cc -E runs the code through the compiler's parser,
2941 # not just through cpp. "Syntax error" is here to catch this case.
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2949 # include <limits.h>
2951 # include <assert.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 if test -z "$ac_cpp_err"; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Broken: fails on valid input.
2981 rm -f conftest.err conftest.$ac_ext
2983 # OK, works on sane cases. Now check whether non-existent headers
2984 # can be detected and how.
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <ac_nonexistent.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3010 if test -z "$ac_cpp_err"; then
3011 # Broken: success on invalid input.
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Passes both tests.
3021 rm -f conftest.err conftest.$ac_ext
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3038 echo "$as_me:$LINENO: result: $CPP" >&5
3039 echo "${ECHO_T}$CPP" >&6
3041 for ac_c_preproc_warn_flag in '' yes
3043 # Use a header file that comes with gcc, so configuring glibc
3044 # with a fresh cross-compiler works.
3045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 # <limits.h> exists even on freestanding compilers.
3047 # On the NeXT, cc -E runs the code through the compiler's parser,
3048 # not just through cpp. "Syntax error" is here to catch this case.
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3056 # include <limits.h>
3058 # include <assert.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 if test -z "$ac_cpp_err"; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Broken: fails on valid input.
3088 rm -f conftest.err conftest.$ac_ext
3090 # OK, works on sane cases. Now check whether non-existent headers
3091 # can be detected and how.
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 #include <ac_nonexistent.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 if test -z "$ac_cpp_err"; then
3118 # Broken: success on invalid input.
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Passes both tests.
3128 rm -f conftest.err conftest.$ac_ext
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then
3136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 echo "$as_me:$LINENO: checking for egrep" >&5
3151 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3152 if test "${ac_cv_prog_egrep+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3156 then ac_cv_prog_egrep='grep -E'
3157 else ac_cv_prog_egrep='egrep'
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3161 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3162 EGREP=$ac_cv_prog_egrep
3165 if test $ac_cv_c_compiler_gnu = yes; then
3166 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3167 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3168 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 ac_pattern="Autoconf.*'x'"
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183 ac_cv_prog_gcc_traditional=yes
3185 ac_cv_prog_gcc_traditional=no
3190 if test $ac_cv_prog_gcc_traditional = no; then
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3202 ac_cv_prog_gcc_traditional=yes
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3209 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3210 if test $ac_cv_prog_gcc_traditional = yes; then
3211 CC="$CC -traditional"
3215 BASECC=`basename $CC`
3217 if test "x$BASECC" = xgcc; then
3218 cat >>confdefs.h <<\_ACEOF
3224 # Extract the first word of "$CXX", so it can be a program name with args.
3225 set dummy $CXX; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3256 if test -n "$CXX"; then
3257 echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3264 if test ! -e $CXX; then
3265 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3266 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3267 { (exit 1); exit 1; }; }
3270 # Find a good install program. We prefer a C program (faster),
3271 # so one script is as good as another. But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 # Account for people who put trailing slashes in PATH elements.
3296 ./ | .// | /cC/* | \
3297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3301 # OSF1 and SCO ODT 3.0 have their own names for install.
3302 # Don't use installbsd from OSF since it installs stuff as root
3304 for ac_prog in ginstall scoinst install; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307 if test $ac_prog = install &&
3308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # AIX install. It has an incompatible calling convention.
3311 elif test $ac_prog = install &&
3312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # program-specific install script used by HP pwplus--don't use.
3316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3328 if test "${ac_cv_path_install+set}" = set; then
3329 INSTALL=$ac_cv_path_install
3331 # As a last resort, use the slow shell script. We don't cache a
3332 # path for INSTALL within a source directory, because that will
3333 # break other packages using the cache if that directory is
3334 # removed, or if the path is relative.
3335 INSTALL=$ac_install_sh
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 if test -n "$RANLIB"; then
3358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378 echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3386 if test -z "$ac_cv_prog_RANLIB"; then
3387 ac_ct_RANLIB=$RANLIB
3388 # Extract the first word of "ranlib", so it can be a program name with args.
3389 set dummy ranlib; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$ac_ct_RANLIB"; then
3396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_RANLIB="ranlib"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 RANLIB=$ac_ct_RANLIB
3426 RANLIB="$ac_cv_prog_RANLIB"
3429 # Extract the first word of "mv", so it can be a program name with args.
3430 set dummy mv; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_MV+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3461 if test -n "$MV"; then
3462 echo "$as_me:$LINENO: result: $MV" >&5
3463 echo "${ECHO_T}$MV" >&6
3465 echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3469 # Extract the first word of "rm", so it can be a program name with args.
3470 set dummy rm; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_path_RM+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3501 if test -n "$RM"; then
3502 echo "$as_me:$LINENO: result: $RM" >&5
3503 echo "${ECHO_T}$RM" >&6
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3509 # Extract the first word of "cp", so it can be a program name with args.
3510 set dummy cp; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_path_CP+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3541 if test -n "$CP"; then
3542 echo "$as_me:$LINENO: result: $CP" >&5
3543 echo "${ECHO_T}$CP" >&6
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3549 # Extract the first word of "sed", so it can be a program name with args.
3550 set dummy sed; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_SED+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3581 if test -n "$SED"; then
3582 echo "$as_me:$LINENO: result: $SED" >&5
3583 echo "${ECHO_T}$SED" >&6
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3589 # Extract the first word of "echo", so it can be a program name with args.
3590 set dummy echo; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_path_ECHO+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3619 ECHO=$ac_cv_path_ECHO
3621 if test -n "$ECHO"; then
3622 echo "$as_me:$LINENO: result: $ECHO" >&5
3623 echo "${ECHO_T}$ECHO" >&6
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3629 # Extract the first word of "cmp", so it can be a program name with args.
3630 set dummy cmp; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_CMP+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3661 if test -n "$CMP"; then
3662 echo "$as_me:$LINENO: result: $CMP" >&5
3663 echo "${ECHO_T}$CMP" >&6
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3669 # Extract the first word of "tbl", so it can be a program name with args.
3670 set dummy tbl; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_path_TBL+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3701 if test -n "$TBL"; then
3702 echo "$as_me:$LINENO: result: $TBL" >&5
3703 echo "${ECHO_T}$TBL" >&6
3705 echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3709 # Extract the first word of "ar", so it can be a program name with args.
3710 set dummy ar; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_AR+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3741 if test -n "$AR"; then
3742 echo "$as_me:$LINENO: result: $AR" >&5
3743 echo "${ECHO_T}$AR" >&6
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 # Extract the first word of "openssl", so it can be a program name with args.
3750 set dummy openssl; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_path_OPENSSL+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3779 OPENSSL=$ac_cv_path_OPENSSL
3781 if test -n "$OPENSSL"; then
3782 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3783 echo "${ECHO_T}$OPENSSL" >&6
3785 echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3789 # Extract the first word of "mtx", so it can be a program name with args.
3790 set dummy mtx; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_path_MTX+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3821 if test -n "$MTX"; then
3822 echo "$as_me:$LINENO: result: $MTX" >&5
3823 echo "${ECHO_T}$MTX" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 # Extract the first word of "dd", so it can be a program name with args.
3830 set dummy dd; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_path_DD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3861 if test -n "$DD"; then
3862 echo "$as_me:$LINENO: result: $DD" >&5
3863 echo "${ECHO_T}$DD" >&6
3865 echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3869 # Extract the first word of "mkisofs", so it can be a program name with args.
3870 set dummy mkisofs; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_path_MKISOFS+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3899 MKISOFS=$ac_cv_path_MKISOFS
3901 if test -n "$MKISOFS"; then
3902 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3903 echo "${ECHO_T}$MKISOFS" >&6
3905 echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3909 # Extract the first word of "python", so it can be a program name with args.
3910 set dummy python; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_path_PYTHON+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3939 PYTHON=$ac_cv_path_PYTHON
3941 if test -n "$PYTHON"; then
3942 echo "$as_me:$LINENO: result: $PYTHON" >&5
3943 echo "${ECHO_T}$PYTHON" >&6
3945 echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 # Extract the first word of "growisofs", so it can be a program name with args.
3950 set dummy growisofs; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3979 GROWISOFS=$ac_cv_path_GROWISOFS
3981 if test -n "$GROWISOFS"; then
3982 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3983 echo "${ECHO_T}$GROWISOFS" >&6
3985 echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3989 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3990 set dummy dvd+rw-mediainfo; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 case $DVDRWMEDIAINFO in
3998 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4019 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4021 if test -n "$DVDRWMEDIAINFO"; then
4022 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4023 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4029 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4030 set dummy dvd+rw-format; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 case $DVDRWFORMAT in
4038 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4059 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4061 if test -n "$DVDRWFORMAT"; then
4062 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4063 echo "${ECHO_T}$DVDRWFORMAT" >&6
4065 echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4069 # Extract the first word of "pkg-config", so it can be a program name with args.
4070 set dummy pkg-config; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4099 PKGCONFIG=$ac_cv_path_PKGCONFIG
4101 if test -n "$PKGCONFIG"; then
4102 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4103 echo "${ECHO_T}$PKGCONFIG" >&6
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4110 if test "x$WXCONFIG" = x; then
4113 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4114 set dummy ${WXCONFIG}; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4143 WXCONFIG=$ac_cv_path_WXCONFIG
4145 if test -n "$WXCONFIG"; then
4146 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4147 echo "${ECHO_T}$WXCONFIG" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 # Extract the first word of "cdrecord", so it can be a program name with args.
4155 set dummy cdrecord; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_path_CDRECORD+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4184 CDRECORD=$ac_cv_path_CDRECORD
4186 if test -n "$CDRECORD"; then
4187 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4188 echo "${ECHO_T}$CDRECORD" >&6
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4194 # Extract the first word of "pidof", so it can be a program name with args.
4195 set dummy pidof; 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_PIDOF+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_PIDOF="$PIDOF" # 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_PIDOF="$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_PIDOF" && ac_cv_path_PIDOF="pidof"
4224 PIDOF=$ac_cv_path_PIDOF
4226 if test -n "$PIDOF"; then
4227 echo "$as_me:$LINENO: result: $PIDOF" >&5
4228 echo "${ECHO_T}$PIDOF" >&6
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4234 for ac_prog in gawk mawk nawk awk
4236 # Extract the first word of "$ac_prog", so it can be a program name with args.
4237 set dummy $ac_prog; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_AWK+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$AWK"; then
4244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_AWK="$ac_prog"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 if test -n "$AWK"; then
4264 echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4271 test -n "$AWK" && break
4274 # Some AWK programs fail, so test it and warn the user
4275 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4276 { if ((prog == $2) || (("(" prog ")") == $2) ||
4277 (("" prog "") == $2) ||
4278 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4280 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4281 The regex engine of $AWK is too broken to be used you
4282 might want to install GNU AWK.
4283 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4284 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4285 The regex engine of $AWK is too broken to be used you
4286 might want to install GNU AWK.
4287 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4288 { (exit 1); exit 1; }; }
4291 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4292 set dummy $THE_AWK; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_path_AWK+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4323 if test -n "$AWK"; then
4324 echo "$as_me:$LINENO: result: $AWK" >&5
4325 echo "${ECHO_T}$AWK" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4333 test -n "$ARFLAG" || ARFLAGS="cr"
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348 { (exit 1); exit 1; }; }
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357 ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361 { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365 { (exit 1); exit 1; }; }
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4377 echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4379 if test "${ac_cv_host+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_cv_host_alias=$host_alias
4383 test -z "$ac_cv_host_alias" &&
4384 ac_cv_host_alias=$ac_cv_build_alias
4385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4386 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4388 { (exit 1); exit 1; }; }
4391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6
4394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4400 *cygwin* ) CYGWIN=yes;;
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4410 HAVE_SUN_OS_FALSE='#'
4412 HAVE_SUN_OS_TRUE='#'
4415 cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_SUN_OS 1
4424 HAVE_SUN_OS_FALSE='#'
4426 HAVE_SUN_OS_TRUE='#'
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4437 HAVE_OSF1_OS_FALSE='#'
4439 HAVE_OSF1_OS_TRUE='#'
4442 cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_OSF1_OS 1
4451 HAVE_OSF1_OS_FALSE='#'
4453 HAVE_OSF1_OS_TRUE='#'
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4464 HAVE_AIX_OS_FALSE='#'
4466 HAVE_AIX_OS_TRUE='#'
4469 cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_AIX_OS 1
4478 HAVE_AIX_OS_FALSE='#'
4480 HAVE_AIX_OS_TRUE='#'
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4491 HAVE_HPUX_OS_FALSE='#'
4493 HAVE_HPUX_OS_TRUE='#'
4496 cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_HPUX_OS 1
4505 HAVE_HPUX_OS_FALSE='#'
4507 HAVE_HPUX_OS_TRUE='#'
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4518 HAVE_LINUX_OS_FALSE='#'
4520 HAVE_LINUX_OS_TRUE='#'
4521 HAVE_LINUX_OS_FALSE=
4523 cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_LINUX_OS 1
4532 HAVE_LINUX_OS_FALSE='#'
4534 HAVE_LINUX_OS_TRUE='#'
4535 HAVE_LINUX_OS_FALSE=
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4544 HAVE_FREEBSD_OS_TRUE=
4545 HAVE_FREEBSD_OS_FALSE='#'
4547 HAVE_FREEBSD_OS_TRUE='#'
4548 HAVE_FREEBSD_OS_FALSE=
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_FREEBSD_OS 1
4558 HAVE_FREEBSD_OS_TRUE=
4559 HAVE_FREEBSD_OS_FALSE='#'
4561 HAVE_FREEBSD_OS_TRUE='#'
4562 HAVE_FREEBSD_OS_FALSE=
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4571 HAVE_NETBSD_OS_TRUE=
4572 HAVE_NETBSD_OS_FALSE='#'
4574 HAVE_NETBSD_OS_TRUE='#'
4575 HAVE_NETBSD_OS_FALSE=
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_NETBSD_OS 1
4585 HAVE_NETBSD_OS_TRUE=
4586 HAVE_NETBSD_OS_FALSE='#'
4588 HAVE_NETBSD_OS_TRUE='#'
4589 HAVE_NETBSD_OS_FALSE=
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4598 HAVE_OPENBSD_OS_TRUE=
4599 HAVE_OPENBSD_OS_FALSE='#'
4601 HAVE_OPENBSD_OS_TRUE='#'
4602 HAVE_OPENBSD_OS_FALSE=
4604 cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_OPENBSD_OS 1
4612 HAVE_OPENBSD_OS_TRUE=
4613 HAVE_OPENBSD_OS_FALSE='#'
4615 HAVE_OPENBSD_OS_TRUE='#'
4616 HAVE_OPENBSD_OS_FALSE=
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4626 HAVE_BSDI_OS_FALSE='#'
4628 HAVE_BSDI_OS_TRUE='#'
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_BSDI_OS 1
4640 HAVE_BSDI_OS_FALSE='#'
4642 HAVE_BSDI_OS_TRUE='#'
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4653 HAVE_SGI_OS_FALSE='#'
4655 HAVE_SGI_OS_TRUE='#'
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_SGI_OS 1
4667 HAVE_SGI_OS_FALSE='#'
4669 HAVE_SGI_OS_TRUE='#'
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4680 HAVE_IRIX_OS_FALSE='#'
4682 HAVE_IRIX_OS_TRUE='#'
4685 cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_IRIX_OS 1
4694 HAVE_IRIX_OS_FALSE='#'
4696 HAVE_IRIX_OS_TRUE='#'
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4706 HAVE_DARWIN_OS_TRUE=
4707 HAVE_DARWIN_OS_FALSE='#'
4709 HAVE_DARWIN_OS_TRUE='#'
4710 HAVE_DARWIN_OS_FALSE=
4712 cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_DARWIN_OS 1
4720 HAVE_DARWIN_OS_TRUE=
4721 HAVE_DARWIN_OS_FALSE='#'
4723 HAVE_DARWIN_OS_TRUE='#'
4724 HAVE_DARWIN_OS_FALSE=
4729 # -----------------------------------------------------------
4730 # ----------------------------------------------------------
4731 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4732 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4733 if test "x$DISTNAME" != "x"
4735 echo "distname set to $DISTNAME"
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4739 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4742 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4745 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4748 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4751 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4754 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4757 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4760 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4763 elif test -f /etc/SuSE-release
4766 elif test -d /etc/SuSEconfig
4769 elif test -f /etc/mandrake-release
4772 elif test -f /etc/whitebox-release
4775 elif test -f /etc/redhat-release
4778 elif test -f /etc/gentoo-release
4781 elif test -f /etc/debian_version
4784 elif test -f /etc/slackware-version
4787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4790 elif test -f /etc/engarde-version
4793 elif test "$CYGWIN" = yes
4796 cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_CYGWIN 1
4803 echo "$as_me:$LINENO: result: done" >&5
4804 echo "${ECHO_T}done" >&6
4807 # --------------------------------------------------
4808 # Suppport for gettext (translations)
4809 # By default, $datadir is ${prefix}/share
4810 # --------------------------------------------------
4811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.make <<\_ACEOF
4819 @echo 'ac_maketemp="$(MAKE)"'
4821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4823 if test -n "$ac_maketemp"; then
4824 eval ac_cv_prog_make_${ac_make}_set=yes
4826 eval ac_cv_prog_make_${ac_make}_set=no
4830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4831 echo "$as_me:$LINENO: result: yes" >&5
4832 echo "${ECHO_T}yes" >&6
4835 echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837 SET_MAKE="MAKE=${MAKE-make}"
4843 if test -n "$ac_aux_dir"; then
4844 case "$ac_aux_dir" in
4845 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4846 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4849 if test -z "$MKINSTALLDIRS"; then
4850 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4855 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4857 # Check whether --enable-nls or --disable-nls was given.
4858 if test "${enable_nls+set}" = set; then
4859 enableval="$enable_nls"
4864 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4865 echo "${ECHO_T}$USE_NLS" >&6
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875 echo "#! /bin/sh" >conf$$.sh
4876 echo "exit 0" >>conf$$.sh
4878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894 ac_executable_p="test -x"
4896 ac_executable_p="test -f"
4900 # Extract the first word of "msgfmt", so it can be a program name with args.
4901 set dummy msgfmt; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_path_MSGFMT+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913 for ac_dir in $PATH; do
4915 test -z "$ac_dir" && ac_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4928 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4932 MSGFMT="$ac_cv_path_MSGFMT"
4933 if test "$MSGFMT" != ":"; then
4934 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4935 echo "${ECHO_T}$MSGFMT" >&6
4937 echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4941 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942 set dummy gmsgfmt; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4971 GMSGFMT=$ac_cv_path_GMSGFMT
4973 if test -n "$GMSGFMT"; then
4974 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4975 echo "${ECHO_T}$GMSGFMT" >&6
4977 echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986 echo "#! /bin/sh" >conf$$.sh
4987 echo "exit 0" >>conf$$.sh
4989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005 ac_executable_p="test -x"
5007 ac_executable_p="test -f"
5011 # Extract the first word of "xgettext", so it can be a program name with args.
5012 set dummy xgettext; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH; do
5026 test -z "$ac_dir" && ac_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5031 (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
5032 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5039 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5043 XGETTEXT="$ac_cv_path_XGETTEXT"
5044 if test "$XGETTEXT" != ":"; then
5045 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5046 echo "${ECHO_T}$XGETTEXT" >&6
5048 echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5055 # Prepare PATH_SEPARATOR.
5056 # The user is always right.
5057 if test "${PATH_SEPARATOR+set}" != set; then
5058 echo "#! /bin/sh" >conf$$.sh
5059 echo "exit 0" >>conf$$.sh
5061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5069 # Find out how to test for executable files. Don't use a zero-byte file,
5070 # as systems may use methods other than mode bits to determine executability.
5071 cat >conf$$.file <<_ASEOF
5075 chmod +x conf$$.file
5076 if test -x conf$$.file >/dev/null 2>&1; then
5077 ac_executable_p="test -x"
5079 ac_executable_p="test -f"
5083 # Extract the first word of "msgmerge", so it can be a program name with args.
5084 set dummy msgmerge; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5095 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5096 for ac_dir in $PATH; do
5098 test -z "$ac_dir" && ac_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5101 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5114 MSGMERGE="$ac_cv_path_MSGMERGE"
5115 if test "$MSGMERGE" != ":"; then
5116 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117 echo "${ECHO_T}$MSGMERGE" >&6
5119 echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5124 if test "$GMSGFMT" != ":"; then
5125 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5129 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5136 if test "$XGETTEXT" != ":"; then
5137 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138 (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
5141 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5148 ac_config_commands="$ac_config_commands default-1"
5152 if test "X$prefix" = "XNONE"; then
5153 acl_final_prefix="$ac_default_prefix"
5155 acl_final_prefix="$prefix"
5157 if test "X$exec_prefix" = "XNONE"; then
5158 acl_final_exec_prefix='${prefix}'
5160 acl_final_exec_prefix="$exec_prefix"
5162 acl_save_prefix="$prefix"
5163 prefix="$acl_final_prefix"
5164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165 prefix="$acl_save_prefix"
5168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5169 if test "${with_gnu_ld+set}" = set; then
5170 withval="$with_gnu_ld"
5171 test "$withval" = no || with_gnu_ld=yes
5175 # Prepare PATH_SEPARATOR.
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178 echo "#! /bin/sh" >conf$$.sh
5179 echo "exit 0" >>conf$$.sh
5181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5189 if test "$GCC" = yes; then
5190 # Check if gcc -print-prog-name=ld gives a path.
5191 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5192 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5195 # gcc leaves a trailing carriage return which upsets mingw
5196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5201 # Accept absolute paths.
5202 [\\/]* | [A-Za-z]:[\\/]*)
5203 re_direlt='/[^/][^/]*/\.\./'
5204 # Canonicalize the path of ld
5205 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5209 test -z "$LD" && LD="$ac_prog"
5212 # If it fails, then pretend we aren't using GCC.
5216 # If it is relative, then search for the first ld in PATH.
5220 elif test "$with_gnu_ld" = yes; then
5221 echo "$as_me:$LINENO: checking for GNU ld" >&5
5222 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5224 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5225 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5227 if test "${acl_cv_path_LD+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test -z "$LD"; then
5231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232 for ac_dir in $PATH; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235 acl_cv_path_LD="$ac_dir/$ac_prog"
5236 # Check to see if the program is GNU ld. I'd rather use --version,
5237 # but apparently some GNU ld's only accept -v.
5238 # Break only if it was the GNU/non-GNU ld that we prefer.
5239 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240 *GNU* | *'with BFD'*)
5241 test "$with_gnu_ld" != no && break ;;
5243 test "$with_gnu_ld" != yes && break ;;
5249 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5253 LD="$acl_cv_path_LD"
5254 if test -n "$LD"; then
5255 echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5258 echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263 { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272 acl_cv_prog_gnu_ld=yes ;;
5274 acl_cv_prog_gnu_ld=no ;;
5277 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5279 with_gnu_ld=$acl_cv_prog_gnu_ld
5284 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5286 if test "${acl_cv_rpath+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5298 echo "${ECHO_T}$acl_cv_rpath" >&6
5300 libext="$acl_cv_libext"
5301 shlibext="$acl_cv_shlibext"
5302 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304 hardcode_direct="$acl_cv_hardcode_direct"
5305 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306 # Check whether --enable-rpath or --disable-rpath was given.
5307 if test "${enable_rpath+set}" = set; then
5308 enableval="$enable_rpath"
5322 acl_save_prefix="$prefix"
5323 prefix="$acl_final_prefix"
5324 acl_save_exec_prefix="$exec_prefix"
5325 exec_prefix="$acl_final_exec_prefix"
5327 eval additional_includedir=\"$includedir\"
5328 eval additional_libdir=\"$libdir\"
5330 exec_prefix="$acl_save_exec_prefix"
5331 prefix="$acl_save_prefix"
5334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5335 if test "${with_libiconv_prefix+set}" = set; then
5336 withval="$with_libiconv_prefix"
5338 if test "X$withval" = "Xno"; then
5341 if test "X$withval" = "X"; then
5343 acl_save_prefix="$prefix"
5344 prefix="$acl_final_prefix"
5345 acl_save_exec_prefix="$exec_prefix"
5346 exec_prefix="$acl_final_exec_prefix"
5348 eval additional_includedir=\"$includedir\"
5349 eval additional_libdir=\"$libdir\"
5351 exec_prefix="$acl_save_exec_prefix"
5352 prefix="$acl_save_prefix"
5355 additional_includedir="$withval/include"
5356 additional_libdir="$withval/lib"
5366 names_already_handled=
5367 names_next_round='iconv '
5368 while test -n "$names_next_round"; do
5369 names_this_round="$names_next_round"
5371 for name in $names_this_round; do
5373 for n in $names_already_handled; do
5374 if test "$n" = "$name"; then
5379 if test -z "$already_handled"; then
5380 names_already_handled="$names_already_handled $name"
5381 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5382 eval value=\"\$HAVE_LIB$uppername\"
5383 if test -n "$value"; then
5384 if test "$value" = yes; then
5385 eval value=\"\$LIB$uppername\"
5386 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5387 eval value=\"\$LTLIB$uppername\"
5388 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5397 if test $use_additional = yes; then
5398 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5399 found_dir="$additional_libdir"
5400 found_so="$additional_libdir/lib$name.$shlibext"
5401 if test -f "$additional_libdir/lib$name.la"; then
5402 found_la="$additional_libdir/lib$name.la"
5405 if test -f "$additional_libdir/lib$name.$libext"; then
5406 found_dir="$additional_libdir"
5407 found_a="$additional_libdir/lib$name.$libext"
5408 if test -f "$additional_libdir/lib$name.la"; then
5409 found_la="$additional_libdir/lib$name.la"
5414 if test "X$found_dir" = "X"; then
5415 for x in $LDFLAGS $LTLIBICONV; do
5417 acl_save_prefix="$prefix"
5418 prefix="$acl_final_prefix"
5419 acl_save_exec_prefix="$exec_prefix"
5420 exec_prefix="$acl_final_exec_prefix"
5422 exec_prefix="$acl_save_exec_prefix"
5423 prefix="$acl_save_prefix"
5427 dir=`echo "X$x" | sed -e 's/^X-L//'`
5428 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5430 found_so="$dir/lib$name.$shlibext"
5431 if test -f "$dir/lib$name.la"; then
5432 found_la="$dir/lib$name.la"
5435 if test -f "$dir/lib$name.$libext"; then
5437 found_a="$dir/lib$name.$libext"
5438 if test -f "$dir/lib$name.la"; then
5439 found_la="$dir/lib$name.la"
5445 if test "X$found_dir" != "X"; then
5450 if test "X$found_dir" != "X"; then
5451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5452 if test "X$found_so" != "X"; then
5453 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5457 for x in $ltrpathdirs; do
5458 if test "X$x" = "X$found_dir"; then
5463 if test -z "$haveit"; then
5464 ltrpathdirs="$ltrpathdirs $found_dir"
5466 if test "$hardcode_direct" = yes; then
5467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5469 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5472 for x in $rpathdirs; do
5473 if test "X$x" = "X$found_dir"; then
5478 if test -z "$haveit"; then
5479 rpathdirs="$rpathdirs $found_dir"
5483 for x in $LDFLAGS $LIBICONV; do
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5490 exec_prefix="$acl_save_exec_prefix"
5491 prefix="$acl_save_prefix"
5493 if test "X$x" = "X-L$found_dir"; then
5498 if test -z "$haveit"; then
5499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5501 if test "$hardcode_minus_L" != no; then
5502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5504 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5510 if test "X$found_a" != "X"; then
5511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5513 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5516 additional_includedir=
5517 case "$found_dir" in
5519 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5520 additional_includedir="$basedir/include"
5523 if test "X$additional_includedir" != "X"; then
5524 if test "X$additional_includedir" != "X/usr/include"; then
5526 if test "X$additional_includedir" = "X/usr/local/include"; then
5527 if test -n "$GCC"; then
5529 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5533 if test -z "$haveit"; then
5534 for x in $CPPFLAGS $INCICONV; do
5536 acl_save_prefix="$prefix"
5537 prefix="$acl_final_prefix"
5538 acl_save_exec_prefix="$exec_prefix"
5539 exec_prefix="$acl_final_exec_prefix"
5541 exec_prefix="$acl_save_exec_prefix"
5542 prefix="$acl_save_prefix"
5544 if test "X$x" = "X-I$additional_includedir"; then
5549 if test -z "$haveit"; then
5550 if test -d "$additional_includedir"; then
5551 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5557 if test -n "$found_la"; then
5558 save_libdir="$libdir"
5560 */* | *\\*) . "$found_la" ;;
5561 *) . "./$found_la" ;;
5563 libdir="$save_libdir"
5564 for dep in $dependency_libs; do
5567 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5568 if test "X$additional_libdir" != "X/usr/lib"; then
5570 if test "X$additional_libdir" = "X/usr/local/lib"; then
5571 if test -n "$GCC"; then
5573 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5577 if test -z "$haveit"; then
5579 for x in $LDFLAGS $LIBICONV; do
5581 acl_save_prefix="$prefix"
5582 prefix="$acl_final_prefix"
5583 acl_save_exec_prefix="$exec_prefix"
5584 exec_prefix="$acl_final_exec_prefix"
5586 exec_prefix="$acl_save_exec_prefix"
5587 prefix="$acl_save_prefix"
5589 if test "X$x" = "X-L$additional_libdir"; then
5594 if test -z "$haveit"; then
5595 if test -d "$additional_libdir"; then
5596 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5600 for x in $LDFLAGS $LTLIBICONV; do
5602 acl_save_prefix="$prefix"
5603 prefix="$acl_final_prefix"
5604 acl_save_exec_prefix="$exec_prefix"
5605 exec_prefix="$acl_final_exec_prefix"
5607 exec_prefix="$acl_save_exec_prefix"
5608 prefix="$acl_save_prefix"
5610 if test "X$x" = "X-L$additional_libdir"; then
5615 if test -z "$haveit"; then
5616 if test -d "$additional_libdir"; then
5617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5624 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5625 if test "$enable_rpath" != no; then
5627 for x in $rpathdirs; do
5628 if test "X$x" = "X$dir"; then
5633 if test -z "$haveit"; then
5634 rpathdirs="$rpathdirs $dir"
5637 for x in $ltrpathdirs; do
5638 if test "X$x" = "X$dir"; then
5643 if test -z "$haveit"; then
5644 ltrpathdirs="$ltrpathdirs $dir"
5649 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5652 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5655 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5656 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5662 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5669 if test "X$rpathdirs" != "X"; then
5670 if test -n "$hardcode_libdir_separator"; then
5672 for found_dir in $rpathdirs; do
5673 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5675 acl_save_libdir="$libdir"
5677 eval flag=\"$hardcode_libdir_flag_spec\"
5678 libdir="$acl_save_libdir"
5679 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5681 for found_dir in $rpathdirs; do
5682 acl_save_libdir="$libdir"
5684 eval flag=\"$hardcode_libdir_flag_spec\"
5685 libdir="$acl_save_libdir"
5686 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5690 if test "X$ltrpathdirs" != "X"; then
5691 for found_dir in $ltrpathdirs; do
5692 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5713 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5714 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5715 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 gt_save_CPPFLAGS="$CPPFLAGS"
5719 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5720 gt_save_LIBS="$LIBS"
5721 LIBS="$LIBS -framework CoreFoundation"
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <CFPreferences.h>
5732 CFPreferencesCopyAppValue(NULL, NULL)
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>conftest.er1
5741 grep -v '^ *+' conftest.er1 >conftest.err
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 gt_cv_func_CFPreferencesCopyAppValue=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 gt_cv_func_CFPreferencesCopyAppValue=no
5766 rm -f conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 CPPFLAGS="$gt_save_CPPFLAGS"
5769 LIBS="$gt_save_LIBS"
5771 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5772 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5780 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5781 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5782 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 gt_save_CPPFLAGS="$CPPFLAGS"
5786 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5787 gt_save_LIBS="$LIBS"
5788 LIBS="$LIBS -framework CoreFoundation"
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #include <CFLocale.h>
5799 CFLocaleCopyCurrent();
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 gt_cv_func_CFLocaleCopyCurrent=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 gt_cv_func_CFLocaleCopyCurrent=no
5833 rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 CPPFLAGS="$gt_save_CPPFLAGS"
5836 LIBS="$gt_save_LIBS"
5838 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5839 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5840 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_CFLOCALECOPYCURRENT 1
5848 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5849 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5855 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5857 # Check whether --enable-nls or --disable-nls was given.
5858 if test "${enable_nls+set}" = set; then
5859 enableval="$enable_nls"
5864 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5865 echo "${ECHO_T}$USE_NLS" >&6
5874 if test "$USE_NLS" = "yes"; then
5875 gt_use_preinstalled_gnugettext=no
5882 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5883 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5884 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <libintl.h>
5894 extern int _nl_msg_cat_cntr;
5895 extern int *_nl_domain_bindings;
5899 bindtextdomain ("", "");
5900 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 gt_cv_func_gnugettext1_libc=yes
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 gt_cv_func_gnugettext1_libc=no
5934 rm -f conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5937 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5940 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5946 am_save_CPPFLAGS="$CPPFLAGS"
5948 for element in $INCICONV; do
5950 for x in $CPPFLAGS; do
5952 acl_save_prefix="$prefix"
5953 prefix="$acl_final_prefix"
5954 acl_save_exec_prefix="$exec_prefix"
5955 exec_prefix="$acl_final_exec_prefix"
5957 exec_prefix="$acl_save_exec_prefix"
5958 prefix="$acl_save_prefix"
5960 if test "X$x" = "X$element"; then
5965 if test -z "$haveit"; then
5966 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5971 echo "$as_me:$LINENO: checking for iconv" >&5
5972 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5973 if test "${am_cv_func_iconv+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 am_cv_func_iconv="no, consider installing GNU libiconv"
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5990 iconv_t cd = iconv_open("","");
5991 iconv(cd,NULL,NULL,NULL,NULL);
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 am_cv_func_iconv=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6025 rm -f conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 if test "$am_cv_func_iconv" != yes; then
6028 am_save_LIBS="$LIBS"
6029 LIBS="$LIBS $LIBICONV"
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6041 iconv_t cd = iconv_open("","");
6042 iconv(cd,NULL,NULL,NULL,NULL);
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6071 am_cv_func_iconv=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6077 rm -f conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS="$am_save_LIBS"
6083 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6084 echo "${ECHO_T}$am_cv_func_iconv" >&6
6085 if test "$am_cv_func_iconv" = yes; then
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ICONV 1
6092 if test "$am_cv_lib_iconv" = yes; then
6093 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6094 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6095 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6096 echo "${ECHO_T}$LIBICONV" >&6
6098 CPPFLAGS="$am_save_CPPFLAGS"
6110 acl_save_prefix="$prefix"
6111 prefix="$acl_final_prefix"
6112 acl_save_exec_prefix="$exec_prefix"
6113 exec_prefix="$acl_final_exec_prefix"
6115 eval additional_includedir=\"$includedir\"
6116 eval additional_libdir=\"$libdir\"
6118 exec_prefix="$acl_save_exec_prefix"
6119 prefix="$acl_save_prefix"
6122 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6123 if test "${with_libintl_prefix+set}" = set; then
6124 withval="$with_libintl_prefix"
6126 if test "X$withval" = "Xno"; then
6129 if test "X$withval" = "X"; then
6131 acl_save_prefix="$prefix"
6132 prefix="$acl_final_prefix"
6133 acl_save_exec_prefix="$exec_prefix"
6134 exec_prefix="$acl_final_exec_prefix"
6136 eval additional_includedir=\"$includedir\"
6137 eval additional_libdir=\"$libdir\"
6139 exec_prefix="$acl_save_exec_prefix"
6140 prefix="$acl_save_prefix"
6143 additional_includedir="$withval/include"
6144 additional_libdir="$withval/lib"
6154 names_already_handled=
6155 names_next_round='intl '
6156 while test -n "$names_next_round"; do
6157 names_this_round="$names_next_round"
6159 for name in $names_this_round; do
6161 for n in $names_already_handled; do
6162 if test "$n" = "$name"; then
6167 if test -z "$already_handled"; then
6168 names_already_handled="$names_already_handled $name"
6169 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6170 eval value=\"\$HAVE_LIB$uppername\"
6171 if test -n "$value"; then
6172 if test "$value" = yes; then
6173 eval value=\"\$LIB$uppername\"
6174 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6175 eval value=\"\$LTLIB$uppername\"
6176 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6185 if test $use_additional = yes; then
6186 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6187 found_dir="$additional_libdir"
6188 found_so="$additional_libdir/lib$name.$shlibext"
6189 if test -f "$additional_libdir/lib$name.la"; then
6190 found_la="$additional_libdir/lib$name.la"
6193 if test -f "$additional_libdir/lib$name.$libext"; then
6194 found_dir="$additional_libdir"
6195 found_a="$additional_libdir/lib$name.$libext"
6196 if test -f "$additional_libdir/lib$name.la"; then
6197 found_la="$additional_libdir/lib$name.la"
6202 if test "X$found_dir" = "X"; then
6203 for x in $LDFLAGS $LTLIBINTL; do
6205 acl_save_prefix="$prefix"
6206 prefix="$acl_final_prefix"
6207 acl_save_exec_prefix="$exec_prefix"
6208 exec_prefix="$acl_final_exec_prefix"
6210 exec_prefix="$acl_save_exec_prefix"
6211 prefix="$acl_save_prefix"
6215 dir=`echo "X$x" | sed -e 's/^X-L//'`
6216 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6218 found_so="$dir/lib$name.$shlibext"
6219 if test -f "$dir/lib$name.la"; then
6220 found_la="$dir/lib$name.la"
6223 if test -f "$dir/lib$name.$libext"; then
6225 found_a="$dir/lib$name.$libext"
6226 if test -f "$dir/lib$name.la"; then
6227 found_la="$dir/lib$name.la"
6233 if test "X$found_dir" != "X"; then
6238 if test "X$found_dir" != "X"; then
6239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6240 if test "X$found_so" != "X"; then
6241 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6242 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6245 for x in $ltrpathdirs; do
6246 if test "X$x" = "X$found_dir"; then
6251 if test -z "$haveit"; then
6252 ltrpathdirs="$ltrpathdirs $found_dir"
6254 if test "$hardcode_direct" = yes; then
6255 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6257 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6258 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6260 for x in $rpathdirs; do
6261 if test "X$x" = "X$found_dir"; then
6266 if test -z "$haveit"; then
6267 rpathdirs="$rpathdirs $found_dir"
6271 for x in $LDFLAGS $LIBINTL; do
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6281 if test "X$x" = "X-L$found_dir"; then
6286 if test -z "$haveit"; then
6287 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6289 if test "$hardcode_minus_L" != no; then
6290 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6292 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6298 if test "X$found_a" != "X"; then
6299 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6301 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6304 additional_includedir=
6305 case "$found_dir" in
6307 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6308 additional_includedir="$basedir/include"
6311 if test "X$additional_includedir" != "X"; then
6312 if test "X$additional_includedir" != "X/usr/include"; then
6314 if test "X$additional_includedir" = "X/usr/local/include"; then
6315 if test -n "$GCC"; then
6317 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6321 if test -z "$haveit"; then
6322 for x in $CPPFLAGS $INCINTL; do
6324 acl_save_prefix="$prefix"
6325 prefix="$acl_final_prefix"
6326 acl_save_exec_prefix="$exec_prefix"
6327 exec_prefix="$acl_final_exec_prefix"
6329 exec_prefix="$acl_save_exec_prefix"
6330 prefix="$acl_save_prefix"
6332 if test "X$x" = "X-I$additional_includedir"; then
6337 if test -z "$haveit"; then
6338 if test -d "$additional_includedir"; then
6339 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6345 if test -n "$found_la"; then
6346 save_libdir="$libdir"
6348 */* | *\\*) . "$found_la" ;;
6349 *) . "./$found_la" ;;
6351 libdir="$save_libdir"
6352 for dep in $dependency_libs; do
6355 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356 if test "X$additional_libdir" != "X/usr/lib"; then
6358 if test "X$additional_libdir" = "X/usr/local/lib"; then
6359 if test -n "$GCC"; then
6361 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6365 if test -z "$haveit"; then
6367 for x in $LDFLAGS $LIBINTL; do
6369 acl_save_prefix="$prefix"
6370 prefix="$acl_final_prefix"
6371 acl_save_exec_prefix="$exec_prefix"
6372 exec_prefix="$acl_final_exec_prefix"
6374 exec_prefix="$acl_save_exec_prefix"
6375 prefix="$acl_save_prefix"
6377 if test "X$x" = "X-L$additional_libdir"; then
6382 if test -z "$haveit"; then
6383 if test -d "$additional_libdir"; then
6384 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6388 for x in $LDFLAGS $LTLIBINTL; do
6390 acl_save_prefix="$prefix"
6391 prefix="$acl_final_prefix"
6392 acl_save_exec_prefix="$exec_prefix"
6393 exec_prefix="$acl_final_exec_prefix"
6395 exec_prefix="$acl_save_exec_prefix"
6396 prefix="$acl_save_prefix"
6398 if test "X$x" = "X-L$additional_libdir"; then
6403 if test -z "$haveit"; then
6404 if test -d "$additional_libdir"; then
6405 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6412 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6413 if test "$enable_rpath" != no; then
6415 for x in $rpathdirs; do
6416 if test "X$x" = "X$dir"; then
6421 if test -z "$haveit"; then
6422 rpathdirs="$rpathdirs $dir"
6425 for x in $ltrpathdirs; do
6426 if test "X$x" = "X$dir"; then
6431 if test -z "$haveit"; then
6432 ltrpathdirs="$ltrpathdirs $dir"
6437 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6440 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6443 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6450 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6451 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6457 if test "X$rpathdirs" != "X"; then
6458 if test -n "$hardcode_libdir_separator"; then
6460 for found_dir in $rpathdirs; do
6461 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6463 acl_save_libdir="$libdir"
6465 eval flag=\"$hardcode_libdir_flag_spec\"
6466 libdir="$acl_save_libdir"
6467 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6469 for found_dir in $rpathdirs; do
6470 acl_save_libdir="$libdir"
6472 eval flag=\"$hardcode_libdir_flag_spec\"
6473 libdir="$acl_save_libdir"
6474 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6478 if test "X$ltrpathdirs" != "X"; then
6479 for found_dir in $ltrpathdirs; do
6480 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6484 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6485 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6486 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 gt_save_CPPFLAGS="$CPPFLAGS"
6490 CPPFLAGS="$CPPFLAGS $INCINTL"
6491 gt_save_LIBS="$LIBS"
6492 LIBS="$LIBS $LIBINTL"
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <libintl.h>
6500 extern int _nl_msg_cat_cntr;
6505 const char *_nl_expand_alias (const char *);
6509 bindtextdomain ("", "");
6510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest$ac_exeext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 gt_cv_func_gnugettext1_libintl=yes
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 gt_cv_func_gnugettext1_libintl=no
6544 rm -f conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext conftest.$ac_ext
6546 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6547 LIBS="$LIBS $LIBICONV"
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <libintl.h>
6555 extern int _nl_msg_cat_cntr;
6560 const char *_nl_expand_alias (const char *);
6564 bindtextdomain ("", "");
6565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 LIBINTL="$LIBINTL $LIBICONV"
6593 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6594 gt_cv_func_gnugettext1_libintl=yes
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6601 rm -f conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6604 CPPFLAGS="$gt_save_CPPFLAGS"
6605 LIBS="$gt_save_LIBS"
6607 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6608 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6611 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6612 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6613 && test "$PACKAGE" != gettext-runtime \
6614 && test "$PACKAGE" != gettext-tools; }; then
6615 gt_use_preinstalled_gnugettext=yes
6624 if test -n "$INTL_MACOSX_LIBS"; then
6625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6628 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6635 cat >>confdefs.h <<\_ACEOF
6636 #define ENABLE_NLS 1
6644 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6645 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6646 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6647 echo "${ECHO_T}$USE_NLS" >&6
6648 if test "$USE_NLS" = "yes"; then
6649 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6650 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6651 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6652 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6653 gt_source="external libintl"
6658 gt_source="included intl directory"
6660 echo "$as_me:$LINENO: result: $gt_source" >&5
6661 echo "${ECHO_T}$gt_source" >&6
6664 if test "$USE_NLS" = "yes"; then
6666 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6667 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6668 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6669 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6670 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6671 echo "${ECHO_T}$LIBINTL" >&6
6673 for element in $INCINTL; do
6675 for x in $CPPFLAGS; do
6677 acl_save_prefix="$prefix"
6678 prefix="$acl_final_prefix"
6679 acl_save_exec_prefix="$exec_prefix"
6680 exec_prefix="$acl_final_exec_prefix"
6682 exec_prefix="$acl_save_exec_prefix"
6683 prefix="$acl_save_prefix"
6685 if test "X$x" = "X$element"; then
6690 if test -z "$haveit"; then
6691 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GETTEXT 1
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_DCGETTEXT 1
6721 if test x${prefix} = xNONE ; then
6722 if test `eval echo ${datadir}` = NONE/share ; then
6727 # ------------------------------------------------------------------
6728 # If the user has not set --prefix, we set our default to nothing.
6729 # In this case, if the user has not set --sysconfdir, we set it
6730 # to the package default of /etc/bacula. If either --prefix or
6731 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6732 # ------------------------------------------------------------------
6733 if test x${prefix} = xNONE ; then
6734 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6735 sysconfdir=/etc/bacula
6739 sysconfdir=`eval echo ${sysconfdir}`
6740 datadir=`eval echo ${datadir}`
6741 localedir=`eval echo ${datadir}/locale`
6742 cat >>confdefs.h <<_ACEOF
6743 #define LOCALEDIR "$localedir"
6746 cat >>confdefs.h <<_ACEOF
6747 #define SYSCONFDIR "$sysconfdir"
6751 # -------------------------------------------------------------------------
6752 # If the user has not set --exec-prefix, we default to ${prefix}
6753 # -------------------------------------------------------------------------
6754 if test x${exec_prefix} = xNONE ; then
6755 exec_prefix=${prefix}
6758 # ------------------------------------------------------------------
6759 # If the user has not set --sbindir, we set our default as /sbin
6760 # ------------------------------------------------------------------
6761 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6762 sbindir=${exec_prefix}/sbin
6764 sbindir=`eval echo ${sbindir}`
6766 # -------------------------------------------------------------------------
6767 # If the user has not set --mandir, we default to /usr/share/man
6768 # -------------------------------------------------------------------------
6769 if test x$mandir = x'${prefix}/man' ; then
6770 mandir=/usr/share/man
6774 for ac_prog in msgfmt
6776 # Extract the first word of "$ac_prog", so it can be a program name with args.
6777 set dummy $ac_prog; ac_word=$2
6778 echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780 if test "${ac_cv_path_MSGFMT+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 MSGFMT=$ac_cv_path_MSGFMT
6807 if test -n "$MSGFMT"; then
6808 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6809 echo "${ECHO_T}$MSGFMT" >&6
6811 echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6
6815 test -n "$MSGFMT" && break
6817 test -n "$MSGFMT" || MSGFMT="no"
6819 if test "$MSGFMT" = "no"
6821 echo 'msgfmt program not found, disabling NLS !'
6823 USE_INCLUDED_LIBINTL=no
6826 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6827 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6828 if test "${ac_cv_gnu_library_2+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 cat >conftest.$ac_ext <<_ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6838 #include <features.h>
6839 #ifdef __GNU_LIBRARY__
6840 #if (__GLIBC__ >= 2)
6846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6848 ac_cv_gnu_library_2=yes
6850 ac_cv_gnu_library_2=no
6857 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6858 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6860 GLIBC2="$ac_cv_gnu_library_2"
6864 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lcposix $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_lib_cposix_strerror=yes
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_cposix_strerror=no
6922 rm -f conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6926 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6927 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6928 if test $ac_cv_lib_cposix_strerror = yes; then
6929 LIBS="$LIBS -lcposix"
6934 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6935 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6936 if test "${ac_cv_header_stdc+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_header_stdc=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_cv_header_stdc=no
6987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6989 if test $ac_cv_header_stdc = yes; then
6990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001 $EGREP "memchr" >/dev/null 2>&1; then
7004 ac_cv_header_stdc=no
7010 if test $ac_cv_header_stdc = yes; then
7011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022 $EGREP "free" >/dev/null 2>&1; then
7025 ac_cv_header_stdc=no
7031 if test $ac_cv_header_stdc = yes; then
7032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7033 if test "$cross_compiling" = yes; then
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7047 # define ISLOWER(c) \
7048 (('a' <= (c) && (c) <= 'i') \
7049 || ('j' <= (c) && (c) <= 'r') \
7050 || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7059 for (i = 0; i < 256; i++)
7060 if (XOR (islower (i), ISLOWER (i))
7061 || toupper (i) != TOUPPER (i))
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7084 ac_cv_header_stdc=no
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7090 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7091 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7092 if test $ac_cv_header_stdc = yes; then
7094 cat >>confdefs.h <<\_ACEOF
7095 #define STDC_HEADERS 1
7100 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7102 if test "${ac_cv_c_const+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7115 /* FIXME: Include the comments suggested by Paul. */
7117 /* Ultrix mips cc rejects this. */
7118 typedef int charset[2];
7120 /* SunOS 4.1.1 cc rejects this. */
7121 char const *const *ccp;
7123 /* NEC SVR4.0.2 mips cc rejects this. */
7124 struct point {int x, y;};
7125 static struct point const zero = {0,0};
7126 /* AIX XL C 1.02.0.0 rejects this.
7127 It does not let you subtract one const X* pointer from another in
7128 an arm of an if-expression whose if-part is not a constant
7130 const char *g = "string";
7131 ccp = &g + (g ? g-g : 0);
7132 /* HPUX 7.0 cc rejects these. */
7135 ccp = (char const *const *) p;
7136 { /* SCO 3.2v4 cc rejects this. */
7138 char const *s = 0 ? (char *) 0 : (char const *) 0;
7142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7144 const int *foo = &x[0];
7147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7148 typedef const int *iptr;
7152 { /* AIX XL C 1.02.0.0 rejects this saying
7153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7154 struct s { int j; const int *ap[3]; };
7155 struct s *b; b->j = 5;
7157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>conftest.er1
7170 grep -v '^ *+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -z "$ac_c_werror_flag"
7176 || test ! -s conftest.err'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7198 echo "${ECHO_T}$ac_cv_c_const" >&6
7199 if test $ac_cv_c_const = no; then
7201 cat >>confdefs.h <<\_ACEOF
7208 echo "$as_me:$LINENO: checking for signed" >&5
7209 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7210 if test "${bh_cv_c_signed+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7260 echo "${ECHO_T}$bh_cv_c_signed" >&6
7261 if test $bh_cv_c_signed = no; then
7263 cat >>confdefs.h <<\_ACEOF
7269 echo "$as_me:$LINENO: checking for inline" >&5
7270 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7271 if test "${ac_cv_c_inline+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 for ac_kw in inline __inline__ __inline; do
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7284 static $ac_kw foo_t static_foo () {return 0; }
7285 $ac_kw foo_t foo () {return 0; }
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_c_inline=$ac_kw; break
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7321 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7322 echo "${ECHO_T}$ac_cv_c_inline" >&6
7325 case $ac_cv_c_inline in
7328 case $ac_cv_c_inline in
7330 *) ac_val=$ac_cv_c_inline;;
7332 cat >>confdefs.h <<_ACEOF
7334 #define inline $ac_val
7340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7351 inttypes.h stdint.h unistd.h
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7367 #include <$ac_header>
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_Header=yes"
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 eval "$as_ac_Header=no"
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 echo "$as_me:$LINENO: checking for off_t" >&5
7413 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7414 if test "${ac_cv_type_off_t+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437 (eval $ac_compile) 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest.$ac_objext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_type_off_t=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7467 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7468 if test $ac_cv_type_off_t = yes; then
7472 cat >>confdefs.h <<_ACEOF
7478 echo "$as_me:$LINENO: checking for size_t" >&5
7479 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7480 if test "${ac_cv_type_size_t+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7495 if (sizeof (size_t))
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_type_size_t=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_cv_type_size_t=no
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7532 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7533 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7534 if test $ac_cv_type_size_t = yes; then
7538 cat >>confdefs.h <<_ACEOF
7539 #define size_t unsigned
7545 echo "$as_me:$LINENO: checking for long long" >&5
7546 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7547 if test "${ac_cv_type_long_long+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 long long ll = 1LL; int i = 63;
7560 long long llmax = (long long) -1;
7561 return ll << i | ll >> i | llmax / ll | llmax % ll;
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_type_long_long=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_cv_type_long_long=no
7595 rm -f conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7598 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7599 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7600 if test $ac_cv_type_long_long = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_LONG_LONG 1
7609 echo "$as_me:$LINENO: checking for long double" >&5
7610 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7611 if test "${gt_cv_c_long_double+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 if test "$GCC" = yes; then
7615 gt_cv_c_long_double=yes
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7624 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7625 long double foo = 0.0;
7626 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7627 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 gt_cv_c_long_double=yes
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 gt_cv_c_long_double=no
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7670 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7671 if test $gt_cv_c_long_double = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LONG_DOUBLE 1
7680 echo "$as_me:$LINENO: checking for wchar_t" >&5
7681 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7682 if test "${gt_cv_c_wchar_t+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7692 wchar_t foo = (wchar_t)'\0';
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>conftest.er1
7705 grep -v '^ *+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7733 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7734 if test $gt_cv_c_wchar_t = yes; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_WCHAR_T 1
7743 echo "$as_me:$LINENO: checking for wint_t" >&5
7744 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7745 if test "${gt_cv_c_wint_t+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7755 wint_t foo = (wchar_t)'\0';
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7796 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7797 if test $gt_cv_c_wint_t = yes; then
7799 cat >>confdefs.h <<\_ACEOF
7800 #define HAVE_WINT_T 1
7806 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7807 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7808 if test "${gl_cv_header_inttypes_h+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <inttypes.h>
7822 uintmax_t i = (uintmax_t) -1;
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 gl_cv_header_inttypes_h=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 gl_cv_header_inttypes_h=no
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7859 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7860 if test $gl_cv_header_inttypes_h = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7869 echo "$as_me:$LINENO: checking for stdint.h" >&5
7870 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7871 if test "${gl_cv_header_stdint_h+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <sys/types.h>
7885 uintmax_t i = (uintmax_t) -1;
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 gl_cv_header_stdint_h=yes
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 gl_cv_header_stdint_h=no
7919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7921 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7922 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7923 if test $gl_cv_header_stdint_h = yes; then
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_STDINT_H_WITH_UINTMAX 1
7934 echo "$as_me:$LINENO: checking for intmax_t" >&5
7935 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7936 if test "${gt_cv_c_intmax_t+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7948 #if HAVE_STDINT_H_WITH_UINTMAX
7951 #if HAVE_INTTYPES_H_WITH_UINTMAX
7952 #include <inttypes.h>
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965 (eval $ac_compile) 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 gt_cv_c_intmax_t=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7994 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
7995 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
7996 if test $gt_cv_c_intmax_t = yes; then
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_INTMAX_T 1
8006 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8007 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8008 if test "${gt_cv_func_printf_posix+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 if test "$cross_compiling" = yes; then
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "notposix" >/dev/null 2>&1; then
8028 gt_cv_func_printf_posix="guessing no"
8030 gt_cv_func_printf_posix="guessing yes"
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8045 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8046 dollar expansion (possibly an autoconf bug). */
8047 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8048 static char buf[100];
8051 sprintf (buf, format, 33, 55);
8052 return (strcmp (buf, "55 33") != 0);
8055 rm -f conftest$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057 (eval $ac_link) 2>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 gt_cv_func_printf_posix=yes
8068 echo "$as_me: program exited with status $ac_status" >&5
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8073 gt_cv_func_printf_posix=no
8075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8080 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8081 case $gt_cv_func_printf_posix in
8084 cat >>confdefs.h <<\_ACEOF
8085 #define HAVE_POSIX_PRINTF 1
8091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8092 # for constant arguments. Useless!
8093 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8094 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8095 if test "${ac_cv_working_alloca_h+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8108 char *p = (char *) alloca (2 * sizeof (int));
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_working_alloca_h=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 ac_cv_working_alloca_h=no
8142 rm -f conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8146 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8147 if test $ac_cv_working_alloca_h = yes; then
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_ALLOCA_H 1
8155 echo "$as_me:$LINENO: checking for alloca" >&5
8156 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8157 if test "${ac_cv_func_alloca_works+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 # define alloca __builtin_alloca
8170 # include <malloc.h>
8171 # define alloca _alloca
8174 # include <alloca.h>
8179 # ifndef alloca /* predefined by HP cc +Olibcalls */
8190 char *p = (char *) alloca (1);
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_func_alloca_works=yes
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 ac_cv_func_alloca_works=no
8224 rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8228 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8230 if test $ac_cv_func_alloca_works = yes; then
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_ALLOCA 1
8237 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8238 # that cause trouble. Some versions do not even contain alloca or
8239 # contain a buggy version. If you still want to use their alloca,
8240 # use ar to extract alloca.o from them instead of compiling alloca.c.
8242 ALLOCA=alloca.$ac_objext
8244 cat >>confdefs.h <<\_ACEOF
8249 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8250 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8251 if test "${ac_cv_os_cray+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #if defined(CRAY) && ! defined(CRAY2)
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268 $EGREP "webecray" >/dev/null 2>&1; then
8276 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8277 echo "${ECHO_T}$ac_cv_os_cray" >&6
8278 if test $ac_cv_os_cray = yes; then
8279 for ac_func in _getb67 GETB67 getb67; do
8280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8281 echo "$as_me:$LINENO: checking for $ac_func" >&5
8282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8283 if eval "test \"\${$as_ac_var+set}\" = set"; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8294 #define $ac_func innocuous_$ac_func
8296 /* System header to define __stub macros and hopefully few prototypes,
8297 which can conflict with char $ac_func (); below.
8298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299 <limits.h> exists even on freestanding compilers. */
8302 # include <limits.h>
8304 # include <assert.h>
8309 /* Override any gcc2 internal prototype to avoid an error. */
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8317 /* The GNU C library defines this for functions which it implements
8318 to always fail with ENOSYS. Some functions are actually named
8319 something starting with __ and the normal name is an alias. */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8323 char (*f) () = $ac_func;
8332 return f != $ac_func;
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 eval "$as_ac_var=yes"
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 eval "$as_ac_var=no"
8366 rm -f conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8371 if test `eval echo '${'$as_ac_var'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define CRAY_STACKSEG_END $ac_func
8383 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8385 if test "${ac_cv_c_stack_direction+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 if test "$cross_compiling" = yes; then
8389 ac_cv_c_stack_direction=0
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 find_stack_direction ()
8400 static char *addr = 0;
8405 return find_stack_direction ();
8408 return (&dummy > addr) ? 1 : -1;
8414 exit (find_stack_direction () < 0);
8417 rm -f conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_c_stack_direction=1
8430 echo "$as_me: program exited with status $ac_status" >&5
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_c_stack_direction=-1
8437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8440 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8441 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8443 cat >>confdefs.h <<_ACEOF
8444 #define STACK_DIRECTION $ac_cv_c_stack_direction
8452 for ac_header in stdlib.h unistd.h
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456 echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 # Is the header compilable?
8465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_header_compiler=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_compiler=no
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 echo "${ECHO_T}$ac_header_compiler" >&6
8509 # Is the header present?
8510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <$ac_header>
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537 if test -z "$ac_cpp_err"; then
8538 ac_header_preproc=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_preproc=no
8545 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 echo "${ECHO_T}$ac_header_preproc" >&6
8549 # So? What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8556 ac_header_preproc=yes
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8573 ## ------------------------------------------ ##
8574 ## Report this to the AC_PACKAGE_NAME lists. ##
8575 ## ------------------------------------------ ##
8578 sed "s/^/$as_me: WARNING: /" >&2
8581 echo "$as_me:$LINENO: checking for $ac_header" >&5
8582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 eval "$as_ac_Header=\$ac_header_preproc"
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8593 cat >>confdefs.h <<_ACEOF
8594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8602 for ac_func in getpagesize
8604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605 echo "$as_me:$LINENO: checking for $ac_func" >&5
8606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_var+set}\" = set"; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8618 #define $ac_func innocuous_$ac_func
8620 /* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char $ac_func (); below.
8622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623 <limits.h> exists even on freestanding compilers. */
8626 # include <limits.h>
8628 # include <assert.h>
8633 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8641 /* The GNU C library defines this for functions which it implements
8642 to always fail with ENOSYS. Some functions are actually named
8643 something starting with __ and the normal name is an alias. */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8647 char (*f) () = $ac_func;
8656 return f != $ac_func;
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 eval "$as_ac_var=yes"
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 eval "$as_ac_var=no"
8690 rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8703 echo "$as_me:$LINENO: checking for working mmap" >&5
8704 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 if test "$cross_compiling" = yes; then
8709 ac_cv_func_mmap_fixed_mapped=no
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 $ac_includes_default
8718 /* malloc might have been renamed as rpl_malloc. */
8721 /* Thanks to Mike Haertel and Jim Avera for this test.
8722 Here is a matrix of mmap possibilities:
8723 mmap private not fixed
8724 mmap private fixed at somewhere currently unmapped
8725 mmap private fixed at somewhere already mapped
8726 mmap shared not fixed
8727 mmap shared fixed at somewhere currently unmapped
8728 mmap shared fixed at somewhere already mapped
8729 For private mappings, we should verify that changes cannot be read()
8730 back from the file, nor mmap's back from the file at a different
8731 address. (There have been systems where private was not correctly
8732 implemented like the infamous i386 svr4.0, and systems where the
8733 VM page cache was not coherent with the file system buffer cache
8734 like early versions of FreeBSD and possibly contemporary NetBSD.)
8735 For shared mappings, we should conversely verify that changes get
8736 propagated back to all the places they're supposed to be.
8738 Grep wants private fixed already mapped.
8739 The main things grep needs to know about mmap are:
8740 * does it exist and is it safe to write into the mmap'd area
8741 * how to use it (BSD variants) */
8744 #include <sys/mman.h>
8746 #if !STDC_HEADERS && !HAVE_STDLIB_H
8750 /* This mess was copied from the GNU getpagesize.h. */
8751 #if !HAVE_GETPAGESIZE
8752 /* Assume that all systems that can run configure have sys/param.h. */
8753 # if !HAVE_SYS_PARAM_H
8754 # define HAVE_SYS_PARAM_H 1
8757 # ifdef _SC_PAGESIZE
8758 # define getpagesize() sysconf(_SC_PAGESIZE)
8759 # else /* no _SC_PAGESIZE */
8760 # if HAVE_SYS_PARAM_H
8761 # include <sys/param.h>
8762 # ifdef EXEC_PAGESIZE
8763 # define getpagesize() EXEC_PAGESIZE
8764 # else /* no EXEC_PAGESIZE */
8766 # define getpagesize() NBPG * CLSIZE
8769 # endif /* no CLSIZE */
8770 # else /* no NBPG */
8772 # define getpagesize() NBPC
8773 # else /* no NBPC */
8775 # define getpagesize() PAGESIZE
8776 # endif /* PAGESIZE */
8777 # endif /* no NBPC */
8778 # endif /* no NBPG */
8779 # endif /* no EXEC_PAGESIZE */
8780 # else /* no HAVE_SYS_PARAM_H */
8781 # define getpagesize() 8192 /* punt totally */
8782 # endif /* no HAVE_SYS_PARAM_H */
8783 # endif /* no _SC_PAGESIZE */
8785 #endif /* no HAVE_GETPAGESIZE */
8790 char *data, *data2, *data3;
8794 pagesize = getpagesize ();
8796 /* First, make a file with some known garbage in it. */
8797 data = (char *) malloc (pagesize);
8800 for (i = 0; i < pagesize; ++i)
8801 *(data + i) = rand ();
8803 fd = creat ("conftest.mmap", 0600);
8806 if (write (fd, data, pagesize) != pagesize)
8810 /* Next, try to mmap the file at a fixed address which already has
8811 something else allocated at it. If we can, also make sure that
8812 we see the same garbage. */
8813 fd = open ("conftest.mmap", O_RDWR);
8816 data2 = (char *) malloc (2 * pagesize);
8819 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8820 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8821 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8823 for (i = 0; i < pagesize; ++i)
8824 if (*(data + i) != *(data2 + i))
8827 /* Finally, make sure that changes to the mapped area do not
8828 percolate back to the file as seen by read(). (This is a bug on
8829 some variants of i386 svr4.0.) */
8830 for (i = 0; i < pagesize; ++i)
8831 *(data2 + i) = *(data2 + i) + 1;
8832 data3 = (char *) malloc (pagesize);
8835 if (read (fd, data3, pagesize) != pagesize)
8837 for (i = 0; i < pagesize; ++i)
8838 if (*(data + i) != *(data3 + i))
8844 rm -f conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_func_mmap_fixed_mapped=yes
8857 echo "$as_me: program exited with status $ac_status" >&5
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_func_mmap_fixed_mapped=no
8864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8867 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8868 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8871 cat >>confdefs.h <<\_ACEOF
8879 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8880 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8881 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 #include <features.h>
8892 #ifdef __GNU_LIBRARY__
8893 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8901 ac_cv_gnu_library_2_1=yes
8903 ac_cv_gnu_library_2_1=no
8910 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8911 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8913 GLIBC21="$ac_cv_gnu_library_2_1"
8918 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8919 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8920 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 if test "$cross_compiling" = yes; then
8926 # Guess based on the CPU.
8928 alpha* | i3456786 | m68k | s390*)
8929 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8931 gt_cv_int_divbyzero_sigfpe="guessing no";;
8935 cat >conftest.$ac_ext <<_ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8947 sigfpe_handler (int sig)
8949 sigfpe_handler (sig) int sig;
8952 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8953 exit (sig != SIGFPE);
8963 signal (SIGFPE, sigfpe_handler);
8964 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8965 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8966 signal (SIGTRAP, sigfpe_handler);
8968 /* Linux/SPARC yields signal SIGILL. */
8969 #if defined (__sparc__) && defined (__linux__)
8970 signal (SIGILL, sigfpe_handler);
8979 rm -f conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 gt_cv_int_divbyzero_sigfpe=yes
8992 echo "$as_me: program exited with status $ac_status" >&5
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8997 gt_cv_int_divbyzero_sigfpe=no
8999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9004 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9005 case "$gt_cv_int_divbyzero_sigfpe" in
9010 cat >>confdefs.h <<_ACEOF
9011 #define INTDIV0_RAISES_SIGFPE $value
9016 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9017 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9018 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 unsigned long long ull = 1ULL; int i = 63;
9031 unsigned long long ullmax = (unsigned long long) -1;
9032 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_type_unsigned_long_long=yes
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_cv_type_unsigned_long_long=no
9066 rm -f conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9070 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9071 if test $ac_cv_type_unsigned_long_long = yes; then
9073 cat >>confdefs.h <<\_ACEOF
9074 #define HAVE_UNSIGNED_LONG_LONG 1
9082 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9084 test $ac_cv_type_unsigned_long_long = yes \
9085 && ac_type='unsigned long long' \
9086 || ac_type='unsigned long'
9088 cat >>confdefs.h <<_ACEOF
9089 #define uintmax_t $ac_type
9094 cat >>confdefs.h <<\_ACEOF
9095 #define HAVE_UINTMAX_T 1
9101 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9102 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9103 if test "${gt_cv_header_inttypes_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114 #include <inttypes.h>
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest.$ac_objext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 gt_cv_header_inttypes_h=yes
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 gt_cv_header_inttypes_h=no
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9156 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9157 if test $gt_cv_header_inttypes_h = yes; then
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_INTTYPES_H 1
9167 if test $gt_cv_header_inttypes_h = yes; then
9168 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9169 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9170 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 cat >conftest.$ac_ext <<_ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 #include <inttypes.h>
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195 (eval $ac_compile) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 gt_cv_inttypes_pri_broken=no
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 gt_cv_inttypes_pri_broken=yes
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9226 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9228 if test "$gt_cv_inttypes_pri_broken" = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define PRI_MACROS_BROKEN 1
9238 for ac_header in stdint.h
9240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242 echo "$as_me:$LINENO: checking for $ac_header" >&5
9243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9250 # Is the header compilable?
9251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9260 #include <$ac_header>
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264 (eval $ac_compile) 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest.$ac_objext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_header_compiler=yes
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_header_compiler=no
9291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #include <$ac_header>
9306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } >/dev/null; then
9314 if test -s conftest.err; then
9315 ac_cpp_err=$ac_c_preproc_warn_flag
9316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323 if test -z "$ac_cpp_err"; then
9324 ac_header_preproc=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_header_preproc=no
9331 rm -f conftest.err conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9333 echo "${ECHO_T}$ac_header_preproc" >&6
9335 # So? What about this header?
9336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9342 ac_header_preproc=yes
9345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9359 ## ------------------------------------------ ##
9360 ## Report this to the AC_PACKAGE_NAME lists. ##
9361 ## ------------------------------------------ ##
9364 sed "s/^/$as_me: WARNING: /" >&2
9367 echo "$as_me:$LINENO: checking for $ac_header" >&5
9368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 eval "$as_ac_Header=\$ac_header_preproc"
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9379 cat >>confdefs.h <<_ACEOF
9380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9388 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9407 $EGREP "Found it" >/dev/null 2>&1; then
9412 if test -z "$result"; then
9413 if test "$cross_compiling" = yes; then
9414 # Depending upon the size, compute the lo and hi bounds.
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9425 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9456 cat >conftest.$ac_ext <<_ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9466 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>conftest.er1
9477 grep -v '^ *+' conftest.er1 >conftest.err
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_hi=$ac_mid; break
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ac_lo=`expr $ac_mid + 1`
9501 if test $ac_lo -le $ac_mid; then
9505 ac_mid=`expr 2 '*' $ac_mid + 1`
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9523 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag"
9540 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9564 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9571 rm -f conftest.$ac_objext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_lo=$ac_mid; break
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_hi=`expr '(' $ac_mid ')' - 1`
9599 if test $ac_mid -le $ac_hi; then
9603 ac_mid=`expr 2 '*' $ac_mid`
9605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9616 # Binary search between lo and hi bounds.
9617 while test "x$ac_lo" != "x$ac_hi"; do
9618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9629 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638 (eval $ac_compile) 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest.$ac_objext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_lo=`expr '(' $ac_mid ')' + 1`
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if test "$cross_compiling" = yes; then
9673 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9674 See \`config.log' for more details." >&5
9675 echo "$as_me: error: cannot run test program while cross compiling
9676 See \`config.log' for more details." >&2;}
9677 { (exit 1); exit 1; }; }
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 long longval () { return ~(size_t)0 / 10; }
9687 unsigned long ulongval () { return ~(size_t)0 / 10; }
9694 FILE *f = fopen ("conftest.val", "w");
9697 if ((~(size_t)0 / 10) < 0)
9699 long i = longval ();
9700 if (i != (~(size_t)0 / 10))
9702 fprintf (f, "%ld\n", i);
9706 unsigned long i = ulongval ();
9707 if (i != (~(size_t)0 / 10))
9709 fprintf (f, "%lu\n", i);
9711 exit (ferror (f) || fclose (f) != 0);
9717 rm -f conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 res_hi=`cat conftest.val`
9730 echo "$as_me: program exited with status $ac_status" >&5
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9741 if test "$cross_compiling" = yes; then
9742 # Depending upon the size, compute the lo and hi bounds.
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9753 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_c_werror_flag"
9770 || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest.$ac_objext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 (eval $ac_compile) 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_hi=$ac_mid; break
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_lo=`expr $ac_mid + 1`
9829 if test $ac_lo -le $ac_mid; then
9833 ac_mid=`expr 2 '*' $ac_mid + 1`
9835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9851 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9892 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901 (eval $ac_compile) 2>conftest.er1
9903 grep -v '^ *+' conftest.er1 >conftest.err
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_c_werror_flag"
9909 || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try='test -s conftest.$ac_objext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_lo=$ac_mid; break
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_hi=`expr '(' $ac_mid ')' - 1`
9927 if test $ac_mid -le $ac_hi; then
9931 ac_mid=`expr 2 '*' $ac_mid`
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 # Binary search between lo and hi bounds.
9945 while test "x$ac_lo" != "x$ac_hi"; do
9946 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9957 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_lo=`expr '(' $ac_mid ')' + 1`
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 if test "$cross_compiling" = yes; then
10001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10002 See \`config.log' for more details." >&5
10003 echo "$as_me: error: cannot run test program while cross compiling
10004 See \`config.log' for more details." >&2;}
10005 { (exit 1); exit 1; }; }
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <stddef.h>
10014 long longval () { return ~(size_t)0 % 10; }
10015 unsigned long ulongval () { return ~(size_t)0 % 10; }
10017 #include <stdlib.h>
10022 FILE *f = fopen ("conftest.val", "w");
10025 if ((~(size_t)0 % 10) < 0)
10027 long i = longval ();
10028 if (i != (~(size_t)0 % 10))
10030 fprintf (f, "%ld\n", i);
10034 unsigned long i = ulongval ();
10035 if (i != (~(size_t)0 % 10))
10037 fprintf (f, "%lu\n", i);
10039 exit (ferror (f) || fclose (f) != 0);
10045 rm -f conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 res_lo=`cat conftest.val`
10058 echo "$as_me: program exited with status $ac_status" >&5
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ( exit $ac_status )
10065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10069 if test "$cross_compiling" = yes; then
10070 # Depending upon the size, compute the lo and hi bounds.
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 #include <stddef.h>
10081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <stddef.h>
10122 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest.$ac_objext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 ac_hi=$ac_mid; break
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_lo=`expr $ac_mid + 1`
10157 if test $ac_lo -le $ac_mid; then
10161 ac_mid=`expr 2 '*' $ac_mid + 1`
10163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <stddef.h>
10179 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1 >conftest.err
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <stddef.h>
10220 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_lo=$ac_mid; break
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_hi=`expr '(' $ac_mid ')' - 1`
10255 if test $ac_mid -le $ac_hi; then
10259 ac_mid=`expr 2 '*' $ac_mid`
10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10272 # Binary search between lo and hi bounds.
10273 while test "x$ac_lo" != "x$ac_hi"; do
10274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <stddef.h>
10285 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_lo=`expr '(' $ac_mid ')' + 1`
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324 ?*) fits_in_uint=$ac_lo;;
10328 if test "$cross_compiling" = yes; then
10329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10330 See \`config.log' for more details." >&5
10331 echo "$as_me: error: cannot run test program while cross compiling
10332 See \`config.log' for more details." >&2;}
10333 { (exit 1); exit 1; }; }
10335 cat >conftest.$ac_ext <<_ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <stddef.h>
10342 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10343 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10345 #include <stdlib.h>
10350 FILE *f = fopen ("conftest.val", "w");
10353 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10355 long i = longval ();
10356 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10358 fprintf (f, "%ld\n", i);
10362 unsigned long i = ulongval ();
10363 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10365 fprintf (f, "%lu\n", i);
10367 exit (ferror (f) || fclose (f) != 0);
10373 rm -f conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 fits_in_uint=`cat conftest.val`
10386 echo "$as_me: program exited with status $ac_status" >&5
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ( exit $ac_status )
10393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10397 if test "$fits_in_uint" = 1; then
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 #include <stddef.h>
10406 extern unsigned long foo;
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 if test -z "$result"; then
10447 if test "$fits_in_uint" = 1; then
10448 result="$res_hi$res_lo"U
10450 result="$res_hi$res_lo"UL
10453 result='~(size_t)0'
10456 echo "$as_me:$LINENO: result: $result" >&5
10457 echo "${ECHO_T}$result" >&6
10458 if test "$result" != yes; then
10460 cat >>confdefs.h <<_ACEOF
10461 #define SIZE_MAX $result
10470 for ac_header in stdint.h
10472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10474 echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10482 # Is the header compilable?
10483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 $ac_includes_default
10492 #include <$ac_header>
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10498 grep -v '^ *+' conftest.er1 >conftest.err
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_header_compiler=yes
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_compiler=no
10523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6
10527 # Is the header present?
10528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 #include <$ac_header>
10538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } >/dev/null; then
10546 if test -s conftest.err; then
10547 ac_cpp_err=$ac_c_preproc_warn_flag
10548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10555 if test -z "$ac_cpp_err"; then
10556 ac_header_preproc=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_header_preproc=no
10563 rm -f conftest.err conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10565 echo "${ECHO_T}$ac_header_preproc" >&6
10567 # So? What about this header?
10568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10574 ac_header_preproc=yes
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10591 ## ------------------------------------------ ##
10592 ## Report this to the AC_PACKAGE_NAME lists. ##
10593 ## ------------------------------------------ ##
10596 sed "s/^/$as_me: WARNING: /" >&2
10599 echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 eval "$as_ac_Header=\$ac_header_preproc"
10606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10627 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10628 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 cat >conftest.$ac_ext <<_ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10637 $ac_includes_default
10641 if ((ptrdiff_t *) 0)
10643 if (sizeof (ptrdiff_t))
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651 (eval $ac_compile) 2>conftest.er1
10653 grep -v '^ *+' conftest.er1 >conftest.err
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -z "$ac_c_werror_flag"
10659 || test ! -s conftest.err'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_cv_type_ptrdiff_t=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_cv_type_ptrdiff_t=no
10678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10680 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10682 if test $ac_cv_type_ptrdiff_t = yes; then
10686 cat >>confdefs.h <<\_ACEOF
10687 #define ptrdiff_t long
10703 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10704 stdlib.h string.h unistd.h sys/param.h
10706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10708 echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10716 # Is the header compilable?
10717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 #include <$ac_header>
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730 (eval $ac_compile) 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -z "$ac_c_werror_flag"
10738 || test ! -s conftest.err'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest.$ac_objext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_header_compiler=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_header_compiler=no
10757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10759 echo "${ECHO_T}$ac_header_compiler" >&6
10761 # Is the header present?
10762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 #include <$ac_header>
10772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } >/dev/null; then
10780 if test -s conftest.err; then
10781 ac_cpp_err=$ac_c_preproc_warn_flag
10782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789 if test -z "$ac_cpp_err"; then
10790 ac_header_preproc=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_header_preproc=no
10797 rm -f conftest.err conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799 echo "${ECHO_T}$ac_header_preproc" >&6
10801 # So? What about this header?
10802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808 ac_header_preproc=yes
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10825 ## ------------------------------------------ ##
10826 ## Report this to the AC_PACKAGE_NAME lists. ##
10827 ## ------------------------------------------ ##
10830 sed "s/^/$as_me: WARNING: /" >&2
10833 echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 eval "$as_ac_Header=\$ac_header_preproc"
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845 cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10876 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10877 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10878 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10882 echo "$as_me:$LINENO: checking for $ac_func" >&5
10883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_var+set}\" = set"; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10895 #define $ac_func innocuous_$ac_func
10897 /* System header to define __stub macros and hopefully few prototypes,
10898 which can conflict with char $ac_func (); below.
10899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10900 <limits.h> exists even on freestanding compilers. */
10903 # include <limits.h>
10905 # include <assert.h>
10910 /* Override any gcc2 internal prototype to avoid an error. */
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10918 /* The GNU C library defines this for functions which it implements
10919 to always fail with ENOSYS. Some functions are actually named
10920 something starting with __ and the normal name is an alias. */
10921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10924 char (*f) () = $ac_func;
10933 return f != $ac_func;
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940 (eval $ac_link) 2>conftest.er1
10942 grep -v '^ *+' conftest.er1 >conftest.err
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag"
10948 || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 eval "$as_ac_var=yes"
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10967 rm -f conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10972 if test `eval echo '${'$as_ac_var'}'` = yes; then
10973 cat >>confdefs.h <<_ACEOF
10974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10982 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10983 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10984 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10999 char *p = (char *) _snprintf;
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_cv_have_decl__snprintf=yes
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_cv_have_decl__snprintf=no
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11038 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11039 if test $ac_cv_have_decl__snprintf = yes; then
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_DECL__SNPRINTF $gt_value
11051 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11052 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11053 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 cat >conftest.$ac_ext <<_ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11068 char *p = (char *) _snwprintf;
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_have_decl__snwprintf=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_have_decl__snwprintf=no
11104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11106 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11107 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11108 if test $ac_cv_have_decl__snwprintf = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115 #define HAVE_DECL__SNWPRINTF $gt_value
11121 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11122 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11123 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11137 #ifndef feof_unlocked
11138 char *p = (char *) feof_unlocked;
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest.$ac_objext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_cv_have_decl_feof_unlocked=yes
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_cv_have_decl_feof_unlocked=no
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11176 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11177 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11178 if test $ac_cv_have_decl_feof_unlocked = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11190 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11191 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11192 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11206 #ifndef fgets_unlocked
11207 char *p = (char *) fgets_unlocked;
11214 rm -f conftest.$ac_objext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11216 (eval $ac_compile) 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_have_decl_fgets_unlocked=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_cv_have_decl_fgets_unlocked=no
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11246 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11247 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11259 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11260 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11261 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11275 #ifndef getc_unlocked
11276 char *p = (char *) getc_unlocked;
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag"
11293 || test ! -s conftest.err'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; } &&
11299 { ac_try='test -s conftest.$ac_objext'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_have_decl_getc_unlocked=yes
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_cv_have_decl_getc_unlocked=no
11312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11315 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11316 if test $ac_cv_have_decl_getc_unlocked = yes; then
11322 cat >>confdefs.h <<_ACEOF
11323 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11328 case $gt_cv_func_printf_posix in
11329 *yes) HAVE_POSIX_PRINTF=1 ;;
11330 *) HAVE_POSIX_PRINTF=0 ;;
11333 if test "$ac_cv_func_asprintf" = yes; then
11339 if test "$ac_cv_func_snprintf" = yes; then
11345 if test "$ac_cv_func_wprintf" = yes; then
11357 am_save_CPPFLAGS="$CPPFLAGS"
11359 for element in $INCICONV; do
11361 for x in $CPPFLAGS; do
11363 acl_save_prefix="$prefix"
11364 prefix="$acl_final_prefix"
11365 acl_save_exec_prefix="$exec_prefix"
11366 exec_prefix="$acl_final_exec_prefix"
11368 exec_prefix="$acl_save_exec_prefix"
11369 prefix="$acl_save_prefix"
11371 if test "X$x" = "X$element"; then
11376 if test -z "$haveit"; then
11377 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11382 echo "$as_me:$LINENO: checking for iconv" >&5
11383 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11384 if test "${am_cv_func_iconv+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 am_cv_func_iconv="no, consider installing GNU libiconv"
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 #include <stdlib.h>
11401 iconv_t cd = iconv_open("","");
11402 iconv(cd,NULL,NULL,NULL,NULL);
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest$ac_exeext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 am_cv_func_iconv=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11436 rm -f conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 if test "$am_cv_func_iconv" != yes; then
11439 am_save_LIBS="$LIBS"
11440 LIBS="$LIBS $LIBICONV"
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <stdlib.h>
11452 iconv_t cd = iconv_open("","");
11453 iconv(cd,NULL,NULL,NULL,NULL);
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest$ac_exeext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 am_cv_lib_iconv=yes
11482 am_cv_func_iconv=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11488 rm -f conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS="$am_save_LIBS"
11494 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11495 echo "${ECHO_T}$am_cv_func_iconv" >&6
11496 if test "$am_cv_func_iconv" = yes; then
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_ICONV 1
11503 if test "$am_cv_lib_iconv" = yes; then
11504 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11505 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11506 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11507 echo "${ECHO_T}$LIBICONV" >&6
11509 CPPFLAGS="$am_save_CPPFLAGS"
11516 if test "$am_cv_func_iconv" = yes; then
11517 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11518 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11519 if test "${am_cv_proto_iconv+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11530 #include <stdlib.h>
11536 #if defined(__STDC__) || defined(__cplusplus)
11537 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 am_cv_proto_iconv_arg1=""
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 am_cv_proto_iconv_arg1="const"
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 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);"
11583 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11584 echo "$as_me:$LINENO: result: ${ac_t:-
11585 }$am_cv_proto_iconv" >&5
11586 echo "${ECHO_T}${ac_t:-
11587 }$am_cv_proto_iconv" >&6
11589 cat >>confdefs.h <<_ACEOF
11590 #define ICONV_CONST $am_cv_proto_iconv_arg1
11596 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11597 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11598 if test "${am_cv_langinfo_codeset+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <langinfo.h>
11611 char* cs = nl_langinfo(CODESET);
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag"
11626 || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest$ac_exeext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 am_cv_langinfo_codeset=yes
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 am_cv_langinfo_codeset=no
11645 rm -f conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11649 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11650 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11651 if test $am_cv_langinfo_codeset = yes; then
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_LANGINFO_CODESET 1
11659 if test $ac_cv_header_locale_h = yes; then
11661 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11662 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11663 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 #include <locale.h>
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag"
11691 || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 gt_cv_val_LC_MESSAGES=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 gt_cv_val_LC_MESSAGES=no
11710 rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11714 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11715 if test $gt_cv_val_LC_MESSAGES = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_LC_MESSAGES 1
11725 if test -n "$INTL_MACOSX_LIBS"; then
11726 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11729 for ac_prog in bison
11731 # Extract the first word of "$ac_prog", so it can be a program name with args.
11732 set dummy $ac_prog; ac_word=$2
11733 echo "$as_me:$LINENO: checking for $ac_word" >&5
11734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11735 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 if test -n "$INTLBISON"; then
11739 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_INTLBISON="$ac_prog"
11749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 INTLBISON=$ac_cv_prog_INTLBISON
11758 if test -n "$INTLBISON"; then
11759 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11760 echo "${ECHO_T}$INTLBISON" >&6
11762 echo "$as_me:$LINENO: result: no" >&5
11763 echo "${ECHO_T}no" >&6
11766 test -n "$INTLBISON" && break
11769 if test -z "$INTLBISON"; then
11772 echo "$as_me:$LINENO: checking version of bison" >&5
11773 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11774 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11775 case $ac_prog_version in
11776 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11777 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11778 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11779 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11781 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11782 echo "${ECHO_T}$ac_prog_version" >&6
11784 if test $ac_verc_fail = yes; then
11803 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11804 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11805 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 gt_save_CPPFLAGS="$CPPFLAGS"
11809 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11810 gt_save_LIBS="$LIBS"
11811 LIBS="$LIBS -framework CoreFoundation"
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 #include <CFPreferences.h>
11822 CFPreferencesCopyAppValue(NULL, NULL)
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag"
11837 || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest$ac_exeext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 gt_cv_func_CFPreferencesCopyAppValue=yes
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 gt_cv_func_CFPreferencesCopyAppValue=no
11856 rm -f conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 CPPFLAGS="$gt_save_CPPFLAGS"
11859 LIBS="$gt_save_LIBS"
11861 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11862 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11863 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11870 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11871 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11872 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 gt_save_CPPFLAGS="$CPPFLAGS"
11876 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11877 gt_save_LIBS="$LIBS"
11878 LIBS="$LIBS -framework CoreFoundation"
11879 cat >conftest.$ac_ext <<_ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 #include <CFLocale.h>
11889 CFLocaleCopyCurrent();
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 gt_cv_func_CFLocaleCopyCurrent=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 gt_cv_func_CFLocaleCopyCurrent=no
11923 rm -f conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 CPPFLAGS="$gt_save_CPPFLAGS"
11926 LIBS="$gt_save_LIBS"
11928 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11929 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11930 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_CFLOCALECOPYCURRENT 1
11938 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11939 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11945 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11946 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11947 # Check whether --enable-nls or --disable-nls was given.
11948 if test "${enable_nls+set}" = set; then
11949 enableval="$enable_nls"
11954 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11955 echo "${ECHO_T}$USE_NLS" >&6
11960 BUILD_INCLUDED_LIBINTL=no
11961 USE_INCLUDED_LIBINTL=no
11967 if test "$USE_NLS" = "yes"; then
11968 gt_use_preinstalled_gnugettext=no
11970 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11971 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11973 # Check whether --with-included-gettext or --without-included-gettext was given.
11974 if test "${with_included_gettext+set}" = set; then
11975 withval="$with_included_gettext"
11976 nls_cv_force_use_gnu_gettext=$withval
11978 nls_cv_force_use_gnu_gettext=no
11980 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11981 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11983 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11984 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11991 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11992 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11993 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #include <libintl.h>
12003 extern int _nl_msg_cat_cntr;
12004 extern int *_nl_domain_bindings;
12008 bindtextdomain ("", "");
12009 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016 (eval $ac_link) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag"
12024 || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest$ac_exeext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 gt_cv_func_gnugettext1_libc=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 gt_cv_func_gnugettext1_libc=no
12043 rm -f conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12046 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12047 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12049 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12055 acl_save_prefix="$prefix"
12056 prefix="$acl_final_prefix"
12057 acl_save_exec_prefix="$exec_prefix"
12058 exec_prefix="$acl_final_exec_prefix"
12060 eval additional_includedir=\"$includedir\"
12061 eval additional_libdir=\"$libdir\"
12063 exec_prefix="$acl_save_exec_prefix"
12064 prefix="$acl_save_prefix"
12067 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12068 if test "${with_libintl_prefix+set}" = set; then
12069 withval="$with_libintl_prefix"
12071 if test "X$withval" = "Xno"; then
12074 if test "X$withval" = "X"; then
12076 acl_save_prefix="$prefix"
12077 prefix="$acl_final_prefix"
12078 acl_save_exec_prefix="$exec_prefix"
12079 exec_prefix="$acl_final_exec_prefix"
12081 eval additional_includedir=\"$includedir\"
12082 eval additional_libdir=\"$libdir\"
12084 exec_prefix="$acl_save_exec_prefix"
12085 prefix="$acl_save_prefix"
12088 additional_includedir="$withval/include"
12089 additional_libdir="$withval/lib"
12099 names_already_handled=
12100 names_next_round='intl '
12101 while test -n "$names_next_round"; do
12102 names_this_round="$names_next_round"
12104 for name in $names_this_round; do
12106 for n in $names_already_handled; do
12107 if test "$n" = "$name"; then
12108 already_handled=yes
12112 if test -z "$already_handled"; then
12113 names_already_handled="$names_already_handled $name"
12114 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12115 eval value=\"\$HAVE_LIB$uppername\"
12116 if test -n "$value"; then
12117 if test "$value" = yes; then
12118 eval value=\"\$LIB$uppername\"
12119 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12120 eval value=\"\$LTLIB$uppername\"
12121 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12130 if test $use_additional = yes; then
12131 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12132 found_dir="$additional_libdir"
12133 found_so="$additional_libdir/lib$name.$shlibext"
12134 if test -f "$additional_libdir/lib$name.la"; then
12135 found_la="$additional_libdir/lib$name.la"
12138 if test -f "$additional_libdir/lib$name.$libext"; then
12139 found_dir="$additional_libdir"
12140 found_a="$additional_libdir/lib$name.$libext"
12141 if test -f "$additional_libdir/lib$name.la"; then
12142 found_la="$additional_libdir/lib$name.la"
12147 if test "X$found_dir" = "X"; then
12148 for x in $LDFLAGS $LTLIBINTL; do
12150 acl_save_prefix="$prefix"
12151 prefix="$acl_final_prefix"
12152 acl_save_exec_prefix="$exec_prefix"
12153 exec_prefix="$acl_final_exec_prefix"
12155 exec_prefix="$acl_save_exec_prefix"
12156 prefix="$acl_save_prefix"
12160 dir=`echo "X$x" | sed -e 's/^X-L//'`
12161 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12163 found_so="$dir/lib$name.$shlibext"
12164 if test -f "$dir/lib$name.la"; then
12165 found_la="$dir/lib$name.la"
12168 if test -f "$dir/lib$name.$libext"; then
12170 found_a="$dir/lib$name.$libext"
12171 if test -f "$dir/lib$name.la"; then
12172 found_la="$dir/lib$name.la"
12178 if test "X$found_dir" != "X"; then
12183 if test "X$found_dir" != "X"; then
12184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12185 if test "X$found_so" != "X"; then
12186 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12187 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12190 for x in $ltrpathdirs; do
12191 if test "X$x" = "X$found_dir"; then
12196 if test -z "$haveit"; then
12197 ltrpathdirs="$ltrpathdirs $found_dir"
12199 if test "$hardcode_direct" = yes; then
12200 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12202 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12203 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12205 for x in $rpathdirs; do
12206 if test "X$x" = "X$found_dir"; then
12211 if test -z "$haveit"; then
12212 rpathdirs="$rpathdirs $found_dir"
12216 for x in $LDFLAGS $LIBINTL; do
12218 acl_save_prefix="$prefix"
12219 prefix="$acl_final_prefix"
12220 acl_save_exec_prefix="$exec_prefix"
12221 exec_prefix="$acl_final_exec_prefix"
12223 exec_prefix="$acl_save_exec_prefix"
12224 prefix="$acl_save_prefix"
12226 if test "X$x" = "X-L$found_dir"; then
12231 if test -z "$haveit"; then
12232 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12234 if test "$hardcode_minus_L" != no; then
12235 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12237 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12243 if test "X$found_a" != "X"; then
12244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12246 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12249 additional_includedir=
12250 case "$found_dir" in
12252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12253 additional_includedir="$basedir/include"
12256 if test "X$additional_includedir" != "X"; then
12257 if test "X$additional_includedir" != "X/usr/include"; then
12259 if test "X$additional_includedir" = "X/usr/local/include"; then
12260 if test -n "$GCC"; then
12262 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12266 if test -z "$haveit"; then
12267 for x in $CPPFLAGS $INCINTL; do
12269 acl_save_prefix="$prefix"
12270 prefix="$acl_final_prefix"
12271 acl_save_exec_prefix="$exec_prefix"
12272 exec_prefix="$acl_final_exec_prefix"
12274 exec_prefix="$acl_save_exec_prefix"
12275 prefix="$acl_save_prefix"
12277 if test "X$x" = "X-I$additional_includedir"; then
12282 if test -z "$haveit"; then
12283 if test -d "$additional_includedir"; then
12284 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12290 if test -n "$found_la"; then
12291 save_libdir="$libdir"
12292 case "$found_la" in
12293 */* | *\\*) . "$found_la" ;;
12294 *) . "./$found_la" ;;
12296 libdir="$save_libdir"
12297 for dep in $dependency_libs; do
12300 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12301 if test "X$additional_libdir" != "X/usr/lib"; then
12303 if test "X$additional_libdir" = "X/usr/local/lib"; then
12304 if test -n "$GCC"; then
12306 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12310 if test -z "$haveit"; then
12312 for x in $LDFLAGS $LIBINTL; do
12314 acl_save_prefix="$prefix"
12315 prefix="$acl_final_prefix"
12316 acl_save_exec_prefix="$exec_prefix"
12317 exec_prefix="$acl_final_exec_prefix"
12319 exec_prefix="$acl_save_exec_prefix"
12320 prefix="$acl_save_prefix"
12322 if test "X$x" = "X-L$additional_libdir"; then
12327 if test -z "$haveit"; then
12328 if test -d "$additional_libdir"; then
12329 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12333 for x in $LDFLAGS $LTLIBINTL; do
12335 acl_save_prefix="$prefix"
12336 prefix="$acl_final_prefix"
12337 acl_save_exec_prefix="$exec_prefix"
12338 exec_prefix="$acl_final_exec_prefix"
12340 exec_prefix="$acl_save_exec_prefix"
12341 prefix="$acl_save_prefix"
12343 if test "X$x" = "X-L$additional_libdir"; then
12348 if test -z "$haveit"; then
12349 if test -d "$additional_libdir"; then
12350 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12357 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12358 if test "$enable_rpath" != no; then
12360 for x in $rpathdirs; do
12361 if test "X$x" = "X$dir"; then
12366 if test -z "$haveit"; then
12367 rpathdirs="$rpathdirs $dir"
12370 for x in $ltrpathdirs; do
12371 if test "X$x" = "X$dir"; then
12376 if test -z "$haveit"; then
12377 ltrpathdirs="$ltrpathdirs $dir"
12382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12388 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12389 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12395 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12396 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12402 if test "X$rpathdirs" != "X"; then
12403 if test -n "$hardcode_libdir_separator"; then
12405 for found_dir in $rpathdirs; do
12406 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12408 acl_save_libdir="$libdir"
12410 eval flag=\"$hardcode_libdir_flag_spec\"
12411 libdir="$acl_save_libdir"
12412 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12414 for found_dir in $rpathdirs; do
12415 acl_save_libdir="$libdir"
12416 libdir="$found_dir"
12417 eval flag=\"$hardcode_libdir_flag_spec\"
12418 libdir="$acl_save_libdir"
12419 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12423 if test "X$ltrpathdirs" != "X"; then
12424 for found_dir in $ltrpathdirs; do
12425 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12429 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12430 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12431 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 gt_save_CPPFLAGS="$CPPFLAGS"
12435 CPPFLAGS="$CPPFLAGS $INCINTL"
12436 gt_save_LIBS="$LIBS"
12437 LIBS="$LIBS $LIBINTL"
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #include <libintl.h>
12445 extern int _nl_msg_cat_cntr;
12450 const char *_nl_expand_alias (const char *);
12454 bindtextdomain ("", "");
12455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 gt_cv_func_gnugettext1_libintl=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 gt_cv_func_gnugettext1_libintl=no
12489 rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12492 LIBS="$LIBS $LIBICONV"
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 #include <libintl.h>
12500 extern int _nl_msg_cat_cntr;
12505 const char *_nl_expand_alias (const char *);
12509 bindtextdomain ("", "");
12510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag"
12525 || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 LIBINTL="$LIBINTL $LIBICONV"
12538 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12539 gt_cv_func_gnugettext1_libintl=yes
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12546 rm -f conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12549 CPPFLAGS="$gt_save_CPPFLAGS"
12550 LIBS="$gt_save_LIBS"
12552 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12553 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12556 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12557 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12558 && test "$PACKAGE" != gettext-runtime \
12559 && test "$PACKAGE" != gettext-tools; }; then
12560 gt_use_preinstalled_gnugettext=yes
12568 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12569 nls_cv_use_gnu_gettext=yes
12573 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12574 BUILD_INCLUDED_LIBINTL=yes
12575 USE_INCLUDED_LIBINTL=yes
12576 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12577 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12578 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12582 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12583 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12588 if test -n "$INTL_MACOSX_LIBS"; then
12589 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12590 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12591 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12592 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12596 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12597 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12599 cat >>confdefs.h <<\_ACEOF
12600 #define ENABLE_NLS 1
12608 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12609 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12610 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12611 echo "${ECHO_T}$USE_NLS" >&6
12612 if test "$USE_NLS" = "yes"; then
12613 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12614 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12616 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12617 gt_source="external libintl"
12622 gt_source="included intl directory"
12624 echo "$as_me:$LINENO: result: $gt_source" >&5
12625 echo "${ECHO_T}$gt_source" >&6
12628 if test "$USE_NLS" = "yes"; then
12630 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12631 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12632 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12633 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12634 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12635 echo "${ECHO_T}$LIBINTL" >&6
12637 for element in $INCINTL; do
12639 for x in $CPPFLAGS; do
12641 acl_save_prefix="$prefix"
12642 prefix="$acl_final_prefix"
12643 acl_save_exec_prefix="$exec_prefix"
12644 exec_prefix="$acl_final_exec_prefix"
12646 exec_prefix="$acl_save_exec_prefix"
12647 prefix="$acl_save_prefix"
12649 if test "X$x" = "X$element"; then
12654 if test -z "$haveit"; then
12655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12662 cat >>confdefs.h <<\_ACEOF
12663 #define HAVE_GETTEXT 1
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_DCGETTEXT 1
12677 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12678 BUILD_INCLUDED_LIBINTL=yes
12685 nls_cv_header_intl=
12686 nls_cv_header_libgt=
12698 if test "$USE_INCLUDED_LIBINTL" = yes; then
12699 INTLOBJS="\$(GETTOBJS)"
12703 INTL_LIBTOOL_SUFFIX_PREFIX=
12707 INTLLIBS="$LIBINTL"
12720 support_postgresql=no
12721 support_smartalloc=yes
12722 support_readline=yes
12726 support_wx_console=no
12731 support_static_tools=no
12732 support_static_fd=no
12733 support_static_sd=no
12734 support_static_dir=no
12735 support_static_cons=no
12737 build_client_only=no
12745 # -------------------------------------------
12746 # gnome (default off)
12747 # -------------------------------------------
12748 # Check whether --enable-gnome or --disable-gnome was given.
12749 if test "${enable_gnome+set}" = set; then
12750 enableval="$enable_gnome"
12751 if test x$enableval = xyes; then
12757 if test x$support_gnome = xyes; then
12758 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12760 if test $pkg = 0; then
12761 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12762 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12763 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12764 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769 GNOME_DIR=src/gnome2-console
12770 gnome_version="Version 2.x"
12772 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12773 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12774 { (exit 1); exit 1; }; }
12779 # -------------------------------------------
12780 # bat (default off)
12781 # -------------------------------------------
12782 # Check whether --enable-bat or --disable-bat was given.
12783 if test "${enable_bat+set}" = set; then
12784 enableval="$enable_bat"
12785 if test x$enableval = xyes; then
12787 cat >>confdefs.h <<\_ACEOF
12796 if test x$support_bat = xyes; then
12797 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12799 if test $pkg = 0; then
12800 BAT_DIR=src/qt-console
12802 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12803 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12804 { (exit 1); exit 1; }; }
12809 # If bat is enabled, we need the qwt library
12813 if test x$support_bat = xyes; then
12814 echo "$as_me:$LINENO: checking for qwt support" >&5
12815 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12817 # Check whether --with-qwt or --without-qwt was given.
12818 if test "${with_qwt+set}" = set; then
12819 withval="$with_qwt"
12821 case "$with_qwt" in
12825 if test -f ${with_qwt}/include/qwt.h; then
12826 QWT_INC="${with_qwt}/include"
12827 QWT_LDFLAGS="-L${with_qwt}/lib"
12835 # Search in standard places, or --with-qwt not specified
12837 if test x$QWT_INC = x; then
12838 for root in /usr /usr/local; do
12839 for ver in qwt qwt5; do
12840 if test -f ${root}/include/${ver}/qwt.h; then
12841 QWT_INC="${root}/include/${ver}"
12842 if test -d ${root}/lib64/; then
12843 QWT_LDFLAGS="-L${root}/lib64"
12845 QWT_LDFLAGS="-L${root}/lib"
12853 if test x$QWT_INC = x; then
12854 echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6
12856 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12857 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12858 { (exit 1); exit 1; }; }
12862 echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6
12872 # -------------------------------------------
12873 # bwx-console (default off)
12874 # -------------------------------------------
12875 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12876 if test "${enable_bwx_console+set}" = set; then
12877 enableval="$enable_bwx_console"
12878 if test x$enableval = xyes; then
12879 support_wx_console=yes
12884 if test x$support_wx_console = xyes; then
12885 abc=`$WXCONFIG $WXFLAGS --cppflags`
12887 if test $pkg = 0; then
12888 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12889 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12890 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12894 WX_DIR=src/wx-console
12897 echo "wx-config program not found. bwx-console disabled."
12899 support_wx_console=no
12905 # -------------------------------------------
12906 # tray-monitor (default off)
12907 # -------------------------------------------
12908 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12909 if test "${enable_tray_monitor+set}" = set; then
12910 enableval="$enable_tray_monitor"
12911 if test x$enableval = xyes; then
12912 support_tray_monitor=yes
12917 if test x$support_tray_monitor = xyes; then
12918 abc=`$PKGCONFIG --exists gtk+-2.0`
12920 if test $pkg = 0; then
12921 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12922 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12925 TRAY_MONITOR_DIR=src/tray-monitor
12926 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12928 if test $pkg = 0; then
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_GTK_2_4 1
12939 # -------------------------------------------
12940 # smartalloc (default off)
12941 # -------------------------------------------
12942 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12943 if test "${enable_smartalloc+set}" = set; then
12944 enableval="$enable_smartalloc"
12945 if test x$enableval = xno; then
12946 support_smartalloc=no
12950 if test x$support_smartalloc = xyes; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define SMARTALLOC 1
12958 # -------------------------------------------
12959 # static-tools (default off)
12960 # -------------------------------------------
12961 # Check whether --enable-static-tools or --disable-static-tools was given.
12962 if test "${enable_static_tools+set}" = set; then
12963 enableval="$enable_static_tools"
12964 if test x$enableval = xyes; then
12965 support_static_tools=yes
12970 if test x$support_static_tools = xyes; then
12971 TTOOL_LDFLAGS="-static"
12975 # -------------------------------------------
12976 # static-fd (default off)
12977 # -------------------------------------------
12978 # Check whether --enable-static-fd or --disable-static-fd was given.
12979 if test "${enable_static_fd+set}" = set; then
12980 enableval="$enable_static_fd"
12981 if test x$enableval = xyes; then
12982 support_static_fd=yes
12987 if test x$support_static_fd = xyes; then
12988 STATIC_FD="static-bacula-fd"
12992 # -------------------------------------------
12993 # static-sd (default off)
12994 # -------------------------------------------
12995 # Check whether --enable-static-sd or --disable-static-sd was given.
12996 if test "${enable_static_sd+set}" = set; then
12997 enableval="$enable_static_sd"
12998 if test x$enableval = xyes; then
12999 support_static_sd=yes
13004 if test x$support_static_sd = xyes; then
13005 STATIC_SD="static-bacula-sd"
13009 # -------------------------------------------
13010 # static-dir (default off)
13011 # -------------------------------------------
13012 # Check whether --enable-static-dir or --disable-static-dir was given.
13013 if test "${enable_static_dir+set}" = set; then
13014 enableval="$enable_static_dir"
13015 if test x$enableval = xyes; then
13016 support_static_dir=yes
13021 if test x$support_static_dir = xyes; then
13022 STATIC_DIR="static-bacula-dir"
13026 # -------------------------------------------
13027 # static-cons (default off)
13028 # -------------------------------------------
13029 # Check whether --enable-static-cons or --disable-static-cons was given.
13030 if test "${enable_static_cons+set}" = set; then
13031 enableval="$enable_static_cons"
13032 if test x$enableval = xyes; then
13033 support_static_cons=yes
13040 if test x$support_static_cons = xyes; then
13041 STATIC_CONS="static-bconsole"
13042 STATIC_GNOME_CONS="static-bgnome-console"
13043 STATIC_WX_CONS="static-bwx-console"
13049 # -------------------------------------------
13050 # client_only (default off)
13051 # -------------------------------------------
13052 # Check whether --enable-client-only or --disable-client-only was given.
13053 if test "${enable_client_only+set}" = set; then
13054 enableval="$enable_client_only"
13055 if test x$enableval = xyes; then
13056 build_client_only=yes
13061 if test x$build_client_only = xno; then
13068 # -------------------------------------------
13069 # director (default on)
13070 # -------------------------------------------
13071 # Check whether --enable-build-dird or --disable-build-dird was given.
13072 if test "${enable_build_dird+set}" = set; then
13073 enableval="$enable_build_dird"
13074 if test x$enableval = xno; then
13078 if test x$build_dird = xyes; then
13079 DIRD_DIR="src/dird"
13080 DIR_TOOLS="DIRTOOLS"
13083 DIR_TOOLS="NODIRTOOLS"
13088 # -------------------------------------------
13089 # stored (default on)
13090 # -------------------------------------------
13091 # Check whether --enable-build-stored or --disable-build-stored was given.
13092 if test "${enable_build_stored+set}" = set; then
13093 enableval="$enable_build_stored"
13094 if test x$enableval = xno; then
13098 if test x$build_stored = xyes; then
13099 STORED_DIR="src/stored"
13105 # ---------------------------------------------------
13106 # Check for conio (Bacula readline substitute)(
13107 # ---------------------------------------------------
13108 # this allows you to turn it completely off
13109 # Check whether --enable-conio or --disable-conio was given.
13110 if test "${enable_conio+set}" = set; then
13111 enableval="$enable_conio"
13112 if test x$enableval = xno; then
13119 # ---------------------------------------------------
13120 # Check for IPv6 support
13121 # ---------------------------------------------------
13122 # this allows you to turn it completely off
13124 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13125 if test "${enable_ipv6+set}" = set; then
13126 enableval="$enable_ipv6"
13127 if test x$enableval = xno; then
13133 if test x$support_ipv6 = xyes; then
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 #include <sys/types.h>
13141 #include <sys/socket.h>
13142 #include <netinet/in.h>
13146 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153 (eval $ac_link) 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_c_werror_flag"
13161 || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest$ac_exeext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13180 rm -f conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13184 if test x$support_ipv6 = xyes; then
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_IPV6 1
13195 if test x$support_conio = xyes; then
13196 if test "${ac_cv_header_termcap_h+set}" = set; then
13197 echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13203 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13205 # Is the header compilable?
13206 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13207 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 $ac_includes_default
13215 #include <termcap.h>
13217 rm -f conftest.$ac_objext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_header_compiler=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_header_compiler=no
13246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13248 echo "${ECHO_T}$ac_header_compiler" >&6
13250 # Is the header present?
13251 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13252 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <termcap.h>
13261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null; then
13269 if test -s conftest.err; then
13270 ac_cpp_err=$ac_c_preproc_warn_flag
13271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13278 if test -z "$ac_cpp_err"; then
13279 ac_header_preproc=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_header_preproc=no
13286 rm -f conftest.err conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13288 echo "${ECHO_T}$ac_header_preproc" >&6
13290 # So? What about this header?
13291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13293 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13294 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13296 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13297 ac_header_preproc=yes
13300 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13301 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13303 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13305 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13306 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13307 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13309 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13311 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13314 ## ------------------------------------------ ##
13315 ## Report this to the AC_PACKAGE_NAME lists. ##
13316 ## ------------------------------------------ ##
13319 sed "s/^/$as_me: WARNING: /" >&2
13322 echo "$as_me:$LINENO: checking for termcap.h" >&5
13323 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13324 if test "${ac_cv_header_termcap_h+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 ac_cv_header_termcap_h=$ac_header_preproc
13329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13333 if test $ac_cv_header_termcap_h = yes; then
13334 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13335 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13336 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-ltermcap $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag"
13373 || test ! -s conftest.err'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest$ac_exeext'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 ac_cv_lib_termcap_tgetent=yes
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 ac_cv_lib_termcap_tgetent=no
13392 rm -f conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13396 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13397 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13398 if test $ac_cv_lib_termcap_tgetent = yes; then
13399 CONS_LIBS="-ltermcap"
13403 support_readline=no
13405 cat >>confdefs.h <<\_ACEOF
13406 #define HAVE_CONIO 1
13411 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13412 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13413 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lncurses $LIBS"
13418 cat >conftest.$ac_ext <<_ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 /* Override any gcc2 internal prototype to avoid an error. */
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_lib_ncurses_tgetent=yes
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ac_cv_lib_ncurses_tgetent=no
13469 rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13473 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13474 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13475 if test $ac_cv_lib_ncurses_tgetent = yes; then
13476 CONS_LIBS="-lncurses"
13480 support_readline=no
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_CONIO 1
13496 for ac_header in curses.h
13498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13508 # Is the header compilable?
13509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13518 #include <$ac_header>
13520 rm -f conftest.$ac_objext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13522 (eval $ac_compile) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag"
13530 || test ! -s conftest.err'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest.$ac_objext'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }; then
13542 ac_header_compiler=yes
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 ac_header_compiler=no
13549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 echo "${ECHO_T}$ac_header_compiler" >&6
13553 # Is the header present?
13554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <$ac_header>
13564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null; then
13572 if test -s conftest.err; then
13573 ac_cpp_err=$ac_c_preproc_warn_flag
13574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13581 if test -z "$ac_cpp_err"; then
13582 ac_header_preproc=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_header_preproc=no
13589 rm -f conftest.err conftest.$ac_ext
13590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 echo "${ECHO_T}$ac_header_preproc" >&6
13593 # So? What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13600 ac_header_preproc=yes
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13617 ## ------------------------------------------ ##
13618 ## Report this to the AC_PACKAGE_NAME lists. ##
13619 ## ------------------------------------------ ##
13622 sed "s/^/$as_me: WARNING: /" >&2
13625 echo "$as_me:$LINENO: checking for $ac_header" >&5
13626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 eval "$as_ac_Header=\$ac_header_preproc"
13632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13637 cat >>confdefs.h <<_ACEOF
13638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13645 echo "$as_me:$LINENO: checking for term.h" >&5
13646 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13647 if test "${ac_cv_header_term_h+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13657 #include <curses.h>
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag"
13673 || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_header_term_h=yes
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 ac_cv_header_term_h=no
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13696 if test $ac_cv_header_term_h = yes; then
13697 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13698 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13699 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lcurses $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any gcc2 internal prototype to avoid an error. */
13715 /* We use char because int might match the return type of a gcc2
13716 builtin and then its argument prototype would still apply. */
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13728 (eval $ac_link) 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest$ac_exeext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_lib_curses_tgetent=yes
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_cv_lib_curses_tgetent=no
13755 rm -f conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13760 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13761 if test $ac_cv_lib_curses_tgetent = yes; then
13762 CONS_LIBS="-lcurses"
13766 support_readline=no
13768 cat >>confdefs.h <<\_ACEOF
13769 #define HAVE_CONIO 1
13777 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13788 # ---------------------------------------------------
13789 # Check for readline support/directory (default off)
13790 # ---------------------------------------------------
13791 # this allows you to turn it completely off
13792 # Check whether --enable-readline or --disable-readline was given.
13793 if test "${enable_readline+set}" = set; then
13794 enableval="$enable_readline"
13795 if test x$enableval = xno; then
13796 support_readline=no
13802 if test x$support_readline = xyes; then
13804 # Check whether --with-readline or --without-readline was given.
13805 if test "${with_readline+set}" = set; then
13806 withval="$with_readline"
13808 case "$with_readline" in
13811 if test -f ${with_readline}/readline.h; then
13812 CONS_INC="-I${with_readline}"
13813 CONS_LDFLAGS="-L$with_readline"
13814 elif test -f ${with_readline}/include/readline/readline.h; then
13815 CONS_INC="-I${with_readline}/include/readline"
13816 CONS_LDFLAGS="-L${with_readline}/lib"
13817 with_readline="${with_readline}/include/readline"
13819 with_readline="/usr/include/readline"
13821 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13831 # Is the header compilable?
13832 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13833 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 $ac_includes_default
13841 #include <${with_readline}/readline.h>
13843 rm -f conftest.$ac_objext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13845 (eval $ac_compile) 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag"
13853 || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest.$ac_objext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 ac_header_compiler=yes
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ac_header_compiler=no
13872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13874 echo "${ECHO_T}$ac_header_compiler" >&6
13876 # Is the header present?
13877 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13878 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 #include <${with_readline}/readline.h>
13887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } >/dev/null; then
13895 if test -s conftest.err; then
13896 ac_cpp_err=$ac_c_preproc_warn_flag
13897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13904 if test -z "$ac_cpp_err"; then
13905 ac_header_preproc=yes
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13910 ac_header_preproc=no
13912 rm -f conftest.err conftest.$ac_ext
13913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13914 echo "${ECHO_T}$ac_header_preproc" >&6
13916 # So? What about this header?
13917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13919 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13920 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13922 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13923 ac_header_preproc=yes
13926 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13927 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13929 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13931 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13940 ## ------------------------------------------ ##
13941 ## Report this to the AC_PACKAGE_NAME lists. ##
13942 ## ------------------------------------------ ##
13945 sed "s/^/$as_me: WARNING: /" >&2
13948 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13949 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 eval "$as_ac_Header=\$ac_header_preproc"
13955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_READLINE 1
13965 CONS_LIBS="-lreadline -lhistory -ltermcap"
13970 echo "readline.h not found. readline turned off ..."
13982 # check for standard readline library
13983 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13984 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13985 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13986 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13990 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13992 # Is the header compilable?
13993 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13994 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include </usr/include/readline/readline.h>
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_header_compiler=yes
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_header_compiler=no
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14035 echo "${ECHO_T}$ac_header_compiler" >&6
14037 # Is the header present?
14038 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14039 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 #include </usr/include/readline/readline.h>
14048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } >/dev/null; then
14056 if test -s conftest.err; then
14057 ac_cpp_err=$ac_c_preproc_warn_flag
14058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14065 if test -z "$ac_cpp_err"; then
14066 ac_header_preproc=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_header_preproc=no
14073 rm -f conftest.err conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14075 echo "${ECHO_T}$ac_header_preproc" >&6
14077 # So? What about this header?
14078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14080 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14081 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14083 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14084 ac_header_preproc=yes
14087 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14088 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14090 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14092 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14094 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14096 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14098 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14101 ## ------------------------------------------ ##
14102 ## Report this to the AC_PACKAGE_NAME lists. ##
14103 ## ------------------------------------------ ##
14106 sed "s/^/$as_me: WARNING: /" >&2
14109 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14110 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14111 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14116 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14117 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14120 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_READLINE 1
14127 CONS_INC="-I/usr/include/readline"
14128 CONS_LIBS="-lreadline -ltermcap"
14132 # Did not find standard library, so try Bacula's default
14133 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14136 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 # Is the header compilable?
14144 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14145 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 $ac_includes_default
14153 #include <${TOP_DIR}/depkgs/readline/readline.h>
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest.$ac_objext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_header_compiler=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_header_compiler=no
14184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14190 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <${TOP_DIR}/depkgs/readline/readline.h>
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev/null; then
14207 if test -s conftest.err; then
14208 ac_cpp_err=$ac_c_preproc_warn_flag
14209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14216 if test -z "$ac_cpp_err"; then
14217 ac_header_preproc=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_header_preproc=no
14224 rm -f conftest.err conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14228 # So? What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14235 ac_header_preproc=yes
14238 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists. ##
14254 ## ------------------------------------------ ##
14257 sed "s/^/$as_me: WARNING: /" >&2
14260 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 eval "$as_ac_Header=\$ac_header_preproc"
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_READLINE 1
14278 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14279 CONS_LIBS="-lreadline -lhistory -ltermcap"
14280 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14281 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14285 echo "readline.h not found. readline turned off ..."
14311 # Minimal stuff for readline Makefile configuration
14314 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14315 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14316 if test "${ac_cv_header_stat_broken+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 #include <sys/types.h>
14326 #include <sys/stat.h>
14328 #if defined(S_ISBLK) && defined(S_IFDIR)
14329 # if S_ISBLK (S_IFDIR)
14334 #if defined(S_ISBLK) && defined(S_IFCHR)
14335 # if S_ISBLK (S_IFCHR)
14340 #if defined(S_ISLNK) && defined(S_IFREG)
14341 # if S_ISLNK (S_IFREG)
14346 #if defined(S_ISSOCK) && defined(S_IFREG)
14347 # if S_ISSOCK (S_IFREG)
14353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14354 $EGREP "You lose" >/dev/null 2>&1; then
14355 ac_cv_header_stat_broken=yes
14357 ac_cv_header_stat_broken=no
14362 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14363 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14364 if test $ac_cv_header_stat_broken = yes; then
14366 cat >>confdefs.h <<\_ACEOF
14367 #define STAT_MACROS_BROKEN 1
14377 ac_header_dirent=no
14378 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14379 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14380 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14381 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 #include <sys/types.h>
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405 (eval $ac_compile) 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 eval "$as_ac_Header=yes"
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 eval "$as_ac_Header=no"
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14441 ac_header_dirent=$ac_hdr; break
14445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14446 if test $ac_header_dirent = dirent.h; then
14447 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14449 if test "${ac_cv_search_opendir+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_func_search_save_LIBS=$LIBS
14453 ac_cv_search_opendir=no
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14461 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag"
14486 || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_search_opendir="none required"
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14504 rm -f conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 if test "$ac_cv_search_opendir" = no; then
14507 for ac_lib in dir; do
14508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14516 /* Override any gcc2 internal prototype to avoid an error. */
14520 /* We use char because int might match the return type of a gcc2
14521 builtin and then its argument prototype would still apply. */
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest$ac_exeext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_search_opendir="-l$ac_lib"
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14560 rm -f conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_func_search_save_LIBS
14566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14568 if test "$ac_cv_search_opendir" != no; then
14569 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14574 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14575 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14576 if test "${ac_cv_search_opendir+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_func_search_save_LIBS=$LIBS
14580 ac_cv_search_opendir=no
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag"
14613 || test ! -s conftest.err'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest$ac_exeext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_search_opendir="none required"
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14631 rm -f conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
14633 if test "$ac_cv_search_opendir" = no; then
14634 for ac_lib in x; do
14635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14636 cat >conftest.$ac_ext <<_ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14643 /* Override any gcc2 internal prototype to avoid an error. */
14647 /* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660 (eval $ac_link) 2>conftest.er1
14662 grep -v '^ *+' conftest.er1 >conftest.err
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -z "$ac_c_werror_flag"
14668 || test ! -s conftest.err'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_cv_search_opendir="-l$ac_lib"
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14687 rm -f conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14691 LIBS=$ac_func_search_save_LIBS
14693 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14694 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14695 if test "$ac_cv_search_opendir" != no; then
14696 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14709 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14725 #define $ac_func innocuous_$ac_func
14727 /* System header to define __stub macros and hopefully few prototypes,
14728 which can conflict with char $ac_func (); below.
14729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730 <limits.h> exists even on freestanding compilers. */
14733 # include <limits.h>
14735 # include <assert.h>
14740 /* Override any gcc2 internal prototype to avoid an error. */
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14748 /* The GNU C library defines this for functions which it implements
14749 to always fail with ENOSYS. Some functions are actually named
14750 something starting with __ and the normal name is an alias. */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14754 char (*f) () = $ac_func;
14763 return f != $ac_func;
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag"
14778 || test ! -s conftest.err'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 eval "$as_ac_var=yes"
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 eval "$as_ac_var=no"
14797 rm -f conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext conftest.$ac_ext
14800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14802 if test `eval echo '${'$as_ac_var'}'` = yes; then
14803 cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14812 for ac_func in nanosleep nl_langinfo
14814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14815 echo "$as_me:$LINENO: checking for $ac_func" >&5
14816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14817 if eval "test \"\${$as_ac_var+set}\" = set"; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14828 #define $ac_func innocuous_$ac_func
14830 /* System header to define __stub macros and hopefully few prototypes,
14831 which can conflict with char $ac_func (); below.
14832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833 <limits.h> exists even on freestanding compilers. */
14836 # include <limits.h>
14838 # include <assert.h>
14843 /* Override any gcc2 internal prototype to avoid an error. */
14848 /* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14851 /* The GNU C library defines this for functions which it implements
14852 to always fail with ENOSYS. Some functions are actually named
14853 something starting with __ and the normal name is an alias. */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14857 char (*f) () = $ac_func;
14866 return f != $ac_func;
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873 (eval $ac_link) 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -z "$ac_c_werror_flag"
14881 || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest$ac_exeext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 eval "$as_ac_var=yes"
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 eval "$as_ac_var=no"
14900 rm -f conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14905 if test `eval echo '${'$as_ac_var'}'` = yes; then
14906 cat >>confdefs.h <<_ACEOF
14907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14914 for ac_header in varargs.h
14916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14926 # Is the header compilable?
14927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 $ac_includes_default
14936 #include <$ac_header>
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_header_compiler=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_header_compiler=no
14967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 echo "${ECHO_T}$ac_header_compiler" >&6
14971 # Is the header present?
14972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <$ac_header>
14982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } >/dev/null; then
14990 if test -s conftest.err; then
14991 ac_cpp_err=$ac_c_preproc_warn_flag
14992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14999 if test -z "$ac_cpp_err"; then
15000 ac_header_preproc=yes
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_header_preproc=no
15007 rm -f conftest.err conftest.$ac_ext
15008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 echo "${ECHO_T}$ac_header_preproc" >&6
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15035 ## ------------------------------------------ ##
15036 ## Report this to the AC_PACKAGE_NAME lists. ##
15037 ## ------------------------------------------ ##
15040 sed "s/^/$as_me: WARNING: /" >&2
15043 echo "$as_me:$LINENO: checking for $ac_header" >&5
15044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 eval "$as_ac_Header=\$ac_header_preproc"
15050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15055 cat >>confdefs.h <<_ACEOF
15056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15064 # End of readline/conio stuff
15065 # -----------------------------------------------------------------------
15067 # -----------------------------------------------------------------------
15068 # Check for Python support
15070 echo "$as_me:$LINENO: checking for Python support" >&5
15071 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15073 # Check whether --with-python or --without-python was given.
15074 if test "${with_python+set}" = set; then
15075 withval="$with_python"
15079 if test "$withval" != "no"; then
15080 if test "$withval" = "yes"; then
15081 for python_root in /usr /usr/local /usr/sfw; do
15082 for ver in python2.2 python2.3 python2.4 python2.5; do
15083 if test -f $python_root/include/${ver}/Python.h; then
15084 PYTHON_INCDIR=-I$python_root/include/${ver}
15085 if test -d $python_root/lib64/${ver}/config; then
15086 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15088 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15094 if test x$PYTHON_INCDIR = x; then
15095 if test -f $prefix/include/Python.h; then
15096 PYTHON_INCDIR=-I$prefix/include
15097 if test -d $prefix/lib64/config; then
15098 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15100 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15103 echo "$as_me:$LINENO: result: no" >&5
15104 echo "${ECHO_T}no" >&6
15105 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15106 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15107 { (exit 1); exit 1; }; }
15111 if test -f $withval/Python.h; then
15112 PYTHON_INCDIR=-I$withval
15113 PYTHON_LIBS="-L$withval/config -lpython"
15114 elif test -f $withval/include/Python.h; then
15115 PYTHON_INCDIR=-I$withval/include
15116 if test -d $withval/lib64/config; then
15117 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15119 PYTHON_LIBS="-L$withval/lib/config -lpython"
15121 elif test -f $withval/include/python/Python.h; then
15122 PYTHON_INCDIR=-I$withval/include/python
15123 if test -d $withval/lib64/python/config; then
15124 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15126 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15129 echo "$as_me:$LINENO: result: no" >&5
15130 echo "${ECHO_T}no" >&6
15131 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15132 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15133 { (exit 1); exit 1; }; }
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_PYTHON 1
15140 echo "$as_me:$LINENO: result: yes" >&5
15141 echo "${ECHO_T}yes" >&6
15143 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15144 echo "$as_me: checking for more Python libs" >&6;}
15145 saved_LIBS="$LIBS"; LIBS=
15146 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15147 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15148 if test "${ac_cv_search_shm_open+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 ac_func_search_save_LIBS=$LIBS
15152 ac_cv_search_shm_open=no
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 /* Override any gcc2 internal prototype to avoid an error. */
15164 /* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_cv_search_shm_open="none required"
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15203 rm -f conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 if test "$ac_cv_search_shm_open" = no; then
15206 for ac_lib in rt; do
15207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any gcc2 internal prototype to avoid an error. */
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_search_shm_open="-l$ac_lib"
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15259 rm -f conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_func_search_save_LIBS
15265 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15266 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15267 if test "$ac_cv_search_shm_open" != no; then
15268 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15273 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15274 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15275 if test "${ac_cv_lib_util_openpty+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lutil $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15287 /* Override any gcc2 internal prototype to avoid an error. */
15291 /* We use char because int might match the return type of a gcc2
15292 builtin and then its argument prototype would still apply. */
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304 (eval $ac_link) 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest$ac_exeext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_lib_util_openpty=yes
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_cv_lib_util_openpty=no
15331 rm -f conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 LIBS=$ac_check_lib_save_LIBS
15335 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15336 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15337 if test $ac_cv_lib_util_openpty = yes; then
15338 cat >>confdefs.h <<_ACEOF
15339 #define HAVE_LIBUTIL 1
15342 LIBS="-lutil $LIBS"
15346 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15349 echo "$as_me:$LINENO: result: no" >&5
15350 echo "${ECHO_T}no" >&6
15355 echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6
15363 # Find where sockets are (especially for Solaris)
15364 # Do this before the TCP Wrappers test since tcp wrappers
15365 # uses the socket library and some linkers are stupid.
15367 echo "$as_me:$LINENO: checking for socket" >&5
15368 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15369 if test "${ac_cv_func_socket+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15380 #define socket innocuous_socket
15382 /* System header to define __stub macros and hopefully few prototypes,
15383 which can conflict with char socket (); below.
15384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15385 <limits.h> exists even on freestanding compilers. */
15388 # include <limits.h>
15390 # include <assert.h>
15395 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined (__stub_socket) || defined (__stub___socket)
15409 char (*f) () = socket;
15418 return f != socket;
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425 (eval $ac_link) 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_cv_func_socket=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_cv_func_socket=no
15452 rm -f conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15455 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15456 echo "${ECHO_T}$ac_cv_func_socket" >&6
15457 if test $ac_cv_func_socket = yes; then
15458 echo "$as_me:$LINENO: result: using libc's socket" >&5
15459 echo "${ECHO_T}using libc's socket" >&6
15462 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15463 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15464 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 ac_check_lib_save_LIBS=$LIBS
15468 LIBS="-lxnet $LIBS"
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15476 /* Override any gcc2 internal prototype to avoid an error. */
15480 /* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_lib_xnet_socket=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_lib_xnet_socket=no
15520 rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15525 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15526 if test $ac_cv_lib_xnet_socket = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBXNET 1
15531 LIBS="-lxnet $LIBS"
15536 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15537 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15538 if test "${ac_cv_lib_socket_socket+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-lsocket $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15550 /* Override any gcc2 internal prototype to avoid an error. */
15554 /* We use char because int might match the return type of a gcc2
15555 builtin and then its argument prototype would still apply. */
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15567 (eval $ac_link) 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag"
15575 || test ! -s conftest.err'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; } &&
15581 { ac_try='test -s conftest$ac_exeext'
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; }; then
15587 ac_cv_lib_socket_socket=yes
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 ac_cv_lib_socket_socket=no
15594 rm -f conftest.err conftest.$ac_objext \
15595 conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15598 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15599 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15600 if test $ac_cv_lib_socket_socket = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_LIBSOCKET 1
15605 LIBS="-lsocket $LIBS"
15610 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15611 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15612 if test "${ac_cv_lib_inet_socket+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-linet $LIBS"
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 /* Override any gcc2 internal prototype to avoid an error. */
15628 /* We use char because int might match the return type of a gcc2
15629 builtin and then its argument prototype would still apply. */
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15641 (eval $ac_link) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1 >conftest.err
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag"
15649 || test ! -s conftest.err'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; } &&
15655 { ac_try='test -s conftest$ac_exeext'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661 ac_cv_lib_inet_socket=yes
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_cv_lib_inet_socket=no
15668 rm -f conftest.err conftest.$ac_objext \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15672 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15673 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15674 if test $ac_cv_lib_inet_socket = yes; then
15675 cat >>confdefs.h <<_ACEOF
15676 #define HAVE_LIBINET 1
15679 LIBS="-linet $LIBS"
15687 # -----------------------------------------------------------
15688 # Check whether user wants TCP wrappers support (default off)
15689 # -----------------------------------------------------------
15693 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15694 if test "${with_tcp_wrappers+set}" = set; then
15695 withval="$with_tcp_wrappers"
15697 if test "x$withval" != "xno" ; then
15699 LIBS="$saved_LIBS -lwrap"
15700 echo "$as_me:$LINENO: checking for libwrap" >&5
15701 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15702 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15703 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15704 if test "${ac_cv_search_nanosleep+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_func_search_save_LIBS=$LIBS
15708 ac_cv_search_nanosleep=no
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15716 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -z "$ac_c_werror_flag"
15741 || test ! -s conftest.err'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest$ac_exeext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_search_nanosleep="none required"
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15759 rm -f conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761 if test "$ac_cv_search_nanosleep" = no; then
15762 for ac_lib in rt; do
15763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15771 /* Override any gcc2 internal prototype to avoid an error. */
15775 /* We use char because int might match the return type of a gcc2
15776 builtin and then its argument prototype would still apply. */
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_search_nanosleep="-l$ac_lib"
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_func_search_save_LIBS
15821 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15822 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15823 if test "$ac_cv_search_nanosleep" != no; then
15824 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <sys/types.h>
15836 int deny_severity = 0;
15837 int allow_severity = 0;
15838 struct request_info *req;
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849 (eval $ac_link) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15870 echo "$as_me:$LINENO: result: yes" >&5
15871 echo "${ECHO_T}yes" >&6
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_LIBWRAP 1
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15886 LIBS="$saved_LIBS -lwrap -lnsl"
15887 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 #include <sys/types.h>
15896 int deny_severity = 0;
15897 int allow_severity = 0;
15898 struct request_info *req;
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15930 echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15933 cat >>confdefs.h <<\_ACEOF
15934 #define HAVE_LIBWRAP 1
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15946 echo "$as_me: error: *** libwrap missing" >&2;}
15947 { (exit 1); exit 1; }; }
15950 rm -f conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext conftest.$ac_ext
15954 rm -f conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
15961 # -----------------------------------------------------------
15962 # Check whether OpenSSL is available
15963 # -----------------------------------------------------------
15964 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15965 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15967 # Check whether --with-openssl or --without-openssl was given.
15968 if test "${with_openssl+set}" = set; then
15969 withval="$with_openssl"
15970 with_openssl_directory=${withval}
15973 if test "x$with_openssl_directory" != "x"; then
15974 OPENSSL_LIBS="-lssl -lcrypto"
15977 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15978 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15979 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15982 saved_LIBS="${LIBS}"
15983 saved_CFLAGS="${CFLAGS}"
15984 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15985 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15987 cat >conftest.$ac_ext <<_ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 #include <openssl/ssl.h>
15997 CRYPTO_set_id_callback(NULL);
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004 (eval $ac_link) 2>conftest.er1
16006 grep -v '^ *+' conftest.er1 >conftest.err
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
16011 { ac_try='test -z "$ac_c_werror_flag"
16012 || test ! -s conftest.err'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16026 support_crypto="yes"
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16035 rm -f conftest.err conftest.$ac_objext \
16036 conftest$ac_exeext conftest.$ac_ext
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <openssl/evp.h>
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 (eval $ac_link) 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag"
16063 || test ! -s conftest.err'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; }; then
16075 ac_cv_openssl_sha2="yes"
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 ac_cv_openssl_sha2="no"
16083 rm -f conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16086 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16087 # implementation, presumably for export reasons. If 192bit AES
16088 # is available, we assume that we're running with a 'non-export'
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 #include <openssl/evp.h>
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16107 (eval $ac_link) 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -z "$ac_c_werror_flag"
16115 || test ! -s conftest.err'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest$ac_exeext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_cv_openssl_export="no"
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ac_cv_openssl_export="yes"
16135 rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16138 LIBS="${saved_LIBS}"
16139 CFLAGS="${saved_CFLAGS}"
16141 if test "$support_tls" = "yes"; then
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_OPENSSL 1
16148 cat >>confdefs.h <<\_ACEOF
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_CRYPTO 1
16159 if test "$ac_cv_openssl_sha2" = "yes"; then
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_SHA2 1
16167 if test "$ac_cv_openssl_export" = "yes"; then
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16176 support_crypto="no"
16181 echo "$as_me:$LINENO: result: $support_tls" >&5
16182 echo "${ECHO_T}$support_tls" >&6
16187 # -----------------------------------------------------------
16188 # Python and OpenSSL are using dlopen
16189 # -----------------------------------------------------------
16191 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16192 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16194 if test "${ac_cv_search_dlopen+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 ac_func_search_save_LIBS=$LIBS
16198 ac_cv_search_dlopen=no
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16206 /* Override any gcc2 internal prototype to avoid an error. */
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223 (eval $ac_link) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest$ac_exeext'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; }; then
16243 ac_cv_search_dlopen="none required"
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16249 rm -f conftest.err conftest.$ac_objext \
16250 conftest$ac_exeext conftest.$ac_ext
16251 if test "$ac_cv_search_dlopen" = no; then
16252 for ac_lib in dl; do
16253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16254 cat >conftest.$ac_ext <<_ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16261 /* Override any gcc2 internal prototype to avoid an error. */
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16276 rm -f conftest.$ac_objext conftest$ac_exeext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278 (eval $ac_link) 2>conftest.er1
16280 grep -v '^ *+' conftest.er1 >conftest.err
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -z "$ac_c_werror_flag"
16286 || test ! -s conftest.err'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest$ac_exeext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_cv_search_dlopen="-l$ac_lib"
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16305 rm -f conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_func_search_save_LIBS
16311 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16313 if test "$ac_cv_search_dlopen" != no; then
16314 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16320 # ------------------------------------------
16321 # Where to place working dir
16322 # ------------------------------------------
16323 working_dir=`eval echo ${prefix}/var/bacula/working`
16325 # Check whether --with-working-dir or --without-working-dir was given.
16326 if test "${with_working_dir+set}" = set; then
16327 withval="$with_working_dir"
16329 if test "x$withval" != "xno" ; then
16330 working_dir=$withval
16339 # ------------------------------------------
16340 # Where to place scriptdir (script files)
16341 # ------------------------------------------
16342 scriptdir=`eval echo ${sysconfdir}`
16344 # Check whether --with-scriptdir or --without-scriptdir was given.
16345 if test "${with_scriptdir+set}" = set; then
16346 withval="$with_scriptdir"
16348 if test "x$withval" != "xno" ; then
16358 # ------------------------------------------
16359 # Where to send dump email
16360 # ------------------------------------------
16361 dump_email=root@localhost
16363 # Check whether --with-dump-email or --without-dump-email was given.
16364 if test "${with_dump_email+set}" = set; then
16365 withval="$with_dump_email"
16367 if test "x$withval" != "xno" ; then
16368 dump_email=$withval
16376 # ------------------------------------------
16377 # Where to send job email
16378 # ------------------------------------------
16379 job_email=root@localhost
16381 # Check whether --with-job-email or --without-job-email was given.
16382 if test "${with_job_email+set}" = set; then
16383 withval="$with_job_email"
16385 if test "x$withval" != "xno" ; then
16394 # ------------------------------------------
16395 # Where to find smtp host
16396 # ------------------------------------------
16397 smtp_host=localhost
16399 # Check whether --with-smtp_host or --without-smtp_host was given.
16400 if test "${with_smtp_host+set}" = set; then
16401 withval="$with_smtp_host"
16403 if test "x$withval" != "xno" ; then
16413 # ------------------------------------
16414 # Where to place pid files
16415 # ------------------------------------
16418 # Check whether --with-pid-dir or --without-pid-dir was given.
16419 if test "${with_pid_dir+set}" = set; then
16420 withval="$with_pid_dir"
16422 if test "x$withval" != "xno" ; then
16429 cat >>confdefs.h <<_ACEOF
16430 #define _PATH_BACULA_PIDDIR "$piddir"
16436 # ------------------------------------
16437 # Where to place subsys "lock file"
16438 # ------------------------------------
16439 subsysdir=/var/run/subsys
16440 if test -d /var/run/subsys; then
16441 subsysdir=/var/run/subsys
16442 elif test -d /var/lock/subsys; then
16443 subsysdir=/var/lock/subsys
16445 subsysdir=/var/run/subsys
16448 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16449 if test "${with_subsys_dir+set}" = set; then
16450 withval="$with_subsys_dir"
16452 if test "x$withval" != "xno" ; then
16463 # ------------------------------------
16464 # Where to start assigning ports
16465 # ------------------------------------
16468 # Check whether --with-baseport or --without-baseport was given.
16469 if test "${with_baseport+set}" = set; then
16470 withval="$with_baseport"
16472 if test "x$withval" != "xno" ; then
16480 dir_port=`expr $baseport`
16481 fd_port=`expr $baseport + 1`
16482 sd_port=`expr $fd_port + 1`
16489 # ------------------------------------------
16490 # Generate passwords
16491 # ------------------------------------------
16494 # Check whether --with-dir-password or --without-dir-password was given.
16495 if test "${with_dir_password+set}" = set; then
16496 withval="$with_dir_password"
16498 if test "x$withval" != "xno" ; then
16499 dir_password=$withval
16505 if test "x$dir_password" = "x" ; then
16506 if test "x$OPENSSL" = "xnone" ; then
16507 key=`autoconf/randpass 33`
16509 key=`openssl rand -base64 33`
16516 # Check whether --with-fd-password or --without-fd-password was given.
16517 if test "${with_fd_password+set}" = set; then
16518 withval="$with_fd_password"
16520 if test "x$withval" != "xno" ; then
16521 fd_password=$withval
16527 if test "x$fd_password" = "x" ; then
16528 if test "x$OPENSSL" = "xnone" ; then
16529 key=`autoconf/randpass 37`
16531 key=`openssl rand -base64 33`
16538 # Check whether --with-sd-password or --without-sd-password was given.
16539 if test "${with_sd_password+set}" = set; then
16540 withval="$with_sd_password"
16542 if test "x$withval" != "xno" ; then
16543 sd_password=$withval
16549 if test "x$sd_password" = "x" ; then
16550 if test "x$OPENSSL" = "xnone" ; then
16551 key=`autoconf/randpass 41`
16553 key=`openssl rand -base64 33`
16560 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16561 if test "${with_mon_dir_password+set}" = set; then
16562 withval="$with_mon_dir_password"
16564 if test "x$withval" != "xno" ; then
16565 mon_dir_password=$withval
16571 if test "x$mon_dir_password" = "x" ; then
16572 if test "x$OPENSSL" = "xnone" ; then
16573 key=`autoconf/randpass 33`
16575 key=`openssl rand -base64 33`
16577 mon_dir_password=$key
16582 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16583 if test "${with_mon_fd_password+set}" = set; then
16584 withval="$with_mon_fd_password"
16586 if test "x$withval" != "xno" ; then
16587 mon_fd_password=$withval
16593 if test "x$mon_fd_password" = "x" ; then
16594 if test "x$OPENSSL" = "xnone" ; then
16595 key=`autoconf/randpass 37`
16597 key=`openssl rand -base64 33`
16599 mon_fd_password=$key
16604 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16605 if test "${with_mon_sd_password+set}" = set; then
16606 withval="$with_mon_sd_password"
16608 if test "x$withval" != "xno" ; then
16609 mon_sd_password=$withval
16615 if test "x$mon_sd_password" = "x" ; then
16616 if test "x$OPENSSL" = "xnone" ; then
16617 key=`autoconf/randpass 41`
16619 key=`openssl rand -base64 33`
16621 mon_sd_password=$key
16632 # Pickup any database name
16636 # Check whether --with-db_name or --without-db_name was given.
16637 if test "${with_db_name+set}" = set; then
16638 withval="$with_db_name"
16640 if test "x$withval" != "x" ; then
16650 # Check whether --with-db_user or --without-db_user was given.
16651 if test "${with_db_user+set}" = set; then
16652 withval="$with_db_user"
16654 if test "x$withval" != "x" ; then
16664 # Handle users and groups for each daemon
16668 # Check whether --with-dir_user or --without-dir_user was given.
16669 if test "${with_dir_user+set}" = set; then
16670 withval="$with_dir_user"
16672 if test "x$withval" != "x" ; then
16681 # Check whether --with-dir_group or --without-dir_group was given.
16682 if test "${with_dir_group+set}" = set; then
16683 withval="$with_dir_group"
16685 if test "x$withval" != "x" ; then
16694 # Check whether --with-sd_user or --without-sd_user was given.
16695 if test "${with_sd_user+set}" = set; then
16696 withval="$with_sd_user"
16698 if test "x$withval" != "x" ; then
16707 # Check whether --with-sd_group or --without-sd_group was given.
16708 if test "${with_sd_group+set}" = set; then
16709 withval="$with_sd_group"
16711 if test "x$withval" != "x" ; then
16720 # Check whether --with-fd_user or --without-fd_user was given.
16721 if test "${with_fd_user+set}" = set; then
16722 withval="$with_fd_user"
16724 if test "x$withval" != "x" ; then
16733 # Check whether --with-fd_group or --without-fd_group was given.
16734 if test "${with_fd_group+set}" = set; then
16735 withval="$with_fd_group"
16737 if test "x$withval" != "x" ; then
16752 # allow setting default executable permissions
16756 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16757 if test "${with_sbin_perm+set}" = set; then
16758 withval="$with_sbin_perm"
16760 if test "x$withval" != "x" ; then
16769 # ------------------------------------------------
16770 # Bacula check for various SQL database engines
16771 # ------------------------------------------------
16775 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16776 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16778 # Check whether --with-postgresql or --without-postgresql was given.
16779 if test "${with_postgresql+set}" = set; then
16780 withval="$with_postgresql"
16782 if test "$withval" != "no"; then
16783 if test "$db_found" = "yes"; then
16784 echo "$as_me:$LINENO: result: error" >&5
16785 echo "${ECHO_T}error" >&6
16786 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16787 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16788 { (exit 1); exit 1; }; };
16790 if test "$withval" = "yes"; then
16791 PG_CONFIG=`which pg_config`
16792 if test -n "$PG_CONFIG";then
16793 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16794 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16795 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16796 elif test -f /usr/local/include/libpq-fe.h; then
16797 POSTGRESQL_INCDIR=/usr/local/include
16798 if test -d /usr/local/lib64; then
16799 POSTGRESQL_LIBDIR=/usr/local/lib64
16801 POSTGRESQL_LIBDIR=/usr/local/lib
16803 POSTGRESQL_BINDIR=/usr/local/bin
16804 elif test -f /usr/include/libpq-fe.h; then
16805 POSTGRESQL_INCDIR=/usr/include
16806 if test -d /usr/lib64; then
16807 POSTGRESQL_LIBDIR=/usr/lib64
16809 POSTGRESQL_LIBDIR=/usr/lib
16811 POSTGRESQL_BINDIR=/usr/bin
16812 elif test -f /usr/include/pgsql/libpq-fe.h; then
16813 POSTGRESQL_INCDIR=/usr/include/pgsql
16814 if test -d /usr/lib64/pgsql; then
16815 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16817 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16819 POSTGRESQL_BINDIR=/usr/bin
16820 elif test -f /usr/include/postgresql/libpq-fe.h; then
16821 POSTGRESQL_INCDIR=/usr/include/postgresql
16822 if test -d /usr/lib64/postgresql; then
16823 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16825 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16827 POSTGRESQL_BINDIR=/usr/bin
16829 echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6
16831 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16832 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16833 { (exit 1); exit 1; }; }
16835 elif test -f $withval/include/libpq-fe.h; then
16836 POSTGRESQL_INCDIR=$withval/include
16837 POSTGRESQL_LIBDIR=$withval/lib
16838 POSTGRESQL_BINDIR=$withval/bin
16839 elif test -f $withval/include/postgresql/libpq-fe.h; then
16840 POSTGRESQL_INCDIR=$withval/include/postgresql
16841 if test -d $withval/lib64; then
16842 POSTGRESQL_LIBDIR=$withval/lib64
16844 POSTGRESQL_LIBDIR=$withval/lib
16846 POSTGRESQL_BINDIR=$withval/bin
16848 echo "$as_me:$LINENO: result: no" >&5
16849 echo "${ECHO_T}no" >&6
16850 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16851 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16852 { (exit 1); exit 1; }; }
16854 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16855 echo "$as_me:$LINENO: checking for crypt" >&5
16856 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16857 if test "${ac_cv_func_crypt+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16868 #define crypt innocuous_crypt
16870 /* System header to define __stub macros and hopefully few prototypes,
16871 which can conflict with char crypt (); below.
16872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16873 <limits.h> exists even on freestanding compilers. */
16876 # include <limits.h>
16878 # include <assert.h>
16883 /* Override any gcc2 internal prototype to avoid an error. */
16888 /* We use char because int might match the return type of a gcc2
16889 builtin and then its argument prototype would still apply. */
16891 /* The GNU C library defines this for functions which it implements
16892 to always fail with ENOSYS. Some functions are actually named
16893 something starting with __ and the normal name is an alias. */
16894 #if defined (__stub_crypt) || defined (__stub___crypt)
16897 char (*f) () = crypt;
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>conftest.er1
16915 grep -v '^ *+' conftest.er1 >conftest.err
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag"
16921 || test ! -s conftest.err'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; } &&
16927 { ac_try='test -s conftest$ac_exeext'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ac_cv_func_crypt=yes
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 ac_cv_func_crypt=no
16940 rm -f conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16943 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16944 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16945 if test $ac_cv_func_crypt = yes; then
16948 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16949 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16950 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lcrypt $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any gcc2 internal prototype to avoid an error. */
16966 /* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979 (eval $ac_link) 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
16986 { ac_try='test -z "$ac_c_werror_flag"
16987 || test ! -s conftest.err'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest$ac_exeext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_lib_crypt_crypt=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_lib_crypt_crypt=no
17006 rm -f conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17010 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17011 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17012 if test $ac_cv_lib_crypt_crypt = yes; then
17013 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17018 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17019 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17020 SQL_BINDIR=$POSTGRESQL_BINDIR
17021 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17023 cat >>confdefs.h <<\_ACEOF
17024 #define HAVE_POSTGRESQL 1
17027 echo "$as_me:$LINENO: result: yes" >&5
17028 echo "${ECHO_T}yes" >&6
17030 support_postgresql=yes
17034 echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17040 echo "$as_me:$LINENO: result: no" >&5
17041 echo "${ECHO_T}no" >&6
17052 echo "$as_me:$LINENO: checking for MySQL support" >&5
17053 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17055 # Check whether --with-mysql or --without-mysql was given.
17056 if test "${with_mysql+set}" = set; then
17057 withval="$with_mysql"
17059 if test "$withval" != "no"; then
17060 if test "$withval" = "yes"; then
17061 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17062 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17063 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17064 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17065 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17067 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17069 MYSQL_BINDIR=/usr/local/mysql/bin
17070 elif test -f /usr/include/mysql/mysql.h; then
17071 MYSQL_INCDIR=/usr/include/mysql
17072 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17073 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17074 MYSQL_LIBDIR=/usr/lib64/mysql
17075 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17076 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17077 MYSQL_LIBDIR=/usr/lib/mysql
17079 MYSQL_LIBDIR=/usr/lib
17081 MYSQL_BINDIR=/usr/bin
17082 elif test -f /usr/include/mysql.h; then
17083 MYSQL_INCDIR=/usr/include
17084 if test -f /usr/lib64/libmysqlclient_r.a \
17085 -o -f /usr/lib64/libmysqlclient_r.so; then
17086 MYSQL_LIBDIR=/usr/lib64
17088 MYSQL_LIBDIR=/usr/lib
17090 MYSQL_BINDIR=/usr/bin
17091 elif test -f /usr/local/include/mysql/mysql.h; then
17092 MYSQL_INCDIR=/usr/local/include/mysql
17093 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17094 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17095 MYSQL_LIBDIR=/usr/local/lib64/mysql
17097 MYSQL_LIBDIR=/usr/local/lib/mysql
17099 MYSQL_BINDIR=/usr/local/bin
17100 elif test -f /usr/local/include/mysql.h; then
17101 MYSQL_INCDIR=/usr/local/include
17102 if test -f /usr/local/lib64/libmysqlclient_r.a \
17103 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17104 MYSQL_LIBDIR=/usr/local/lib64
17106 MYSQL_LIBDIR=/usr/local/lib
17108 MYSQL_BINDIR=/usr/local/bin
17110 echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6
17112 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17113 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17114 { (exit 1); exit 1; }; }
17117 if test -f $withval/include/mysql/mysql.h; then
17118 MYSQL_INCDIR=$withval/include/mysql
17119 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17120 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17121 MYSQL_LIBDIR=$withval/lib64/mysql
17123 MYSQL_LIBDIR=$withval/lib/mysql
17125 if test -f $withval/lib/libmysqlclient_r.so; then
17126 MYSQL_LIBDIR=$withval/lib
17129 MYSQL_BINDIR=$withval/bin
17130 elif test -f $withval/include/mysql.h; then
17131 MYSQL_INCDIR=$withval/include
17132 if test -f $withval/lib64/libmysqlclient_r.a \
17133 -o -f $withval/lib64/libmysqlclient_r.so; then
17134 MYSQL_LIBDIR=$withval/lib64
17136 MYSQL_LIBDIR=$withval/lib
17138 MYSQL_BINDIR=$withval/bin
17140 echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6
17142 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17143 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17144 { (exit 1); exit 1; }; }
17147 SQL_INCLUDE=-I$MYSQL_INCDIR
17148 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17149 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17150 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17151 cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_THREAD_SAFE_MYSQL 1
17156 SQL_BINDIR=$MYSQL_BINDIR
17157 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_MYSQL 1
17163 echo "$as_me:$LINENO: result: yes" >&5
17164 echo "${ECHO_T}yes" >&6
17171 echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6
17179 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17180 if test "${with_embedded_mysql+set}" = set; then
17181 withval="$with_embedded_mysql"
17183 if test "$withval" != "no"; then
17184 if test "$withval" = "yes"; then
17185 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17186 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17187 if test -d /usr/local/mysql/lib64/mysql; then
17188 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17190 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17192 MYSQL_BINDIR=/usr/local/mysql/bin
17193 elif test -f /usr/include/mysql/mysql.h; then
17194 MYSQL_INCDIR=/usr/include/mysql
17195 if test -d /usr/lib64/mysql; then
17196 MYSQL_LIBDIR=/usr/lib64/mysql
17198 MYSQL_LIBDIR=/usr/lib/mysql
17200 MYSQL_BINDIR=/usr/bin
17201 elif test -f /usr/include/mysql.h; then
17202 MYSQL_INCDIR=/usr/include
17203 if test -d /usr/lib64; then
17204 MYSQL_LIBDIR=/usr/lib64
17206 MYSQL_LIBDIR=/usr/lib
17208 MYSQL_BINDIR=/usr/bin
17209 elif test -f /usr/local/include/mysql/mysql.h; then
17210 MYSQL_INCDIR=/usr/local/include/mysql
17211 if test -d /usr/local/lib64/mysql; then
17212 MYSQL_LIBDIR=/usr/local/lib64/mysql
17214 MYSQL_LIBDIR=/usr/local/lib/mysql
17216 MYSQL_BINDIR=/usr/local/bin
17217 elif test -f /usr/local/include/mysql.h; then
17218 MYSQL_INCDIR=/usr/local/include
17219 if test -d /usr/local/lib64; then
17220 MYSQL_LIBDIR=/usr/local/lib64
17222 MYSQL_LIBDIR=/usr/local/lib
17224 MYSQL_BINDIR=/usr/local/bin
17226 echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17229 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17230 { (exit 1); exit 1; }; }
17233 if test -f $withval/include/mysql/mysql.h; then
17234 MYSQL_INCDIR=$withval/include/mysql
17235 if test -d $withval/lib64/mysql; then
17236 MYSQL_LIBDIR=$withval/lib64/mysql
17238 MYSQL_LIBDIR=$withval/lib/mysql
17240 MYSQL_BINDIR=$withval/bin
17241 elif test -f $withval/include/mysql.h; then
17242 MYSQL_INCDIR=$withval/include
17243 if test -d $withval/lib64; then
17244 MYSQL_LIBDIR=$withval/lib64
17246 MYSQL_LIBDIR=$withval/lib
17248 MYSQL_BINDIR=$withval/bin
17250 echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6
17252 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17253 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17254 { (exit 1); exit 1; }; }
17257 SQL_INCLUDE=-I$MYSQL_INCDIR
17258 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17259 SQL_BINDIR=$MYSQL_BINDIR
17260 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17262 cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_MYSQL 1
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_EMBEDDED_MYSQL 1
17270 echo "$as_me:$LINENO: result: yes" >&5
17271 echo "${ECHO_T}yes" >&6
17278 echo "$as_me:$LINENO: result: no" >&5
17279 echo "${ECHO_T}no" >&6
17294 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17295 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17297 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17298 if test "${with_sqlite3+set}" = set; then
17299 withval="$with_sqlite3"
17301 if test "$withval" != "no"; then
17302 if test "$withval" = "yes"; then
17303 if test -f /usr/local/include/sqlite3.h; then
17304 SQLITE_INCDIR=/usr/local/include
17305 if test -d /usr/local/lib64; then
17306 SQLITE_LIBDIR=/usr/local/lib64
17308 SQLITE_LIBDIR=/usr/local/lib
17310 SQLITE_BINDIR=/usr/local/bin
17311 elif test -f /usr/include/sqlite3.h; then
17312 SQLITE_INCDIR=/usr/include
17313 if test -d /usr/lib64; then
17314 SQLITE_LIBDIR=/usr/lib64
17316 SQLITE_LIBDIR=/usr/lib
17318 SQLITE_BINDIR=/usr/bin
17319 elif test -f $prefix/include/sqlite3.h; then
17320 SQLITE_INCDIR=$prefix/include
17321 if test -d $prefix/lib64; then
17322 SQLITE_LIBDIR=$prefix/lib64
17324 SQLITE_LIBDIR=$prefix/lib
17326 SQLITE_BINDIR=$prefix/bin
17328 echo "$as_me:$LINENO: result: no" >&5
17329 echo "${ECHO_T}no" >&6
17330 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17331 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17332 { (exit 1); exit 1; }; }
17335 if test -f $withval/sqlite3.h; then
17336 SQLITE_INCDIR=$withval
17337 SQLITE_LIBDIR=$withval
17338 SQLITE_BINDIR=$withval
17339 elif test -f $withval/include/sqlite3.h; then
17340 SQLITE_INCDIR=$withval/include
17341 if test -d $withval/lib64; then
17342 SQLITE_LIBDIR=$withval/lib64
17344 SQLITE_LIBDIR=$withval/lib
17346 SQLITE_BINDIR=$withval/bin
17348 echo "$as_me:$LINENO: result: no" >&5
17349 echo "${ECHO_T}no" >&6
17350 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17351 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17352 { (exit 1); exit 1; }; }
17355 SQL_INCLUDE=-I$SQLITE_INCDIR
17356 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17357 SQL_BINDIR=$SQLITE_BINDIR
17358 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17360 cat >>confdefs.h <<\_ACEOF
17361 #define HAVE_SQLITE3 1
17364 echo "$as_me:$LINENO: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6
17367 support_sqlite3=yes
17372 echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6
17378 echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17390 echo "$as_me:$LINENO: checking for SQLite support" >&5
17391 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17393 # Check whether --with-sqlite or --without-sqlite was given.
17394 if test "${with_sqlite+set}" = set; then
17395 withval="$with_sqlite"
17397 if test "$withval" != "no"; then
17398 if test "$withval" = "yes"; then
17399 if test -f /usr/local/include/sqlite.h; then
17400 SQLITE_INCDIR=/usr/local/include
17401 if test -d /usr/local/lib64; then
17402 SQLITE_LIBDIR=/usr/local/lib64
17404 SQLITE_LIBDIR=/usr/local/lib
17406 SQLITE_BINDIR=/usr/local/bin
17407 elif test -f /usr/include/sqlite.h; then
17408 SQLITE_INCDIR=/usr/include
17409 if test -d /usr/lib64; then
17410 SQLITE_LIBDIR=/usr/lib64
17412 SQLITE_LIBDIR=/usr/lib
17414 SQLITE_BINDIR=/usr/bin
17415 elif test -f $prefix/include/sqlite.h; then
17416 SQLITE_INCDIR=$prefix/include
17417 if test -d $prefix/lib64; then
17418 SQLITE_LIBDIR=$prefix/lib64
17420 SQLITE_LIBDIR=$prefix/lib
17422 SQLITE_BINDIR=$prefix/bin
17424 echo "$as_me:$LINENO: result: no" >&5
17425 echo "${ECHO_T}no" >&6
17426 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17427 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17428 { (exit 1); exit 1; }; }
17431 if test -f $withval/sqlite.h; then
17432 SQLITE_INCDIR=$withval
17433 SQLITE_LIBDIR=$withval
17434 SQLITE_BINDIR=$withval
17435 elif test -f $withval/include/sqlite.h; then
17436 SQLITE_INCDIR=$withval/include
17437 if test -d $withval/lib64; then
17438 SQLITE_LIBDIR=$withval/lib64
17440 SQLITE_LIBDIR=$withval/lib
17442 SQLITE_BINDIR=$withval/bin
17444 echo "$as_me:$LINENO: result: no" >&5
17445 echo "${ECHO_T}no" >&6
17446 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17447 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17448 { (exit 1); exit 1; }; }
17451 SQL_INCLUDE=-I$SQLITE_INCDIR
17452 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17453 SQL_BINDIR=$SQLITE_BINDIR
17454 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17456 cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_SQLITE 1
17460 echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6
17468 echo "$as_me:$LINENO: result: no" >&5
17469 echo "${ECHO_T}no" >&6
17474 echo "$as_me:$LINENO: result: no" >&5
17475 echo "${ECHO_T}no" >&6
17487 # -------------------------------------------
17488 # enable batch attribute DB insert (default on)
17489 # -------------------------------------------
17490 support_batch_insert=no
17491 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17493 if test $pkg = 0; then
17494 support_batch_insert=yes
17495 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17496 if test "${enable_batch_insert+set}" = set; then
17497 enableval="$enable_batch_insert"
17498 if test x$enableval = xno; then
17499 support_batch_insert=no
17501 support_batch_insert=yes
17506 # Check if postgresql support batch mode
17507 if test x$DB_TYPE = xpostgresql; then
17508 A=`nm $SQL_LIB | grep PQputCopyData`
17510 if test $pkg != 0; then
17511 support_batch_insert=no
17515 if test $support_batch_insert = yes ; then
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_BATCH_FILE_INSERT 1
17524 cat >>confdefs.h <<\_ACEOF
17525 #define PROTOTYPES 1
17529 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17530 if test -z "$CCOPTS"; then
17531 CCOPTS='-g -O2 -Wall'
17539 largefile_support="no"
17541 # Check whether --enable-largefile or --disable-largefile was given.
17542 if test "${enable_largefile+set}" = set; then
17543 enableval="$enable_largefile"
17546 if test "$enable_largefile" != no; then
17547 if test -n "$ac_tool_prefix"; then
17548 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17549 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17550 echo "$as_me:$LINENO: checking for $ac_word" >&5
17551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17552 if test "${ac_cv_prog_GETCONF+set}" = set; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 if test -n "$GETCONF"; then
17556 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559 for as_dir in $PATH
17562 test -z "$as_dir" && as_dir=.
17563 for ac_exec_ext in '' $ac_executable_extensions; do
17564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17574 GETCONF=$ac_cv_prog_GETCONF
17575 if test -n "$GETCONF"; then
17576 echo "$as_me:$LINENO: result: $GETCONF" >&5
17577 echo "${ECHO_T}$GETCONF" >&6
17579 echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6
17584 if test -z "$ac_cv_prog_GETCONF"; then
17585 ac_ct_GETCONF=$GETCONF
17586 # Extract the first word of "getconf", so it can be a program name with args.
17587 set dummy getconf; ac_word=$2
17588 echo "$as_me:$LINENO: checking for $ac_word" >&5
17589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17590 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 if test -n "$ac_ct_GETCONF"; then
17594 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17600 test -z "$as_dir" && as_dir=.
17601 for ac_exec_ext in '' $ac_executable_extensions; do
17602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17603 ac_cv_prog_ac_ct_GETCONF="getconf"
17604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17612 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17613 if test -n "$ac_ct_GETCONF"; then
17614 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17615 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17617 echo "$as_me:$LINENO: result: no" >&5
17618 echo "${ECHO_T}no" >&6
17621 GETCONF=$ac_ct_GETCONF
17623 GETCONF="$ac_cv_prog_GETCONF"
17626 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17627 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17628 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17632 ac_cv_sys_largefile_CFLAGS=no
17634 # IRIX 6.2 and later require cc -n32.
17635 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17636 if test "$GCC" != yes; then
17637 ac_cv_sys_largefile_CFLAGS=-n32
17640 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658 (eval $ac_link) 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag"
17666 || test ! -s conftest.err'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_cv_sys_largefile_CFLAGS=no
17685 rm -f conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17691 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17692 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17693 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17694 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17695 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17699 ac_cv_sys_largefile_LDFLAGS=no
17703 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17704 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17705 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17706 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17707 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17711 ac_cv_sys_largefile_LIBS=no
17715 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17716 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17718 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17721 -D_FILE_OFFSET_BITS=*) ;;
17722 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17723 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17728 case "$CPPFLAGS" in
17729 '') CPPFLAGS="$ac_flag" ;;
17730 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17738 '') CFLAGS="$ac_flag" ;;
17739 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17744 case "$ac_cv_sys_largefile_LDFLAGS" in
17748 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17749 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17752 case "$ac_cv_sys_largefile_LIBS" in
17756 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17757 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17760 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17761 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17762 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 ac_cv_sys_file_offset_bits=no
17766 ac_cv_sys_file_offset_bits=64
17767 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17769 -D_FILE_OFFSET_BITS)
17770 ac_cv_sys_file_offset_bits=1 ;;
17771 -D_FILE_OFFSET_BITS=*)
17772 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17777 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17778 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17779 if test "$ac_cv_sys_file_offset_bits" != no; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17786 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17787 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17788 if test "${ac_cv_sys_largefile_source+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 ac_cv_sys_largefile_source=no
17792 ac_cv_sys_largefile_source=1
17793 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17795 -D_LARGEFILE_SOURCE)
17796 ac_cv_sys_largefile_source=1 ;;
17797 -D_LARGEFILE_SOURCE=*)
17798 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17803 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17804 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17805 if test "$ac_cv_sys_largefile_source" != no; then
17807 cat >>confdefs.h <<_ACEOF
17808 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17812 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17813 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17814 if test "${ac_cv_sys_large_files+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 ac_cv_sys_large_files=no
17818 ac_cv_sys_large_files=1
17819 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17822 ac_cv_sys_large_files=1 ;;
17824 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17829 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17830 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17831 if test "$ac_cv_sys_large_files" != no; then
17833 cat >>confdefs.h <<_ACEOF
17834 #define _LARGE_FILES $ac_cv_sys_large_files
17842 echo "$as_me:$LINENO: checking for X" >&5
17843 echo $ECHO_N "checking for X... $ECHO_C" >&6
17846 # Check whether --with-x or --without-x was given.
17847 if test "${with_x+set}" = set; then
17851 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17852 if test "x$with_x" = xno; then
17853 # The user explicitly disabled X.
17856 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17857 # Both variables are already set.
17860 if test "${ac_cv_have_x+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17863 # One or both of the vars are not set, and there is no cached value.
17864 ac_x_includes=no ac_x_libraries=no
17865 rm -fr conftest.dir
17866 if mkdir conftest.dir; then
17868 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17869 cat >Imakefile <<'_ACEOF'
17871 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17873 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17875 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17876 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17877 for ac_extension in a so sl; do
17878 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17879 test -f $ac_im_libdir/libX11.$ac_extension; then
17880 ac_im_usrlibdir=$ac_im_libdir; break
17883 # Screen out bogus values from the imake configuration. They are
17884 # bogus both because they are the default anyway, and because
17885 # using them would break gcc on systems where it needs fixed includes.
17886 case $ac_im_incroot in
17888 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17890 case $ac_im_usrlibdir in
17891 /usr/lib | /lib) ;;
17892 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17896 rm -fr conftest.dir
17899 # Standard set of common directories for X headers.
17900 # Check X11 before X11Rn because it is often a symlink to the current release.
17912 /usr/local/X11/include
17913 /usr/local/X11R6/include
17914 /usr/local/X11R5/include
17915 /usr/local/X11R4/include
17917 /usr/local/include/X11
17918 /usr/local/include/X11R6
17919 /usr/local/include/X11R5
17920 /usr/local/include/X11R4
17924 /usr/XFree86/include/X11
17928 /usr/unsupported/include
17929 /usr/athena/include
17930 /usr/local/x11r5/include
17931 /usr/lpp/Xamples/include
17933 /usr/openwin/include
17934 /usr/openwin/share/include'
17936 if test "$ac_x_includes" = no; then
17937 # Guess where to find include files, by looking for Xlib.h.
17938 # First, try using that file with no special directory specified.
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 #include <X11/Xlib.h>
17947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17950 grep -v '^ *+' conftest.er1 >conftest.err
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } >/dev/null; then
17955 if test -s conftest.err; then
17956 ac_cpp_err=$ac_c_preproc_warn_flag
17957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17964 if test -z "$ac_cpp_err"; then
17965 # We can compile using X headers with no special include directory.
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 for ac_dir in $ac_x_header_dirs; do
17972 if test -r "$ac_dir/X11/Xlib.h"; then
17973 ac_x_includes=$ac_dir
17978 rm -f conftest.err conftest.$ac_ext
17979 fi # $ac_x_includes = no
17981 if test "$ac_x_libraries" = no; then
17982 # Check for the libraries.
17983 # See if we find them without any special options.
17984 # Don't add to $LIBS permanently.
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 #include <X11/Xlib.h>
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004 (eval $ac_link) 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_c_werror_flag"
18012 || test ! -s conftest.err'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; } &&
18018 { ac_try='test -s conftest$ac_exeext'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18025 # We can link X programs with no special library path.
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18032 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18034 # Don't even attempt the hair of trying to link an X program!
18035 for ac_extension in a so sl; do
18036 if test -r $ac_dir/libXt.$ac_extension; then
18037 ac_x_libraries=$ac_dir
18043 rm -f conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045 fi # $ac_x_libraries = no
18047 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18048 # Didn't find X anywhere. Cache the known absence of X.
18049 ac_cv_have_x="have_x=no"
18051 # Record where we found X for the cache.
18052 ac_cv_have_x="have_x=yes \
18053 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18058 eval "$ac_cv_have_x"
18061 if test "$have_x" != yes; then
18062 echo "$as_me:$LINENO: result: $have_x" >&5
18063 echo "${ECHO_T}$have_x" >&6
18066 # If each of the values was on the command line, it overrides each guess.
18067 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18068 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18069 # Update the cache value to reflect the command line values.
18070 ac_cv_have_x="have_x=yes \
18071 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18072 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18073 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18076 if test "$no_x" = yes; then
18077 # Not all programs may use this symbol, but it does not hurt to define it.
18079 cat >>confdefs.h <<\_ACEOF
18080 #define X_DISPLAY_MISSING 1
18083 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18085 if test -n "$x_includes"; then
18086 X_CFLAGS="$X_CFLAGS -I$x_includes"
18089 # It would also be nice to do this for all -L options, not just this one.
18090 if test -n "$x_libraries"; then
18091 X_LIBS="$X_LIBS -L$x_libraries"
18092 # For Solaris; some versions of Sun CC require a space after -R and
18093 # others require no space. Words are not sufficient . . . .
18094 case `(uname -sr) 2>/dev/null` in
18096 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18097 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18098 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18099 cat >conftest.$ac_ext <<_ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h. */
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116 (eval $ac_link) 2>conftest.er1
18118 grep -v '^ *+' conftest.er1 >conftest.err
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest$ac_exeext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18143 rm -f conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145 if test $ac_R_nospace = yes; then
18146 echo "$as_me:$LINENO: result: no" >&5
18147 echo "${ECHO_T}no" >&6
18148 X_LIBS="$X_LIBS -R$x_libraries"
18150 LIBS="$ac_xsave_LIBS -R $x_libraries"
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18168 (eval $ac_link) 2>conftest.er1
18170 grep -v '^ *+' conftest.er1 >conftest.err
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_c_werror_flag"
18176 || test ! -s conftest.err'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18195 rm -f conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197 if test $ac_R_space = yes; then
18198 echo "$as_me:$LINENO: result: yes" >&5
18199 echo "${ECHO_T}yes" >&6
18200 X_LIBS="$X_LIBS -R $x_libraries"
18202 echo "$as_me:$LINENO: result: neither works" >&5
18203 echo "${ECHO_T}neither works" >&6
18206 LIBS=$ac_xsave_LIBS
18210 # Check for system-dependent libraries X programs must link with.
18211 # Do this before checking for the system-independent R6 libraries
18212 # (-lICE), since we may need -lsocket or whatever for X linking.
18214 if test "$ISC" = yes; then
18215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18217 # Martyn Johnson says this is needed for Ultrix, if the X
18218 # libraries were built with DECnet support. And Karl Berry says
18219 # the Alpha needs dnet_stub (dnet does not exist).
18220 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18228 /* Override any gcc2 internal prototype to avoid an error. */
18232 /* We use char because int might match the return type of a gcc2
18233 builtin and then its argument prototype would still apply. */
18234 char XOpenDisplay ();
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18245 (eval $ac_link) 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag"
18253 || test ! -s conftest.err'
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; } &&
18259 { ac_try='test -s conftest$ac_exeext'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18271 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18272 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 ac_check_lib_save_LIBS=$LIBS
18276 LIBS="-ldnet $LIBS"
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18284 /* Override any gcc2 internal prototype to avoid an error. */
18288 /* We use char because int might match the return type of a gcc2
18289 builtin and then its argument prototype would still apply. */
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301 (eval $ac_link) 2>conftest.er1
18303 grep -v '^ *+' conftest.er1 >conftest.err
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_dnet_dnet_ntoa=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_cv_lib_dnet_dnet_ntoa=no
18328 rm -f conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18333 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18334 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18335 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18338 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18339 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18340 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18341 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-ldnet_stub $LIBS"
18346 cat >conftest.$ac_ext <<_ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18353 /* Override any gcc2 internal prototype to avoid an error. */
18357 /* We use char because int might match the return type of a gcc2
18358 builtin and then its argument prototype would still apply. */
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370 (eval $ac_link) 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_c_werror_flag"
18378 || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_lib_dnet_stub_dnet_ntoa=no
18397 rm -f conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18403 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18404 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18409 rm -f conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18411 LIBS="$ac_xsave_LIBS"
18413 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18414 # to get the SysV transport functions.
18415 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18417 # The nsl library prevents programs from opening the X display
18418 # on Irix 5.2, according to T.E. Dickey.
18419 # The functions gethostbyname, getservbyname, and inet_addr are
18420 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18421 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18422 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18423 if test "${ac_cv_func_gethostbyname+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18434 #define gethostbyname innocuous_gethostbyname
18436 /* System header to define __stub macros and hopefully few prototypes,
18437 which can conflict with char gethostbyname (); below.
18438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 <limits.h> exists even on freestanding compilers. */
18442 # include <limits.h>
18444 # include <assert.h>
18447 #undef gethostbyname
18449 /* Override any gcc2 internal prototype to avoid an error. */
18454 /* We use char because int might match the return type of a gcc2
18455 builtin and then its argument prototype would still apply. */
18456 char gethostbyname ();
18457 /* The GNU C library defines this for functions which it implements
18458 to always fail with ENOSYS. Some functions are actually named
18459 something starting with __ and the normal name is an alias. */
18460 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18463 char (*f) () = gethostbyname;
18472 return f != gethostbyname;
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18479 (eval $ac_link) 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_c_werror_flag"
18487 || test ! -s conftest.err'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; } &&
18493 { ac_try='test -s conftest$ac_exeext'
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; }; then
18499 ac_cv_func_gethostbyname=yes
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18504 ac_cv_func_gethostbyname=no
18506 rm -f conftest.err conftest.$ac_objext \
18507 conftest$ac_exeext conftest.$ac_ext
18509 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18510 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18512 if test $ac_cv_func_gethostbyname = no; then
18513 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18514 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18515 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_check_lib_save_LIBS=$LIBS
18520 cat >conftest.$ac_ext <<_ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18527 /* Override any gcc2 internal prototype to avoid an error. */
18531 /* We use char because int might match the return type of a gcc2
18532 builtin and then its argument prototype would still apply. */
18533 char gethostbyname ();
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_lib_nsl_gethostbyname=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_lib_nsl_gethostbyname=no
18571 rm -f conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18575 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18576 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18577 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18581 if test $ac_cv_lib_nsl_gethostbyname = no; then
18582 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18583 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18584 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 ac_check_lib_save_LIBS=$LIBS
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18596 /* Override any gcc2 internal prototype to avoid an error. */
18600 /* We use char because int might match the return type of a gcc2
18601 builtin and then its argument prototype would still apply. */
18602 char gethostbyname ();
18611 rm -f conftest.$ac_objext conftest$ac_exeext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>conftest.er1
18615 grep -v '^ *+' conftest.er1 >conftest.err
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest$ac_exeext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 ac_cv_lib_bsd_gethostbyname=yes
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 ac_cv_lib_bsd_gethostbyname=no
18640 rm -f conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18645 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18646 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18653 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18654 # socket/setsockopt and other routines are undefined under SCO ODT
18655 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18656 # on later versions), says Simon Leinen: it contains gethostby*
18657 # variants that don't use the name server (or something). -lsocket
18658 # must be given before -lnsl if both are needed. We assume that
18659 # if connect needs -lnsl, so does gethostbyname.
18660 echo "$as_me:$LINENO: checking for connect" >&5
18661 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18662 if test "${ac_cv_func_connect+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18673 #define connect innocuous_connect
18675 /* System header to define __stub macros and hopefully few prototypes,
18676 which can conflict with char connect (); below.
18677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18678 <limits.h> exists even on freestanding compilers. */
18681 # include <limits.h>
18683 # include <assert.h>
18688 /* Override any gcc2 internal prototype to avoid an error. */
18693 /* We use char because int might match the return type of a gcc2
18694 builtin and then its argument prototype would still apply. */
18696 /* The GNU C library defines this for functions which it implements
18697 to always fail with ENOSYS. Some functions are actually named
18698 something starting with __ and the normal name is an alias. */
18699 #if defined (__stub_connect) || defined (__stub___connect)
18702 char (*f) () = connect;
18711 return f != connect;
18716 rm -f conftest.$ac_objext conftest$ac_exeext
18717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18718 (eval $ac_link) 2>conftest.er1
18720 grep -v '^ *+' conftest.er1 >conftest.err
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -z "$ac_c_werror_flag"
18726 || test ! -s conftest.err'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; } &&
18732 { ac_try='test -s conftest$ac_exeext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_func_connect=yes
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ac_cv_func_connect=no
18745 rm -f conftest.err conftest.$ac_objext \
18746 conftest$ac_exeext conftest.$ac_ext
18748 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18749 echo "${ECHO_T}$ac_cv_func_connect" >&6
18751 if test $ac_cv_func_connect = no; then
18752 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18753 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18754 if test "${ac_cv_lib_socket_connect+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 ac_check_lib_save_LIBS=$LIBS
18758 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18759 cat >conftest.$ac_ext <<_ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18766 /* Override any gcc2 internal prototype to avoid an error. */
18770 /* We use char because int might match the return type of a gcc2
18771 builtin and then its argument prototype would still apply. */
18781 rm -f conftest.$ac_objext conftest$ac_exeext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18783 (eval $ac_link) 2>conftest.er1
18785 grep -v '^ *+' conftest.er1 >conftest.err
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag"
18791 || test ! -s conftest.err'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; } &&
18797 { ac_try='test -s conftest$ac_exeext'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ac_cv_lib_socket_connect=yes
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 ac_cv_lib_socket_connect=no
18810 rm -f conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18815 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18816 if test $ac_cv_lib_socket_connect = yes; then
18817 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18822 # Guillermo Gomez says -lposix is necessary on A/UX.
18823 echo "$as_me:$LINENO: checking for remove" >&5
18824 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18825 if test "${ac_cv_func_remove+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 cat >conftest.$ac_ext <<_ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18836 #define remove innocuous_remove
18838 /* System header to define __stub macros and hopefully few prototypes,
18839 which can conflict with char remove (); below.
18840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18841 <limits.h> exists even on freestanding compilers. */
18844 # include <limits.h>
18846 # include <assert.h>
18851 /* Override any gcc2 internal prototype to avoid an error. */
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18859 /* The GNU C library defines this for functions which it implements
18860 to always fail with ENOSYS. Some functions are actually named
18861 something starting with __ and the normal name is an alias. */
18862 #if defined (__stub_remove) || defined (__stub___remove)
18865 char (*f) () = remove;
18874 return f != remove;
18879 rm -f conftest.$ac_objext conftest$ac_exeext
18880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18881 (eval $ac_link) 2>conftest.er1
18883 grep -v '^ *+' conftest.er1 >conftest.err
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -z "$ac_c_werror_flag"
18889 || test ! -s conftest.err'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_cv_func_remove=yes
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_func_remove=no
18908 rm -f conftest.err conftest.$ac_objext \
18909 conftest$ac_exeext conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18912 echo "${ECHO_T}$ac_cv_func_remove" >&6
18914 if test $ac_cv_func_remove = no; then
18915 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18916 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18917 if test "${ac_cv_lib_posix_remove+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 ac_check_lib_save_LIBS=$LIBS
18921 LIBS="-lposix $LIBS"
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18929 /* Override any gcc2 internal prototype to avoid an error. */
18933 /* We use char because int might match the return type of a gcc2
18934 builtin and then its argument prototype would still apply. */
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18946 (eval $ac_link) 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_cv_lib_posix_remove=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_cv_lib_posix_remove=no
18973 rm -f conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18977 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18978 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18979 if test $ac_cv_lib_posix_remove = yes; then
18980 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18985 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18986 echo "$as_me:$LINENO: checking for shmat" >&5
18987 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18988 if test "${ac_cv_func_shmat+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18999 #define shmat innocuous_shmat
19001 /* System header to define __stub macros and hopefully few prototypes,
19002 which can conflict with char shmat (); below.
19003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19004 <limits.h> exists even on freestanding compilers. */
19007 # include <limits.h>
19009 # include <assert.h>
19014 /* Override any gcc2 internal prototype to avoid an error. */
19019 /* We use char because int might match the return type of a gcc2
19020 builtin and then its argument prototype would still apply. */
19022 /* The GNU C library defines this for functions which it implements
19023 to always fail with ENOSYS. Some functions are actually named
19024 something starting with __ and the normal name is an alias. */
19025 #if defined (__stub_shmat) || defined (__stub___shmat)
19028 char (*f) () = shmat;
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>conftest.er1
19046 grep -v '^ *+' conftest.er1 >conftest.err
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest$ac_exeext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_cv_func_shmat=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_func_shmat=no
19071 rm -f conftest.err conftest.$ac_objext \
19072 conftest$ac_exeext conftest.$ac_ext
19074 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19075 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19077 if test $ac_cv_func_shmat = no; then
19078 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19079 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19080 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 ac_check_lib_save_LIBS=$LIBS
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19092 /* Override any gcc2 internal prototype to avoid an error. */
19096 /* We use char because int might match the return type of a gcc2
19097 builtin and then its argument prototype would still apply. */
19107 rm -f conftest.$ac_objext conftest$ac_exeext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109 (eval $ac_link) 2>conftest.er1
19111 grep -v '^ *+' conftest.er1 >conftest.err
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest$ac_exeext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_lib_ipc_shmat=yes
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19134 ac_cv_lib_ipc_shmat=no
19136 rm -f conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19140 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19141 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19142 if test $ac_cv_lib_ipc_shmat = yes; then
19143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19149 # Check for libraries that X11R6 Xt/Xaw programs need.
19150 ac_save_LDFLAGS=$LDFLAGS
19151 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19152 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19153 # check for ICE first), but we must link in the order -lSM -lICE or
19154 # we get undefined symbols. So assume we have SM if we have ICE.
19155 # These have to be linked with before -lX11, unlike the other
19156 # libraries we check for below, so use a different variable.
19157 # John Interrante, Karl Berry
19158 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19159 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19160 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19161 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 ac_check_lib_save_LIBS=$LIBS
19164 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19172 /* Override any gcc2 internal prototype to avoid an error. */
19176 /* We use char because int might match the return type of a gcc2
19177 builtin and then its argument prototype would still apply. */
19178 char IceConnectionNumber ();
19182 IceConnectionNumber ();
19187 rm -f conftest.$ac_objext conftest$ac_exeext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189 (eval $ac_link) 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_c_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_cv_lib_ICE_IceConnectionNumber=yes
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 ac_cv_lib_ICE_IceConnectionNumber=no
19216 rm -f conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19220 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19221 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19222 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19223 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19226 LDFLAGS=$ac_save_LDFLAGS
19288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290 echo "$as_me:$LINENO: checking for $ac_header" >&5
19291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19298 # Is the header compilable?
19299 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 $ac_includes_default
19308 #include <$ac_header>
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_header_compiler=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_header_compiler=no
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19341 echo "${ECHO_T}$ac_header_compiler" >&6
19343 # Is the header present?
19344 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19346 cat >conftest.$ac_ext <<_ACEOF
19349 cat confdefs.h >>conftest.$ac_ext
19350 cat >>conftest.$ac_ext <<_ACEOF
19351 /* end confdefs.h. */
19352 #include <$ac_header>
19354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } >/dev/null; then
19362 if test -s conftest.err; then
19363 ac_cpp_err=$ac_c_preproc_warn_flag
19364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19371 if test -z "$ac_cpp_err"; then
19372 ac_header_preproc=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_header_preproc=no
19379 rm -f conftest.err conftest.$ac_ext
19380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19381 echo "${ECHO_T}$ac_header_preproc" >&6
19383 # So? What about this header?
19384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19390 ac_header_preproc=yes
19393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19407 ## ------------------------------------------ ##
19408 ## Report this to the AC_PACKAGE_NAME lists. ##
19409 ## ------------------------------------------ ##
19412 sed "s/^/$as_me: WARNING: /" >&2
19415 echo "$as_me:$LINENO: checking for $ac_header" >&5
19416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 eval "$as_ac_Header=\$ac_header_preproc"
19422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19427 cat >>confdefs.h <<_ACEOF
19428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19435 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19437 if test "${ac_cv_header_stdc+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 cat >conftest.$ac_ext <<_ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19446 #include <stdlib.h>
19447 #include <stdarg.h>
19448 #include <string.h>
19459 rm -f conftest.$ac_objext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461 (eval $ac_compile) 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_header_stdc=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_header_stdc=no
19488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19490 if test $ac_cv_header_stdc = yes; then
19491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 #include <string.h>
19501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19502 $EGREP "memchr" >/dev/null 2>&1; then
19505 ac_cv_header_stdc=no
19511 if test $ac_cv_header_stdc = yes; then
19512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 #include <stdlib.h>
19522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19523 $EGREP "free" >/dev/null 2>&1; then
19526 ac_cv_header_stdc=no
19532 if test $ac_cv_header_stdc = yes; then
19533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19534 if test "$cross_compiling" = yes; then
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19544 #if ((' ' & 0x0FF) == 0x020)
19545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19548 # define ISLOWER(c) \
19549 (('a' <= (c) && (c) <= 'i') \
19550 || ('j' <= (c) && (c) <= 'r') \
19551 || ('s' <= (c) && (c) <= 'z'))
19552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19560 for (i = 0; i < 256; i++)
19561 if (XOR (islower (i), ISLOWER (i))
19562 || toupper (i) != TOUPPER (i))
19567 rm -f conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19580 echo "$as_me: program exited with status $ac_status" >&5
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ( exit $ac_status )
19585 ac_cv_header_stdc=no
19587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19591 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19592 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19593 if test $ac_cv_header_stdc = yes; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define STDC_HEADERS 1
19601 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19602 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19603 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <sys/types.h>
19616 return makedev(0, 0);
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19623 (eval $ac_link) 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag"
19631 || test ! -s conftest.err'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; } &&
19637 { ac_try='test -s conftest$ac_exeext'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 ac_cv_header_sys_types_h_makedev=yes
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_header_sys_types_h_makedev=no
19650 rm -f conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19655 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19657 if test $ac_cv_header_sys_types_h_makedev = no; then
19658 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19659 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19660 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19661 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19665 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19667 # Is the header compilable?
19668 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19669 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 $ac_includes_default
19677 #include <sys/mkdev.h>
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>conftest.er1
19683 grep -v '^ *+' conftest.er1 >conftest.err
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_c_werror_flag"
19689 || test ! -s conftest.err'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_header_compiler=yes
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19706 ac_header_compiler=no
19708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19710 echo "${ECHO_T}$ac_header_compiler" >&6
19712 # Is the header present?
19713 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19714 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <sys/mkdev.h>
19723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } >/dev/null; then
19731 if test -s conftest.err; then
19732 ac_cpp_err=$ac_c_preproc_warn_flag
19733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19740 if test -z "$ac_cpp_err"; then
19741 ac_header_preproc=yes
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_header_preproc=no
19748 rm -f conftest.err conftest.$ac_ext
19749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750 echo "${ECHO_T}$ac_header_preproc" >&6
19752 # So? What about this header?
19753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19755 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19756 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19758 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19759 ac_header_preproc=yes
19762 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19763 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19765 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19767 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19769 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19771 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19773 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19776 ## ------------------------------------------ ##
19777 ## Report this to the AC_PACKAGE_NAME lists. ##
19778 ## ------------------------------------------ ##
19781 sed "s/^/$as_me: WARNING: /" >&2
19784 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19785 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19786 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19792 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19795 if test $ac_cv_header_sys_mkdev_h = yes; then
19797 cat >>confdefs.h <<\_ACEOF
19798 #define MAJOR_IN_MKDEV 1
19805 if test $ac_cv_header_sys_mkdev_h = no; then
19806 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19807 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19808 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19809 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19813 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19815 # Is the header compilable?
19816 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19817 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 $ac_includes_default
19825 #include <sys/sysmacros.h>
19827 rm -f conftest.$ac_objext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19829 (eval $ac_compile) 2>conftest.er1
19831 grep -v '^ *+' conftest.er1 >conftest.err
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
19836 { ac_try='test -z "$ac_c_werror_flag"
19837 || test ! -s conftest.err'
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_header_compiler=yes
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_header_compiler=no
19856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19858 echo "${ECHO_T}$ac_header_compiler" >&6
19860 # Is the header present?
19861 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19862 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19869 #include <sys/sysmacros.h>
19871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19874 grep -v '^ *+' conftest.er1 >conftest.err
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } >/dev/null; then
19879 if test -s conftest.err; then
19880 ac_cpp_err=$ac_c_preproc_warn_flag
19881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19888 if test -z "$ac_cpp_err"; then
19889 ac_header_preproc=yes
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ac_header_preproc=no
19896 rm -f conftest.err conftest.$ac_ext
19897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19898 echo "${ECHO_T}$ac_header_preproc" >&6
19900 # So? What about this header?
19901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19903 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19904 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19906 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19907 ac_header_preproc=yes
19910 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19911 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19913 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19915 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19916 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19917 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19919 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19921 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19924 ## ------------------------------------------ ##
19925 ## Report this to the AC_PACKAGE_NAME lists. ##
19926 ## ------------------------------------------ ##
19929 sed "s/^/$as_me: WARNING: /" >&2
19932 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19933 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19934 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19939 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19940 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19943 if test $ac_cv_header_sys_sysmacros_h = yes; then
19945 cat >>confdefs.h <<\_ACEOF
19946 #define MAJOR_IN_SYSMACROS 1
19960 ac_header_dirent=no
19961 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19962 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19963 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19964 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 #include <sys/types.h>
19986 rm -f conftest.$ac_objext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19988 (eval $ac_compile) 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
19995 { ac_try='test -z "$ac_c_werror_flag"
19996 || test ! -s conftest.err'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 eval "$as_ac_Header=yes"
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 eval "$as_ac_Header=no"
20015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20020 cat >>confdefs.h <<_ACEOF
20021 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20024 ac_header_dirent=$ac_hdr; break
20028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20029 if test $ac_header_dirent = dirent.h; then
20030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20032 if test "${ac_cv_search_opendir+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 ac_func_search_save_LIBS=$LIBS
20036 ac_cv_search_opendir=no
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20044 /* Override any gcc2 internal prototype to avoid an error. */
20048 /* We use char because int might match the return type of a gcc2
20049 builtin and then its argument prototype would still apply. */
20059 rm -f conftest.$ac_objext conftest$ac_exeext
20060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20061 (eval $ac_link) 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -z "$ac_c_werror_flag"
20069 || test ! -s conftest.err'
20070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20071 (eval $ac_try) 2>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }; } &&
20075 { ac_try='test -s conftest$ac_exeext'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 ac_cv_search_opendir="none required"
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20087 rm -f conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext conftest.$ac_ext
20089 if test "$ac_cv_search_opendir" = no; then
20090 for ac_lib in dir; do
20091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20099 /* Override any gcc2 internal prototype to avoid an error. */
20103 /* We use char because int might match the return type of a gcc2
20104 builtin and then its argument prototype would still apply. */
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116 (eval $ac_link) 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try='test -z "$ac_c_werror_flag"
20124 || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest$ac_exeext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_search_opendir="-l$ac_lib"
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20143 rm -f conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_func_search_save_LIBS
20149 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20150 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20151 if test "$ac_cv_search_opendir" != no; then
20152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20157 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20158 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20159 if test "${ac_cv_search_opendir+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_func_search_save_LIBS=$LIBS
20163 ac_cv_search_opendir=no
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any gcc2 internal prototype to avoid an error. */
20175 /* We use char because int might match the return type of a gcc2
20176 builtin and then its argument prototype would still apply. */
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20188 (eval $ac_link) 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
20195 { ac_try='test -z "$ac_c_werror_flag"
20196 || test ! -s conftest.err'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest$ac_exeext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_cv_search_opendir="none required"
20210 echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20214 rm -f conftest.err conftest.$ac_objext \
20215 conftest$ac_exeext conftest.$ac_ext
20216 if test "$ac_cv_search_opendir" = no; then
20217 for ac_lib in x; do
20218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 /* Override any gcc2 internal prototype to avoid an error. */
20230 /* We use char because int might match the return type of a gcc2
20231 builtin and then its argument prototype would still apply. */
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243 (eval $ac_link) 2>conftest.er1
20245 grep -v '^ *+' conftest.er1 >conftest.err
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } &&
20250 { ac_try='test -z "$ac_c_werror_flag"
20251 || test ! -s conftest.err'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest$ac_exeext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 ac_cv_search_opendir="-l$ac_lib"
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20270 rm -f conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_func_search_save_LIBS
20276 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20277 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20278 if test "$ac_cv_search_opendir" != no; then
20279 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20285 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20286 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20287 if test "${ac_cv_header_stat_broken+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 cat >conftest.$ac_ext <<_ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/stat.h>
20299 #if defined(S_ISBLK) && defined(S_IFDIR)
20300 # if S_ISBLK (S_IFDIR)
20305 #if defined(S_ISBLK) && defined(S_IFCHR)
20306 # if S_ISBLK (S_IFCHR)
20311 #if defined(S_ISLNK) && defined(S_IFREG)
20312 # if S_ISLNK (S_IFREG)
20317 #if defined(S_ISSOCK) && defined(S_IFREG)
20318 # if S_ISSOCK (S_IFREG)
20324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20325 $EGREP "You lose" >/dev/null 2>&1; then
20326 ac_cv_header_stat_broken=yes
20328 ac_cv_header_stat_broken=no
20333 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20334 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20335 if test $ac_cv_header_stat_broken = yes; then
20337 cat >>confdefs.h <<\_ACEOF
20338 #define STAT_MACROS_BROKEN 1
20343 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20344 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20345 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 cat >conftest.$ac_ext <<_ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 #include <sys/types.h>
20355 #include <sys/wait.h>
20356 #ifndef WEXITSTATUS
20357 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20360 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20368 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20373 rm -f conftest.$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20377 grep -v '^ *+' conftest.er1 >conftest.err
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_cv_header_sys_wait_h=yes
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 ac_cv_header_sys_wait_h=no
20402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20405 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20406 if test $ac_cv_header_sys_wait_h = yes; then
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_SYS_WAIT_H 1
20414 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20415 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20416 if test "${ac_cv_header_time+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <sys/types.h>
20426 #include <sys/time.h>
20432 if ((struct tm *) 0)
20438 rm -f conftest.$ac_objext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20440 (eval $ac_compile) 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -z "$ac_c_werror_flag"
20448 || test ! -s conftest.err'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_cv_header_time=yes
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ac_cv_header_time=no
20467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20469 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20470 echo "${ECHO_T}$ac_cv_header_time" >&6
20471 if test $ac_cv_header_time = yes; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define TIME_WITH_SYS_TIME 1
20480 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20481 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20482 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 $ac_includes_default
20495 static struct stat ac_aggr;
20496 if (ac_aggr.st_blksize)
20502 rm -f conftest.$ac_objext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20504 (eval $ac_compile) 2>conftest.er1
20506 grep -v '^ *+' conftest.er1 >conftest.err
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -z "$ac_c_werror_flag"
20512 || test ! -s conftest.err'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest.$ac_objext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 ac_cv_member_struct_stat_st_blksize=yes
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 cat >conftest.$ac_ext <<_ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20535 $ac_includes_default
20539 static struct stat ac_aggr;
20540 if (sizeof ac_aggr.st_blksize)
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_cv_member_struct_stat_st_blksize=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_member_struct_stat_st_blksize=no
20575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20579 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20580 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20581 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_ST_BLKSIZE 1
20595 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20596 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20597 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 $ac_includes_default
20610 static struct stat ac_aggr;
20611 if (ac_aggr.st_blocks)
20617 rm -f conftest.$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619 (eval $ac_compile) 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_cv_member_struct_stat_st_blocks=yes
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 $ac_includes_default
20654 static struct stat ac_aggr;
20655 if (sizeof ac_aggr.st_blocks)
20661 rm -f conftest.$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663 (eval $ac_compile) 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag"
20671 || test ! -s conftest.err'
20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 (eval $ac_try) 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; } &&
20677 { ac_try='test -s conftest.$ac_objext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_member_struct_stat_st_blocks=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ac_cv_member_struct_stat_st_blocks=no
20690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20694 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20695 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20696 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20698 cat >>confdefs.h <<_ACEOF
20699 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_ST_BLOCKS 1
20709 "fileblocks.$ac_objext" | \
20710 *" fileblocks.$ac_objext" | \
20711 "fileblocks.$ac_objext "* | \
20712 *" fileblocks.$ac_objext "* ) ;;
20713 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20719 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20720 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20721 if test "${ac_cv_struct_tm+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <sys/types.h>
20736 struct tm *tp; tp->tm_sec;
20741 rm -f conftest.$ac_objext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20743 (eval $ac_compile) 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -z "$ac_c_werror_flag"
20751 || test ! -s conftest.err'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest.$ac_objext'
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 ac_cv_struct_tm=time.h
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_cv_struct_tm=sys/time.h
20770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20772 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20773 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20774 if test $ac_cv_struct_tm = sys/time.h; then
20776 cat >>confdefs.h <<\_ACEOF
20777 #define TM_IN_SYS_TIME 1
20782 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20783 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20784 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 #include <sys/types.h>
20794 #include <$ac_cv_struct_tm>
20800 static struct tm ac_aggr;
20801 if (ac_aggr.tm_zone)
20807 rm -f conftest.$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809 (eval $ac_compile) 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -z "$ac_c_werror_flag"
20817 || test ! -s conftest.err'
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; } &&
20823 { ac_try='test -s conftest.$ac_objext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_member_struct_tm_tm_zone=yes
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 cat >conftest.$ac_ext <<_ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 #include <sys/types.h>
20841 #include <$ac_cv_struct_tm>
20847 static struct tm ac_aggr;
20848 if (sizeof ac_aggr.tm_zone)
20854 rm -f conftest.$ac_objext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20856 (eval $ac_compile) 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try='test -z "$ac_c_werror_flag"
20864 || test ! -s conftest.err'
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); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 ac_cv_member_struct_tm_tm_zone=yes
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 ac_cv_member_struct_tm_tm_zone=no
20883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20888 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20889 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20891 cat >>confdefs.h <<_ACEOF
20892 #define HAVE_STRUCT_TM_TM_ZONE 1
20898 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20900 cat >>confdefs.h <<\_ACEOF
20901 #define HAVE_TM_ZONE 1
20905 echo "$as_me:$LINENO: checking for tzname" >&5
20906 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20907 if test "${ac_cv_var_tzname+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 cat >conftest.$ac_ext <<_ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20917 #ifndef tzname /* For SGI. */
20918 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20931 (eval $ac_link) 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_c_werror_flag"
20939 || test ! -s conftest.err'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; } &&
20945 { ac_try='test -s conftest$ac_exeext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 ac_cv_var_tzname=yes
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ac_cv_var_tzname=no
20958 rm -f conftest.err conftest.$ac_objext \
20959 conftest$ac_exeext conftest.$ac_ext
20961 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20962 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20963 if test $ac_cv_var_tzname = yes; then
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_TZNAME 1
20973 echo "$as_me:$LINENO: checking for utime.h" >&5
20974 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20975 if test "${ba_cv_header_utime_h+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20985 #include <sys/types.h>
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997 (eval $ac_compile) 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
21004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 ba_cv_header_utime_h=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 ba_cv_header_utime_h=no
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21027 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21028 test $ba_cv_header_utime_h = yes &&
21029 cat >>confdefs.h <<\_ACEOF
21030 #define HAVE_UTIME_H 1
21034 echo "$as_me:$LINENO: checking for socklen_t" >&5
21035 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21036 if test "${ba_cv_header_socklen_t+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21046 #include <sys/types.h>
21047 #include <sys/socket.h>
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058 (eval $ac_compile) 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_c_werror_flag"
21066 || test ! -s conftest.err'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ba_cv_header_socklen_t=yes
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ba_cv_header_socklen_t=no
21085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21087 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21088 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21089 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21090 #define HAVE_SOCKLEN_T 1
21094 echo "$as_me:$LINENO: checking for bigendian" >&5
21095 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21096 if test "${ba_cv_bigendian+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 if test "$cross_compiling" = yes; then
21102 cat >conftest.$ac_ext <<_ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21110 rm -f conftest$ac_exeext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21112 (eval $ac_link) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 ba_cv_bigendian=yes
21123 echo "$as_me: program exited with status $ac_status" >&5
21124 echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ( exit $ac_status )
21130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21133 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21134 echo "${ECHO_T}$ba_cv_bigendian" >&6
21135 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21136 #define HAVE_BIGENDIAN 1
21141 ac_cpp='$CXXCPP $CPPFLAGS'
21142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21147 echo "$as_me:$LINENO: checking for typeof" >&5
21148 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21149 if test "${ba_cv_have_typeof+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 if test "$cross_compiling" = yes; then
21153 ba_cv_have_typeof=no
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 main(){char *a = 0; a = (typeof a)a;}
21163 rm -f conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165 (eval $ac_link) 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ba_cv_have_typeof=yes
21176 echo "$as_me: program exited with status $ac_status" >&5
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 ( exit $ac_status )
21181 ba_cv_have_typeof=no
21183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21186 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21187 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21188 test $ba_cv_have_typeof = yes &&
21189 cat >>confdefs.h <<\_ACEOF
21190 #define HAVE_TYPEOF 1
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21200 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21201 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21202 if test "${ac_cv_c_const+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21215 /* FIXME: Include the comments suggested by Paul. */
21216 #ifndef __cplusplus
21217 /* Ultrix mips cc rejects this. */
21218 typedef int charset[2];
21220 /* SunOS 4.1.1 cc rejects this. */
21221 char const *const *ccp;
21223 /* NEC SVR4.0.2 mips cc rejects this. */
21224 struct point {int x, y;};
21225 static struct point const zero = {0,0};
21226 /* AIX XL C 1.02.0.0 rejects this.
21227 It does not let you subtract one const X* pointer from another in
21228 an arm of an if-expression whose if-part is not a constant
21230 const char *g = "string";
21231 ccp = &g + (g ? g-g : 0);
21232 /* HPUX 7.0 cc rejects these. */
21235 ccp = (char const *const *) p;
21236 { /* SCO 3.2v4 cc rejects this. */
21238 char const *s = 0 ? (char *) 0 : (char const *) 0;
21242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21243 int x[] = {25, 17};
21244 const int *foo = &x[0];
21247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21248 typedef const int *iptr;
21252 { /* AIX XL C 1.02.0.0 rejects this saying
21253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21254 struct s { int j; const int *ap[3]; };
21255 struct s *b; b->j = 5;
21257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21258 const int foo = 10;
21266 rm -f conftest.$ac_objext
21267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21268 (eval $ac_compile) 2>conftest.er1
21270 grep -v '^ *+' conftest.er1 >conftest.err
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
21275 { ac_try='test -z "$ac_c_werror_flag"
21276 || test ! -s conftest.err'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; } &&
21282 { ac_try='test -s conftest.$ac_objext'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; }; then
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21298 echo "${ECHO_T}$ac_cv_c_const" >&6
21299 if test $ac_cv_c_const = no; then
21301 cat >>confdefs.h <<\_ACEOF
21309 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21310 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21312 # The order of these tests is important.
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <sys/statvfs.h>
21320 #include <sys/fstyp.h>
21322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21325 grep -v '^ *+' conftest.er1 >conftest.err
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } >/dev/null; then
21330 if test -s conftest.err; then
21331 ac_cpp_err=$ac_c_preproc_warn_flag
21332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21339 if test -z "$ac_cpp_err"; then
21340 cat >>confdefs.h <<\_ACEOF
21341 #define FSTYPE_STATVFS 1
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21350 rm -f conftest.err conftest.$ac_ext
21351 if test $fstype = no; then
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 #include <sys/statfs.h>
21359 #include <sys/fstyp.h>
21361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } >/dev/null; then
21369 if test -s conftest.err; then
21370 ac_cpp_err=$ac_c_preproc_warn_flag
21371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21378 if test -z "$ac_cpp_err"; then
21379 cat >>confdefs.h <<\_ACEOF
21380 #define FSTYPE_USG_STATFS 1
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21389 rm -f conftest.err conftest.$ac_ext
21391 if test $fstype = no; then
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <sys/statfs.h>
21399 #include <sys/vmount.h>
21401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21404 grep -v '^ *+' conftest.er1 >conftest.err
21406 cat conftest.err >&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } >/dev/null; then
21409 if test -s conftest.err; then
21410 ac_cpp_err=$ac_c_preproc_warn_flag
21411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21418 if test -z "$ac_cpp_err"; then
21419 cat >>confdefs.h <<\_ACEOF
21420 #define FSTYPE_AIX_STATFS 1
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21429 rm -f conftest.err conftest.$ac_ext
21431 if test $fstype = no; then
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <mntent.h>
21440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } >/dev/null; then
21448 if test -s conftest.err; then
21449 ac_cpp_err=$ac_c_preproc_warn_flag
21450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21457 if test -z "$ac_cpp_err"; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define FSTYPE_MNTENT 1
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21468 rm -f conftest.err conftest.$ac_ext
21470 if test $fstype = no; then
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <sys/mount.h>
21480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21481 $EGREP "f_type;" >/dev/null 2>&1; then
21482 cat >>confdefs.h <<\_ACEOF
21483 #define FSTYPE_STATFS 1
21490 if test $fstype = no; then
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <sys/mount.h>
21498 #include <sys/fs_types.h>
21500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } >/dev/null; then
21508 if test -s conftest.err; then
21509 ac_cpp_err=$ac_c_preproc_warn_flag
21510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21517 if test -z "$ac_cpp_err"; then
21518 cat >>confdefs.h <<\_ACEOF
21519 #define FSTYPE_GETMNT 1
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21528 rm -f conftest.err conftest.$ac_ext
21530 echo "$as_me:$LINENO: result: $fstype" >&5
21531 echo "${ECHO_T}$fstype" >&6
21533 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21534 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21535 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21536 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21540 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21542 # Is the header compilable?
21543 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21544 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 $ac_includes_default
21552 #include <sys/statvfs.h>
21554 rm -f conftest.$ac_objext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21558 grep -v '^ *+' conftest.er1 >conftest.err
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
21563 { ac_try='test -z "$ac_c_werror_flag"
21564 || test ! -s conftest.err'
21565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21566 (eval $ac_try) 2>&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); }; } &&
21570 { ac_try='test -s conftest.$ac_objext'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; }; then
21576 ac_header_compiler=yes
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ac_header_compiler=no
21583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21585 echo "${ECHO_T}$ac_header_compiler" >&6
21587 # Is the header present?
21588 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21589 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 #include <sys/statvfs.h>
21598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21601 grep -v '^ *+' conftest.er1 >conftest.err
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } >/dev/null; then
21606 if test -s conftest.err; then
21607 ac_cpp_err=$ac_c_preproc_warn_flag
21608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21615 if test -z "$ac_cpp_err"; then
21616 ac_header_preproc=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_header_preproc=no
21623 rm -f conftest.err conftest.$ac_ext
21624 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21625 echo "${ECHO_T}$ac_header_preproc" >&6
21627 # So? What about this header?
21628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21630 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21631 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21633 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21634 ac_header_preproc=yes
21637 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21638 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21640 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21642 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21644 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21646 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21648 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21651 ## ------------------------------------------ ##
21652 ## Report this to the AC_PACKAGE_NAME lists. ##
21653 ## ------------------------------------------ ##
21656 sed "s/^/$as_me: WARNING: /" >&2
21659 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21660 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21661 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21666 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21667 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21670 if test $ac_cv_header_sys_statvfs_h = yes; then
21672 cat >>confdefs.h <<\_ACEOF
21673 #define HAVE_SYS_STATVFS_H 1
21680 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21681 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21682 if test "${ac_cv_type_signal+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 #include <sys/types.h>
21692 #include <signal.h>
21697 extern "C" void (*signal (int, void (*)(int)))(int);
21699 void (*signal ()) ();
21710 rm -f conftest.$ac_objext
21711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21712 (eval $ac_compile) 2>conftest.er1
21714 grep -v '^ *+' conftest.er1 >conftest.err
21716 cat conftest.err >&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } &&
21719 { ac_try='test -z "$ac_c_werror_flag"
21720 || test ! -s conftest.err'
21721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21722 (eval $ac_try) 2>&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try='test -s conftest.$ac_objext'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; }; then
21732 ac_cv_type_signal=void
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_cv_type_signal=int
21739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21741 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21742 echo "${ECHO_T}$ac_cv_type_signal" >&6
21744 cat >>confdefs.h <<_ACEOF
21745 #define RETSIGTYPE $ac_cv_type_signal
21750 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21751 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21752 if test "${bash_cv_signal_vintage+set}" = set; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 #include <signal.h>
21768 struct sigaction sa;
21769 sigemptyset(&ss); sigsuspend(&ss);
21770 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21771 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21779 (eval $ac_link) 2>conftest.er1
21781 grep -v '^ *+' conftest.er1 >conftest.err
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try='test -s conftest$ac_exeext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 bash_cv_signal_vintage="posix"
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21805 cat >conftest.$ac_ext <<_ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21811 #include <signal.h>
21816 int mask = sigmask(SIGINT);
21817 sigsetmask(mask); sigblock(mask); sigpause(mask);
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
21832 { ac_try='test -z "$ac_c_werror_flag"
21833 || test ! -s conftest.err'
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); }; } &&
21839 { ac_try='test -s conftest$ac_exeext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 bash_cv_signal_vintage="4.2bsd"
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21851 cat >conftest.$ac_ext <<_ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21858 #include <signal.h>
21859 RETSIGTYPE foo() { }
21864 int mask = sigmask(SIGINT);
21865 sigset(SIGINT, foo); sigrelse(SIGINT);
21866 sighold(SIGINT); sigpause(SIGINT);
21872 rm -f conftest.$ac_objext conftest$ac_exeext
21873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21874 (eval $ac_link) 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } &&
21881 { ac_try='test -z "$ac_c_werror_flag"
21882 || test ! -s conftest.err'
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest$ac_exeext'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21894 bash_cv_signal_vintage="svr3"
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21899 bash_cv_signal_vintage="v7"
21902 rm -f conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
21906 rm -f conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21910 rm -f conftest.err conftest.$ac_objext \
21911 conftest$ac_exeext conftest.$ac_ext
21915 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21916 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21917 if test "$bash_cv_signal_vintage" = "posix"; then
21918 cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_POSIX_SIGNALS 1
21922 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21923 cat >>confdefs.h <<\_ACEOF
21924 #define HAVE_BSD_SIGNALS 1
21927 elif test "$bash_cv_signal_vintage" = "svr3"; then
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_USG_SIGHOLD 1
21934 echo "$as_me:$LINENO: checking for mode_t" >&5
21935 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21936 if test "${ac_cv_type_mode_t+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 $ac_includes_default
21951 if (sizeof (mode_t))
21957 rm -f conftest.$ac_objext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959 (eval $ac_compile) 2>conftest.er1
21961 grep -v '^ *+' conftest.er1 >conftest.err
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } &&
21966 { ac_try='test -z "$ac_c_werror_flag"
21967 || test ! -s conftest.err'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 ac_cv_type_mode_t=yes
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 ac_cv_type_mode_t=no
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21988 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21989 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21990 if test $ac_cv_type_mode_t = yes; then
21994 cat >>confdefs.h <<_ACEOF
22000 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22001 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22002 if test "${ac_cv_type_uid_t+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 #include <sys/types.h>
22014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22015 $EGREP "uid_t" >/dev/null 2>&1; then
22016 ac_cv_type_uid_t=yes
22018 ac_cv_type_uid_t=no
22023 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22024 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22025 if test $ac_cv_type_uid_t = no; then
22027 cat >>confdefs.h <<\_ACEOF
22032 cat >>confdefs.h <<\_ACEOF
22038 echo "$as_me:$LINENO: checking for size_t" >&5
22039 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22040 if test "${ac_cv_type_size_t+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 $ac_includes_default
22055 if (sizeof (size_t))
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063 (eval $ac_compile) 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } &&
22070 { ac_try='test -z "$ac_c_werror_flag"
22071 || test ! -s conftest.err'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083 ac_cv_type_size_t=yes
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ac_cv_type_size_t=no
22090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22092 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22093 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22094 if test $ac_cv_type_size_t = yes; then
22098 cat >>confdefs.h <<_ACEOF
22099 #define size_t unsigned
22104 echo "$as_me:$LINENO: checking for pid_t" >&5
22105 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22106 if test "${ac_cv_type_pid_t+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 $ac_includes_default
22121 if (sizeof (pid_t))
22127 rm -f conftest.$ac_objext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22129 (eval $ac_compile) 2>conftest.er1
22131 grep -v '^ *+' conftest.er1 >conftest.err
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } &&
22136 { ac_try='test -z "$ac_c_werror_flag"
22137 || test ! -s conftest.err'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; } &&
22143 { ac_try='test -s conftest.$ac_objext'
22144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 ac_cv_type_pid_t=yes
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ac_cv_type_pid_t=no
22156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22158 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22159 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22160 if test $ac_cv_type_pid_t = yes; then
22164 cat >>confdefs.h <<_ACEOF
22170 echo "$as_me:$LINENO: checking for off_t" >&5
22171 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22172 if test "${ac_cv_type_off_t+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 $ac_includes_default
22187 if (sizeof (off_t))
22193 rm -f conftest.$ac_objext
22194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22195 (eval $ac_compile) 2>conftest.er1
22197 grep -v '^ *+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } &&
22202 { ac_try='test -z "$ac_c_werror_flag"
22203 || test ! -s conftest.err'
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; } &&
22209 { ac_try='test -s conftest.$ac_objext'
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_type_off_t=yes
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_cv_type_off_t=no
22222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22224 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22225 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22226 if test $ac_cv_type_off_t = yes; then
22230 cat >>confdefs.h <<_ACEOF
22236 echo "$as_me:$LINENO: checking for ino_t" >&5
22237 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22238 if test "${ac_cv_type_ino_t+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 $ac_includes_default
22253 if (sizeof (ino_t))
22259 rm -f conftest.$ac_objext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22261 (eval $ac_compile) 2>conftest.er1
22263 grep -v '^ *+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } &&
22268 { ac_try='test -z "$ac_c_werror_flag"
22269 || test ! -s conftest.err'
22270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271 (eval $ac_try) 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; } &&
22275 { ac_try='test -s conftest.$ac_objext'
22276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277 (eval $ac_try) 2>&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22281 ac_cv_type_ino_t=yes
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_cv_type_ino_t=no
22288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22290 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22291 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22292 if test $ac_cv_type_ino_t = yes; then
22296 cat >>confdefs.h <<_ACEOF
22297 #define ino_t unsigned long
22302 echo "$as_me:$LINENO: checking for dev_t" >&5
22303 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22304 if test "${ac_cv_type_dev_t+set}" = set; then
22305 echo $ECHO_N "(cached) $ECHO_C" >&6
22307 cat >conftest.$ac_ext <<_ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 $ac_includes_default
22319 if (sizeof (dev_t))
22325 rm -f conftest.$ac_objext
22326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22327 (eval $ac_compile) 2>conftest.er1
22329 grep -v '^ *+' conftest.er1 >conftest.err
22331 cat conftest.err >&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } &&
22334 { ac_try='test -z "$ac_c_werror_flag"
22335 || test ! -s conftest.err'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; } &&
22341 { ac_try='test -s conftest.$ac_objext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22347 ac_cv_type_dev_t=yes
22349 echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22352 ac_cv_type_dev_t=no
22354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22356 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22357 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22358 if test $ac_cv_type_dev_t = yes; then
22362 cat >>confdefs.h <<_ACEOF
22363 #define dev_t unsigned long
22368 echo "$as_me:$LINENO: checking for daddr_t" >&5
22369 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22370 if test "${ac_cv_type_daddr_t+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 cat >conftest.$ac_ext <<_ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 $ac_includes_default
22385 if (sizeof (daddr_t))
22391 rm -f conftest.$ac_objext
22392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22393 (eval $ac_compile) 2>conftest.er1
22395 grep -v '^ *+' conftest.er1 >conftest.err
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_c_werror_flag"
22401 || test ! -s conftest.err'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; } &&
22407 { ac_try='test -s conftest.$ac_objext'
22408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409 (eval $ac_try) 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; }; then
22413 ac_cv_type_daddr_t=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_type_daddr_t=no
22420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22422 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22423 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22424 if test $ac_cv_type_daddr_t = yes; then
22428 cat >>confdefs.h <<_ACEOF
22429 #define daddr_t long
22434 echo "$as_me:$LINENO: checking for major_t" >&5
22435 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22436 if test "${ac_cv_type_major_t+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22445 $ac_includes_default
22451 if (sizeof (major_t))
22457 rm -f conftest.$ac_objext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22459 (eval $ac_compile) 2>conftest.er1
22461 grep -v '^ *+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } &&
22466 { ac_try='test -z "$ac_c_werror_flag"
22467 || test ! -s conftest.err'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; } &&
22473 { ac_try='test -s conftest.$ac_objext'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22479 ac_cv_type_major_t=yes
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_type_major_t=no
22486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22489 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22490 if test $ac_cv_type_major_t = yes; then
22494 cat >>confdefs.h <<_ACEOF
22495 #define major_t int
22500 echo "$as_me:$LINENO: checking for minor_t" >&5
22501 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22502 if test "${ac_cv_type_minor_t+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 $ac_includes_default
22517 if (sizeof (minor_t))
22523 rm -f conftest.$ac_objext
22524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525 (eval $ac_compile) 2>conftest.er1
22527 grep -v '^ *+' conftest.er1 >conftest.err
22529 cat conftest.err >&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -z "$ac_c_werror_flag"
22533 || test ! -s conftest.err'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; } &&
22539 { ac_try='test -s conftest.$ac_objext'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 ac_cv_type_minor_t=yes
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ac_cv_type_minor_t=no
22552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22554 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22555 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22556 if test $ac_cv_type_minor_t = yes; then
22560 cat >>confdefs.h <<_ACEOF
22561 #define minor_t int
22566 echo "$as_me:$LINENO: checking for ssize_t" >&5
22567 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22568 if test "${ac_cv_type_ssize_t+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 $ac_includes_default
22583 if (sizeof (ssize_t))
22589 rm -f conftest.$ac_objext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22591 (eval $ac_compile) 2>conftest.er1
22593 grep -v '^ *+' conftest.er1 >conftest.err
22595 cat conftest.err >&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); } &&
22598 { ac_try='test -z "$ac_c_werror_flag"
22599 || test ! -s conftest.err'
22600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601 (eval $ac_try) 2>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; } &&
22605 { ac_try='test -s conftest.$ac_objext'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; }; then
22611 ac_cv_type_ssize_t=yes
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ac_cv_type_ssize_t=no
22618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22620 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22621 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22622 if test $ac_cv_type_ssize_t = yes; then
22626 cat >>confdefs.h <<_ACEOF
22627 #define ssize_t int
22632 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22633 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22634 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 $ac_includes_default
22647 static struct stat ac_aggr;
22648 if (ac_aggr.st_blocks)
22654 rm -f conftest.$ac_objext
22655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22656 (eval $ac_compile) 2>conftest.er1
22658 grep -v '^ *+' conftest.er1 >conftest.err
22660 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } &&
22663 { ac_try='test -z "$ac_c_werror_flag"
22664 || test ! -s conftest.err'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; } &&
22670 { ac_try='test -s conftest.$ac_objext'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; }; then
22676 ac_cv_member_struct_stat_st_blocks=yes
22678 echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22691 static struct stat ac_aggr;
22692 if (sizeof ac_aggr.st_blocks)
22698 rm -f conftest.$ac_objext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700 (eval $ac_compile) 2>conftest.er1
22702 grep -v '^ *+' conftest.er1 >conftest.err
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
22707 { ac_try='test -z "$ac_c_werror_flag"
22708 || test ! -s conftest.err'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest.$ac_objext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_member_struct_stat_st_blocks=yes
22722 echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22725 ac_cv_member_struct_stat_st_blocks=no
22727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22732 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22733 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22740 cat >>confdefs.h <<\_ACEOF
22741 #define HAVE_ST_BLOCKS 1
22746 "fileblocks.$ac_objext" | \
22747 *" fileblocks.$ac_objext" | \
22748 "fileblocks.$ac_objext "* | \
22749 *" fileblocks.$ac_objext "* ) ;;
22750 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22757 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22758 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22759 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 $ac_includes_default
22772 static struct stat ac_aggr;
22773 if (ac_aggr.st_rdev)
22779 rm -f conftest.$ac_objext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22781 (eval $ac_compile) 2>conftest.er1
22783 grep -v '^ *+' conftest.er1 >conftest.err
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } &&
22788 { ac_try='test -z "$ac_c_werror_flag"
22789 || test ! -s conftest.err'
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; } &&
22795 { ac_try='test -s conftest.$ac_objext'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 ac_cv_member_struct_stat_st_rdev=yes
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 cat >conftest.$ac_ext <<_ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 $ac_includes_default
22816 static struct stat ac_aggr;
22817 if (sizeof ac_aggr.st_rdev)
22823 rm -f conftest.$ac_objext
22824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22825 (eval $ac_compile) 2>conftest.er1
22827 grep -v '^ *+' conftest.er1 >conftest.err
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } &&
22832 { ac_try='test -z "$ac_c_werror_flag"
22833 || test ! -s conftest.err'
22834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835 (eval $ac_try) 2>&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); }; } &&
22839 { ac_try='test -s conftest.$ac_objext'
22840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841 (eval $ac_try) 2>&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); }; }; then
22845 ac_cv_member_struct_stat_st_rdev=yes
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22850 ac_cv_member_struct_stat_st_rdev=no
22852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22856 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22857 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22858 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_STRUCT_STAT_ST_RDEV 1
22865 cat >>confdefs.h <<\_ACEOF
22866 #define HAVE_ST_RDEV 1
22872 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22873 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22874 if test "${ac_cv_struct_tm+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22877 cat >conftest.$ac_ext <<_ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h. */
22883 #include <sys/types.h>
22889 struct tm *tp; tp->tm_sec;
22894 rm -f conftest.$ac_objext
22895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22896 (eval $ac_compile) 2>conftest.er1
22898 grep -v '^ *+' conftest.er1 >conftest.err
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); } &&
22903 { ac_try='test -z "$ac_c_werror_flag"
22904 || test ! -s conftest.err'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; } &&
22910 { ac_try='test -s conftest.$ac_objext'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 ac_cv_struct_tm=time.h
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 ac_cv_struct_tm=sys/time.h
22923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22925 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22926 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22927 if test $ac_cv_struct_tm = sys/time.h; then
22929 cat >>confdefs.h <<\_ACEOF
22930 #define TM_IN_SYS_TIME 1
22935 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22936 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22937 if test "${ac_cv_c_const+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22950 /* FIXME: Include the comments suggested by Paul. */
22951 #ifndef __cplusplus
22952 /* Ultrix mips cc rejects this. */
22953 typedef int charset[2];
22955 /* SunOS 4.1.1 cc rejects this. */
22956 char const *const *ccp;
22958 /* NEC SVR4.0.2 mips cc rejects this. */
22959 struct point {int x, y;};
22960 static struct point const zero = {0,0};
22961 /* AIX XL C 1.02.0.0 rejects this.
22962 It does not let you subtract one const X* pointer from another in
22963 an arm of an if-expression whose if-part is not a constant
22965 const char *g = "string";
22966 ccp = &g + (g ? g-g : 0);
22967 /* HPUX 7.0 cc rejects these. */
22970 ccp = (char const *const *) p;
22971 { /* SCO 3.2v4 cc rejects this. */
22973 char const *s = 0 ? (char *) 0 : (char const *) 0;
22977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22978 int x[] = {25, 17};
22979 const int *foo = &x[0];
22982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22983 typedef const int *iptr;
22987 { /* AIX XL C 1.02.0.0 rejects this saying
22988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22989 struct s { int j; const int *ap[3]; };
22990 struct s *b; b->j = 5;
22992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22993 const int foo = 10;
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
23025 echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23032 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23033 echo "${ECHO_T}$ac_cv_c_const" >&6
23034 if test $ac_cv_c_const = no; then
23036 cat >>confdefs.h <<\_ACEOF
23044 echo "$as_me:$LINENO: checking for char" >&5
23045 echo $ECHO_N "checking for char... $ECHO_C" >&6
23046 if test "${ac_cv_type_char+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 cat >conftest.$ac_ext <<_ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23055 $ac_includes_default
23067 rm -f conftest.$ac_objext
23068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23069 (eval $ac_compile) 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } &&
23076 { ac_try='test -z "$ac_c_werror_flag"
23077 || test ! -s conftest.err'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; } &&
23083 { ac_try='test -s conftest.$ac_objext'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; }; then
23089 ac_cv_type_char=yes
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23098 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23099 echo "${ECHO_T}$ac_cv_type_char" >&6
23101 echo "$as_me:$LINENO: checking size of char" >&5
23102 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23103 if test "${ac_cv_sizeof_char+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 if test "$ac_cv_type_char" = yes; then
23107 # The cast to unsigned long works around a bug in the HP C Compiler
23108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23110 # This bug is HP SR number 8606223364.
23111 if test "$cross_compiling" = yes; then
23112 # Depending upon the size, compute the lo and hi bounds.
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 $ac_includes_default
23123 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23130 rm -f conftest.$ac_objext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23132 (eval $ac_compile) 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } &&
23139 { ac_try='test -z "$ac_c_werror_flag"
23140 || test ! -s conftest.err'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; } &&
23146 { ac_try='test -s conftest.$ac_objext'
23147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148 (eval $ac_try) 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 $ac_includes_default
23164 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23171 rm -f conftest.$ac_objext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173 (eval $ac_compile) 2>conftest.er1
23175 grep -v '^ *+' conftest.er1 >conftest.err
23177 cat conftest.err >&5
23178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179 (exit $ac_status); } &&
23180 { ac_try='test -z "$ac_c_werror_flag"
23181 || test ! -s conftest.err'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest.$ac_objext'
23188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189 (eval $ac_try) 2>&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); }; }; then
23193 ac_hi=$ac_mid; break
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 ac_lo=`expr $ac_mid + 1`
23199 if test $ac_lo -le $ac_mid; then
23203 ac_mid=`expr 2 '*' $ac_mid + 1`
23205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23211 cat >conftest.$ac_ext <<_ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 $ac_includes_default
23221 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23228 rm -f conftest.$ac_objext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23230 (eval $ac_compile) 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
23237 { ac_try='test -z "$ac_c_werror_flag"
23238 || test ! -s conftest.err'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; } &&
23244 { ac_try='test -s conftest.$ac_objext'
23245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; }; then
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 $ac_includes_default
23262 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23269 rm -f conftest.$ac_objext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23271 (eval $ac_compile) 2>conftest.er1
23273 grep -v '^ *+' conftest.er1 >conftest.err
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
23278 { ac_try='test -z "$ac_c_werror_flag"
23279 || test ! -s conftest.err'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; } &&
23285 { ac_try='test -s conftest.$ac_objext'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ac_lo=$ac_mid; break
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_hi=`expr '(' $ac_mid ')' - 1`
23297 if test $ac_mid -le $ac_hi; then
23301 ac_mid=`expr 2 '*' $ac_mid`
23303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23314 # Binary search between lo and hi bounds.
23315 while test "x$ac_lo" != "x$ac_hi"; do
23316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 $ac_includes_default
23327 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23334 rm -f conftest.$ac_objext
23335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23336 (eval $ac_compile) 2>conftest.er1
23338 grep -v '^ *+' conftest.er1 >conftest.err
23340 cat conftest.err >&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } &&
23343 { ac_try='test -z "$ac_c_werror_flag"
23344 || test ! -s conftest.err'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; } &&
23350 { ac_try='test -s conftest.$ac_objext'
23351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352 (eval $ac_try) 2>&5
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23361 ac_lo=`expr '(' $ac_mid ')' + 1`
23363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23366 ?*) ac_cv_sizeof_char=$ac_lo;;
23367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23368 See \`config.log' for more details." >&5
23369 echo "$as_me: error: cannot compute sizeof (char), 77
23370 See \`config.log' for more details." >&2;}
23371 { (exit 1); exit 1; }; } ;;
23374 if test "$cross_compiling" = yes; then
23375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23376 See \`config.log' for more details." >&5
23377 echo "$as_me: error: cannot run test program while cross compiling
23378 See \`config.log' for more details." >&2;}
23379 { (exit 1); exit 1; }; }
23381 cat >conftest.$ac_ext <<_ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 $ac_includes_default
23388 long longval () { return (long) (sizeof (char)); }
23389 unsigned long ulongval () { return (long) (sizeof (char)); }
23391 #include <stdlib.h>
23396 FILE *f = fopen ("conftest.val", "w");
23399 if (((long) (sizeof (char))) < 0)
23401 long i = longval ();
23402 if (i != ((long) (sizeof (char))))
23404 fprintf (f, "%ld\n", i);
23408 unsigned long i = ulongval ();
23409 if (i != ((long) (sizeof (char))))
23411 fprintf (f, "%lu\n", i);
23413 exit (ferror (f) || fclose (f) != 0);
23419 rm -f conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421 (eval $ac_link) 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 ac_cv_sizeof_char=`cat conftest.val`
23432 echo "$as_me: program exited with status $ac_status" >&5
23433 echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23436 ( exit $ac_status )
23437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23438 See \`config.log' for more details." >&5
23439 echo "$as_me: error: cannot compute sizeof (char), 77
23440 See \`config.log' for more details." >&2;}
23441 { (exit 1); exit 1; }; }
23443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23448 ac_cv_sizeof_char=0
23451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23452 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23453 cat >>confdefs.h <<_ACEOF
23454 #define SIZEOF_CHAR $ac_cv_sizeof_char
23458 echo "$as_me:$LINENO: checking for short int" >&5
23459 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23460 if test "${ac_cv_type_short_int+set}" = set; then
23461 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 $ac_includes_default
23473 if ((short int *) 0)
23475 if (sizeof (short int))
23481 rm -f conftest.$ac_objext
23482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23483 (eval $ac_compile) 2>conftest.er1
23485 grep -v '^ *+' conftest.er1 >conftest.err
23487 cat conftest.err >&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } &&
23490 { ac_try='test -z "$ac_c_werror_flag"
23491 || test ! -s conftest.err'
23492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493 (eval $ac_try) 2>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; } &&
23497 { ac_try='test -s conftest.$ac_objext'
23498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 (eval $ac_try) 2>&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_cv_type_short_int=yes
23505 echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_type_short_int=no
23510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23512 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23513 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23515 echo "$as_me:$LINENO: checking size of short int" >&5
23516 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23517 if test "${ac_cv_sizeof_short_int+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23520 if test "$ac_cv_type_short_int" = yes; then
23521 # The cast to unsigned long works around a bug in the HP C Compiler
23522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524 # This bug is HP SR number 8606223364.
23525 if test "$cross_compiling" = yes; then
23526 # Depending upon the size, compute the lo and hi bounds.
23527 cat >conftest.$ac_ext <<_ACEOF
23530 cat confdefs.h >>conftest.$ac_ext
23531 cat >>conftest.$ac_ext <<_ACEOF
23532 /* end confdefs.h. */
23533 $ac_includes_default
23537 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23544 rm -f conftest.$ac_objext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23546 (eval $ac_compile) 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
23553 { ac_try='test -z "$ac_c_werror_flag"
23554 || test ! -s conftest.err'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; } &&
23560 { ac_try='test -s conftest.$ac_objext'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23568 cat >conftest.$ac_ext <<_ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 $ac_includes_default
23578 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23585 rm -f conftest.$ac_objext
23586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23587 (eval $ac_compile) 2>conftest.er1
23589 grep -v '^ *+' conftest.er1 >conftest.err
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } &&
23594 { ac_try='test -z "$ac_c_werror_flag"
23595 || test ! -s conftest.err'
23596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597 (eval $ac_try) 2>&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); }; } &&
23601 { ac_try='test -s conftest.$ac_objext'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; }; then
23607 ac_hi=$ac_mid; break
23609 echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23612 ac_lo=`expr $ac_mid + 1`
23613 if test $ac_lo -le $ac_mid; then
23617 ac_mid=`expr 2 '*' $ac_mid + 1`
23619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23625 cat >conftest.$ac_ext <<_ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 $ac_includes_default
23635 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23642 rm -f conftest.$ac_objext
23643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23644 (eval $ac_compile) 2>conftest.er1
23646 grep -v '^ *+' conftest.er1 >conftest.err
23648 cat conftest.err >&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
23651 { ac_try='test -z "$ac_c_werror_flag"
23652 || test ! -s conftest.err'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest.$ac_objext'
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 $ac_includes_default
23676 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23683 rm -f conftest.$ac_objext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23685 (eval $ac_compile) 2>conftest.er1
23687 grep -v '^ *+' conftest.er1 >conftest.err
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } &&
23692 { ac_try='test -z "$ac_c_werror_flag"
23693 || test ! -s conftest.err'
23694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; } &&
23699 { ac_try='test -s conftest.$ac_objext'
23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; }; then
23705 ac_lo=$ac_mid; break
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ac_hi=`expr '(' $ac_mid ')' - 1`
23711 if test $ac_mid -le $ac_hi; then
23715 ac_mid=`expr 2 '*' $ac_mid`
23717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23720 echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23728 # Binary search between lo and hi bounds.
23729 while test "x$ac_lo" != "x$ac_hi"; do
23730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 $ac_includes_default
23741 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23748 rm -f conftest.$ac_objext
23749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23750 (eval $ac_compile) 2>conftest.er1
23752 grep -v '^ *+' conftest.er1 >conftest.err
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } &&
23757 { ac_try='test -z "$ac_c_werror_flag"
23758 || test ! -s conftest.err'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; } &&
23764 { ac_try='test -s conftest.$ac_objext'
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; }; then
23772 echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 ac_lo=`expr '(' $ac_mid ')' + 1`
23777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23780 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23781 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23782 See \`config.log' for more details." >&5
23783 echo "$as_me: error: cannot compute sizeof (short int), 77
23784 See \`config.log' for more details." >&2;}
23785 { (exit 1); exit 1; }; } ;;
23788 if test "$cross_compiling" = yes; then
23789 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23790 See \`config.log' for more details." >&5
23791 echo "$as_me: error: cannot run test program while cross compiling
23792 See \`config.log' for more details." >&2;}
23793 { (exit 1); exit 1; }; }
23795 cat >conftest.$ac_ext <<_ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 $ac_includes_default
23802 long longval () { return (long) (sizeof (short int)); }
23803 unsigned long ulongval () { return (long) (sizeof (short int)); }
23805 #include <stdlib.h>
23810 FILE *f = fopen ("conftest.val", "w");
23813 if (((long) (sizeof (short int))) < 0)
23815 long i = longval ();
23816 if (i != ((long) (sizeof (short int))))
23818 fprintf (f, "%ld\n", i);
23822 unsigned long i = ulongval ();
23823 if (i != ((long) (sizeof (short int))))
23825 fprintf (f, "%lu\n", i);
23827 exit (ferror (f) || fclose (f) != 0);
23833 rm -f conftest$ac_exeext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835 (eval $ac_link) 2>&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; }; then
23844 ac_cv_sizeof_short_int=`cat conftest.val`
23846 echo "$as_me: program exited with status $ac_status" >&5
23847 echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23850 ( exit $ac_status )
23851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23852 See \`config.log' for more details." >&5
23853 echo "$as_me: error: cannot compute sizeof (short int), 77
23854 See \`config.log' for more details." >&2;}
23855 { (exit 1); exit 1; }; }
23857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23862 ac_cv_sizeof_short_int=0
23865 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23866 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23867 cat >>confdefs.h <<_ACEOF
23868 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23872 echo "$as_me:$LINENO: checking for int" >&5
23873 echo $ECHO_N "checking for int... $ECHO_C" >&6
23874 if test "${ac_cv_type_int+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 $ac_includes_default
23895 rm -f conftest.$ac_objext
23896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23897 (eval $ac_compile) 2>conftest.er1
23899 grep -v '^ *+' conftest.er1 >conftest.err
23901 cat conftest.err >&5
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } &&
23904 { ac_try='test -z "$ac_c_werror_flag"
23905 || test ! -s conftest.err'
23906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907 (eval $ac_try) 2>&5
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); }; } &&
23911 { ac_try='test -s conftest.$ac_objext'
23912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913 (eval $ac_try) 2>&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; }; then
23919 echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23926 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23927 echo "${ECHO_T}$ac_cv_type_int" >&6
23929 echo "$as_me:$LINENO: checking size of int" >&5
23930 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23931 if test "${ac_cv_sizeof_int+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 if test "$ac_cv_type_int" = yes; then
23935 # The cast to unsigned long works around a bug in the HP C Compiler
23936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23938 # This bug is HP SR number 8606223364.
23939 if test "$cross_compiling" = yes; then
23940 # Depending upon the size, compute the lo and hi bounds.
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23947 $ac_includes_default
23951 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23958 rm -f conftest.$ac_objext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23960 (eval $ac_compile) 2>conftest.er1
23962 grep -v '^ *+' conftest.er1 >conftest.err
23964 cat conftest.err >&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } &&
23967 { ac_try='test -z "$ac_c_werror_flag"
23968 || test ! -s conftest.err'
23969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970 (eval $ac_try) 2>&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }; } &&
23974 { ac_try='test -s conftest.$ac_objext'
23975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976 (eval $ac_try) 2>&5
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); }; }; then
23982 cat >conftest.$ac_ext <<_ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 $ac_includes_default
23992 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23999 rm -f conftest.$ac_objext
24000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24001 (eval $ac_compile) 2>conftest.er1
24003 grep -v '^ *+' conftest.er1 >conftest.err
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } &&
24008 { ac_try='test -z "$ac_c_werror_flag"
24009 || test ! -s conftest.err'
24010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011 (eval $ac_try) 2>&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; } &&
24015 { ac_try='test -s conftest.$ac_objext'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 ac_hi=$ac_mid; break
24023 echo "$as_me: failed program was:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24026 ac_lo=`expr $ac_mid + 1`
24027 if test $ac_lo -le $ac_mid; then
24031 ac_mid=`expr 2 '*' $ac_mid + 1`
24033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24036 echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24039 cat >conftest.$ac_ext <<_ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045 $ac_includes_default
24049 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24056 rm -f conftest.$ac_objext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24058 (eval $ac_compile) 2>conftest.er1
24060 grep -v '^ *+' conftest.er1 >conftest.err
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
24065 { ac_try='test -z "$ac_c_werror_flag"
24066 || test ! -s conftest.err'
24067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24068 (eval $ac_try) 2>&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); }; } &&
24072 { ac_try='test -s conftest.$ac_objext'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24080 cat >conftest.$ac_ext <<_ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24090 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24097 rm -f conftest.$ac_objext
24098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24099 (eval $ac_compile) 2>conftest.er1
24101 grep -v '^ *+' conftest.er1 >conftest.err
24103 cat conftest.err >&5
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); } &&
24106 { ac_try='test -z "$ac_c_werror_flag"
24107 || test ! -s conftest.err'
24108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109 (eval $ac_try) 2>&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); }; } &&
24113 { ac_try='test -s conftest.$ac_objext'
24114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24115 (eval $ac_try) 2>&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); }; }; then
24119 ac_lo=$ac_mid; break
24121 echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24124 ac_hi=`expr '(' $ac_mid ')' - 1`
24125 if test $ac_mid -le $ac_hi; then
24129 ac_mid=`expr 2 '*' $ac_mid`
24131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24134 echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24142 # Binary search between lo and hi bounds.
24143 while test "x$ac_lo" != "x$ac_hi"; do
24144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24145 cat >conftest.$ac_ext <<_ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h. */
24151 $ac_includes_default
24155 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24162 rm -f conftest.$ac_objext
24163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24164 (eval $ac_compile) 2>conftest.er1
24166 grep -v '^ *+' conftest.er1 >conftest.err
24168 cat conftest.err >&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } &&
24171 { ac_try='test -z "$ac_c_werror_flag"
24172 || test ! -s conftest.err'
24173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24174 (eval $ac_try) 2>&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); }; } &&
24178 { ac_try='test -s conftest.$ac_objext'
24179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180 (eval $ac_try) 2>&5
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24186 echo "$as_me: failed program was:" >&5
24187 sed 's/^/| /' conftest.$ac_ext >&5
24189 ac_lo=`expr '(' $ac_mid ')' + 1`
24191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24194 ?*) ac_cv_sizeof_int=$ac_lo;;
24195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24196 See \`config.log' for more details." >&5
24197 echo "$as_me: error: cannot compute sizeof (int), 77
24198 See \`config.log' for more details." >&2;}
24199 { (exit 1); exit 1; }; } ;;
24202 if test "$cross_compiling" = yes; then
24203 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24204 See \`config.log' for more details." >&5
24205 echo "$as_me: error: cannot run test program while cross compiling
24206 See \`config.log' for more details." >&2;}
24207 { (exit 1); exit 1; }; }
24209 cat >conftest.$ac_ext <<_ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215 $ac_includes_default
24216 long longval () { return (long) (sizeof (int)); }
24217 unsigned long ulongval () { return (long) (sizeof (int)); }
24219 #include <stdlib.h>
24224 FILE *f = fopen ("conftest.val", "w");
24227 if (((long) (sizeof (int))) < 0)
24229 long i = longval ();
24230 if (i != ((long) (sizeof (int))))
24232 fprintf (f, "%ld\n", i);
24236 unsigned long i = ulongval ();
24237 if (i != ((long) (sizeof (int))))
24239 fprintf (f, "%lu\n", i);
24241 exit (ferror (f) || fclose (f) != 0);
24247 rm -f conftest$ac_exeext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24249 (eval $ac_link) 2>&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258 ac_cv_sizeof_int=`cat conftest.val`
24260 echo "$as_me: program exited with status $ac_status" >&5
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ( exit $ac_status )
24265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24266 See \`config.log' for more details." >&5
24267 echo "$as_me: error: cannot compute sizeof (int), 77
24268 See \`config.log' for more details." >&2;}
24269 { (exit 1); exit 1; }; }
24271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24280 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24281 cat >>confdefs.h <<_ACEOF
24282 #define SIZEOF_INT $ac_cv_sizeof_int
24286 echo "$as_me:$LINENO: checking for long int" >&5
24287 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24288 if test "${ac_cv_type_long_int+set}" = set; then
24289 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 cat >conftest.$ac_ext <<_ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24297 $ac_includes_default
24301 if ((long int *) 0)
24303 if (sizeof (long int))
24309 rm -f conftest.$ac_objext
24310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24311 (eval $ac_compile) 2>conftest.er1
24313 grep -v '^ *+' conftest.er1 >conftest.err
24315 cat conftest.err >&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } &&
24318 { ac_try='test -z "$ac_c_werror_flag"
24319 || test ! -s conftest.err'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; } &&
24325 { ac_try='test -s conftest.$ac_objext'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 ac_cv_type_long_int=yes
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24336 ac_cv_type_long_int=no
24338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24340 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24341 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24343 echo "$as_me:$LINENO: checking size of long int" >&5
24344 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24345 if test "${ac_cv_sizeof_long_int+set}" = set; then
24346 echo $ECHO_N "(cached) $ECHO_C" >&6
24348 if test "$ac_cv_type_long_int" = yes; then
24349 # The cast to unsigned long works around a bug in the HP C Compiler
24350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24352 # This bug is HP SR number 8606223364.
24353 if test "$cross_compiling" = yes; then
24354 # Depending upon the size, compute the lo and hi bounds.
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 $ac_includes_default
24365 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374 (eval $ac_compile) 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -z "$ac_c_werror_flag"
24382 || test ! -s conftest.err'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest.$ac_objext'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24396 cat >conftest.$ac_ext <<_ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 $ac_includes_default
24406 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24413 rm -f conftest.$ac_objext
24414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24415 (eval $ac_compile) 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } &&
24422 { ac_try='test -z "$ac_c_werror_flag"
24423 || test ! -s conftest.err'
24424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425 (eval $ac_try) 2>&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; } &&
24429 { ac_try='test -s conftest.$ac_objext'
24430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431 (eval $ac_try) 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; }; then
24435 ac_hi=$ac_mid; break
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 ac_lo=`expr $ac_mid + 1`
24441 if test $ac_lo -le $ac_mid; then
24445 ac_mid=`expr 2 '*' $ac_mid + 1`
24447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24459 $ac_includes_default
24463 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24470 rm -f conftest.$ac_objext
24471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24472 (eval $ac_compile) 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } &&
24479 { ac_try='test -z "$ac_c_werror_flag"
24480 || test ! -s conftest.err'
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; } &&
24486 { ac_try='test -s conftest.$ac_objext'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; }; then
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24504 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24511 rm -f conftest.$ac_objext
24512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24513 (eval $ac_compile) 2>conftest.er1
24515 grep -v '^ *+' conftest.er1 >conftest.err
24517 cat conftest.err >&5
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); } &&
24520 { ac_try='test -z "$ac_c_werror_flag"
24521 || test ! -s conftest.err'
24522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523 (eval $ac_try) 2>&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; } &&
24527 { ac_try='test -s conftest.$ac_objext'
24528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529 (eval $ac_try) 2>&5
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; }; then
24533 ac_lo=$ac_mid; break
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ac_hi=`expr '(' $ac_mid ')' - 1`
24539 if test $ac_mid -le $ac_hi; then
24543 ac_mid=`expr 2 '*' $ac_mid`
24545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24556 # Binary search between lo and hi bounds.
24557 while test "x$ac_lo" != "x$ac_hi"; do
24558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24559 cat >conftest.$ac_ext <<_ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h. */
24565 $ac_includes_default
24569 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24576 rm -f conftest.$ac_objext
24577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24578 (eval $ac_compile) 2>conftest.er1
24580 grep -v '^ *+' conftest.er1 >conftest.err
24582 cat conftest.err >&5
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); } &&
24585 { ac_try='test -z "$ac_c_werror_flag"
24586 || test ! -s conftest.err'
24587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588 (eval $ac_try) 2>&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; } &&
24592 { ac_try='test -s conftest.$ac_objext'
24593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24594 (eval $ac_try) 2>&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); }; }; then
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ac_lo=`expr '(' $ac_mid ')' + 1`
24605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24608 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24609 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24610 See \`config.log' for more details." >&5
24611 echo "$as_me: error: cannot compute sizeof (long int), 77
24612 See \`config.log' for more details." >&2;}
24613 { (exit 1); exit 1; }; } ;;
24616 if test "$cross_compiling" = yes; then
24617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24618 See \`config.log' for more details." >&5
24619 echo "$as_me: error: cannot run test program while cross compiling
24620 See \`config.log' for more details." >&2;}
24621 { (exit 1); exit 1; }; }
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 $ac_includes_default
24630 long longval () { return (long) (sizeof (long int)); }
24631 unsigned long ulongval () { return (long) (sizeof (long int)); }
24633 #include <stdlib.h>
24638 FILE *f = fopen ("conftest.val", "w");
24641 if (((long) (sizeof (long int))) < 0)
24643 long i = longval ();
24644 if (i != ((long) (sizeof (long int))))
24646 fprintf (f, "%ld\n", i);
24650 unsigned long i = ulongval ();
24651 if (i != ((long) (sizeof (long int))))
24653 fprintf (f, "%lu\n", i);
24655 exit (ferror (f) || fclose (f) != 0);
24661 rm -f conftest$ac_exeext
24662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24663 (eval $ac_link) 2>&5
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
24672 ac_cv_sizeof_long_int=`cat conftest.val`
24674 echo "$as_me: program exited with status $ac_status" >&5
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ( exit $ac_status )
24679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24680 See \`config.log' for more details." >&5
24681 echo "$as_me: error: cannot compute sizeof (long int), 77
24682 See \`config.log' for more details." >&2;}
24683 { (exit 1); exit 1; }; }
24685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24690 ac_cv_sizeof_long_int=0
24693 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24694 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24695 cat >>confdefs.h <<_ACEOF
24696 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24700 echo "$as_me:$LINENO: checking for long long int" >&5
24701 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24702 if test "${ac_cv_type_long_long_int+set}" = set; then
24703 echo $ECHO_N "(cached) $ECHO_C" >&6
24705 cat >conftest.$ac_ext <<_ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24711 $ac_includes_default
24715 if ((long long int *) 0)
24717 if (sizeof (long long int))
24723 rm -f conftest.$ac_objext
24724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24725 (eval $ac_compile) 2>conftest.er1
24727 grep -v '^ *+' conftest.er1 >conftest.err
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } &&
24732 { ac_try='test -z "$ac_c_werror_flag"
24733 || test ! -s conftest.err'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest.$ac_objext'
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 ac_cv_type_long_long_int=yes
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ac_cv_type_long_long_int=no
24752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24754 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24755 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24757 echo "$as_me:$LINENO: checking size of long long int" >&5
24758 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24759 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24760 echo $ECHO_N "(cached) $ECHO_C" >&6
24762 if test "$ac_cv_type_long_long_int" = yes; then
24763 # The cast to unsigned long works around a bug in the HP C Compiler
24764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24766 # This bug is HP SR number 8606223364.
24767 if test "$cross_compiling" = yes; then
24768 # Depending upon the size, compute the lo and hi bounds.
24769 cat >conftest.$ac_ext <<_ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h. */
24775 $ac_includes_default
24779 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24786 rm -f conftest.$ac_objext
24787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24788 (eval $ac_compile) 2>conftest.er1
24790 grep -v '^ *+' conftest.er1 >conftest.err
24792 cat conftest.err >&5
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } &&
24795 { ac_try='test -z "$ac_c_werror_flag"
24796 || test ! -s conftest.err'
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; } &&
24802 { ac_try='test -s conftest.$ac_objext'
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; }; then
24810 cat >conftest.$ac_ext <<_ACEOF
24813 cat confdefs.h >>conftest.$ac_ext
24814 cat >>conftest.$ac_ext <<_ACEOF
24815 /* end confdefs.h. */
24816 $ac_includes_default
24820 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24827 rm -f conftest.$ac_objext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24829 (eval $ac_compile) 2>conftest.er1
24831 grep -v '^ *+' conftest.er1 >conftest.err
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } &&
24836 { ac_try='test -z "$ac_c_werror_flag"
24837 || test ! -s conftest.err'
24838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839 (eval $ac_try) 2>&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); }; } &&
24843 { ac_try='test -s conftest.$ac_objext'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; }; then
24849 ac_hi=$ac_mid; break
24851 echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24854 ac_lo=`expr $ac_mid + 1`
24855 if test $ac_lo -le $ac_mid; then
24859 ac_mid=`expr 2 '*' $ac_mid + 1`
24861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24873 $ac_includes_default
24877 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24884 rm -f conftest.$ac_objext
24885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24886 (eval $ac_compile) 2>conftest.er1
24888 grep -v '^ *+' conftest.er1 >conftest.err
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } &&
24893 { ac_try='test -z "$ac_c_werror_flag"
24894 || test ! -s conftest.err'
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; } &&
24900 { ac_try='test -s conftest.$ac_objext'
24901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902 (eval $ac_try) 2>&5
24904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905 (exit $ac_status); }; }; then
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 $ac_includes_default
24918 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24925 rm -f conftest.$ac_objext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24927 (eval $ac_compile) 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } &&
24934 { ac_try='test -z "$ac_c_werror_flag"
24935 || test ! -s conftest.err'
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest.$ac_objext'
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; }; then
24947 ac_lo=$ac_mid; break
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 ac_hi=`expr '(' $ac_mid ')' - 1`
24953 if test $ac_mid -le $ac_hi; then
24957 ac_mid=`expr 2 '*' $ac_mid`
24959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24970 # Binary search between lo and hi bounds.
24971 while test "x$ac_lo" != "x$ac_hi"; do
24972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24973 cat >conftest.$ac_ext <<_ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 $ac_includes_default
24983 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24990 rm -f conftest.$ac_objext
24991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24992 (eval $ac_compile) 2>conftest.er1
24994 grep -v '^ *+' conftest.er1 >conftest.err
24996 cat conftest.err >&5
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
24999 { ac_try='test -z "$ac_c_werror_flag"
25000 || test ! -s conftest.err'
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; } &&
25006 { ac_try='test -s conftest.$ac_objext'
25007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008 (eval $ac_try) 2>&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; }; then
25014 echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 ac_lo=`expr '(' $ac_mid ')' + 1`
25019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25022 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25023 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25024 See \`config.log' for more details." >&5
25025 echo "$as_me: error: cannot compute sizeof (long long int), 77
25026 See \`config.log' for more details." >&2;}
25027 { (exit 1); exit 1; }; } ;;
25030 if test "$cross_compiling" = yes; then
25031 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25032 See \`config.log' for more details." >&5
25033 echo "$as_me: error: cannot run test program while cross compiling
25034 See \`config.log' for more details." >&2;}
25035 { (exit 1); exit 1; }; }
25037 cat >conftest.$ac_ext <<_ACEOF
25040 cat confdefs.h >>conftest.$ac_ext
25041 cat >>conftest.$ac_ext <<_ACEOF
25042 /* end confdefs.h. */
25043 $ac_includes_default
25044 long longval () { return (long) (sizeof (long long int)); }
25045 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25047 #include <stdlib.h>
25052 FILE *f = fopen ("conftest.val", "w");
25055 if (((long) (sizeof (long long int))) < 0)
25057 long i = longval ();
25058 if (i != ((long) (sizeof (long long int))))
25060 fprintf (f, "%ld\n", i);
25064 unsigned long i = ulongval ();
25065 if (i != ((long) (sizeof (long long int))))
25067 fprintf (f, "%lu\n", i);
25069 exit (ferror (f) || fclose (f) != 0);
25075 rm -f conftest$ac_exeext
25076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25077 (eval $ac_link) 2>&5
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082 (eval $ac_try) 2>&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); }; }; then
25086 ac_cv_sizeof_long_long_int=`cat conftest.val`
25088 echo "$as_me: program exited with status $ac_status" >&5
25089 echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.$ac_ext >&5
25092 ( exit $ac_status )
25093 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25094 See \`config.log' for more details." >&5
25095 echo "$as_me: error: cannot compute sizeof (long long int), 77
25096 See \`config.log' for more details." >&2;}
25097 { (exit 1); exit 1; }; }
25099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25104 ac_cv_sizeof_long_long_int=0
25107 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25108 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25109 cat >>confdefs.h <<_ACEOF
25110 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25114 echo "$as_me:$LINENO: checking for int *" >&5
25115 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25116 if test "${ac_cv_type_int_p+set}" = set; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25119 cat >conftest.$ac_ext <<_ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25125 $ac_includes_default
25131 if (sizeof (int *))
25137 rm -f conftest.$ac_objext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25139 (eval $ac_compile) 2>conftest.er1
25141 grep -v '^ *+' conftest.er1 >conftest.err
25143 cat conftest.err >&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } &&
25146 { ac_try='test -z "$ac_c_werror_flag"
25147 || test ! -s conftest.err'
25148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149 (eval $ac_try) 2>&5
25151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); }; } &&
25153 { ac_try='test -s conftest.$ac_objext'
25154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155 (eval $ac_try) 2>&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); }; }; then
25159 ac_cv_type_int_p=yes
25161 echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.$ac_ext >&5
25164 ac_cv_type_int_p=no
25166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25168 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25169 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25171 echo "$as_me:$LINENO: checking size of int *" >&5
25172 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25173 if test "${ac_cv_sizeof_int_p+set}" = set; then
25174 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 if test "$ac_cv_type_int_p" = yes; then
25177 # The cast to unsigned long works around a bug in the HP C Compiler
25178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25180 # This bug is HP SR number 8606223364.
25181 if test "$cross_compiling" = yes; then
25182 # Depending upon the size, compute the lo and hi bounds.
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 $ac_includes_default
25193 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25200 rm -f conftest.$ac_objext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25202 (eval $ac_compile) 2>conftest.er1
25204 grep -v '^ *+' conftest.er1 >conftest.err
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } &&
25209 { ac_try='test -z "$ac_c_werror_flag"
25210 || test ! -s conftest.err'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; } &&
25216 { ac_try='test -s conftest.$ac_objext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25224 cat >conftest.$ac_ext <<_ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h. */
25230 $ac_includes_default
25234 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25241 rm -f conftest.$ac_objext
25242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25243 (eval $ac_compile) 2>conftest.er1
25245 grep -v '^ *+' conftest.er1 >conftest.err
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } &&
25250 { ac_try='test -z "$ac_c_werror_flag"
25251 || test ! -s conftest.err'
25252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25253 (eval $ac_try) 2>&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }; } &&
25257 { ac_try='test -s conftest.$ac_objext'
25258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259 (eval $ac_try) 2>&5
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); }; }; then
25263 ac_hi=$ac_mid; break
25265 echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ac_lo=`expr $ac_mid + 1`
25269 if test $ac_lo -le $ac_mid; then
25273 ac_mid=`expr 2 '*' $ac_mid + 1`
25275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25278 echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25281 cat >conftest.$ac_ext <<_ACEOF
25284 cat confdefs.h >>conftest.$ac_ext
25285 cat >>conftest.$ac_ext <<_ACEOF
25286 /* end confdefs.h. */
25287 $ac_includes_default
25291 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25298 rm -f conftest.$ac_objext
25299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25300 (eval $ac_compile) 2>conftest.er1
25302 grep -v '^ *+' conftest.er1 >conftest.err
25304 cat conftest.err >&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } &&
25307 { ac_try='test -z "$ac_c_werror_flag"
25308 || test ! -s conftest.err'
25309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310 (eval $ac_try) 2>&5
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; } &&
25314 { ac_try='test -s conftest.$ac_objext'
25315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316 (eval $ac_try) 2>&5
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); }; }; then
25322 cat >conftest.$ac_ext <<_ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h. */
25328 $ac_includes_default
25332 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25339 rm -f conftest.$ac_objext
25340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25341 (eval $ac_compile) 2>conftest.er1
25343 grep -v '^ *+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } &&
25348 { ac_try='test -z "$ac_c_werror_flag"
25349 || test ! -s conftest.err'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; } &&
25355 { ac_try='test -s conftest.$ac_objext'
25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; }; then
25361 ac_lo=$ac_mid; break
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_hi=`expr '(' $ac_mid ')' - 1`
25367 if test $ac_mid -le $ac_hi; then
25371 ac_mid=`expr 2 '*' $ac_mid`
25373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25376 echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25384 # Binary search between lo and hi bounds.
25385 while test "x$ac_lo" != "x$ac_hi"; do
25386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25387 cat >conftest.$ac_ext <<_ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h. */
25393 $ac_includes_default
25397 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25404 rm -f conftest.$ac_objext
25405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25406 (eval $ac_compile) 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } &&
25413 { ac_try='test -z "$ac_c_werror_flag"
25414 || test ! -s conftest.err'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; } &&
25420 { ac_try='test -s conftest.$ac_objext'
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; }; then
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25431 ac_lo=`expr '(' $ac_mid ')' + 1`
25433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25437 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25438 See \`config.log' for more details." >&5
25439 echo "$as_me: error: cannot compute sizeof (int *), 77
25440 See \`config.log' for more details." >&2;}
25441 { (exit 1); exit 1; }; } ;;
25444 if test "$cross_compiling" = yes; then
25445 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25446 See \`config.log' for more details." >&5
25447 echo "$as_me: error: cannot run test program while cross compiling
25448 See \`config.log' for more details." >&2;}
25449 { (exit 1); exit 1; }; }
25451 cat >conftest.$ac_ext <<_ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25457 $ac_includes_default
25458 long longval () { return (long) (sizeof (int *)); }
25459 unsigned long ulongval () { return (long) (sizeof (int *)); }
25461 #include <stdlib.h>
25466 FILE *f = fopen ("conftest.val", "w");
25469 if (((long) (sizeof (int *))) < 0)
25471 long i = longval ();
25472 if (i != ((long) (sizeof (int *))))
25474 fprintf (f, "%ld\n", i);
25478 unsigned long i = ulongval ();
25479 if (i != ((long) (sizeof (int *))))
25481 fprintf (f, "%lu\n", i);
25483 exit (ferror (f) || fclose (f) != 0);
25489 rm -f conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491 (eval $ac_link) 2>&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500 ac_cv_sizeof_int_p=`cat conftest.val`
25502 echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25506 ( exit $ac_status )
25507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25508 See \`config.log' for more details." >&5
25509 echo "$as_me: error: cannot compute sizeof (int *), 77
25510 See \`config.log' for more details." >&2;}
25511 { (exit 1); exit 1; }; }
25513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25518 ac_cv_sizeof_int_p=0
25521 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25522 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25523 cat >>confdefs.h <<_ACEOF
25524 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25529 # Check for sys/types.h types
25530 echo "$as_me:$LINENO: checking for u_int type" >&5
25531 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25532 if test "${ac_cv_have_u_int+set}" = set; then
25533 echo $ECHO_N "(cached) $ECHO_C" >&6
25536 cat >conftest.$ac_ext <<_ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h. */
25542 #include <sys/types.h>
25551 rm -f conftest.$ac_objext
25552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25553 (eval $ac_compile) 2>conftest.er1
25555 grep -v '^ *+' conftest.er1 >conftest.err
25557 cat conftest.err >&5
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } &&
25560 { ac_try='test -z "$ac_c_werror_flag"
25561 || test ! -s conftest.err'
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest.$ac_objext'
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25573 ac_cv_have_u_int="yes"
25575 echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25578 ac_cv_have_u_int="no"
25581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25584 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25585 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25586 if test "x$ac_cv_have_u_int" = "xyes" ; then
25587 cat >>confdefs.h <<\_ACEOF
25588 #define HAVE_U_INT 1
25594 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25595 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25596 if test "${ac_cv_have_intmax_t+set}" = set; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25600 cat >conftest.$ac_ext <<_ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606 #include <sys/types.h>
25615 rm -f conftest.$ac_objext
25616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25617 (eval $ac_compile) 2>conftest.er1
25619 grep -v '^ *+' conftest.er1 >conftest.err
25621 cat conftest.err >&5
25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623 (exit $ac_status); } &&
25624 { ac_try='test -z "$ac_c_werror_flag"
25625 || test ! -s conftest.err'
25626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25627 (eval $ac_try) 2>&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); }; } &&
25631 { ac_try='test -s conftest.$ac_objext'
25632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633 (eval $ac_try) 2>&5
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }; }; then
25637 ac_cv_have_intmax_t="yes"
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
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 <stdint.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_intmax_t="yes"
25682 echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25685 ac_cv_have_intmax_t="no"
25688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25696 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25697 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25698 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25699 cat >>confdefs.h <<\_ACEOF
25700 #define HAVE_INTMAX_T 1
25707 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25708 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25709 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25710 echo $ECHO_N "(cached) $ECHO_C" >&6
25713 cat >conftest.$ac_ext <<_ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h. */
25719 #include <sys/types.h>
25723 u_intmax_t a; a = 1;
25728 rm -f conftest.$ac_objext
25729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25730 (eval $ac_compile) 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } &&
25737 { ac_try='test -z "$ac_c_werror_flag"
25738 || test ! -s conftest.err'
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); }; } &&
25744 { ac_try='test -s conftest.$ac_objext'
25745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; }; then
25750 ac_cv_have_u_intmax_t="yes"
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25756 cat >conftest.$ac_ext <<_ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25762 #include <stdint.h>
25766 u_intmax_t a; a = 1;
25771 rm -f conftest.$ac_objext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25773 (eval $ac_compile) 2>conftest.er1
25775 grep -v '^ *+' conftest.er1 >conftest.err
25777 cat conftest.err >&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } &&
25780 { ac_try='test -z "$ac_c_werror_flag"
25781 || test ! -s conftest.err'
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); }; } &&
25787 { ac_try='test -s conftest.$ac_objext'
25788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789 (eval $ac_try) 2>&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); }; }; then
25793 ac_cv_have_u_intmax_t="yes"
25795 echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25798 ac_cv_have_u_intmax_t="no"
25801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25808 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25809 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25810 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25811 cat >>confdefs.h <<\_ACEOF
25812 #define HAVE_U_INTMAX_T 1
25819 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25820 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25821 if test "${ac_cv_have_intxx_t+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25825 cat >conftest.$ac_ext <<_ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25831 #include <sys/types.h>
25835 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25840 rm -f conftest.$ac_objext
25841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25842 (eval $ac_compile) 2>conftest.er1
25844 grep -v '^ *+' conftest.er1 >conftest.err
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } &&
25849 { ac_try='test -z "$ac_c_werror_flag"
25850 || test ! -s conftest.err'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; } &&
25856 { ac_try='test -s conftest.$ac_objext'
25857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 ac_cv_have_intxx_t="yes"
25864 echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25867 ac_cv_have_intxx_t="no"
25870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25873 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25874 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25875 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25876 cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_INTXX_T 1
25883 echo "$as_me:$LINENO: checking for int64_t type" >&5
25884 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25885 if test "${ac_cv_have_int64_t+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 #include <sys/types.h>
25904 rm -f conftest.$ac_objext
25905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25906 (eval $ac_compile) 2>conftest.er1
25908 grep -v '^ *+' conftest.er1 >conftest.err
25910 cat conftest.err >&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } &&
25913 { ac_try='test -z "$ac_c_werror_flag"
25914 || test ! -s conftest.err'
25915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916 (eval $ac_try) 2>&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); }; } &&
25920 { ac_try='test -s conftest.$ac_objext'
25921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922 (eval $ac_try) 2>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }; }; then
25926 ac_cv_have_int64_t="yes"
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 ac_cv_have_int64_t="no"
25934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25938 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25939 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25940 cat >>confdefs.h <<\_ACEOF
25941 #define HAVE_INT64_T 1
25947 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25948 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25949 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25950 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 cat >conftest.$ac_ext <<_ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 #include <sys/types.h>
25963 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25968 rm -f conftest.$ac_objext
25969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25970 (eval $ac_compile) 2>conftest.er1
25972 grep -v '^ *+' conftest.er1 >conftest.err
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } &&
25977 { ac_try='test -z "$ac_c_werror_flag"
25978 || test ! -s conftest.err'
25979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25980 (eval $ac_try) 2>&5
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); }; } &&
25984 { ac_try='test -s conftest.$ac_objext'
25985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986 (eval $ac_try) 2>&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; }; then
25990 ac_cv_have_u_intxx_t="yes"
25992 echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25995 ac_cv_have_u_intxx_t="no"
25998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26001 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26002 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26003 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26004 cat >>confdefs.h <<\_ACEOF
26005 #define HAVE_U_INTXX_T 1
26011 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26012 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26013 if test "${ac_cv_have_u_int64_t+set}" = set; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 #include <sys/types.h>
26027 u_int64_t a; a = 1;
26032 rm -f conftest.$ac_objext
26033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26034 (eval $ac_compile) 2>conftest.er1
26036 grep -v '^ *+' conftest.er1 >conftest.err
26038 cat conftest.err >&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } &&
26041 { ac_try='test -z "$ac_c_werror_flag"
26042 || test ! -s conftest.err'
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; } &&
26048 { ac_try='test -s conftest.$ac_objext'
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26054 ac_cv_have_u_int64_t="yes"
26056 echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26059 ac_cv_have_u_int64_t="no"
26062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26065 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26066 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26067 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26068 cat >>confdefs.h <<\_ACEOF
26069 #define HAVE_U_INT64_T 1
26075 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26076 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26078 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26079 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26080 cat >conftest.$ac_ext <<_ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h. */
26086 #include <sys/bitypes.h>
26090 int8_t a; int16_t b; int32_t c;
26091 u_int8_t e; u_int16_t f; u_int32_t g;
26092 a = b = c = e = f = g = 1;
26097 rm -f conftest.$ac_objext
26098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26099 (eval $ac_compile) 2>conftest.er1
26101 grep -v '^ *+' conftest.er1 >conftest.err
26103 cat conftest.err >&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
26106 { ac_try='test -z "$ac_c_werror_flag"
26107 || test ! -s conftest.err'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; } &&
26113 { ac_try='test -s conftest.$ac_objext'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 cat >>confdefs.h <<\_ACEOF
26120 #define HAVE_U_INTXX_T 1
26123 cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_INTXX_T 1
26127 cat >>confdefs.h <<\_ACEOF
26128 #define HAVE_SYS_BITYPES_H 1
26131 echo "$as_me:$LINENO: result: yes" >&5
26132 echo "${ECHO_T}yes" >&6
26134 echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26137 echo "$as_me:$LINENO: result: no" >&5
26138 echo "${ECHO_T}no" >&6
26141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26144 if test -z "$have_u_intxx_t" ; then
26145 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26146 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26147 if test "${ac_cv_have_uintxx_t+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26151 cat >conftest.$ac_ext <<_ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h. */
26157 #include <sys/types.h>
26161 uint8_t a; uint16_t b;
26162 uint32_t c; a = b = c = 1;
26167 rm -f conftest.$ac_objext
26168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26169 (eval $ac_compile) 2>conftest.er1
26171 grep -v '^ *+' conftest.er1 >conftest.err
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } &&
26176 { ac_try='test -z "$ac_c_werror_flag"
26177 || test ! -s conftest.err'
26178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); }; } &&
26183 { ac_try='test -s conftest.$ac_objext'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189 ac_cv_have_uintxx_t="yes"
26191 echo "$as_me: failed program was:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ac_cv_have_uintxx_t="no"
26197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26200 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26201 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26202 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26203 cat >>confdefs.h <<\_ACEOF
26204 #define HAVE_UINTXX_T 1
26210 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26211 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26213 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26214 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26215 cat >conftest.$ac_ext <<_ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26221 #include <sys/bitypes.h>
26225 int64_t a; u_int64_t b;
26231 rm -f conftest.$ac_objext
26232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26233 (eval $ac_compile) 2>conftest.er1
26235 grep -v '^ *+' conftest.er1 >conftest.err
26237 cat conftest.err >&5
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } &&
26240 { ac_try='test -z "$ac_c_werror_flag"
26241 || test ! -s conftest.err'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; } &&
26247 { ac_try='test -s conftest.$ac_objext'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; }; then
26253 cat >>confdefs.h <<\_ACEOF
26254 #define HAVE_U_INT64_T 1
26257 cat >>confdefs.h <<\_ACEOF
26258 #define HAVE_INT64_T 1
26261 echo "$as_me:$LINENO: result: yes" >&5
26262 echo "${ECHO_T}yes" >&6
26264 echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26267 echo "$as_me:$LINENO: result: no" >&5
26268 echo "${ECHO_T}no" >&6
26271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26274 if (test -z "$have_uintxx_t" && \
26275 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26277 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26278 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26285 #include <sys/bitypes.h>
26289 uint8_t a; uint16_t b;
26290 uint32_t c; a = b = c = 1;
26295 rm -f conftest.$ac_objext
26296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26297 (eval $ac_compile) 2>conftest.er1
26299 grep -v '^ *+' conftest.er1 >conftest.err
26301 cat conftest.err >&5
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } &&
26304 { ac_try='test -z "$ac_c_werror_flag"
26305 || test ! -s conftest.err'
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; } &&
26311 { ac_try='test -s conftest.$ac_objext'
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; }; then
26317 cat >>confdefs.h <<\_ACEOF
26318 #define HAVE_UINTXX_T 1
26321 echo "$as_me:$LINENO: result: yes" >&5
26322 echo "${ECHO_T}yes" >&6
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 echo "$as_me:$LINENO: result: no" >&5
26328 echo "${ECHO_T}no" >&6
26331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26368 echo "$as_me:$LINENO: checking for $ac_func" >&5
26369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26370 if eval "test \"\${$as_ac_var+set}\" = set"; then
26371 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26381 #define $ac_func innocuous_$ac_func
26383 /* System header to define __stub macros and hopefully few prototypes,
26384 which can conflict with char $ac_func (); below.
26385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26386 <limits.h> exists even on freestanding compilers. */
26389 # include <limits.h>
26391 # include <assert.h>
26396 /* Override any gcc2 internal prototype to avoid an error. */
26401 /* We use char because int might match the return type of a gcc2
26402 builtin and then its argument prototype would still apply. */
26404 /* The GNU C library defines this for functions which it implements
26405 to always fail with ENOSYS. Some functions are actually named
26406 something starting with __ and the normal name is an alias. */
26407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26410 char (*f) () = $ac_func;
26419 return f != $ac_func;
26424 rm -f conftest.$ac_objext conftest$ac_exeext
26425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26426 (eval $ac_link) 2>conftest.er1
26428 grep -v '^ *+' conftest.er1 >conftest.err
26430 cat conftest.err >&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } &&
26433 { ac_try='test -z "$ac_c_werror_flag"
26434 || test ! -s conftest.err'
26435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436 (eval $ac_try) 2>&5
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); }; } &&
26440 { ac_try='test -s conftest$ac_exeext'
26441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442 (eval $ac_try) 2>&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); }; }; then
26446 eval "$as_ac_var=yes"
26448 echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26451 eval "$as_ac_var=no"
26453 rm -f conftest.err conftest.$ac_objext \
26454 conftest$ac_exeext conftest.$ac_ext
26456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26458 if test `eval echo '${'$as_ac_var'}'` = yes; then
26459 cat >>confdefs.h <<_ACEOF
26460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26464 echo 'configure: cannot find needed function.'; exit 1
26471 for ac_func in fchdir
26473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26474 echo "$as_me:$LINENO: checking for $ac_func" >&5
26475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26476 if eval "test \"\${$as_ac_var+set}\" = set"; then
26477 echo $ECHO_N "(cached) $ECHO_C" >&6
26479 cat >conftest.$ac_ext <<_ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h. */
26485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26487 #define $ac_func innocuous_$ac_func
26489 /* System header to define __stub macros and hopefully few prototypes,
26490 which can conflict with char $ac_func (); below.
26491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26492 <limits.h> exists even on freestanding compilers. */
26495 # include <limits.h>
26497 # include <assert.h>
26502 /* Override any gcc2 internal prototype to avoid an error. */
26507 /* We use char because int might match the return type of a gcc2
26508 builtin and then its argument prototype would still apply. */
26510 /* The GNU C library defines this for functions which it implements
26511 to always fail with ENOSYS. Some functions are actually named
26512 something starting with __ and the normal name is an alias. */
26513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26516 char (*f) () = $ac_func;
26525 return f != $ac_func;
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26532 (eval $ac_link) 2>conftest.er1
26534 grep -v '^ *+' conftest.er1 >conftest.err
26536 cat conftest.err >&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } &&
26539 { ac_try='test -z "$ac_c_werror_flag"
26540 || test ! -s conftest.err'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; } &&
26546 { ac_try='test -s conftest$ac_exeext'
26547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548 (eval $ac_try) 2>&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; }; then
26552 eval "$as_ac_var=yes"
26554 echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26557 eval "$as_ac_var=no"
26559 rm -f conftest.err conftest.$ac_objext \
26560 conftest$ac_exeext conftest.$ac_ext
26562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26564 if test `eval echo '${'$as_ac_var'}'` = yes; then
26565 cat >>confdefs.h <<_ACEOF
26566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26568 cat >>confdefs.h <<\_ACEOF
26569 #define HAVE_FCHDIR 1
26576 for ac_func in strtoll
26578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26579 echo "$as_me:$LINENO: checking for $ac_func" >&5
26580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26581 if eval "test \"\${$as_ac_var+set}\" = set"; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 cat >conftest.$ac_ext <<_ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h. */
26590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26592 #define $ac_func innocuous_$ac_func
26594 /* System header to define __stub macros and hopefully few prototypes,
26595 which can conflict with char $ac_func (); below.
26596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26597 <limits.h> exists even on freestanding compilers. */
26600 # include <limits.h>
26602 # include <assert.h>
26607 /* Override any gcc2 internal prototype to avoid an error. */
26612 /* We use char because int might match the return type of a gcc2
26613 builtin and then its argument prototype would still apply. */
26615 /* The GNU C library defines this for functions which it implements
26616 to always fail with ENOSYS. Some functions are actually named
26617 something starting with __ and the normal name is an alias. */
26618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26621 char (*f) () = $ac_func;
26630 return f != $ac_func;
26635 rm -f conftest.$ac_objext conftest$ac_exeext
26636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26637 (eval $ac_link) 2>conftest.er1
26639 grep -v '^ *+' conftest.er1 >conftest.err
26641 cat conftest.err >&5
26642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643 (exit $ac_status); } &&
26644 { ac_try='test -z "$ac_c_werror_flag"
26645 || test ! -s conftest.err'
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; } &&
26651 { ac_try='test -s conftest$ac_exeext'
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; }; then
26657 eval "$as_ac_var=yes"
26659 echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26662 eval "$as_ac_var=no"
26664 rm -f conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
26667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26669 if test `eval echo '${'$as_ac_var'}'` = yes; then
26670 cat >>confdefs.h <<_ACEOF
26671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26673 cat >>confdefs.h <<\_ACEOF
26674 #define HAVE_STRTOLL 1
26681 for ac_func in posix_fadvise
26683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26684 echo "$as_me:$LINENO: checking for $ac_func" >&5
26685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26686 if eval "test \"\${$as_ac_var+set}\" = set"; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26689 cat >conftest.$ac_ext <<_ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h. */
26695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26697 #define $ac_func innocuous_$ac_func
26699 /* System header to define __stub macros and hopefully few prototypes,
26700 which can conflict with char $ac_func (); below.
26701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26702 <limits.h> exists even on freestanding compilers. */
26705 # include <limits.h>
26707 # include <assert.h>
26712 /* Override any gcc2 internal prototype to avoid an error. */
26717 /* We use char because int might match the return type of a gcc2
26718 builtin and then its argument prototype would still apply. */
26720 /* The GNU C library defines this for functions which it implements
26721 to always fail with ENOSYS. Some functions are actually named
26722 something starting with __ and the normal name is an alias. */
26723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26726 char (*f) () = $ac_func;
26735 return f != $ac_func;
26740 rm -f conftest.$ac_objext conftest$ac_exeext
26741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26742 (eval $ac_link) 2>conftest.er1
26744 grep -v '^ *+' conftest.er1 >conftest.err
26746 cat conftest.err >&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); } &&
26749 { ac_try='test -z "$ac_c_werror_flag"
26750 || test ! -s conftest.err'
26751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752 (eval $ac_try) 2>&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); }; } &&
26756 { ac_try='test -s conftest$ac_exeext'
26757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758 (eval $ac_try) 2>&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; }; then
26762 eval "$as_ac_var=yes"
26764 echo "$as_me: failed program was:" >&5
26765 sed 's/^/| /' conftest.$ac_ext >&5
26767 eval "$as_ac_var=no"
26769 rm -f conftest.err conftest.$ac_objext \
26770 conftest$ac_exeext conftest.$ac_ext
26772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26774 if test `eval echo '${'$as_ac_var'}'` = yes; then
26775 cat >>confdefs.h <<_ACEOF
26776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26783 for ac_func in fdatasync
26785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26786 echo "$as_me:$LINENO: checking for $ac_func" >&5
26787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_var+set}\" = set"; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 cat >conftest.$ac_ext <<_ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26799 #define $ac_func innocuous_$ac_func
26801 /* System header to define __stub macros and hopefully few prototypes,
26802 which can conflict with char $ac_func (); below.
26803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26804 <limits.h> exists even on freestanding compilers. */
26807 # include <limits.h>
26809 # include <assert.h>
26814 /* Override any gcc2 internal prototype to avoid an error. */
26819 /* We use char because int might match the return type of a gcc2
26820 builtin and then its argument prototype would still apply. */
26822 /* The GNU C library defines this for functions which it implements
26823 to always fail with ENOSYS. Some functions are actually named
26824 something starting with __ and the normal name is an alias. */
26825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26828 char (*f) () = $ac_func;
26837 return f != $ac_func;
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26844 (eval $ac_link) 2>conftest.er1
26846 grep -v '^ *+' conftest.er1 >conftest.err
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } &&
26851 { ac_try='test -z "$ac_c_werror_flag"
26852 || test ! -s conftest.err'
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; } &&
26858 { ac_try='test -s conftest$ac_exeext'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; }; then
26864 eval "$as_ac_var=yes"
26866 echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26869 eval "$as_ac_var=no"
26871 rm -f conftest.err conftest.$ac_objext \
26872 conftest$ac_exeext conftest.$ac_ext
26874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26876 if test `eval echo '${'$as_ac_var'}'` = yes; then
26877 cat >>confdefs.h <<_ACEOF
26878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26886 for ac_func in chflags
26888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26889 echo "$as_me:$LINENO: checking for $ac_func" >&5
26890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26891 if eval "test \"\${$as_ac_var+set}\" = set"; then
26892 echo $ECHO_N "(cached) $ECHO_C" >&6
26894 cat >conftest.$ac_ext <<_ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26902 #define $ac_func innocuous_$ac_func
26904 /* System header to define __stub macros and hopefully few prototypes,
26905 which can conflict with char $ac_func (); below.
26906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26907 <limits.h> exists even on freestanding compilers. */
26910 # include <limits.h>
26912 # include <assert.h>
26917 /* Override any gcc2 internal prototype to avoid an error. */
26922 /* We use char because int might match the return type of a gcc2
26923 builtin and then its argument prototype would still apply. */
26925 /* The GNU C library defines this for functions which it implements
26926 to always fail with ENOSYS. Some functions are actually named
26927 something starting with __ and the normal name is an alias. */
26928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26931 char (*f) () = $ac_func;
26940 return f != $ac_func;
26945 rm -f conftest.$ac_objext conftest$ac_exeext
26946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26947 (eval $ac_link) 2>conftest.er1
26949 grep -v '^ *+' conftest.er1 >conftest.err
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
26954 { ac_try='test -z "$ac_c_werror_flag"
26955 || test ! -s conftest.err'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; } &&
26961 { ac_try='test -s conftest$ac_exeext'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; }; then
26967 eval "$as_ac_var=yes"
26969 echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26972 eval "$as_ac_var=no"
26974 rm -f conftest.err conftest.$ac_objext \
26975 conftest$ac_exeext conftest.$ac_ext
26977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26979 if test `eval echo '${'$as_ac_var'}'` = yes; then
26980 cat >>confdefs.h <<_ACEOF
26981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26992 for ac_func in snprintf vsnprintf gethostid fseeko
26994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26995 echo "$as_me:$LINENO: checking for $ac_func" >&5
26996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26997 if eval "test \"\${$as_ac_var+set}\" = set"; then
26998 echo $ECHO_N "(cached) $ECHO_C" >&6
27000 cat >conftest.$ac_ext <<_ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h. */
27006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27008 #define $ac_func innocuous_$ac_func
27010 /* System header to define __stub macros and hopefully few prototypes,
27011 which can conflict with char $ac_func (); below.
27012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27013 <limits.h> exists even on freestanding compilers. */
27016 # include <limits.h>
27018 # include <assert.h>
27023 /* Override any gcc2 internal prototype to avoid an error. */
27028 /* We use char because int might match the return type of a gcc2
27029 builtin and then its argument prototype would still apply. */
27031 /* The GNU C library defines this for functions which it implements
27032 to always fail with ENOSYS. Some functions are actually named
27033 something starting with __ and the normal name is an alias. */
27034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27037 char (*f) () = $ac_func;
27046 return f != $ac_func;
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27053 (eval $ac_link) 2>conftest.er1
27055 grep -v '^ *+' conftest.er1 >conftest.err
27057 cat conftest.err >&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } &&
27060 { ac_try='test -z "$ac_c_werror_flag"
27061 || test ! -s conftest.err'
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; } &&
27067 { ac_try='test -s conftest$ac_exeext'
27068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; }; then
27073 eval "$as_ac_var=yes"
27075 echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27078 eval "$as_ac_var=no"
27080 rm -f conftest.err conftest.$ac_objext \
27081 conftest$ac_exeext conftest.$ac_ext
27083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27085 if test `eval echo '${'$as_ac_var'}'` = yes; then
27086 cat >>confdefs.h <<_ACEOF
27087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27094 echo "$as_me:$LINENO: checking for va_copy" >&5
27095 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27096 if test "${ba_cv_va_copy+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27099 cat >conftest.$ac_ext <<_ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h. */
27106 #include <stdarg.h>
27107 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27108 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27113 call_use_va_copy(1,2,3)
27118 rm -f conftest.$ac_objext conftest$ac_exeext
27119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27120 (eval $ac_link) 2>conftest.er1
27122 grep -v '^ *+' conftest.er1 >conftest.err
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } &&
27127 { ac_try='test -z "$ac_c_werror_flag"
27128 || test ! -s conftest.err'
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; } &&
27134 { ac_try='test -s conftest$ac_exeext'
27135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136 (eval $ac_try) 2>&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; }; then
27142 echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27147 rm -f conftest.err conftest.$ac_objext \
27148 conftest$ac_exeext conftest.$ac_ext
27150 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27151 echo "${ECHO_T}$ba_cv_va_copy" >&6
27152 test $ba_cv_va_copy = yes &&
27153 cat >>confdefs.h <<\_ACEOF
27154 #define HAVE_VA_COPY 1
27163 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27166 echo "$as_me:$LINENO: checking for $ac_func" >&5
27167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27168 if eval "test \"\${$as_ac_var+set}\" = set"; then
27169 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27179 #define $ac_func innocuous_$ac_func
27181 /* System header to define __stub macros and hopefully few prototypes,
27182 which can conflict with char $ac_func (); below.
27183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27184 <limits.h> exists even on freestanding compilers. */
27187 # include <limits.h>
27189 # include <assert.h>
27194 /* Override any gcc2 internal prototype to avoid an error. */
27199 /* We use char because int might match the return type of a gcc2
27200 builtin and then its argument prototype would still apply. */
27202 /* The GNU C library defines this for functions which it implements
27203 to always fail with ENOSYS. Some functions are actually named
27204 something starting with __ and the normal name is an alias. */
27205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27208 char (*f) () = $ac_func;
27217 return f != $ac_func;
27222 rm -f conftest.$ac_objext conftest$ac_exeext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27224 (eval $ac_link) 2>conftest.er1
27226 grep -v '^ *+' conftest.er1 >conftest.err
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
27231 { ac_try='test -z "$ac_c_werror_flag"
27232 || test ! -s conftest.err'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest$ac_exeext'
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27244 eval "$as_ac_var=yes"
27246 echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249 eval "$as_ac_var=no"
27251 rm -f conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
27254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27256 if test `eval echo '${'$as_ac_var'}'` = yes; then
27257 cat >>confdefs.h <<_ACEOF
27258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27265 # If resolver functions are not in libc check for -lnsl or -lresolv.
27266 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27267 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27268 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27269 echo $ECHO_N "(cached) $ECHO_C" >&6
27271 cat >conftest.$ac_ext <<_ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h. */
27277 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27279 #define gethostbyname_r innocuous_gethostbyname_r
27281 /* System header to define __stub macros and hopefully few prototypes,
27282 which can conflict with char gethostbyname_r (); below.
27283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27284 <limits.h> exists even on freestanding compilers. */
27287 # include <limits.h>
27289 # include <assert.h>
27292 #undef gethostbyname_r
27294 /* Override any gcc2 internal prototype to avoid an error. */
27299 /* We use char because int might match the return type of a gcc2
27300 builtin and then its argument prototype would still apply. */
27301 char gethostbyname_r ();
27302 /* The GNU C library defines this for functions which it implements
27303 to always fail with ENOSYS. Some functions are actually named
27304 something starting with __ and the normal name is an alias. */
27305 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27308 char (*f) () = gethostbyname_r;
27317 return f != gethostbyname_r;
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27324 (eval $ac_link) 2>conftest.er1
27326 grep -v '^ *+' conftest.er1 >conftest.err
27328 cat conftest.err >&5
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); } &&
27331 { ac_try='test -z "$ac_c_werror_flag"
27332 || test ! -s conftest.err'
27333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334 (eval $ac_try) 2>&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; } &&
27338 { ac_try='test -s conftest$ac_exeext'
27339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27340 (eval $ac_try) 2>&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
27344 ac_cv_func_gethostbyname_r=yes
27346 echo "$as_me: failed program was:" >&5
27347 sed 's/^/| /' conftest.$ac_ext >&5
27349 ac_cv_func_gethostbyname_r=no
27351 rm -f conftest.err conftest.$ac_objext \
27352 conftest$ac_exeext conftest.$ac_ext
27354 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27355 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27356 if test $ac_cv_func_gethostbyname_r = yes; then
27357 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27358 echo "${ECHO_T}using libc's resolver" >&6
27361 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27362 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27363 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27366 ac_check_lib_save_LIBS=$LIBS
27368 cat >conftest.$ac_ext <<_ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h. */
27375 /* Override any gcc2 internal prototype to avoid an error. */
27379 /* We use char because int might match the return type of a gcc2
27380 builtin and then its argument prototype would still apply. */
27381 char gethostbyname_r ();
27385 gethostbyname_r ();
27390 rm -f conftest.$ac_objext conftest$ac_exeext
27391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27392 (eval $ac_link) 2>conftest.er1
27394 grep -v '^ *+' conftest.er1 >conftest.err
27396 cat conftest.err >&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); } &&
27399 { ac_try='test -z "$ac_c_werror_flag"
27400 || test ! -s conftest.err'
27401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402 (eval $ac_try) 2>&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; } &&
27406 { ac_try='test -s conftest$ac_exeext'
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; }; then
27412 ac_cv_lib_nsl_gethostbyname_r=yes
27414 echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27417 ac_cv_lib_nsl_gethostbyname_r=no
27419 rm -f conftest.err conftest.$ac_objext \
27420 conftest$ac_exeext conftest.$ac_ext
27421 LIBS=$ac_check_lib_save_LIBS
27423 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27424 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27425 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27426 cat >>confdefs.h <<_ACEOF
27427 #define HAVE_LIBNSL 1
27435 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27436 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27437 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27438 echo $ECHO_N "(cached) $ECHO_C" >&6
27440 ac_check_lib_save_LIBS=$LIBS
27441 LIBS="-lresolv $LIBS"
27442 cat >conftest.$ac_ext <<_ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h. */
27449 /* Override any gcc2 internal prototype to avoid an error. */
27453 /* We use char because int might match the return type of a gcc2
27454 builtin and then its argument prototype would still apply. */
27455 char gethostbyname_r ();
27459 gethostbyname_r ();
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27466 (eval $ac_link) 2>conftest.er1
27468 grep -v '^ *+' conftest.er1 >conftest.err
27470 cat conftest.err >&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
27473 { ac_try='test -z "$ac_c_werror_flag"
27474 || test ! -s conftest.err'
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
27481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27482 (eval $ac_try) 2>&5
27484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); }; }; then
27486 ac_cv_lib_resolv_gethostbyname_r=yes
27488 echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27491 ac_cv_lib_resolv_gethostbyname_r=no
27493 rm -f conftest.err conftest.$ac_objext \
27494 conftest$ac_exeext conftest.$ac_ext
27495 LIBS=$ac_check_lib_save_LIBS
27497 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27498 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27499 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27500 cat >>confdefs.h <<_ACEOF
27501 #define HAVE_LIBRESOLV 1
27504 LIBS="-lresolv $LIBS"
27514 for ac_func in inet_pton
27516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27517 echo "$as_me:$LINENO: checking for $ac_func" >&5
27518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27519 if eval "test \"\${$as_ac_var+set}\" = set"; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27522 cat >conftest.$ac_ext <<_ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h. */
27528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27530 #define $ac_func innocuous_$ac_func
27532 /* System header to define __stub macros and hopefully few prototypes,
27533 which can conflict with char $ac_func (); below.
27534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27535 <limits.h> exists even on freestanding compilers. */
27538 # include <limits.h>
27540 # include <assert.h>
27545 /* Override any gcc2 internal prototype to avoid an error. */
27550 /* We use char because int might match the return type of a gcc2
27551 builtin and then its argument prototype would still apply. */
27553 /* The GNU C library defines this for functions which it implements
27554 to always fail with ENOSYS. Some functions are actually named
27555 something starting with __ and the normal name is an alias. */
27556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27559 char (*f) () = $ac_func;
27568 return f != $ac_func;
27573 rm -f conftest.$ac_objext conftest$ac_exeext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27575 (eval $ac_link) 2>conftest.er1
27577 grep -v '^ *+' conftest.er1 >conftest.err
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_c_werror_flag"
27583 || test ! -s conftest.err'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest$ac_exeext'
27590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 eval "$as_ac_var=yes"
27597 echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27600 eval "$as_ac_var=no"
27602 rm -f conftest.err conftest.$ac_objext \
27603 conftest$ac_exeext conftest.$ac_ext
27605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27607 if test `eval echo '${'$as_ac_var'}'` = yes; then
27608 cat >>confdefs.h <<_ACEOF
27609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27611 cat >>confdefs.h <<\_ACEOF
27612 #define HAVE_INET_PTON 1
27619 for ac_func in inet_ntop
27621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27622 echo "$as_me:$LINENO: checking for $ac_func" >&5
27623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27624 if eval "test \"\${$as_ac_var+set}\" = set"; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27627 cat >conftest.$ac_ext <<_ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27635 #define $ac_func innocuous_$ac_func
27637 /* System header to define __stub macros and hopefully few prototypes,
27638 which can conflict with char $ac_func (); below.
27639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27640 <limits.h> exists even on freestanding compilers. */
27643 # include <limits.h>
27645 # include <assert.h>
27650 /* Override any gcc2 internal prototype to avoid an error. */
27655 /* We use char because int might match the return type of a gcc2
27656 builtin and then its argument prototype would still apply. */
27658 /* The GNU C library defines this for functions which it implements
27659 to always fail with ENOSYS. Some functions are actually named
27660 something starting with __ and the normal name is an alias. */
27661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27664 char (*f) () = $ac_func;
27673 return f != $ac_func;
27678 rm -f conftest.$ac_objext conftest$ac_exeext
27679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27680 (eval $ac_link) 2>conftest.er1
27682 grep -v '^ *+' conftest.er1 >conftest.err
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
27687 { ac_try='test -z "$ac_c_werror_flag"
27688 || test ! -s conftest.err'
27689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690 (eval $ac_try) 2>&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; } &&
27694 { ac_try='test -s conftest$ac_exeext'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; }; then
27700 eval "$as_ac_var=yes"
27702 echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27705 eval "$as_ac_var=no"
27707 rm -f conftest.err conftest.$ac_objext \
27708 conftest$ac_exeext conftest.$ac_ext
27710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27712 if test `eval echo '${'$as_ac_var'}'` = yes; then
27713 cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27716 cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_INET_NTOP 1
27724 for ac_func in gethostbyname2
27726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27727 echo "$as_me:$LINENO: checking for $ac_func" >&5
27728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27729 if eval "test \"\${$as_ac_var+set}\" = set"; then
27730 echo $ECHO_N "(cached) $ECHO_C" >&6
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27740 #define $ac_func innocuous_$ac_func
27742 /* System header to define __stub macros and hopefully few prototypes,
27743 which can conflict with char $ac_func (); below.
27744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27745 <limits.h> exists even on freestanding compilers. */
27748 # include <limits.h>
27750 # include <assert.h>
27755 /* Override any gcc2 internal prototype to avoid an error. */
27760 /* We use char because int might match the return type of a gcc2
27761 builtin and then its argument prototype would still apply. */
27763 /* The GNU C library defines this for functions which it implements
27764 to always fail with ENOSYS. Some functions are actually named
27765 something starting with __ and the normal name is an alias. */
27766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27769 char (*f) () = $ac_func;
27778 return f != $ac_func;
27783 rm -f conftest.$ac_objext conftest$ac_exeext
27784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27785 (eval $ac_link) 2>conftest.er1
27787 grep -v '^ *+' conftest.er1 >conftest.err
27789 cat conftest.err >&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } &&
27792 { ac_try='test -z "$ac_c_werror_flag"
27793 || test ! -s conftest.err'
27794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27795 (eval $ac_try) 2>&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; } &&
27799 { ac_try='test -s conftest$ac_exeext'
27800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27801 (eval $ac_try) 2>&5
27803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804 (exit $ac_status); }; }; then
27805 eval "$as_ac_var=yes"
27807 echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27810 eval "$as_ac_var=no"
27812 rm -f conftest.err conftest.$ac_objext \
27813 conftest$ac_exeext conftest.$ac_ext
27815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27817 if test `eval echo '${'$as_ac_var'}'` = yes; then
27818 cat >>confdefs.h <<_ACEOF
27819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27821 cat >>confdefs.h <<\_ACEOF
27822 #define HAVE_GETHOSTBYNAME2 1
27829 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27830 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27831 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27834 cat >conftest.$ac_ext <<_ACEOF
27837 cat confdefs.h >>conftest.$ac_ext
27838 cat >>conftest.$ac_ext <<_ACEOF
27839 /* end confdefs.h. */
27840 #include <sys/socket.h>
27844 struct sockaddr s; s.sa_len;
27849 rm -f conftest.$ac_objext
27850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27851 (eval $ac_compile) 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } &&
27858 { ac_try='test -z "$ac_c_werror_flag"
27859 || test ! -s conftest.err'
27860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861 (eval $ac_try) 2>&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; } &&
27865 { ac_try='test -s conftest.$ac_objext'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; }; then
27871 ac_cv_struct_sockaddr_sa_len=yes
27873 echo "$as_me: failed program was:" >&5
27874 sed 's/^/| /' conftest.$ac_ext >&5
27876 ac_cv_struct_sockaddr_sa_len=no
27878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27880 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27881 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27883 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27885 cat >>confdefs.h <<\_ACEOF
27886 #define HAVE_SA_LEN 1
27895 for ac_func in strftime
27897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27898 echo "$as_me:$LINENO: checking for $ac_func" >&5
27899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27900 if eval "test \"\${$as_ac_var+set}\" = set"; then
27901 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 cat >conftest.$ac_ext <<_ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27911 #define $ac_func innocuous_$ac_func
27913 /* System header to define __stub macros and hopefully few prototypes,
27914 which can conflict with char $ac_func (); below.
27915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27916 <limits.h> exists even on freestanding compilers. */
27919 # include <limits.h>
27921 # include <assert.h>
27926 /* Override any gcc2 internal prototype to avoid an error. */
27931 /* We use char because int might match the return type of a gcc2
27932 builtin and then its argument prototype would still apply. */
27934 /* The GNU C library defines this for functions which it implements
27935 to always fail with ENOSYS. Some functions are actually named
27936 something starting with __ and the normal name is an alias. */
27937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27940 char (*f) () = $ac_func;
27949 return f != $ac_func;
27954 rm -f conftest.$ac_objext conftest$ac_exeext
27955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27956 (eval $ac_link) 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } &&
27963 { ac_try='test -z "$ac_c_werror_flag"
27964 || test ! -s conftest.err'
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest$ac_exeext'
27971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972 (eval $ac_try) 2>&5
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; }; then
27976 eval "$as_ac_var=yes"
27978 echo "$as_me: failed program was:" >&5
27979 sed 's/^/| /' conftest.$ac_ext >&5
27981 eval "$as_ac_var=no"
27983 rm -f conftest.err conftest.$ac_objext \
27984 conftest$ac_exeext conftest.$ac_ext
27986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27988 if test `eval echo '${'$as_ac_var'}'` = yes; then
27989 cat >>confdefs.h <<_ACEOF
27990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27994 # strftime is in -lintl on SCO UNIX.
27995 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27996 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27997 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27998 echo $ECHO_N "(cached) $ECHO_C" >&6
28000 ac_check_lib_save_LIBS=$LIBS
28001 LIBS="-lintl $LIBS"
28002 cat >conftest.$ac_ext <<_ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28009 /* Override any gcc2 internal prototype to avoid an error. */
28013 /* We use char because int might match the return type of a gcc2
28014 builtin and then its argument prototype would still apply. */
28024 rm -f conftest.$ac_objext conftest$ac_exeext
28025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28026 (eval $ac_link) 2>conftest.er1
28028 grep -v '^ *+' conftest.er1 >conftest.err
28030 cat conftest.err >&5
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); } &&
28033 { ac_try='test -z "$ac_c_werror_flag"
28034 || test ! -s conftest.err'
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; } &&
28040 { ac_try='test -s conftest$ac_exeext'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; }; then
28046 ac_cv_lib_intl_strftime=yes
28048 echo "$as_me: failed program was:" >&5
28049 sed 's/^/| /' conftest.$ac_ext >&5
28051 ac_cv_lib_intl_strftime=no
28053 rm -f conftest.err conftest.$ac_objext \
28054 conftest$ac_exeext conftest.$ac_ext
28055 LIBS=$ac_check_lib_save_LIBS
28057 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28058 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28059 if test $ac_cv_lib_intl_strftime = yes; then
28060 cat >>confdefs.h <<\_ACEOF
28061 #define HAVE_STRFTIME 1
28064 LIBS="-lintl $LIBS"
28071 for ac_func in vprintf
28073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28074 echo "$as_me:$LINENO: checking for $ac_func" >&5
28075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28076 if eval "test \"\${$as_ac_var+set}\" = set"; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 cat >conftest.$ac_ext <<_ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h. */
28085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28087 #define $ac_func innocuous_$ac_func
28089 /* System header to define __stub macros and hopefully few prototypes,
28090 which can conflict with char $ac_func (); below.
28091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28092 <limits.h> exists even on freestanding compilers. */
28095 # include <limits.h>
28097 # include <assert.h>
28102 /* Override any gcc2 internal prototype to avoid an error. */
28107 /* We use char because int might match the return type of a gcc2
28108 builtin and then its argument prototype would still apply. */
28110 /* The GNU C library defines this for functions which it implements
28111 to always fail with ENOSYS. Some functions are actually named
28112 something starting with __ and the normal name is an alias. */
28113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28116 char (*f) () = $ac_func;
28125 return f != $ac_func;
28130 rm -f conftest.$ac_objext conftest$ac_exeext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28132 (eval $ac_link) 2>conftest.er1
28134 grep -v '^ *+' conftest.er1 >conftest.err
28136 cat conftest.err >&5
28137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138 (exit $ac_status); } &&
28139 { ac_try='test -z "$ac_c_werror_flag"
28140 || test ! -s conftest.err'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest$ac_exeext'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28152 eval "$as_ac_var=yes"
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28157 eval "$as_ac_var=no"
28159 rm -f conftest.err conftest.$ac_objext \
28160 conftest$ac_exeext conftest.$ac_ext
28162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28164 if test `eval echo '${'$as_ac_var'}'` = yes; then
28165 cat >>confdefs.h <<_ACEOF
28166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28169 echo "$as_me:$LINENO: checking for _doprnt" >&5
28170 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28171 if test "${ac_cv_func__doprnt+set}" = set; then
28172 echo $ECHO_N "(cached) $ECHO_C" >&6
28174 cat >conftest.$ac_ext <<_ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28182 #define _doprnt innocuous__doprnt
28184 /* System header to define __stub macros and hopefully few prototypes,
28185 which can conflict with char _doprnt (); below.
28186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187 <limits.h> exists even on freestanding compilers. */
28190 # include <limits.h>
28192 # include <assert.h>
28197 /* Override any gcc2 internal prototype to avoid an error. */
28202 /* We use char because int might match the return type of a gcc2
28203 builtin and then its argument prototype would still apply. */
28205 /* The GNU C library defines this for functions which it implements
28206 to always fail with ENOSYS. Some functions are actually named
28207 something starting with __ and the normal name is an alias. */
28208 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28211 char (*f) () = _doprnt;
28220 return f != _doprnt;
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28227 (eval $ac_link) 2>conftest.er1
28229 grep -v '^ *+' conftest.er1 >conftest.err
28231 cat conftest.err >&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); } &&
28234 { ac_try='test -z "$ac_c_werror_flag"
28235 || test ! -s conftest.err'
28236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237 (eval $ac_try) 2>&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); }; } &&
28241 { ac_try='test -s conftest$ac_exeext'
28242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; }; then
28247 ac_cv_func__doprnt=yes
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 ac_cv_func__doprnt=no
28254 rm -f conftest.err conftest.$ac_objext \
28255 conftest$ac_exeext conftest.$ac_ext
28257 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28258 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28259 if test $ac_cv_func__doprnt = yes; then
28261 cat >>confdefs.h <<\_ACEOF
28262 #define HAVE_DOPRNT 1
28271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28272 # for constant arguments. Useless!
28273 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28274 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28275 if test "${ac_cv_working_alloca_h+set}" = set; then
28276 echo $ECHO_N "(cached) $ECHO_C" >&6
28278 cat >conftest.$ac_ext <<_ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h. */
28284 #include <alloca.h>
28288 char *p = (char *) alloca (2 * sizeof (int));
28293 rm -f conftest.$ac_objext conftest$ac_exeext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28295 (eval $ac_link) 2>conftest.er1
28297 grep -v '^ *+' conftest.er1 >conftest.err
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag"
28303 || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest$ac_exeext'
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
28315 ac_cv_working_alloca_h=yes
28317 echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28320 ac_cv_working_alloca_h=no
28322 rm -f conftest.err conftest.$ac_objext \
28323 conftest$ac_exeext conftest.$ac_ext
28325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28327 if test $ac_cv_working_alloca_h = yes; then
28329 cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_ALLOCA_H 1
28335 echo "$as_me:$LINENO: checking for alloca" >&5
28336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28337 if test "${ac_cv_func_alloca_works+set}" = set; then
28338 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28347 # define alloca __builtin_alloca
28350 # include <malloc.h>
28351 # define alloca _alloca
28354 # include <alloca.h>
28359 # ifndef alloca /* predefined by HP cc +Olibcalls */
28370 char *p = (char *) alloca (1);
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377 (eval $ac_link) 2>conftest.er1
28379 grep -v '^ *+' conftest.er1 >conftest.err
28381 cat conftest.err >&5
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
28384 { ac_try='test -z "$ac_c_werror_flag"
28385 || test ! -s conftest.err'
28386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387 (eval $ac_try) 2>&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; } &&
28391 { ac_try='test -s conftest$ac_exeext'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
28397 ac_cv_func_alloca_works=yes
28399 echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28402 ac_cv_func_alloca_works=no
28404 rm -f conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
28407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28410 if test $ac_cv_func_alloca_works = yes; then
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_ALLOCA 1
28417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28418 # that cause trouble. Some versions do not even contain alloca or
28419 # contain a buggy version. If you still want to use their alloca,
28420 # use ar to extract alloca.o from them instead of compiling alloca.c.
28422 ALLOCA=alloca.$ac_objext
28424 cat >>confdefs.h <<\_ACEOF
28429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28431 if test "${ac_cv_os_cray+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28434 cat >conftest.$ac_ext <<_ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28440 #if defined(CRAY) && ! defined(CRAY2)
28447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28448 $EGREP "webecray" >/dev/null 2>&1; then
28456 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28457 echo "${ECHO_T}$ac_cv_os_cray" >&6
28458 if test $ac_cv_os_cray = yes; then
28459 for ac_func in _getb67 GETB67 getb67; do
28460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461 echo "$as_me:$LINENO: checking for $ac_func" >&5
28462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463 if eval "test \"\${$as_ac_var+set}\" = set"; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28466 cat >conftest.$ac_ext <<_ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28474 #define $ac_func innocuous_$ac_func
28476 /* System header to define __stub macros and hopefully few prototypes,
28477 which can conflict with char $ac_func (); below.
28478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479 <limits.h> exists even on freestanding compilers. */
28482 # include <limits.h>
28484 # include <assert.h>
28489 /* Override any gcc2 internal prototype to avoid an error. */
28494 /* We use char because int might match the return type of a gcc2
28495 builtin and then its argument prototype would still apply. */
28497 /* The GNU C library defines this for functions which it implements
28498 to always fail with ENOSYS. Some functions are actually named
28499 something starting with __ and the normal name is an alias. */
28500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28503 char (*f) () = $ac_func;
28512 return f != $ac_func;
28517 rm -f conftest.$ac_objext conftest$ac_exeext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28519 (eval $ac_link) 2>conftest.er1
28521 grep -v '^ *+' conftest.er1 >conftest.err
28523 cat conftest.err >&5
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
28526 { ac_try='test -z "$ac_c_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest$ac_exeext'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 eval "$as_ac_var=yes"
28541 echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28544 eval "$as_ac_var=no"
28546 rm -f conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
28549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551 if test `eval echo '${'$as_ac_var'}'` = yes; then
28553 cat >>confdefs.h <<_ACEOF
28554 #define CRAY_STACKSEG_END $ac_func
28563 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28564 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28565 if test "${ac_cv_c_stack_direction+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28568 if test "$cross_compiling" = yes; then
28569 ac_cv_c_stack_direction=0
28571 cat >conftest.$ac_ext <<_ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h. */
28578 find_stack_direction ()
28580 static char *addr = 0;
28585 return find_stack_direction ();
28588 return (&dummy > addr) ? 1 : -1;
28594 exit (find_stack_direction () < 0);
28597 rm -f conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599 (eval $ac_link) 2>&5
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604 (eval $ac_try) 2>&5
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); }; }; then
28608 ac_cv_c_stack_direction=1
28610 echo "$as_me: program exited with status $ac_status" >&5
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28614 ( exit $ac_status )
28615 ac_cv_c_stack_direction=-1
28617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28620 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28621 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28623 cat >>confdefs.h <<_ACEOF
28624 #define STACK_DIRECTION $ac_cv_c_stack_direction
28630 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28631 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28632 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28633 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28636 ac_check_lib_save_LIBS=$LIBS
28638 cat >conftest.$ac_ext <<_ACEOF
28641 cat confdefs.h >>conftest.$ac_ext
28642 cat >>conftest.$ac_ext <<_ACEOF
28643 /* end confdefs.h. */
28645 /* Override any gcc2 internal prototype to avoid an error. */
28649 /* We use char because int might match the return type of a gcc2
28650 builtin and then its argument prototype would still apply. */
28660 rm -f conftest.$ac_objext conftest$ac_exeext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662 (eval $ac_link) 2>conftest.er1
28664 grep -v '^ *+' conftest.er1 >conftest.err
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_c_werror_flag"
28670 || test ! -s conftest.err'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest$ac_exeext'
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 ac_cv_lib_sun_getmntent=yes
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28687 ac_cv_lib_sun_getmntent=no
28689 rm -f conftest.err conftest.$ac_objext \
28690 conftest$ac_exeext conftest.$ac_ext
28691 LIBS=$ac_check_lib_save_LIBS
28693 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28694 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28695 if test $ac_cv_lib_sun_getmntent = yes; then
28698 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28699 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28700 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28701 echo $ECHO_N "(cached) $ECHO_C" >&6
28703 ac_check_lib_save_LIBS=$LIBS
28705 cat >conftest.$ac_ext <<_ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28712 /* Override any gcc2 internal prototype to avoid an error. */
28716 /* We use char because int might match the return type of a gcc2
28717 builtin and then its argument prototype would still apply. */
28727 rm -f conftest.$ac_objext conftest$ac_exeext
28728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28729 (eval $ac_link) 2>conftest.er1
28731 grep -v '^ *+' conftest.er1 >conftest.err
28733 cat conftest.err >&5
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } &&
28736 { ac_try='test -z "$ac_c_werror_flag"
28737 || test ! -s conftest.err'
28738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; } &&
28743 { ac_try='test -s conftest$ac_exeext'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 ac_cv_lib_seq_getmntent=yes
28751 echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28754 ac_cv_lib_seq_getmntent=no
28756 rm -f conftest.err conftest.$ac_objext \
28757 conftest$ac_exeext conftest.$ac_ext
28758 LIBS=$ac_check_lib_save_LIBS
28760 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28761 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28762 if test $ac_cv_lib_seq_getmntent = yes; then
28765 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28766 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28767 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28768 echo $ECHO_N "(cached) $ECHO_C" >&6
28770 ac_check_lib_save_LIBS=$LIBS
28772 cat >conftest.$ac_ext <<_ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h. */
28779 /* Override any gcc2 internal prototype to avoid an error. */
28783 /* We use char because int might match the return type of a gcc2
28784 builtin and then its argument prototype would still apply. */
28794 rm -f conftest.$ac_objext conftest$ac_exeext
28795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28796 (eval $ac_link) 2>conftest.er1
28798 grep -v '^ *+' conftest.er1 >conftest.err
28800 cat conftest.err >&5
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
28803 { ac_try='test -z "$ac_c_werror_flag"
28804 || test ! -s conftest.err'
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; } &&
28810 { ac_try='test -s conftest$ac_exeext'
28811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; }; then
28816 ac_cv_lib_gen_getmntent=yes
28818 echo "$as_me: failed program was:" >&5
28819 sed 's/^/| /' conftest.$ac_ext >&5
28821 ac_cv_lib_gen_getmntent=no
28823 rm -f conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28825 LIBS=$ac_check_lib_save_LIBS
28827 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28828 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28829 if test $ac_cv_lib_gen_getmntent = yes; then
28838 for ac_func in getmntent
28840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841 echo "$as_me:$LINENO: checking for $ac_func" >&5
28842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28843 if eval "test \"\${$as_ac_var+set}\" = set"; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28854 #define $ac_func innocuous_$ac_func
28856 /* System header to define __stub macros and hopefully few prototypes,
28857 which can conflict with char $ac_func (); below.
28858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859 <limits.h> exists even on freestanding compilers. */
28862 # include <limits.h>
28864 # include <assert.h>
28869 /* Override any gcc2 internal prototype to avoid an error. */
28874 /* We use char because int might match the return type of a gcc2
28875 builtin and then its argument prototype would still apply. */
28877 /* The GNU C library defines this for functions which it implements
28878 to always fail with ENOSYS. Some functions are actually named
28879 something starting with __ and the normal name is an alias. */
28880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28883 char (*f) () = $ac_func;
28892 return f != $ac_func;
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28899 (eval $ac_link) 2>conftest.er1
28901 grep -v '^ *+' conftest.er1 >conftest.err
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -z "$ac_c_werror_flag"
28907 || test ! -s conftest.err'
28908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28909 (eval $ac_try) 2>&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; } &&
28913 { ac_try='test -s conftest$ac_exeext'
28914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28915 (eval $ac_try) 2>&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; }; then
28919 eval "$as_ac_var=yes"
28921 echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28924 eval "$as_ac_var=no"
28926 rm -f conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
28929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28931 if test `eval echo '${'$as_ac_var'}'` = yes; then
28932 cat >>confdefs.h <<_ACEOF
28933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28940 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28941 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28942 if test "${ac_cv_func_closedir_void+set}" = set; then
28943 echo $ECHO_N "(cached) $ECHO_C" >&6
28945 if test "$cross_compiling" = yes; then
28946 ac_cv_func_closedir_void=yes
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28954 $ac_includes_default
28955 #include <$ac_header_dirent>
28956 #ifndef __cplusplus
28963 exit (closedir (opendir (".")) != 0);
28968 rm -f conftest$ac_exeext
28969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28970 (eval $ac_link) 2>&5
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975 (eval $ac_try) 2>&5
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; }; then
28979 ac_cv_func_closedir_void=no
28981 echo "$as_me: program exited with status $ac_status" >&5
28982 echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28985 ( exit $ac_status )
28986 ac_cv_func_closedir_void=yes
28988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28991 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28992 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28993 if test $ac_cv_func_closedir_void = yes; then
28995 cat >>confdefs.h <<\_ACEOF
28996 #define CLOSEDIR_VOID 1
29001 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29002 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29003 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29004 echo $ECHO_N "(cached) $ECHO_C" >&6
29006 if test "$cross_compiling" = yes; then
29007 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29008 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29009 { (exit 1); exit 1; }; }
29011 cat >conftest.$ac_ext <<_ACEOF
29014 cat confdefs.h >>conftest.$ac_ext
29015 cat >>conftest.$ac_ext <<_ACEOF
29016 /* end confdefs.h. */
29018 # include <unistd.h>
29024 /* If this system has a BSD-style setpgrp which takes arguments,
29025 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29026 exit successfully. */
29027 exit (setpgrp (1,1) == -1 ? 0 : 1);
29032 rm -f conftest$ac_exeext
29033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29034 (eval $ac_link) 2>&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039 (eval $ac_try) 2>&5
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); }; }; then
29043 ac_cv_func_setpgrp_void=no
29045 echo "$as_me: program exited with status $ac_status" >&5
29046 echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.$ac_ext >&5
29049 ( exit $ac_status )
29050 ac_cv_func_setpgrp_void=yes
29052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29055 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29056 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29057 if test $ac_cv_func_setpgrp_void = yes; then
29059 cat >>confdefs.h <<\_ACEOF
29060 #define SETPGRP_VOID 1
29064 # AC_FUNC_FNMATCH dnl use local version
29067 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29068 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29069 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29070 echo $ECHO_N "(cached) $ECHO_C" >&6
29072 ac_check_lib_save_LIBS=$LIBS
29073 LIBS="-lintl $LIBS"
29074 cat >conftest.$ac_ext <<_ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h. */
29081 /* Override any gcc2 internal prototype to avoid an error. */
29085 /* We use char because int might match the return type of a gcc2
29086 builtin and then its argument prototype would still apply. */
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098 (eval $ac_link) 2>conftest.er1
29100 grep -v '^ *+' conftest.er1 >conftest.err
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } &&
29105 { ac_try='test -z "$ac_c_werror_flag"
29106 || test ! -s conftest.err'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; } &&
29112 { ac_try='test -s conftest$ac_exeext'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29118 ac_cv_lib_intl_gettext=yes
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29123 ac_cv_lib_intl_gettext=no
29125 rm -f conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
29127 LIBS=$ac_check_lib_save_LIBS
29129 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29130 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29131 if test $ac_cv_lib_intl_gettext = yes; then
29132 LIBS="$LIBS -lintl"
29138 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29139 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29140 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29143 ac_check_lib_save_LIBS=$LIBS
29145 cat >conftest.$ac_ext <<_ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h. */
29152 /* Override any gcc2 internal prototype to avoid an error. */
29156 /* We use char because int might match the return type of a gcc2
29157 builtin and then its argument prototype would still apply. */
29167 rm -f conftest.$ac_objext conftest$ac_exeext
29168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29169 (eval $ac_link) 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } &&
29176 { ac_try='test -z "$ac_c_werror_flag"
29177 || test ! -s conftest.err'
29178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179 (eval $ac_try) 2>&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest$ac_exeext'
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29189 ac_cv_lib_sun_getpwnam=yes
29191 echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29194 ac_cv_lib_sun_getpwnam=no
29196 rm -f conftest.err conftest.$ac_objext \
29197 conftest$ac_exeext conftest.$ac_ext
29198 LIBS=$ac_check_lib_save_LIBS
29200 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29201 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29202 if test $ac_cv_lib_sun_getpwnam = yes; then
29203 cat >>confdefs.h <<_ACEOF
29204 #define HAVE_LIBSUN 1
29213 for ac_header in zlib.h
29215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29217 echo "$as_me:$LINENO: checking for $ac_header" >&5
29218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29225 # Is the header compilable?
29226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29228 cat >conftest.$ac_ext <<_ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29234 $ac_includes_default
29235 #include <$ac_header>
29237 rm -f conftest.$ac_objext
29238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29239 (eval $ac_compile) 2>conftest.er1
29241 grep -v '^ *+' conftest.er1 >conftest.err
29243 cat conftest.err >&5
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); } &&
29246 { ac_try='test -z "$ac_c_werror_flag"
29247 || test ! -s conftest.err'
29248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29249 (eval $ac_try) 2>&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); }; } &&
29253 { ac_try='test -s conftest.$ac_objext'
29254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255 (eval $ac_try) 2>&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); }; }; then
29259 ac_header_compiler=yes
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29264 ac_header_compiler=no
29266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29268 echo "${ECHO_T}$ac_header_compiler" >&6
29270 # Is the header present?
29271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29273 cat >conftest.$ac_ext <<_ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 #include <$ac_header>
29281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29284 grep -v '^ *+' conftest.er1 >conftest.err
29286 cat conftest.err >&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); } >/dev/null; then
29289 if test -s conftest.err; then
29290 ac_cpp_err=$ac_c_preproc_warn_flag
29291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29298 if test -z "$ac_cpp_err"; then
29299 ac_header_preproc=yes
29301 echo "$as_me: failed program was:" >&5
29302 sed 's/^/| /' conftest.$ac_ext >&5
29304 ac_header_preproc=no
29306 rm -f conftest.err conftest.$ac_ext
29307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29308 echo "${ECHO_T}$ac_header_preproc" >&6
29310 # So? What about this header?
29311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29317 ac_header_preproc=yes
29320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29334 ## ------------------------------------------ ##
29335 ## Report this to the AC_PACKAGE_NAME lists. ##
29336 ## ------------------------------------------ ##
29339 sed "s/^/$as_me: WARNING: /" >&2
29342 echo "$as_me:$LINENO: checking for $ac_header" >&5
29343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29345 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 eval "$as_ac_Header=\$ac_header_preproc"
29349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29354 cat >>confdefs.h <<_ACEOF
29355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29362 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29363 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29364 if test "${ac_cv_lib_z_deflate+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 ac_check_lib_save_LIBS=$LIBS
29369 cat >conftest.$ac_ext <<_ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29376 /* Override any gcc2 internal prototype to avoid an error. */
29380 /* We use char because int might match the return type of a gcc2
29381 builtin and then its argument prototype would still apply. */
29391 rm -f conftest.$ac_objext conftest$ac_exeext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29393 (eval $ac_link) 2>conftest.er1
29395 grep -v '^ *+' conftest.er1 >conftest.err
29397 cat conftest.err >&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); } &&
29400 { ac_try='test -z "$ac_c_werror_flag"
29401 || test ! -s conftest.err'
29402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403 (eval $ac_try) 2>&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; } &&
29407 { ac_try='test -s conftest$ac_exeext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_lib_z_deflate=yes
29415 echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29418 ac_cv_lib_z_deflate=no
29420 rm -f conftest.err conftest.$ac_objext \
29421 conftest$ac_exeext conftest.$ac_ext
29422 LIBS=$ac_check_lib_save_LIBS
29424 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29425 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29426 if test $ac_cv_lib_z_deflate = yes; then
29431 if test x$FDLIBS = x-lz; then
29432 cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_LIBZ 1
29440 # Check for ACL libraries
29443 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29444 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29445 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29446 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29449 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29450 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29452 # Is the header compilable?
29453 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29454 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29455 cat >conftest.$ac_ext <<_ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h. */
29461 $ac_includes_default
29462 #include <sys/acl.h>
29464 rm -f conftest.$ac_objext
29465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29466 (eval $ac_compile) 2>conftest.er1
29468 grep -v '^ *+' conftest.er1 >conftest.err
29470 cat conftest.err >&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); } &&
29473 { ac_try='test -z "$ac_c_werror_flag"
29474 || test ! -s conftest.err'
29475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476 (eval $ac_try) 2>&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; } &&
29480 { ac_try='test -s conftest.$ac_objext'
29481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_header_compiler=yes
29488 echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29491 ac_header_compiler=no
29493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29495 echo "${ECHO_T}$ac_header_compiler" >&6
29497 # Is the header present?
29498 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29499 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29500 cat >conftest.$ac_ext <<_ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h. */
29506 #include <sys/acl.h>
29508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29511 grep -v '^ *+' conftest.er1 >conftest.err
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } >/dev/null; then
29516 if test -s conftest.err; then
29517 ac_cpp_err=$ac_c_preproc_warn_flag
29518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29525 if test -z "$ac_cpp_err"; then
29526 ac_header_preproc=yes
29528 echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29531 ac_header_preproc=no
29533 rm -f conftest.err conftest.$ac_ext
29534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29535 echo "${ECHO_T}$ac_header_preproc" >&6
29537 # So? What about this header?
29538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29540 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29541 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29543 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29544 ac_header_preproc=yes
29547 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29548 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29550 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29552 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29554 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29556 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29558 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29561 ## ------------------------------------------ ##
29562 ## Report this to the AC_PACKAGE_NAME lists. ##
29563 ## ------------------------------------------ ##
29566 sed "s/^/$as_me: WARNING: /" >&2
29569 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29570 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29571 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29572 echo $ECHO_N "(cached) $ECHO_C" >&6
29574 ac_cv_header_sys_acl_h=$ac_header_preproc
29576 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29577 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29582 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29583 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29584 if test "${ac_cv_func_acl_get_file+set}" = set; then
29585 echo $ECHO_N "(cached) $ECHO_C" >&6
29587 cat >conftest.$ac_ext <<_ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29593 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29595 #define acl_get_file innocuous_acl_get_file
29597 /* System header to define __stub macros and hopefully few prototypes,
29598 which can conflict with char acl_get_file (); below.
29599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29600 <limits.h> exists even on freestanding compilers. */
29603 # include <limits.h>
29605 # include <assert.h>
29608 #undef acl_get_file
29610 /* Override any gcc2 internal prototype to avoid an error. */
29615 /* We use char because int might match the return type of a gcc2
29616 builtin and then its argument prototype would still apply. */
29617 char acl_get_file ();
29618 /* The GNU C library defines this for functions which it implements
29619 to always fail with ENOSYS. Some functions are actually named
29620 something starting with __ and the normal name is an alias. */
29621 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29624 char (*f) () = acl_get_file;
29633 return f != acl_get_file;
29638 rm -f conftest.$ac_objext conftest$ac_exeext
29639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29640 (eval $ac_link) 2>conftest.er1
29642 grep -v '^ *+' conftest.er1 >conftest.err
29644 cat conftest.err >&5
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); } &&
29647 { ac_try='test -z "$ac_c_werror_flag"
29648 || test ! -s conftest.err'
29649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650 (eval $ac_try) 2>&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; } &&
29654 { ac_try='test -s conftest$ac_exeext'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
29660 ac_cv_func_acl_get_file=yes
29662 echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29665 ac_cv_func_acl_get_file=no
29667 rm -f conftest.err conftest.$ac_objext \
29668 conftest$ac_exeext conftest.$ac_ext
29670 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29671 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29672 if test $ac_cv_func_acl_get_file = yes; then
29675 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29676 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29677 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29678 echo $ECHO_N "(cached) $ECHO_C" >&6
29680 ac_check_lib_save_LIBS=$LIBS
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29689 /* Override any gcc2 internal prototype to avoid an error. */
29693 /* We use char because int might match the return type of a gcc2
29694 builtin and then its argument prototype would still apply. */
29695 char acl_get_file ();
29704 rm -f conftest.$ac_objext conftest$ac_exeext
29705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29706 (eval $ac_link) 2>conftest.er1
29708 grep -v '^ *+' conftest.er1 >conftest.err
29710 cat conftest.err >&5
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); } &&
29713 { ac_try='test -z "$ac_c_werror_flag"
29714 || test ! -s conftest.err'
29715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29716 (eval $ac_try) 2>&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); }; } &&
29720 { ac_try='test -s conftest$ac_exeext'
29721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722 (eval $ac_try) 2>&5
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; }; then
29726 ac_cv_lib_acl_acl_get_file=yes
29728 echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29731 ac_cv_lib_acl_acl_get_file=no
29733 rm -f conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
29735 LIBS=$ac_check_lib_save_LIBS
29737 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29738 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29739 if test $ac_cv_lib_acl_acl_get_file = yes; then
29740 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29742 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29743 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29744 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29745 echo $ECHO_N "(cached) $ECHO_C" >&6
29747 ac_check_lib_save_LIBS=$LIBS
29749 cat >conftest.$ac_ext <<_ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h. */
29756 /* Override any gcc2 internal prototype to avoid an error. */
29760 /* We use char because int might match the return type of a gcc2
29761 builtin and then its argument prototype would still apply. */
29771 rm -f conftest.$ac_objext conftest$ac_exeext
29772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29773 (eval $ac_link) 2>conftest.er1
29775 grep -v '^ *+' conftest.er1 >conftest.err
29777 cat conftest.err >&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } &&
29780 { ac_try='test -z "$ac_c_werror_flag"
29781 || test ! -s conftest.err'
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; } &&
29787 { ac_try='test -s conftest$ac_exeext'
29788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29789 (eval $ac_try) 2>&5
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); }; }; then
29793 ac_cv_lib_sec_acltotext=yes
29795 echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29798 ac_cv_lib_sec_acltotext=no
29800 rm -f conftest.err conftest.$ac_objext \
29801 conftest$ac_exeext conftest.$ac_ext
29802 LIBS=$ac_check_lib_save_LIBS
29804 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29805 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29806 if test $ac_cv_lib_sec_acltotext = yes; then
29807 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29816 if test $have_acl = yes; then
29817 cat >>confdefs.h <<\_ACEOF
29824 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29825 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29826 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29827 echo $ECHO_N "(cached) $ECHO_C" >&6
29829 ac_check_lib_save_LIBS=$LIBS
29830 LIBS="-lpthread $LIBS"
29831 cat >conftest.$ac_ext <<_ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h. */
29838 /* Override any gcc2 internal prototype to avoid an error. */
29842 /* We use char because int might match the return type of a gcc2
29843 builtin and then its argument prototype would still apply. */
29844 char pthread_create ();
29853 rm -f conftest.$ac_objext conftest$ac_exeext
29854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29855 (eval $ac_link) 2>conftest.er1
29857 grep -v '^ *+' conftest.er1 >conftest.err
29859 cat conftest.err >&5
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } &&
29862 { ac_try='test -z "$ac_c_werror_flag"
29863 || test ! -s conftest.err'
29864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865 (eval $ac_try) 2>&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest$ac_exeext'
29870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871 (eval $ac_try) 2>&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); }; }; then
29875 ac_cv_lib_pthread_pthread_create=yes
29877 echo "$as_me: failed program was:" >&5
29878 sed 's/^/| /' conftest.$ac_ext >&5
29880 ac_cv_lib_pthread_pthread_create=no
29882 rm -f conftest.err conftest.$ac_objext \
29883 conftest$ac_exeext conftest.$ac_ext
29884 LIBS=$ac_check_lib_save_LIBS
29886 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29887 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29888 if test $ac_cv_lib_pthread_pthread_create = yes; then
29889 PTHREAD_LIB="-lpthread"
29891 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29892 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29893 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29894 echo $ECHO_N "(cached) $ECHO_C" >&6
29896 ac_check_lib_save_LIBS=$LIBS
29897 LIBS="-lpthreads $LIBS"
29898 cat >conftest.$ac_ext <<_ACEOF
29901 cat confdefs.h >>conftest.$ac_ext
29902 cat >>conftest.$ac_ext <<_ACEOF
29903 /* end confdefs.h. */
29905 /* Override any gcc2 internal prototype to avoid an error. */
29909 /* We use char because int might match the return type of a gcc2
29910 builtin and then its argument prototype would still apply. */
29911 char pthread_create ();
29920 rm -f conftest.$ac_objext conftest$ac_exeext
29921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29922 (eval $ac_link) 2>conftest.er1
29924 grep -v '^ *+' conftest.er1 >conftest.err
29926 cat conftest.err >&5
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); } &&
29929 { ac_try='test -z "$ac_c_werror_flag"
29930 || test ! -s conftest.err'
29931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932 (eval $ac_try) 2>&5
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; } &&
29936 { ac_try='test -s conftest$ac_exeext'
29937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29938 (eval $ac_try) 2>&5
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); }; }; then
29942 ac_cv_lib_pthreads_pthread_create=yes
29944 echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.$ac_ext >&5
29947 ac_cv_lib_pthreads_pthread_create=no
29949 rm -f conftest.err conftest.$ac_objext \
29950 conftest$ac_exeext conftest.$ac_ext
29951 LIBS=$ac_check_lib_save_LIBS
29953 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29954 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29955 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29956 PTHREAD_LIB="-lpthreads"
29958 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29959 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29960 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29961 echo $ECHO_N "(cached) $ECHO_C" >&6
29963 ac_check_lib_save_LIBS=$LIBS
29965 cat >conftest.$ac_ext <<_ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h. */
29972 /* Override any gcc2 internal prototype to avoid an error. */
29976 /* We use char because int might match the return type of a gcc2
29977 builtin and then its argument prototype would still apply. */
29978 char pthread_create ();
29987 rm -f conftest.$ac_objext conftest$ac_exeext
29988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29989 (eval $ac_link) 2>conftest.er1
29991 grep -v '^ *+' conftest.er1 >conftest.err
29993 cat conftest.err >&5
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); } &&
29996 { ac_try='test -z "$ac_c_werror_flag"
29997 || test ! -s conftest.err'
29998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999 (eval $ac_try) 2>&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
30003 { ac_try='test -s conftest$ac_exeext'
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
30009 ac_cv_lib_c_r_pthread_create=yes
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_cv_lib_c_r_pthread_create=no
30016 rm -f conftest.err conftest.$ac_objext \
30017 conftest$ac_exeext conftest.$ac_ext
30018 LIBS=$ac_check_lib_save_LIBS
30020 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30021 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30022 if test $ac_cv_lib_c_r_pthread_create = yes; then
30023 PTHREAD_LIB="-lc_r"
30025 echo "$as_me:$LINENO: checking for pthread_create" >&5
30026 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30027 if test "${ac_cv_func_pthread_create+set}" = set; then
30028 echo $ECHO_N "(cached) $ECHO_C" >&6
30030 cat >conftest.$ac_ext <<_ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h. */
30036 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30038 #define pthread_create innocuous_pthread_create
30040 /* System header to define __stub macros and hopefully few prototypes,
30041 which can conflict with char pthread_create (); below.
30042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30043 <limits.h> exists even on freestanding compilers. */
30046 # include <limits.h>
30048 # include <assert.h>
30051 #undef pthread_create
30053 /* Override any gcc2 internal prototype to avoid an error. */
30058 /* We use char because int might match the return type of a gcc2
30059 builtin and then its argument prototype would still apply. */
30060 char pthread_create ();
30061 /* The GNU C library defines this for functions which it implements
30062 to always fail with ENOSYS. Some functions are actually named
30063 something starting with __ and the normal name is an alias. */
30064 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30067 char (*f) () = pthread_create;
30076 return f != pthread_create;
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30083 (eval $ac_link) 2>conftest.er1
30085 grep -v '^ *+' conftest.er1 >conftest.err
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } &&
30090 { ac_try='test -z "$ac_c_werror_flag"
30091 || test ! -s conftest.err'
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; } &&
30097 { ac_try='test -s conftest$ac_exeext'
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_func_pthread_create=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_func_pthread_create=no
30110 rm -f conftest.err conftest.$ac_objext \
30111 conftest$ac_exeext conftest.$ac_ext
30113 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30114 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30127 cat >>confdefs.h <<\_ACEOF
30133 CFLAGS=${CFLAGS--O}
30135 if test x$have_gcc = xyes ; then
30136 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30137 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30139 LDFLAGS=${LDFLAGS--O}
30140 DB_LIBS="${SQL_LFLAGS}"
30141 CPPFLAGS="$CPPFLAGS"
30169 # Finally we set appropriate distribution specific
30170 # variables and defaults
30172 # PFILES are platform specific files
30173 PFILES="platforms/Makefile"
30177 hostname=`uname -n | cut -d '.' -f 1`
30178 if test x${hostname} = x ; then
30179 hostname="localhost"
30181 case "$DISTNAME" in
30184 PSCMD="ps -e -o pid,comm"
30185 PFILES="${PFILES} \
30186 platforms/aix/Makefile"
30187 TAPEDRIVE="/dev/rmt0.1"
30191 PTHREAD_LIB="-lpthread -lexc"
30192 if test "${CC}" = "gcc" ; then
30199 TAPEDRIVE="/dev/nrmt0"
30202 DISTVER=`uname -a |awk '{print $3}'`
30203 TAPEDRIVE="/dev/nrmt0"
30204 PTHREAD_LIB="-pthread"
30205 CFLAGS="${CFLAGS} -pthread"
30206 PSCMD="ps -ax -o pid,command"
30209 PFILES="${PFILES} \
30210 platforms/bsdi/Makefile \
30211 platforms/bsdi/bacula-fd \
30212 platforms/bsdi/bacula-sd \
30213 platforms/bsdi/bacula-dir"
30214 largefile_support="yes"
30217 DISTVER=`uname -a |awk '{print $3}'`
30218 TAPEDRIVE="/dev/nrst0"
30220 WCFLAGS="-mwindows"
30221 WLDFLAGS="-mwindows"
30225 TAPEDRIVE="/dev/nst0"
30226 PSCMD="ps -e -o pid,command"
30228 PFILES="${PFILES} \
30229 platforms/darwin/Makefile"
30232 DISTVER=`cat /etc/debian_version`
30233 TAPEDRIVE="/dev/nrst0"
30234 PSCMD="ps -e -o pid,command"
30237 DISTVER=`uname -a |awk '{print $3}'`
30238 VER=`echo $DISTVER | cut -c 1`
30239 if test x$VER = x4 ; then
30240 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30241 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30245 TAPEDRIVE="/dev/nrsa0"
30246 PSCMD="ps -ax -o pid,command"
30247 PFILES="${PFILES} \
30248 platforms/freebsd/Makefile \
30249 platforms/freebsd/bacula-fd \
30250 platforms/freebsd/bacula-sd \
30251 platforms/freebsd/bacula-dir"
30252 largefile_support="yes"
30255 PSCMD="UNIX95=1; ps -e -o pid,comm"
30256 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30258 TAPEDRIVE="/dev/rmt/0hnb"
30259 PTHREAD_LIB="-lpthread"
30260 cat >>confdefs.h <<\_ACEOF
30261 #define _INCLUDE_LONGLONG 1
30267 TAPEDRIVE="/dev/rmt/0cbn"
30268 PSCMD="ps -e -o pid,comm"
30269 PFILES="${PFILES} \
30270 platforms/irix/Makefile \
30271 platforms/irix/bacula-fd \
30272 platforms/irix/bacula-sd \
30273 platforms/irix/bacula-dir"
30276 DISTVER=`uname -a |awk '{print $3}'`
30279 TAPEDRIVE="/dev/nrst0"
30280 PSCMD="ps -ax -o pid,command"
30281 PTHREAD_LIB="-pthread"
30282 CFLAGS="${CFLAGS} -pthread"
30285 DISTVER=`uname -a |awk '{print $3}'`
30288 TAPEDRIVE="/dev/nrst0"
30289 PSCMD="ps -ax -o pid,command"
30290 PTHREAD_LIB="-pthread"
30291 CFLAGS="${CFLAGS} -pthread"
30292 PFILES="${PFILES} \
30293 platforms/openbsd/Makefile \
30294 platforms/openbsd/bacula-fd \
30295 platforms/openbsd/bacula-sd \
30296 platforms/openbsd/bacula-dir"
30299 if test -f /etc/whitebox-release ; then
30300 f=/etc/whitebox-release
30302 f=/etc/redhat-release
30304 if test `cat $f | grep release |\
30305 cut -f 3 -d ' '`x = "Enterprise"x ; then
30306 DISTVER="Enterprise "`cat $f | grep release |\
30309 DISTVER=`cat /etc/redhat-release | grep release |\
30312 TAPEDRIVE="/dev/nst0"
30313 PSCMD="ps -e -o pid,command"
30314 PFILES="${PFILES} \
30315 platforms/redhat/Makefile \
30316 platforms/redhat/bacula-fd \
30317 platforms/redhat/bacula-sd \
30318 platforms/redhat/bacula-dir \
30319 platforms/redhat/bacula.spec \
30323 DISTVER=`cat /etc/mandrake-release | grep release |\
30325 TAPEDRIVE="/dev/nst0"
30326 PSCMD="ps -e -o pid,command"
30327 PFILES="${PFILES} \
30328 platforms/mandrake/Makefile \
30329 platforms/mandrake/bacula-fd \
30330 platforms/mandrake/bacula-sd \
30331 platforms/mandrake/bacula-dir \
30332 platforms/mandrake/bacula.spec \
30336 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30337 TAPEDRIVE="/dev/nst0"
30338 PSCMD="ps -e -o pid,command"
30339 PFILES="${PFILES} \
30340 platforms/gentoo/Makefile \
30341 platforms/gentoo/bacula-init \
30342 platforms/gentoo/bacula-fd \
30343 platforms/gentoo/bacula-sd \
30344 platforms/gentoo/bacula-dir"
30347 DISTVER=`cat /etc/slackware-version`
30348 TAPEDRIVE="/dev/nst0"
30349 PSCMD="ps -e -o pid,command"
30350 PFILES="${PFILES} \
30351 platforms/slackware/Makefile \
30352 platforms/slackware/rc.bacula-fd \
30353 platforms/slackware/rc.bacula-sd \
30354 platforms/slackware/rc.bacula-dir\
30355 platforms/slackware/functions.bacula"
30359 TAPEDRIVE="/dev/rmt/0cbn"
30360 PSCMD="ps -e -o pid,comm"
30361 PFILES="${PFILES} \
30362 platforms/solaris/Makefile \
30363 platforms/solaris/bacula-fd \
30364 platforms/solaris/bacula-sd \
30365 platforms/solaris/bacula-dir"
30366 if test x$DISTVER = x5.6 ; then
30367 cat >>confdefs.h <<\_ACEOF
30368 #define HAVE_OLD_SOCKOPT 1
30372 LIBS="$LIBS -lresolv"
30375 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30377 TAPEDRIVE="/dev/nst0"
30378 PSCMD="ps -e -o pid,command"
30379 PFILES="${PFILES} \
30380 platforms/suse/Makefile \
30381 platforms/suse/bacula-fd \
30382 platforms/suse/bacula-sd \
30383 platforms/suse/bacula-dir \
30384 platforms/suse/bacula \
30385 platforms/suse/bacula.spec"
30390 TAPEDRIVE="/dev/nst0"
30391 PSCMD="ps -e -o pid,command"
30392 PFILES="${PFILES} \
30393 platforms/suse/Makefile \
30394 platforms/suse/bacula-fd \
30395 platforms/suse/bacula-sd \
30396 platforms/suse/bacula-dir"
30400 TAPEDRIVE="/dev/nst0"
30403 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30409 LIBS="$PTHREAD_LIB $LIBS"
30411 cat >>confdefs.h <<_ACEOF
30415 cat >>confdefs.h <<_ACEOF
30426 MCOMMON=./autoconf/Make.common
30429 if test "x${subsysdir}" = "x${sbindir}" ; then
30432 echo "You have set both --sbindir and --with-subsys-dir"
30433 echo " equal to: ${subsysdir} "
30434 echo "This is not permitted. Please reconfigure."
30436 echo "Aborting configuration ..."
30442 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"
30443 ac_config_commands="$ac_config_commands default"
30444 cat >confcache <<\_ACEOF
30445 # This file is a shell script that caches the results of configure
30446 # tests run on this system so they can be shared between configure
30447 # scripts and configure runs, see configure's option --config-cache.
30448 # It is not useful on other systems. If it contains results you don't
30449 # want to keep, you may remove or edit it.
30451 # config.status only pays attention to the cache file if you give it
30452 # the --recheck option to rerun configure.
30454 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30455 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30456 # following values.
30460 # The following way of writing the cache mishandles newlines in values,
30461 # but we know of no workaround that is simple, portable, and efficient.
30462 # So, don't put newlines in cache variables' values.
30463 # Ultrix sh set writes to stderr and can't be redirected directly,
30464 # and sets the high bit in the cache file unless we assign to the vars.
30467 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30469 # `set' does not quote correctly, so add quotes (double-quote
30470 # substitution turns \\\\ into \\, and sed turns \\ into \).
30473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30476 # `set' quotes correctly as required by POSIX, so do not add quotes.
30478 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30487 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30489 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30490 if test -w $cache_file; then
30491 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30492 cat confcache >$cache_file
30494 echo "not updating unwritable cache $cache_file"
30499 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30500 # Let make expand exec_prefix.
30501 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30503 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30504 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30505 # trailing colons and then remove the whole line if VPATH becomes empty
30506 # (actually we leave an empty line to preserve line numbers).
30507 if test "x$srcdir" = x.; then
30508 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30509 s/:*\$(srcdir):*/:/;
30510 s/:*\${srcdir}:*/:/;
30512 s/^\([^=]*=[ ]*\):*/\1/;
30518 DEFS=-DHAVE_CONFIG_H
30522 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30523 # 1. Remove the extension, and $U if already installed.
30524 ac_i=`echo "$ac_i" |
30525 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30527 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30528 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30530 LIBOBJS=$ac_libobjs
30532 LTLIBOBJS=$ac_ltlibobjs
30536 : ${CONFIG_STATUS=./config.status}
30537 ac_clean_files_save=$ac_clean_files
30538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30539 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30540 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30541 cat >$CONFIG_STATUS <<_ACEOF
30543 # Generated by $as_me.
30544 # Run this file to recreate the current configuration.
30545 # Compiler output produced by configure, useful for debugging
30546 # configure, is in config.log if it exists.
30549 ac_cs_recheck=false
30551 SHELL=\${CONFIG_SHELL-$SHELL}
30554 cat >>$CONFIG_STATUS <<\_ACEOF
30555 ## --------------------- ##
30556 ## M4sh Initialization. ##
30557 ## --------------------- ##
30559 # Be Bourne compatible
30560 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30563 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30564 # is contrary to our usage. Disable this feature.
30565 alias -g '${1+"$@"}'='"$@"'
30566 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30569 DUALCASE=1; export DUALCASE # for MKS sh
30571 # Support unset when possible.
30572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30579 # Work around bugs in pre-3.0 UWIN ksh.
30580 $as_unset ENV MAIL MAILPATH
30587 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30588 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30589 LC_TELEPHONE LC_TIME
30591 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30592 eval $as_var=C; export $as_var
30598 # Required to use basename.
30599 if expr a : '\(a\)' >/dev/null 2>&1; then
30605 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30606 as_basename=basename
30612 # Name of the executable.
30613 as_me=`$as_basename "$0" ||
30614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30615 X"$0" : 'X\(//\)$' \| \
30616 X"$0" : 'X\(/\)$' \| \
30617 . : '\(.\)' 2>/dev/null ||
30619 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30620 /^X\/\(\/\/\)$/{ s//\1/; q; }
30621 /^X\/\(\/\).*/{ s//\1/; q; }
30625 # PATH needs CR, and LINENO needs CR and PATH.
30626 # Avoid depending upon Character Ranges.
30627 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30628 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30629 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30630 as_cr_digits='0123456789'
30631 as_cr_alnum=$as_cr_Letters$as_cr_digits
30633 # The user is always right.
30634 if test "${PATH_SEPARATOR+set}" != set; then
30635 echo "#! /bin/sh" >conf$$.sh
30636 echo "exit 0" >>conf$$.sh
30638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30647 as_lineno_1=$LINENO
30648 as_lineno_2=$LINENO
30649 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30650 test "x$as_lineno_1" != "x$as_lineno_2" &&
30651 test "x$as_lineno_3" = "x$as_lineno_2" || {
30652 # Find who we are. Look in the path if we contain no path at all
30655 *[\\/]* ) as_myself=$0 ;;
30656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657 for as_dir in $PATH
30660 test -z "$as_dir" && as_dir=.
30661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30666 # We did not find ourselves, most probably we were run as `sh COMMAND'
30667 # in which case we are not to be found in the path.
30668 if test "x$as_myself" = x; then
30671 if test ! -f "$as_myself"; then
30672 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30673 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30674 { (exit 1); exit 1; }; }
30676 case $CONFIG_SHELL in
30678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30679 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30682 test -z "$as_dir" && as_dir=.
30683 for as_base in sh bash ksh sh5; do
30686 if ("$as_dir/$as_base" -c '
30687 as_lineno_1=$LINENO
30688 as_lineno_2=$LINENO
30689 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30690 test "x$as_lineno_1" != "x$as_lineno_2" &&
30691 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30692 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30693 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30694 CONFIG_SHELL=$as_dir/$as_base
30695 export CONFIG_SHELL
30696 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30705 # uniformly replaced by the line number. The first 'sed' inserts a
30706 # line-number line before each line; the second 'sed' does the real
30707 # work. The second script uses 'N' to pair each line-number line
30708 # with the numbered line, and appends trailing '-' during
30709 # substitution so that $LINENO is not a special case at line end.
30710 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30711 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30712 sed '=' <$as_myself |
30717 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30720 s,^['$as_cr_digits']*\n,,
30721 ' >$as_me.lineno &&
30722 chmod +x $as_me.lineno ||
30723 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30724 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30725 { (exit 1); exit 1; }; }
30727 # Don't try to exec as it changes $[0], causing all sort of problems
30728 # (the dirname of $[0] is not the place where we might find the
30729 # original and so on. Autoconf is especially sensible to this).
30731 # Exit status is that of the last command.
30736 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30737 *c*,-n*) ECHO_N= ECHO_C='
30739 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30740 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30743 if expr a : '\(a\)' >/dev/null 2>&1; then
30749 rm -f conf$$ conf$$.exe conf$$.file
30751 if ln -s conf$$.file conf$$ 2>/dev/null; then
30752 # We could just check for DJGPP; but this test a) works b) is more generic
30753 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30754 if test -f conf$$.exe; then
30755 # Don't use ln at all; we don't have any links
30760 elif ln conf$$.file conf$$ 2>/dev/null; then
30765 rm -f conf$$ conf$$.exe conf$$.file
30767 if mkdir -p . 2>/dev/null; then
30770 test -d ./-p && rmdir ./-p
30774 as_executable_p="test -f"
30776 # Sed expression to map a string onto a valid CPP name.
30777 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30779 # Sed expression to map a string onto a valid variable name.
30780 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30784 # We need space, tab and new line, in precisely that order.
30794 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30795 # report actual input values of CONFIG_FILES etc. instead of their
30796 # values after options handling. Logging --version etc. is OK.
30800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30801 ## Running $as_me. ##
30806 This file was extended by $as_me, which was
30807 generated by GNU Autoconf 2.59. Invocation command line was
30809 CONFIG_FILES = $CONFIG_FILES
30810 CONFIG_HEADERS = $CONFIG_HEADERS
30811 CONFIG_LINKS = $CONFIG_LINKS
30812 CONFIG_COMMANDS = $CONFIG_COMMANDS
30816 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30820 # Files that config.status was made for.
30821 if test -n "$ac_config_files"; then
30822 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30825 if test -n "$ac_config_headers"; then
30826 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30829 if test -n "$ac_config_links"; then
30830 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30833 if test -n "$ac_config_commands"; then
30834 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30837 cat >>$CONFIG_STATUS <<\_ACEOF
30840 \`$as_me' instantiates files from templates according to the
30841 current configuration.
30843 Usage: $0 [OPTIONS] [FILE]...
30845 -h, --help print this help, then exit
30846 -V, --version print version number, then exit
30847 -q, --quiet do not print progress messages
30848 -d, --debug don't remove temporary files
30849 --recheck update $as_me by reconfiguring in the same conditions
30850 --file=FILE[:TEMPLATE]
30851 instantiate the configuration file FILE
30852 --header=FILE[:TEMPLATE]
30853 instantiate the configuration header FILE
30855 Configuration files:
30858 Configuration headers:
30861 Configuration commands:
30864 Report bugs to <bug-autoconf@gnu.org>."
30867 cat >>$CONFIG_STATUS <<_ACEOF
30870 configured by $0, generated by GNU Autoconf 2.59,
30871 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30873 Copyright (C) 2003 Free Software Foundation, Inc.
30874 This config.status script is free software; the Free Software Foundation
30875 gives unlimited permission to copy, distribute and modify it."
30880 cat >>$CONFIG_STATUS <<\_ACEOF
30881 # If no file are specified by the user, then we need to provide default
30882 # value. By we need to know if files were specified by the user.
30888 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30889 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30897 *) # This is not an option, so the user has probably given explicit
30900 ac_need_defaults=false;;
30904 # Handling of the options.
30906 cat >>$CONFIG_STATUS <<\_ACEOF
30907 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30909 --version | --vers* | -V )
30910 echo "$ac_cs_version"; exit 0 ;;
30912 # Conflict between --help and --header
30913 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30914 Try \`$0 --help' for more information." >&5
30915 echo "$as_me: error: ambiguous option: $1
30916 Try \`$0 --help' for more information." >&2;}
30917 { (exit 1); exit 1; }; };;
30918 --help | --hel | -h )
30919 echo "$ac_cs_usage"; exit 0 ;;
30920 --debug | --d* | -d )
30922 --file | --fil | --fi | --f )
30924 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30925 ac_need_defaults=false;;
30926 --header | --heade | --head | --hea )
30928 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30929 ac_need_defaults=false;;
30930 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30931 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30934 # This is an error.
30935 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30936 Try \`$0 --help' for more information." >&5
30937 echo "$as_me: error: unrecognized option: $1
30938 Try \`$0 --help' for more information." >&2;}
30939 { (exit 1); exit 1; }; } ;;
30941 *) ac_config_targets="$ac_config_targets $1" ;;
30947 ac_configure_extra_args=
30949 if $ac_cs_silent; then
30951 ac_configure_extra_args="$ac_configure_extra_args --silent"
30955 cat >>$CONFIG_STATUS <<_ACEOF
30956 if \$ac_cs_recheck; then
30957 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30958 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30963 cat >>$CONFIG_STATUS <<_ACEOF
30965 # INIT-COMMANDS section.
30968 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30969 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30971 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30972 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30973 LINGUAS="${LINGUAS-%UNSET%}"
30980 cat >>$CONFIG_STATUS <<\_ACEOF
30981 for ac_config_target in $ac_config_targets
30983 case "$ac_config_target" in
30984 # Handling of arguments.
30985 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30986 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30987 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30988 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30989 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30990 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30991 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30992 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30993 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30994 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30995 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30996 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30997 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30998 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30999 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31000 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31001 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31002 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31003 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31004 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31005 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31006 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31007 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31008 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31009 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31010 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31011 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31012 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31013 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31014 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31015 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31016 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31017 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31018 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31019 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31020 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31021 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31022 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31023 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31024 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31025 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31026 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31027 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31028 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31029 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31030 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31031 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31032 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31033 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31034 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31035 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31036 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31037 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31038 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31039 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31040 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31041 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31042 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31043 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31044 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31045 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31046 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31047 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31048 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31049 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31050 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31051 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31052 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31053 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31054 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31055 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31056 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31057 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31058 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31059 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31060 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31061 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31062 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31063 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31064 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31065 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31066 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31067 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31068 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31069 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31070 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31071 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31072 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31073 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31074 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31075 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31076 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31077 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31078 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31079 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31080 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31081 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31082 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31083 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31084 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31085 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31086 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31087 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31088 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31089 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31090 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31091 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31092 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31093 { (exit 1); exit 1; }; };;
31097 # If the user did not use the arguments to specify the items to instantiate,
31098 # then the envvar interface is used. Set only those that are not.
31099 # We use the long form for the default assignment because of an extremely
31100 # bizarre bug on SunOS 4.1.3.
31101 if $ac_need_defaults; then
31102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31107 # Have a temporary directory for convenience. Make it in the build tree
31108 # simply because there is no reason to put it here, and in addition,
31109 # creating and moving files from /tmp can sometimes cause problems.
31110 # Create a temporary directory, and hook for its removal unless debugging.
31113 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31114 trap '{ (exit 1); exit 1; }' 1 2 13 15
31117 # Create a (secure) tmp directory for tmp files.
31120 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31121 test -n "$tmp" && test -d "$tmp"
31124 tmp=./confstat$$-$RANDOM
31125 (umask 077 && mkdir $tmp)
31128 echo "$me: cannot create a temporary directory in ." >&2
31129 { (exit 1); exit 1; }
31134 cat >>$CONFIG_STATUS <<_ACEOF
31137 # CONFIG_FILES section.
31140 # No need to generate the scripts if there are no CONFIG_FILES.
31141 # This happens for instance when ./config.status config.h
31142 if test -n "\$CONFIG_FILES"; then
31143 # Protect against being on the right side of a sed subst in config.status.
31144 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31145 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31146 s,@SHELL@,$SHELL,;t t
31147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31148 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31149 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31150 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31151 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31152 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31153 s,@exec_prefix@,$exec_prefix,;t t
31154 s,@prefix@,$prefix,;t t
31155 s,@program_transform_name@,$program_transform_name,;t t
31156 s,@bindir@,$bindir,;t t
31157 s,@sbindir@,$sbindir,;t t
31158 s,@libexecdir@,$libexecdir,;t t
31159 s,@datadir@,$datadir,;t t
31160 s,@sysconfdir@,$sysconfdir,;t t
31161 s,@sharedstatedir@,$sharedstatedir,;t t
31162 s,@localstatedir@,$localstatedir,;t t
31163 s,@libdir@,$libdir,;t t
31164 s,@includedir@,$includedir,;t t
31165 s,@oldincludedir@,$oldincludedir,;t t
31166 s,@infodir@,$infodir,;t t
31167 s,@mandir@,$mandir,;t t
31168 s,@build_alias@,$build_alias,;t t
31169 s,@host_alias@,$host_alias,;t t
31170 s,@target_alias@,$target_alias,;t t
31171 s,@DEFS@,$DEFS,;t t
31172 s,@ECHO_C@,$ECHO_C,;t t
31173 s,@ECHO_N@,$ECHO_N,;t t
31174 s,@ECHO_T@,$ECHO_T,;t t
31175 s,@LIBS@,$LIBS,;t t
31176 s,@BUILD_DIR@,$BUILD_DIR,;t t
31177 s,@TOP_DIR@,$TOP_DIR,;t t
31178 s,@TRUEPRG@,$TRUEPRG,;t t
31179 s,@FALSEPRG@,$FALSEPRG,;t t
31180 s,@VERSION@,$VERSION,;t t
31181 s,@DATE@,$DATE,;t t
31182 s,@LSMDATE@,$LSMDATE,;t t
31184 s,@CFLAGS@,$CFLAGS,;t t
31185 s,@LDFLAGS@,$LDFLAGS,;t t
31186 s,@CPPFLAGS@,$CPPFLAGS,;t t
31187 s,@ac_ct_CC@,$ac_ct_CC,;t t
31188 s,@EXEEXT@,$EXEEXT,;t t
31189 s,@OBJEXT@,$OBJEXT,;t t
31191 s,@CXXFLAGS@,$CXXFLAGS,;t t
31192 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31194 s,@EGREP@,$EGREP,;t t
31195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31198 s,@RANLIB@,$RANLIB,;t t
31199 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31204 s,@ECHO@,$ECHO,;t t
31208 s,@OPENSSL@,$OPENSSL,;t t
31211 s,@MKISOFS@,$MKISOFS,;t t
31212 s,@PYTHON@,$PYTHON,;t t
31213 s,@GROWISOFS@,$GROWISOFS,;t t
31214 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31215 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31216 s,@PKGCONFIG@,$PKGCONFIG,;t t
31217 s,@WXCONFIG@,$WXCONFIG,;t t
31218 s,@WXFLAGS@,$WXFLAGS,;t t
31219 s,@CDRECORD@,$CDRECORD,;t t
31220 s,@PIDOF@,$PIDOF,;t t
31222 s,@ARFLAGS@,$ARFLAGS,;t t
31223 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31224 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31225 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31226 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31227 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31228 s,@build@,$build,;t t
31229 s,@build_cpu@,$build_cpu,;t t
31230 s,@build_vendor@,$build_vendor,;t t
31231 s,@build_os@,$build_os,;t t
31232 s,@host@,$host,;t t
31233 s,@host_cpu@,$host_cpu,;t t
31234 s,@host_vendor@,$host_vendor,;t t
31235 s,@host_os@,$host_os,;t t
31236 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31237 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31238 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31239 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31240 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31241 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31242 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31243 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31244 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31245 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31246 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31247 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31248 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31249 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31250 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31251 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31252 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31253 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31254 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31255 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31256 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31257 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31258 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31259 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31260 s,@SET_MAKE@,$SET_MAKE,;t t
31261 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31262 s,@USE_NLS@,$USE_NLS,;t t
31263 s,@MSGFMT@,$MSGFMT,;t t
31264 s,@GMSGFMT@,$GMSGFMT,;t t
31265 s,@XGETTEXT@,$XGETTEXT,;t t
31266 s,@MSGMERGE@,$MSGMERGE,;t t
31267 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31268 s,@LIBICONV@,$LIBICONV,;t t
31269 s,@LTLIBICONV@,$LTLIBICONV,;t t
31270 s,@INTLLIBS@,$INTLLIBS,;t t
31271 s,@LIBINTL@,$LIBINTL,;t t
31272 s,@LTLIBINTL@,$LTLIBINTL,;t t
31273 s,@POSUB@,$POSUB,;t t
31274 s,@GLIBC2@,$GLIBC2,;t t
31275 s,@ALLOCA@,$ALLOCA,;t t
31276 s,@GLIBC21@,$GLIBC21,;t t
31277 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31278 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31279 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31280 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31281 s,@INTLBISON@,$INTLBISON,;t t
31282 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31283 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31284 s,@CATOBJEXT@,$CATOBJEXT,;t t
31285 s,@DATADIRNAME@,$DATADIRNAME,;t t
31286 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31287 s,@GENCAT@,$GENCAT,;t t
31288 s,@INTLOBJS@,$INTLOBJS,;t t
31289 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31290 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31291 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31292 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31293 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31294 s,@GNOME_DIR@,$GNOME_DIR,;t t
31295 s,@BAT_DIR@,$BAT_DIR,;t t
31296 s,@QWT_INC@,$QWT_INC,;t t
31297 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31298 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31299 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31300 s,@WX_DIR@,$WX_DIR,;t t
31301 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31302 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31303 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31304 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31305 s,@STATIC_FD@,$STATIC_FD,;t t
31306 s,@STATIC_SD@,$STATIC_SD,;t t
31307 s,@STATIC_DIR@,$STATIC_DIR,;t t
31308 s,@STATIC_CONS@,$STATIC_CONS,;t t
31309 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31310 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31311 s,@ALL_DIRS@,$ALL_DIRS,;t t
31312 s,@DIRD_DIR@,$DIRD_DIR,;t t
31313 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31314 s,@STORED_DIR@,$STORED_DIR,;t t
31315 s,@CONS_INC@,$CONS_INC,;t t
31316 s,@CONS_OBJ@,$CONS_OBJ,;t t
31317 s,@CONS_SRC@,$CONS_SRC,;t t
31318 s,@CONS_LIBS@,$CONS_LIBS,;t t
31319 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31320 s,@READLINE_SRC@,$READLINE_SRC,;t t
31321 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31322 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31323 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31324 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31325 s,@working_dir@,$working_dir,;t t
31326 s,@scriptdir@,$scriptdir,;t t
31327 s,@dump_email@,$dump_email,;t t
31328 s,@job_email@,$job_email,;t t
31329 s,@smtp_host@,$smtp_host,;t t
31330 s,@piddir@,$piddir,;t t
31331 s,@subsysdir@,$subsysdir,;t t
31332 s,@baseport@,$baseport,;t t
31333 s,@dir_port@,$dir_port,;t t
31334 s,@fd_port@,$fd_port,;t t
31335 s,@sd_port@,$sd_port,;t t
31336 s,@dir_password@,$dir_password,;t t
31337 s,@fd_password@,$fd_password,;t t
31338 s,@sd_password@,$sd_password,;t t
31339 s,@mon_dir_password@,$mon_dir_password,;t t
31340 s,@mon_fd_password@,$mon_fd_password,;t t
31341 s,@mon_sd_password@,$mon_sd_password,;t t
31342 s,@db_name@,$db_name,;t t
31343 s,@db_user@,$db_user,;t t
31344 s,@dir_user@,$dir_user,;t t
31345 s,@dir_group@,$dir_group,;t t
31346 s,@sd_user@,$sd_user,;t t
31347 s,@sd_group@,$sd_group,;t t
31348 s,@fd_user@,$fd_user,;t t
31349 s,@fd_group@,$fd_group,;t t
31350 s,@SBINPERM@,$SBINPERM,;t t
31351 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31352 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31353 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31354 s,@cats@,$cats,;t t
31355 s,@DB_TYPE@,$DB_TYPE,;t t
31356 s,@GETCONF@,$GETCONF,;t t
31357 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31358 s,@X_CFLAGS@,$X_CFLAGS,;t t
31359 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31360 s,@X_LIBS@,$X_LIBS,;t t
31361 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31362 s,@LIBOBJS@,$LIBOBJS,;t t
31363 s,@FDLIBS@,$FDLIBS,;t t
31364 s,@DEBUG@,$DEBUG,;t t
31365 s,@DINCLUDE@,$DINCLUDE,;t t
31366 s,@DLIB@,$DLIB,;t t
31367 s,@DB_LIBS@,$DB_LIBS,;t t
31368 s,@WCFLAGS@,$WCFLAGS,;t t
31369 s,@WLDFLAGS@,$WLDFLAGS,;t t
31370 s,@WRAPLIBS@,$WRAPLIBS,;t t
31371 s,@OBJLIST@,$OBJLIST,;t t
31372 s,@hostname@,$hostname,;t t
31373 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31374 s,@PSCMD@,$PSCMD,;t t
31375 s,@WIN32@,$WIN32,;t t
31376 s,@MACOSX@,$MACOSX,;t t
31377 s,@DISTNAME@,$DISTNAME,;t t
31378 s,@DISTVER@,$DISTVER,;t t
31379 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31380 /@MCOMMON@/r $MCOMMON
31386 cat >>$CONFIG_STATUS <<\_ACEOF
31387 # Split the substitutions into bite-sized pieces for seds with
31388 # small command number limits, like on Digital OSF/1 and HP-UX.
31389 ac_max_sed_lines=48
31390 ac_sed_frag=1 # Number of current file.
31391 ac_beg=1 # First line for current file.
31392 ac_end=$ac_max_sed_lines # Line after last line for current file.
31395 while $ac_more_lines; do
31396 if test $ac_beg -gt 1; then
31397 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31399 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31401 if test ! -s $tmp/subs.frag; then
31402 ac_more_lines=false
31404 # The purpose of the label and of the branching condition is to
31405 # speed up the sed processing (if there are no `@' at all, there
31406 # is no need to browse any of the substitutions).
31407 # These are the two extra sed commands mentioned above.
31409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31410 if test -z "$ac_sed_cmds"; then
31411 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31413 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31415 ac_sed_frag=`expr $ac_sed_frag + 1`
31417 ac_end=`expr $ac_end + $ac_max_sed_lines`
31420 if test -z "$ac_sed_cmds"; then
31423 fi # test -n "$CONFIG_FILES"
31426 cat >>$CONFIG_STATUS <<\_ACEOF
31427 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31428 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31430 - | *:- | *:-:* ) # input from stdin
31432 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31433 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31434 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31435 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31436 * ) ac_file_in=$ac_file.in ;;
31439 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31440 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31442 X"$ac_file" : 'X\(//\)[^/]' \| \
31443 X"$ac_file" : 'X\(//\)$' \| \
31444 X"$ac_file" : 'X\(/\)' \| \
31445 . : '\(.\)' 2>/dev/null ||
31447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31449 /^X\(\/\/\)$/{ s//\1/; q; }
31450 /^X\(\/\).*/{ s//\1/; q; }
31452 { if $as_mkdir_p; then
31457 while test ! -d "$as_dir"; do
31458 as_dirs="$as_dir $as_dirs"
31459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31461 X"$as_dir" : 'X\(//\)[^/]' \| \
31462 X"$as_dir" : 'X\(//\)$' \| \
31463 X"$as_dir" : 'X\(/\)' \| \
31464 . : '\(.\)' 2>/dev/null ||
31466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31468 /^X\(\/\/\)$/{ s//\1/; q; }
31469 /^X\(\/\).*/{ s//\1/; q; }
31472 test ! -n "$as_dirs" || mkdir $as_dirs
31473 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31475 { (exit 1); exit 1; }; }; }
31479 if test "$ac_dir" != .; then
31480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31481 # A "../" for each directory in $ac_dir_suffix.
31482 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31484 ac_dir_suffix= ac_top_builddir=
31488 .) # No --srcdir option. We are building in place.
31490 if test -z "$ac_top_builddir"; then
31493 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31495 [\\/]* | ?:[\\/]* ) # Absolute path.
31496 ac_srcdir=$srcdir$ac_dir_suffix;
31497 ac_top_srcdir=$srcdir ;;
31498 *) # Relative path.
31499 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31500 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31503 # Do not use `cd foo && pwd` to compute absolute paths, because
31504 # the directories may not exist.
31506 .) ac_abs_builddir="$ac_dir";;
31509 .) ac_abs_builddir=`pwd`;;
31510 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31511 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31514 case $ac_abs_builddir in
31515 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31517 case ${ac_top_builddir}. in
31518 .) ac_abs_top_builddir=$ac_abs_builddir;;
31519 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31520 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31523 case $ac_abs_builddir in
31524 .) ac_abs_srcdir=$ac_srcdir;;
31527 .) ac_abs_srcdir=$ac_abs_builddir;;
31528 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31529 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31532 case $ac_abs_builddir in
31533 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31535 case $ac_top_srcdir in
31536 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31537 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31538 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31545 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31548 if test x"$ac_file" != x-; then
31549 { echo "$as_me:$LINENO: creating $ac_file" >&5
31550 echo "$as_me: creating $ac_file" >&6;}
31553 # Let's still pretend it is `configure' which instantiates (i.e., don't
31554 # use $as_me), people would be surprised to read:
31555 # /* config.h. Generated by config.status. */
31556 if test x"$ac_file" = x-; then
31559 configure_input="$ac_file. "
31561 configure_input=$configure_input"Generated from `echo $ac_file_in |
31562 sed 's,.*/,,'` by configure."
31564 # First look for the input files in the build tree, otherwise in the
31566 ac_file_inputs=`IFS=:
31567 for f in $ac_file_in; do
31569 -) echo $tmp/stdin ;;
31571 # Absolute (can't be DOS-style, as IFS=:)
31572 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31573 echo "$as_me: error: cannot find input file: $f" >&2;}
31574 { (exit 1); exit 1; }; }
31577 if test -f "$f"; then
31580 elif test -f "$srcdir/$f"; then
31585 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31586 echo "$as_me: error: cannot find input file: $f" >&2;}
31587 { (exit 1); exit 1; }; }
31590 done` || { (exit 1); exit 1; }
31592 cat >>$CONFIG_STATUS <<_ACEOF
31596 cat >>$CONFIG_STATUS <<\_ACEOF
31598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31599 s,@configure_input@,$configure_input,;t t
31600 s,@srcdir@,$ac_srcdir,;t t
31601 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31602 s,@top_srcdir@,$ac_top_srcdir,;t t
31603 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31604 s,@builddir@,$ac_builddir,;t t
31605 s,@abs_builddir@,$ac_abs_builddir,;t t
31606 s,@top_builddir@,$ac_top_builddir,;t t
31607 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31608 s,@INSTALL@,$ac_INSTALL,;t t
31609 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31611 if test x"$ac_file" != x-; then
31612 mv $tmp/out $ac_file
31620 cat >>$CONFIG_STATUS <<\_ACEOF
31623 # CONFIG_HEADER section.
31626 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31627 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31629 # ac_d sets the value in "#define NAME VALUE" lines.
31630 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31631 ac_dB='[ ].*$,\1#\2'
31634 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31635 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31636 ac_uB='$,\1#\2define\3'
31640 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31641 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31643 - | *:- | *:-:* ) # input from stdin
31645 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31647 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31649 * ) ac_file_in=$ac_file.in ;;
31652 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31653 echo "$as_me: creating $ac_file" >&6;}
31655 # First look for the input files in the build tree, otherwise in the
31657 ac_file_inputs=`IFS=:
31658 for f in $ac_file_in; do
31660 -) echo $tmp/stdin ;;
31662 # Absolute (can't be DOS-style, as IFS=:)
31663 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31664 echo "$as_me: error: cannot find input file: $f" >&2;}
31665 { (exit 1); exit 1; }; }
31666 # Do quote $f, to prevent DOS paths from being IFS'd.
31669 if test -f "$f"; then
31672 elif test -f "$srcdir/$f"; then
31677 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31678 echo "$as_me: error: cannot find input file: $f" >&2;}
31679 { (exit 1); exit 1; }; }
31682 done` || { (exit 1); exit 1; }
31683 # Remove the trailing spaces.
31684 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31688 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31689 # `conftest.undefs', that substitutes the proper values into
31690 # config.h.in to produce config.h. The first handles `#define'
31691 # templates, and the second `#undef' templates.
31692 # And first: Protect against being on the right side of a sed subst in
31693 # config.status. Protect against being in an unquoted here document
31694 # in config.status.
31695 rm -f conftest.defines conftest.undefs
31696 # Using a here document instead of a string reduces the quoting nightmare.
31697 # Putting comments in sed scripts is not portable.
31699 # `end' is used to avoid that the second main sed command (meant for
31700 # 0-ary CPP macros) applies to n-ary macro definitions.
31701 # See the Autoconf documentation for `clear'.
31702 cat >confdef2sed.sed <<\_ACEOF
31707 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31709 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31712 # If some macros were called several times there might be several times
31713 # the same #defines, which is useless. Nevertheless, we may not want to
31714 # sort them, since we want the *last* AC-DEFINE to be honored.
31715 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31716 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31717 rm -f confdef2sed.sed
31719 # This sed command replaces #undef with comments. This is necessary, for
31720 # example, in the case of _POSIX_SOURCE, which is predefined and required
31721 # on some systems where configure will not decide to define it.
31722 cat >>conftest.undefs <<\_ACEOF
31723 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31726 # Break up conftest.defines because some shells have a limit on the size
31727 # of here documents, and old seds have small limits too (100 cmds).
31728 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31729 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31730 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31731 echo ' :' >>$CONFIG_STATUS
31732 rm -f conftest.tail
31733 while grep . conftest.defines >/dev/null
31735 # Write a limited-size here document to $tmp/defines.sed.
31736 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31737 # Speed up: don't consider the non `#define' lines.
31738 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31739 # Work around the forget-to-reset-the-flag bug.
31740 echo 't clr' >>$CONFIG_STATUS
31741 echo ': clr' >>$CONFIG_STATUS
31742 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31744 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31746 mv $tmp/out $tmp/in
31748 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31749 rm -f conftest.defines
31750 mv conftest.tail conftest.defines
31752 rm -f conftest.defines
31753 echo ' fi # grep' >>$CONFIG_STATUS
31754 echo >>$CONFIG_STATUS
31756 # Break up conftest.undefs because some shells have a limit on the size
31757 # of here documents, and old seds have small limits too (100 cmds).
31758 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31759 rm -f conftest.tail
31760 while grep . conftest.undefs >/dev/null
31762 # Write a limited-size here document to $tmp/undefs.sed.
31763 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31764 # Speed up: don't consider the non `#undef'
31765 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31766 # Work around the forget-to-reset-the-flag bug.
31767 echo 't clr' >>$CONFIG_STATUS
31768 echo ': clr' >>$CONFIG_STATUS
31769 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31771 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31773 mv $tmp/out $tmp/in
31775 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31776 rm -f conftest.undefs
31777 mv conftest.tail conftest.undefs
31779 rm -f conftest.undefs
31781 cat >>$CONFIG_STATUS <<\_ACEOF
31782 # Let's still pretend it is `configure' which instantiates (i.e., don't
31783 # use $as_me), people would be surprised to read:
31784 # /* config.h. Generated by config.status. */
31785 if test x"$ac_file" = x-; then
31786 echo "/* Generated by configure. */" >$tmp/config.h
31788 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31790 cat $tmp/in >>$tmp/config.h
31792 if test x"$ac_file" != x-; then
31793 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31794 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31795 echo "$as_me: $ac_file is unchanged" >&6;}
31797 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31799 X"$ac_file" : 'X\(//\)[^/]' \| \
31800 X"$ac_file" : 'X\(//\)$' \| \
31801 X"$ac_file" : 'X\(/\)' \| \
31802 . : '\(.\)' 2>/dev/null ||
31804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31806 /^X\(\/\/\)$/{ s//\1/; q; }
31807 /^X\(\/\).*/{ s//\1/; q; }
31809 { if $as_mkdir_p; then
31814 while test ! -d "$as_dir"; do
31815 as_dirs="$as_dir $as_dirs"
31816 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31818 X"$as_dir" : 'X\(//\)[^/]' \| \
31819 X"$as_dir" : 'X\(//\)$' \| \
31820 X"$as_dir" : 'X\(/\)' \| \
31821 . : '\(.\)' 2>/dev/null ||
31823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31825 /^X\(\/\/\)$/{ s//\1/; q; }
31826 /^X\(\/\).*/{ s//\1/; q; }
31829 test ! -n "$as_dirs" || mkdir $as_dirs
31830 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31832 { (exit 1); exit 1; }; }; }
31835 mv $tmp/config.h $ac_file
31839 rm -f $tmp/config.h
31843 cat >>$CONFIG_STATUS <<\_ACEOF
31846 # CONFIG_COMMANDS section.
31848 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31849 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31850 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31851 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31852 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31853 X"$ac_dest" : 'X\(//\)[^/]' \| \
31854 X"$ac_dest" : 'X\(//\)$' \| \
31855 X"$ac_dest" : 'X\(/\)' \| \
31856 . : '\(.\)' 2>/dev/null ||
31858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31860 /^X\(\/\/\)$/{ s//\1/; q; }
31861 /^X\(\/\).*/{ s//\1/; q; }
31863 { if $as_mkdir_p; then
31868 while test ! -d "$as_dir"; do
31869 as_dirs="$as_dir $as_dirs"
31870 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31872 X"$as_dir" : 'X\(//\)[^/]' \| \
31873 X"$as_dir" : 'X\(//\)$' \| \
31874 X"$as_dir" : 'X\(/\)' \| \
31875 . : '\(.\)' 2>/dev/null ||
31877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31879 /^X\(\/\/\)$/{ s//\1/; q; }
31880 /^X\(\/\).*/{ s//\1/; q; }
31883 test ! -n "$as_dirs" || mkdir $as_dirs
31884 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31885 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31886 { (exit 1); exit 1; }; }; }
31890 if test "$ac_dir" != .; then
31891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31892 # A "../" for each directory in $ac_dir_suffix.
31893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31895 ac_dir_suffix= ac_top_builddir=
31899 .) # No --srcdir option. We are building in place.
31901 if test -z "$ac_top_builddir"; then
31904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31906 [\\/]* | ?:[\\/]* ) # Absolute path.
31907 ac_srcdir=$srcdir$ac_dir_suffix;
31908 ac_top_srcdir=$srcdir ;;
31909 *) # Relative path.
31910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31914 # Do not use `cd foo && pwd` to compute absolute paths, because
31915 # the directories may not exist.
31917 .) ac_abs_builddir="$ac_dir";;
31920 .) ac_abs_builddir=`pwd`;;
31921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31925 case $ac_abs_builddir in
31926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31928 case ${ac_top_builddir}. in
31929 .) ac_abs_top_builddir=$ac_abs_builddir;;
31930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31934 case $ac_abs_builddir in
31935 .) ac_abs_srcdir=$ac_srcdir;;
31938 .) ac_abs_srcdir=$ac_abs_builddir;;
31939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31943 case $ac_abs_builddir in
31944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31946 case $ac_top_srcdir in
31947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31954 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31955 echo "$as_me: executing $ac_dest commands" >&6;}
31958 for ac_file in $CONFIG_FILES; do
31959 # Support "outfile[:infile[:infile...]]"
31961 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31963 # PO directories have a Makefile.in generated from Makefile.in.in.
31964 case "$ac_file" in */Makefile.in)
31965 # Adjust a relative srcdir.
31966 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31967 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31968 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31969 # In autoconf-2.13 it is called $ac_given_srcdir.
31970 # In autoconf-2.50 it is called $srcdir.
31971 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31972 case "$ac_given_srcdir" in
31973 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31974 /*) top_srcdir="$ac_given_srcdir" ;;
31975 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31977 # Treat a directory as a PO directory if and only if it has a
31978 # POTFILES.in file. This allows packages to have multiple PO
31979 # directories under different names or in different locations.
31980 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31981 rm -f "$ac_dir/POTFILES"
31982 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31983 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31984 POMAKEFILEDEPS="POTFILES.in"
31985 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31986 # on $ac_dir but don't depend on user-specified configuration
31988 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31989 # The LINGUAS file contains the set of available languages.
31990 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31991 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31993 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31994 # Hide the ALL_LINGUAS assigment from automake.
31995 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31996 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31998 # The set of available languages was given in configure.in.
31999 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32002 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32003 # Compute UPDATEPOFILES
32004 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32005 # Compute DUMMYPOFILES
32006 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32008 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32009 case "$ac_given_srcdir" in
32011 *) srcdirpre='$(srcdir)/' ;;
32017 for lang in $ALL_LINGUAS; do
32018 POFILES="$POFILES $srcdirpre$lang.po"
32019 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32020 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32021 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32023 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32024 # environment variable.
32026 if test -n "$ALL_LINGUAS"; then
32027 for presentlang in $ALL_LINGUAS; do
32029 if test "%UNSET%" != "$LINGUAS"; then
32030 desiredlanguages="$LINGUAS"
32032 desiredlanguages="$ALL_LINGUAS"
32034 for desiredlang in $desiredlanguages; do
32035 # Use the presentlang catalog if desiredlang is
32036 # a. equal to presentlang, or
32037 # b. a variant of presentlang (because in this case,
32038 # presentlang can be used as a fallback for messages
32039 # which are not translated in the desiredlang catalog).
32040 case "$desiredlang" in
32041 "$presentlang"*) useit=yes;;
32044 if test $useit = yes; then
32045 INST_LINGUAS="$INST_LINGUAS $presentlang"
32050 if test -n "$INST_LINGUAS"; then
32051 for lang in $INST_LINGUAS; do
32052 CATALOGS="$CATALOGS $lang.gmo"
32055 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32056 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"
32057 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32058 if test -f "$f"; then
32060 *.orig | *.bak | *~) ;;
32061 *) cat "$f" >> "$ac_dir/Makefile" ;;
32075 cat >>$CONFIG_STATUS <<\_ACEOF
32077 { (exit 0); exit 0; }
32079 chmod +x $CONFIG_STATUS
32080 ac_clean_files=$ac_clean_files_save
32083 # configure is writing to config.log, and then calls config.status.
32084 # config.status does its own redirection, appending to config.log.
32085 # Unfortunately, on DOS this fails, as config.log is still kept open
32086 # by configure, so config.status won't be able to write to it; its
32087 # output is simply discarded. So we exec the FD to /dev/null,
32088 # effectively closing config.log, so it can be properly (re)opened and
32089 # appended to by config.status. When coming back to configure, we
32090 # need to make the FD available again.
32091 if test "$no_create" != yes; then
32093 ac_config_status_args=
32094 test "$silent" = yes &&
32095 ac_config_status_args="$ac_config_status_args --quiet"
32097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32100 # would make configure fail if this is the last instruction.
32101 $ac_cs_success || { (exit 1); exit 1; }
32105 if test "${support_bat}" = "yes" ; then
32107 chmod 755 install_conf_file build-depkgs-qt-console
32108 echo "Creating bat Makefile"
32113 echo "Doing make of dependencies"
32114 ${MAKE:-make} depend
32117 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32118 chmod 755 dvd-handler dvd-simulator
32119 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32124 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32125 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32127 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32128 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32130 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32131 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32133 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32134 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32136 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32137 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32139 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32140 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32142 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32143 chmod 755 $c/sqlite
32146 chmod 755 src/win32/build-depkgs-mingw32
32150 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32151 largefile_support="yes"
32155 # A whole lot of hand springs to get the compiler version.
32156 # This is because gcc changed the output in version 3.0
32158 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32159 if test "x${CCVERSION}" = "x" ; then
32160 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32162 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32163 if test x"${CXXVERSION}" = x ; then
32164 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32167 if test "x${subsysdir}" = "x${sbindir}" ; then
32170 echo "You have set --sbindir and --with-subsys-dir"
32171 echo " both equal to: ${subsysdir} "
32172 echo " This is not permitted. Please reconfigure."
32174 echo "Aborting configuration ..."
32180 if test "x${db_type}" = "xInternal" ; then
32183 echo "You have not specified either --enable-client-only or one of the"
32184 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32185 echo " This is not permitted. Please reconfigure."
32187 echo "Aborting the configuration ..."
32194 Configuration on `date`:
32196 Host: $host -- ${DISTNAME} ${DISTVER}
32197 Bacula version: ${VERSION} (${DATE})
32198 Source code location: ${srcdir}
32199 Install binaries: ${sbindir}
32200 Install config files: ${sysconfdir}
32201 Scripts directory: ${scriptdir}
32202 Working directory: ${working_dir}
32203 PID directory: ${piddir}
32204 Subsys directory: ${subsysdir}
32205 Man directory: ${mandir}
32206 Data directory: ${datadir}
32207 C Compiler: ${CC} ${CCVERSION}
32208 C++ Compiler: ${CXX} ${CXXVERSION}
32209 Compiler flags: ${WCFLAGS} ${CFLAGS}
32210 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32212 Statically Linked Tools: ${support_static_tools}
32213 Statically Linked FD: ${support_static_fd}
32214 Statically Linked SD: ${support_static_sd}
32215 Statically Linked DIR: ${support_static_dir}
32216 Statically Linked CONS: ${support_static_cons}
32217 Database type: ${db_type}
32218 Database lib: ${DB_LIBS}
32219 Database name: ${db_name}
32220 Database user: ${db_user}
32222 Job Output Email: ${job_email}
32223 Traceback Email: ${dump_email}
32224 SMTP Host Address: ${smtp_host}
32226 Director Port: ${dir_port}
32227 File daemon Port: ${fd_port}
32228 Storage daemon Port: ${sd_port}
32230 Director User: ${dir_user}
32231 Director Group: ${dir_group}
32232 Storage Daemon User: ${sd_user}
32233 Storage DaemonGroup: ${sd_group}
32234 File Daemon User: ${fd_user}
32235 File Daemon Group: ${fd_group}
32237 SQL binaries Directory ${SQL_BINDIR}
32239 Large file support: $largefile_support
32240 Bacula conio support: ${got_conio} ${CONS_LIBS}
32241 readline support: ${got_readline} ${PRTREADLINE_SRC}
32242 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32243 TLS support: ${support_tls}
32244 Encryption support: ${support_crypto}
32245 ZLIB support: ${have_zlib}
32246 enable-smartalloc: ${support_smartalloc}
32247 bat support: ${support_bat} ${QWT_LDFLAGS}
32248 enable-gnome: ${support_gnome} ${gnome_version}
32249 enable-bwx-console: ${support_wx_console} ${wx_version}
32250 enable-tray-monitor: ${support_tray_monitor}
32251 client-only: ${build_client_only}
32252 build-dird: ${build_dird}
32253 build-stored: ${build_stored}
32254 ACL support: ${have_acl}
32255 Python support: ${support_python} ${PYTHON_LIBS}
32256 Batch insert enabled: ${support_batch_insert}